vendor.js 783 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (res[0]) {
  346. reject(res[0]);
  347. } else {
  348. resolve(res[1]);
  349. }
  350. });
  351. });
  352. }
  353. };
  354. 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/;
  355. var CONTEXT_API_RE = /^create|Manager$/;
  356. // Context例外情况
  357. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  358. // 同步例外情况
  359. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  360. var CALLBACK_API_RE = /^on|^off/;
  361. function isContextApi(name) {
  362. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  363. }
  364. function isSyncApi(name) {
  365. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  366. }
  367. function isCallbackApi(name) {
  368. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  369. }
  370. function handlePromise(promise) {
  371. return promise.then(function (data) {
  372. return [null, data];
  373. }).catch(function (err) {
  374. return [err];
  375. });
  376. }
  377. function shouldPromise(name) {
  378. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  379. return false;
  380. }
  381. return true;
  382. }
  383. /* eslint-disable no-extend-native */
  384. if (!Promise.prototype.finally) {
  385. Promise.prototype.finally = function (callback) {
  386. var promise = this.constructor;
  387. return this.then(function (value) {
  388. return promise.resolve(callback()).then(function () {
  389. return value;
  390. });
  391. }, function (reason) {
  392. return promise.resolve(callback()).then(function () {
  393. throw reason;
  394. });
  395. });
  396. };
  397. }
  398. function promisify(name, api) {
  399. if (!shouldPromise(name) || !isFn(api)) {
  400. return api;
  401. }
  402. return function promiseApi() {
  403. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  404. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  405. params[_key2 - 1] = arguments[_key2];
  406. }
  407. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  408. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  409. }
  410. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  411. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  412. success: resolve,
  413. fail: reject
  414. })].concat(params));
  415. })));
  416. };
  417. }
  418. var EPS = 1e-4;
  419. var BASE_DEVICE_WIDTH = 750;
  420. var isIOS = false;
  421. var deviceWidth = 0;
  422. var deviceDPR = 0;
  423. function checkDeviceWidth() {
  424. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  425. platform = _wx$getSystemInfoSync.platform,
  426. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  427. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  428. deviceWidth = windowWidth;
  429. deviceDPR = pixelRatio;
  430. isIOS = platform === 'ios';
  431. }
  432. function upx2px(number, newDeviceWidth) {
  433. if (deviceWidth === 0) {
  434. checkDeviceWidth();
  435. }
  436. number = Number(number);
  437. if (number === 0) {
  438. return 0;
  439. }
  440. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  441. if (result < 0) {
  442. result = -result;
  443. }
  444. result = Math.floor(result + EPS);
  445. if (result === 0) {
  446. if (deviceDPR === 1 || !isIOS) {
  447. result = 1;
  448. } else {
  449. result = 0.5;
  450. }
  451. }
  452. return number < 0 ? -result : result;
  453. }
  454. var LOCALE_ZH_HANS = 'zh-Hans';
  455. var LOCALE_ZH_HANT = 'zh-Hant';
  456. var LOCALE_EN = 'en';
  457. var LOCALE_FR = 'fr';
  458. var LOCALE_ES = 'es';
  459. var messages = {};
  460. var locale;
  461. {
  462. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  463. }
  464. function initI18nMessages() {
  465. if (!isEnableLocale()) {
  466. return;
  467. }
  468. var localeKeys = Object.keys(__uniConfig.locales);
  469. if (localeKeys.length) {
  470. localeKeys.forEach(function (locale) {
  471. var curMessages = messages[locale];
  472. var userMessages = __uniConfig.locales[locale];
  473. if (curMessages) {
  474. Object.assign(curMessages, userMessages);
  475. } else {
  476. messages[locale] = userMessages;
  477. }
  478. });
  479. }
  480. }
  481. initI18nMessages();
  482. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  483. var t = i18n.t;
  484. var i18nMixin = i18n.mixin = {
  485. beforeCreate: function beforeCreate() {
  486. var _this = this;
  487. var unwatch = i18n.i18n.watchLocale(function () {
  488. _this.$forceUpdate();
  489. });
  490. this.$once('hook:beforeDestroy', function () {
  491. unwatch();
  492. });
  493. },
  494. methods: {
  495. $$t: function $$t(key, values) {
  496. return t(key, values);
  497. }
  498. }
  499. };
  500. var setLocale = i18n.setLocale;
  501. var getLocale = i18n.getLocale;
  502. function initAppLocale(Vue, appVm, locale) {
  503. var state = Vue.observable({
  504. locale: locale || i18n.getLocale()
  505. });
  506. var localeWatchers = [];
  507. appVm.$watchLocale = function (fn) {
  508. localeWatchers.push(fn);
  509. };
  510. Object.defineProperty(appVm, '$locale', {
  511. get: function get() {
  512. return state.locale;
  513. },
  514. set: function set(v) {
  515. state.locale = v;
  516. localeWatchers.forEach(function (watch) {
  517. return watch(v);
  518. });
  519. }
  520. });
  521. }
  522. function isEnableLocale() {
  523. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  524. }
  525. function include(str, parts) {
  526. return !!parts.find(function (part) {
  527. return str.indexOf(part) !== -1;
  528. });
  529. }
  530. function startsWith(str, parts) {
  531. return parts.find(function (part) {
  532. return str.indexOf(part) === 0;
  533. });
  534. }
  535. function normalizeLocale(locale, messages) {
  536. if (!locale) {
  537. return;
  538. }
  539. locale = locale.trim().replace(/_/g, '-');
  540. if (messages && messages[locale]) {
  541. return locale;
  542. }
  543. locale = locale.toLowerCase();
  544. if (locale === 'chinese') {
  545. // 支付宝
  546. return LOCALE_ZH_HANS;
  547. }
  548. if (locale.indexOf('zh') === 0) {
  549. if (locale.indexOf('-hans') > -1) {
  550. return LOCALE_ZH_HANS;
  551. }
  552. if (locale.indexOf('-hant') > -1) {
  553. return LOCALE_ZH_HANT;
  554. }
  555. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  556. return LOCALE_ZH_HANT;
  557. }
  558. return LOCALE_ZH_HANS;
  559. }
  560. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  561. if (lang) {
  562. return lang;
  563. }
  564. }
  565. // export function initI18n() {
  566. // const localeKeys = Object.keys(__uniConfig.locales || {})
  567. // if (localeKeys.length) {
  568. // localeKeys.forEach((locale) =>
  569. // i18n.add(locale, __uniConfig.locales[locale])
  570. // )
  571. // }
  572. // }
  573. function getLocale$1() {
  574. // 优先使用 $locale
  575. if (isFn(getApp)) {
  576. var app = getApp({
  577. allowDefault: true
  578. });
  579. if (app && app.$vm) {
  580. return app.$vm.$locale;
  581. }
  582. }
  583. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  584. }
  585. function setLocale$1(locale) {
  586. var app = isFn(getApp) ? getApp() : false;
  587. if (!app) {
  588. return false;
  589. }
  590. var oldLocale = app.$vm.$locale;
  591. if (oldLocale !== locale) {
  592. app.$vm.$locale = locale;
  593. onLocaleChangeCallbacks.forEach(function (fn) {
  594. return fn({
  595. locale: locale
  596. });
  597. });
  598. return true;
  599. }
  600. return false;
  601. }
  602. var onLocaleChangeCallbacks = [];
  603. function onLocaleChange(fn) {
  604. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  605. onLocaleChangeCallbacks.push(fn);
  606. }
  607. }
  608. if (typeof global !== 'undefined') {
  609. global.getLocale = getLocale$1;
  610. }
  611. var interceptors = {
  612. promiseInterceptor: promiseInterceptor
  613. };
  614. var baseApi = /*#__PURE__*/Object.freeze({
  615. __proto__: null,
  616. upx2px: upx2px,
  617. getLocale: getLocale$1,
  618. setLocale: setLocale$1,
  619. onLocaleChange: onLocaleChange,
  620. addInterceptor: addInterceptor,
  621. removeInterceptor: removeInterceptor,
  622. interceptors: interceptors
  623. });
  624. function findExistsPageIndex(url) {
  625. var pages = getCurrentPages();
  626. var len = pages.length;
  627. while (len--) {
  628. var page = pages[len];
  629. if (page.$page && page.$page.fullPath === url) {
  630. return len;
  631. }
  632. }
  633. return -1;
  634. }
  635. var redirectTo = {
  636. name: function name(fromArgs) {
  637. if (fromArgs.exists === 'back' && fromArgs.delta) {
  638. return 'navigateBack';
  639. }
  640. return 'redirectTo';
  641. },
  642. args: function args(fromArgs) {
  643. if (fromArgs.exists === 'back' && fromArgs.url) {
  644. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  645. if (existsPageIndex !== -1) {
  646. var delta = getCurrentPages().length - 1 - existsPageIndex;
  647. if (delta > 0) {
  648. fromArgs.delta = delta;
  649. }
  650. }
  651. }
  652. }
  653. };
  654. var previewImage = {
  655. args: function args(fromArgs) {
  656. var currentIndex = parseInt(fromArgs.current);
  657. if (isNaN(currentIndex)) {
  658. return;
  659. }
  660. var urls = fromArgs.urls;
  661. if (!Array.isArray(urls)) {
  662. return;
  663. }
  664. var len = urls.length;
  665. if (!len) {
  666. return;
  667. }
  668. if (currentIndex < 0) {
  669. currentIndex = 0;
  670. } else if (currentIndex >= len) {
  671. currentIndex = len - 1;
  672. }
  673. if (currentIndex > 0) {
  674. fromArgs.current = urls[currentIndex];
  675. fromArgs.urls = urls.filter(function (item, index) {
  676. return index < currentIndex ? item !== urls[currentIndex] : true;
  677. });
  678. } else {
  679. fromArgs.current = urls[0];
  680. }
  681. return {
  682. indicator: false,
  683. loop: false
  684. };
  685. }
  686. };
  687. var UUID_KEY = '__DC_STAT_UUID';
  688. var deviceId;
  689. function useDeviceId(result) {
  690. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  691. if (!deviceId) {
  692. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  693. wx.setStorage({
  694. key: UUID_KEY,
  695. data: deviceId
  696. });
  697. }
  698. result.deviceId = deviceId;
  699. }
  700. function addSafeAreaInsets(result) {
  701. if (result.safeArea) {
  702. var safeArea = result.safeArea;
  703. result.safeAreaInsets = {
  704. top: safeArea.top,
  705. left: safeArea.left,
  706. right: result.windowWidth - safeArea.right,
  707. bottom: result.screenHeight - safeArea.bottom
  708. };
  709. }
  710. }
  711. function populateParameters(result) {
  712. var _result$brand = result.brand,
  713. brand = _result$brand === void 0 ? '' : _result$brand,
  714. _result$model = result.model,
  715. model = _result$model === void 0 ? '' : _result$model,
  716. _result$system = result.system,
  717. system = _result$system === void 0 ? '' : _result$system,
  718. _result$language = result.language,
  719. language = _result$language === void 0 ? '' : _result$language,
  720. theme = result.theme,
  721. version = result.version,
  722. platform = result.platform,
  723. fontSizeSetting = result.fontSizeSetting,
  724. SDKVersion = result.SDKVersion,
  725. pixelRatio = result.pixelRatio,
  726. deviceOrientation = result.deviceOrientation;
  727. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  728. var extraParam = {};
  729. // osName osVersion
  730. var osName = '';
  731. var osVersion = '';
  732. {
  733. osName = system.split(' ')[0] || '';
  734. osVersion = system.split(' ')[1] || '';
  735. }
  736. var hostVersion = version;
  737. // deviceType
  738. var deviceType = getGetDeviceType(result, model);
  739. // deviceModel
  740. var deviceBrand = getDeviceBrand(brand);
  741. // hostName
  742. var _hostName = getHostName(result);
  743. // deviceOrientation
  744. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  745. // devicePixelRatio
  746. var _devicePixelRatio = pixelRatio;
  747. // SDKVersion
  748. var _SDKVersion = SDKVersion;
  749. // hostLanguage
  750. var hostLanguage = language.replace(/_/g, '-');
  751. // wx.getAccountInfoSync
  752. var parameters = {
  753. appId: "__UNI__793C1C8",
  754. appName: "sacanPay",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "4.28",
  759. uniRuntimeVersion: "4.28",
  760. uniPlatform: undefined || "mp-weixin",
  761. deviceBrand: deviceBrand,
  762. deviceModel: model,
  763. deviceType: deviceType,
  764. devicePixelRatio: _devicePixelRatio,
  765. deviceOrientation: _deviceOrientation,
  766. osName: osName.toLocaleLowerCase(),
  767. osVersion: osVersion,
  768. hostTheme: theme,
  769. hostVersion: hostVersion,
  770. hostLanguage: hostLanguage,
  771. hostName: _hostName,
  772. hostSDKVersion: _SDKVersion,
  773. hostFontSizeSetting: fontSizeSetting,
  774. windowTop: 0,
  775. windowBottom: 0,
  776. // TODO
  777. osLanguage: undefined,
  778. osTheme: undefined,
  779. ua: undefined,
  780. hostPackageName: undefined,
  781. browserName: undefined,
  782. browserVersion: undefined
  783. };
  784. Object.assign(result, parameters, extraParam);
  785. }
  786. function getGetDeviceType(result, model) {
  787. var deviceType = result.deviceType || 'phone';
  788. {
  789. var deviceTypeMaps = {
  790. ipad: 'pad',
  791. windows: 'pc',
  792. mac: 'pc'
  793. };
  794. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  795. var _model = model.toLocaleLowerCase();
  796. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  797. var _m = deviceTypeMapsKeys[index];
  798. if (_model.indexOf(_m) !== -1) {
  799. deviceType = deviceTypeMaps[_m];
  800. break;
  801. }
  802. }
  803. }
  804. return deviceType;
  805. }
  806. function getDeviceBrand(brand) {
  807. var deviceBrand = brand;
  808. if (deviceBrand) {
  809. deviceBrand = brand.toLocaleLowerCase();
  810. }
  811. return deviceBrand;
  812. }
  813. function getAppLanguage(defaultLanguage) {
  814. return getLocale$1 ? getLocale$1() : defaultLanguage;
  815. }
  816. function getHostName(result) {
  817. var _platform = 'WeChat';
  818. var _hostName = result.hostName || _platform; // mp-jd
  819. {
  820. if (result.environment) {
  821. _hostName = result.environment;
  822. } else if (result.host && result.host.env) {
  823. _hostName = result.host.env;
  824. }
  825. }
  826. return _hostName;
  827. }
  828. var getSystemInfo = {
  829. returnValue: function returnValue(result) {
  830. useDeviceId(result);
  831. addSafeAreaInsets(result);
  832. populateParameters(result);
  833. }
  834. };
  835. var showActionSheet = {
  836. args: function args(fromArgs) {
  837. if ((0, _typeof2.default)(fromArgs) === 'object') {
  838. fromArgs.alertText = fromArgs.title;
  839. }
  840. }
  841. };
  842. var getAppBaseInfo = {
  843. returnValue: function returnValue(result) {
  844. var _result = result,
  845. version = _result.version,
  846. language = _result.language,
  847. SDKVersion = _result.SDKVersion,
  848. theme = _result.theme;
  849. var _hostName = getHostName(result);
  850. var hostLanguage = language.replace('_', '-');
  851. result = sortObject(Object.assign(result, {
  852. appId: "__UNI__793C1C8",
  853. appName: "sacanPay",
  854. appVersion: "1.0.0",
  855. appVersionCode: "100",
  856. appLanguage: getAppLanguage(hostLanguage),
  857. hostVersion: version,
  858. hostLanguage: hostLanguage,
  859. hostName: _hostName,
  860. hostSDKVersion: SDKVersion,
  861. hostTheme: theme
  862. }));
  863. }
  864. };
  865. var getDeviceInfo = {
  866. returnValue: function returnValue(result) {
  867. var _result2 = result,
  868. brand = _result2.brand,
  869. model = _result2.model;
  870. var deviceType = getGetDeviceType(result, model);
  871. var deviceBrand = getDeviceBrand(brand);
  872. useDeviceId(result);
  873. result = sortObject(Object.assign(result, {
  874. deviceType: deviceType,
  875. deviceBrand: deviceBrand,
  876. deviceModel: model
  877. }));
  878. }
  879. };
  880. var getWindowInfo = {
  881. returnValue: function returnValue(result) {
  882. addSafeAreaInsets(result);
  883. result = sortObject(Object.assign(result, {
  884. windowTop: 0,
  885. windowBottom: 0
  886. }));
  887. }
  888. };
  889. var getAppAuthorizeSetting = {
  890. returnValue: function returnValue(result) {
  891. var locationReducedAccuracy = result.locationReducedAccuracy;
  892. result.locationAccuracy = 'unsupported';
  893. if (locationReducedAccuracy === true) {
  894. result.locationAccuracy = 'reduced';
  895. } else if (locationReducedAccuracy === false) {
  896. result.locationAccuracy = 'full';
  897. }
  898. }
  899. };
  900. // import navigateTo from 'uni-helpers/navigate-to'
  901. var compressImage = {
  902. args: function args(fromArgs) {
  903. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  904. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  905. fromArgs.compressHeight = fromArgs.compressedHeight;
  906. }
  907. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  908. fromArgs.compressWidth = fromArgs.compressedWidth;
  909. }
  910. }
  911. };
  912. var protocols = {
  913. redirectTo: redirectTo,
  914. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  915. previewImage: previewImage,
  916. getSystemInfo: getSystemInfo,
  917. getSystemInfoSync: getSystemInfo,
  918. showActionSheet: showActionSheet,
  919. getAppBaseInfo: getAppBaseInfo,
  920. getDeviceInfo: getDeviceInfo,
  921. getWindowInfo: getWindowInfo,
  922. getAppAuthorizeSetting: getAppAuthorizeSetting,
  923. compressImage: compressImage
  924. };
  925. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  926. var canIUses = [];
  927. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  928. function processCallback(methodName, method, returnValue) {
  929. return function (res) {
  930. return method(processReturnValue(methodName, res, returnValue));
  931. };
  932. }
  933. function processArgs(methodName, fromArgs) {
  934. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  935. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  936. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  937. if (isPlainObject(fromArgs)) {
  938. // 一般 api 的参数解析
  939. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  940. if (isFn(argsOption)) {
  941. argsOption = argsOption(fromArgs, toArgs) || {};
  942. }
  943. for (var key in fromArgs) {
  944. if (hasOwn(argsOption, key)) {
  945. var keyOption = argsOption[key];
  946. if (isFn(keyOption)) {
  947. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  948. }
  949. if (!keyOption) {
  950. // 不支持的参数
  951. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  952. } else if (isStr(keyOption)) {
  953. // 重写参数 key
  954. toArgs[keyOption] = fromArgs[key];
  955. } else if (isPlainObject(keyOption)) {
  956. // {name:newName,value:value}可重新指定参数 key:value
  957. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  958. }
  959. } else if (CALLBACKS.indexOf(key) !== -1) {
  960. if (isFn(fromArgs[key])) {
  961. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  962. }
  963. } else {
  964. if (!keepFromArgs) {
  965. toArgs[key] = fromArgs[key];
  966. }
  967. }
  968. }
  969. return toArgs;
  970. } else if (isFn(fromArgs)) {
  971. fromArgs = processCallback(methodName, fromArgs, returnValue);
  972. }
  973. return fromArgs;
  974. }
  975. function processReturnValue(methodName, res, returnValue) {
  976. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  977. if (isFn(protocols.returnValue)) {
  978. // 处理通用 returnValue
  979. res = protocols.returnValue(methodName, res);
  980. }
  981. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  982. }
  983. function wrapper(methodName, method) {
  984. if (hasOwn(protocols, methodName)) {
  985. var protocol = protocols[methodName];
  986. if (!protocol) {
  987. // 暂不支持的 api
  988. return function () {
  989. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  990. };
  991. }
  992. return function (arg1, arg2) {
  993. // 目前 api 最多两个参数
  994. var options = protocol;
  995. if (isFn(protocol)) {
  996. options = protocol(arg1);
  997. }
  998. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  999. var args = [arg1];
  1000. if (typeof arg2 !== 'undefined') {
  1001. args.push(arg2);
  1002. }
  1003. if (isFn(options.name)) {
  1004. methodName = options.name(arg1);
  1005. } else if (isStr(options.name)) {
  1006. methodName = options.name;
  1007. }
  1008. var returnValue = wx[methodName].apply(wx, args);
  1009. if (isSyncApi(methodName)) {
  1010. // 同步 api
  1011. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1012. }
  1013. return returnValue;
  1014. };
  1015. }
  1016. return method;
  1017. }
  1018. var todoApis = Object.create(null);
  1019. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1020. function createTodoApi(name) {
  1021. return function todoApi(_ref) {
  1022. var fail = _ref.fail,
  1023. complete = _ref.complete;
  1024. var res = {
  1025. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1026. };
  1027. isFn(fail) && fail(res);
  1028. isFn(complete) && complete(res);
  1029. };
  1030. }
  1031. TODOS.forEach(function (name) {
  1032. todoApis[name] = createTodoApi(name);
  1033. });
  1034. var providers = {
  1035. oauth: ['weixin'],
  1036. share: ['weixin'],
  1037. payment: ['wxpay'],
  1038. push: ['weixin']
  1039. };
  1040. function getProvider(_ref2) {
  1041. var service = _ref2.service,
  1042. success = _ref2.success,
  1043. fail = _ref2.fail,
  1044. complete = _ref2.complete;
  1045. var res = false;
  1046. if (providers[service]) {
  1047. res = {
  1048. errMsg: 'getProvider:ok',
  1049. service: service,
  1050. provider: providers[service]
  1051. };
  1052. isFn(success) && success(res);
  1053. } else {
  1054. res = {
  1055. errMsg: 'getProvider:fail service not found'
  1056. };
  1057. isFn(fail) && fail(res);
  1058. }
  1059. isFn(complete) && complete(res);
  1060. }
  1061. var extraApi = /*#__PURE__*/Object.freeze({
  1062. __proto__: null,
  1063. getProvider: getProvider
  1064. });
  1065. var getEmitter = function () {
  1066. var Emitter;
  1067. return function getUniEmitter() {
  1068. if (!Emitter) {
  1069. Emitter = new _vue.default();
  1070. }
  1071. return Emitter;
  1072. };
  1073. }();
  1074. function apply(ctx, method, args) {
  1075. return ctx[method].apply(ctx, args);
  1076. }
  1077. function $on() {
  1078. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1079. }
  1080. function $off() {
  1081. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1082. }
  1083. function $once() {
  1084. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1085. }
  1086. function $emit() {
  1087. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1088. }
  1089. var eventApi = /*#__PURE__*/Object.freeze({
  1090. __proto__: null,
  1091. $on: $on,
  1092. $off: $off,
  1093. $once: $once,
  1094. $emit: $emit
  1095. });
  1096. /**
  1097. * 框架内 try-catch
  1098. */
  1099. /**
  1100. * 开发者 try-catch
  1101. */
  1102. function tryCatch(fn) {
  1103. return function () {
  1104. try {
  1105. return fn.apply(fn, arguments);
  1106. } catch (e) {
  1107. // TODO
  1108. console.error(e);
  1109. }
  1110. };
  1111. }
  1112. function getApiCallbacks(params) {
  1113. var apiCallbacks = {};
  1114. for (var name in params) {
  1115. var param = params[name];
  1116. if (isFn(param)) {
  1117. apiCallbacks[name] = tryCatch(param);
  1118. delete params[name];
  1119. }
  1120. }
  1121. return apiCallbacks;
  1122. }
  1123. var cid;
  1124. var cidErrMsg;
  1125. var enabled;
  1126. function normalizePushMessage(message) {
  1127. try {
  1128. return JSON.parse(message);
  1129. } catch (e) {}
  1130. return message;
  1131. }
  1132. function invokePushCallback(args) {
  1133. if (args.type === 'enabled') {
  1134. enabled = true;
  1135. } else if (args.type === 'clientId') {
  1136. cid = args.cid;
  1137. cidErrMsg = args.errMsg;
  1138. invokeGetPushCidCallbacks(cid, args.errMsg);
  1139. } else if (args.type === 'pushMsg') {
  1140. var message = {
  1141. type: 'receive',
  1142. data: normalizePushMessage(args.message)
  1143. };
  1144. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1145. var callback = onPushMessageCallbacks[i];
  1146. callback(message);
  1147. // 该消息已被阻止
  1148. if (message.stopped) {
  1149. break;
  1150. }
  1151. }
  1152. } else if (args.type === 'click') {
  1153. onPushMessageCallbacks.forEach(function (callback) {
  1154. callback({
  1155. type: 'click',
  1156. data: normalizePushMessage(args.message)
  1157. });
  1158. });
  1159. }
  1160. }
  1161. var getPushCidCallbacks = [];
  1162. function invokeGetPushCidCallbacks(cid, errMsg) {
  1163. getPushCidCallbacks.forEach(function (callback) {
  1164. callback(cid, errMsg);
  1165. });
  1166. getPushCidCallbacks.length = 0;
  1167. }
  1168. function getPushClientId(args) {
  1169. if (!isPlainObject(args)) {
  1170. args = {};
  1171. }
  1172. var _getApiCallbacks = getApiCallbacks(args),
  1173. success = _getApiCallbacks.success,
  1174. fail = _getApiCallbacks.fail,
  1175. complete = _getApiCallbacks.complete;
  1176. var hasSuccess = isFn(success);
  1177. var hasFail = isFn(fail);
  1178. var hasComplete = isFn(complete);
  1179. Promise.resolve().then(function () {
  1180. if (typeof enabled === 'undefined') {
  1181. enabled = false;
  1182. cid = '';
  1183. cidErrMsg = 'uniPush is not enabled';
  1184. }
  1185. getPushCidCallbacks.push(function (cid, errMsg) {
  1186. var res;
  1187. if (cid) {
  1188. res = {
  1189. errMsg: 'getPushClientId:ok',
  1190. cid: cid
  1191. };
  1192. hasSuccess && success(res);
  1193. } else {
  1194. res = {
  1195. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1196. };
  1197. hasFail && fail(res);
  1198. }
  1199. hasComplete && complete(res);
  1200. });
  1201. if (typeof cid !== 'undefined') {
  1202. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1203. }
  1204. });
  1205. }
  1206. var onPushMessageCallbacks = [];
  1207. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1208. var onPushMessage = function onPushMessage(fn) {
  1209. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1210. onPushMessageCallbacks.push(fn);
  1211. }
  1212. };
  1213. var offPushMessage = function offPushMessage(fn) {
  1214. if (!fn) {
  1215. onPushMessageCallbacks.length = 0;
  1216. } else {
  1217. var index = onPushMessageCallbacks.indexOf(fn);
  1218. if (index > -1) {
  1219. onPushMessageCallbacks.splice(index, 1);
  1220. }
  1221. }
  1222. };
  1223. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1224. if (!baseInfo) {
  1225. baseInfo = wx.getSystemInfoSync();
  1226. }
  1227. var host = baseInfo ? baseInfo.host : null;
  1228. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1229. var api = /*#__PURE__*/Object.freeze({
  1230. __proto__: null,
  1231. shareVideoMessage: shareVideoMessage,
  1232. getPushClientId: getPushClientId,
  1233. onPushMessage: onPushMessage,
  1234. offPushMessage: offPushMessage,
  1235. invokePushCallback: invokePushCallback
  1236. });
  1237. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1238. function findVmByVueId(vm, vuePid) {
  1239. var $children = vm.$children;
  1240. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1241. for (var i = $children.length - 1; i >= 0; i--) {
  1242. var childVm = $children[i];
  1243. if (childVm.$scope._$vueId === vuePid) {
  1244. return childVm;
  1245. }
  1246. }
  1247. // 反向递归查找
  1248. var parentVm;
  1249. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1250. parentVm = findVmByVueId($children[_i], vuePid);
  1251. if (parentVm) {
  1252. return parentVm;
  1253. }
  1254. }
  1255. }
  1256. function initBehavior(options) {
  1257. return Behavior(options);
  1258. }
  1259. function isPage() {
  1260. return !!this.route;
  1261. }
  1262. function initRelation(detail) {
  1263. this.triggerEvent('__l', detail);
  1264. }
  1265. function selectAllComponents(mpInstance, selector, $refs) {
  1266. var components = mpInstance.selectAllComponents(selector) || [];
  1267. components.forEach(function (component) {
  1268. var ref = component.dataset.ref;
  1269. $refs[ref] = component.$vm || toSkip(component);
  1270. {
  1271. if (component.dataset.vueGeneric === 'scoped') {
  1272. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1273. selectAllComponents(scopedComponent, selector, $refs);
  1274. });
  1275. }
  1276. }
  1277. });
  1278. }
  1279. function syncRefs(refs, newRefs) {
  1280. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1281. var newKeys = Object.keys(newRefs);
  1282. newKeys.forEach(function (key) {
  1283. var oldValue = refs[key];
  1284. var newValue = newRefs[key];
  1285. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1286. return oldValue.includes(value);
  1287. })) {
  1288. return;
  1289. }
  1290. refs[key] = newValue;
  1291. oldKeys.delete(key);
  1292. });
  1293. oldKeys.forEach(function (key) {
  1294. delete refs[key];
  1295. });
  1296. return refs;
  1297. }
  1298. function initRefs(vm) {
  1299. var mpInstance = vm.$scope;
  1300. var refs = {};
  1301. Object.defineProperty(vm, '$refs', {
  1302. get: function get() {
  1303. var $refs = {};
  1304. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1305. // TODO 暂不考虑 for 中的 scoped
  1306. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1307. forComponents.forEach(function (component) {
  1308. var ref = component.dataset.ref;
  1309. if (!$refs[ref]) {
  1310. $refs[ref] = [];
  1311. }
  1312. $refs[ref].push(component.$vm || toSkip(component));
  1313. });
  1314. return syncRefs(refs, $refs);
  1315. }
  1316. });
  1317. }
  1318. function handleLink(event) {
  1319. var _ref3 = event.detail || event.value,
  1320. vuePid = _ref3.vuePid,
  1321. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1322. var parentVm;
  1323. if (vuePid) {
  1324. parentVm = findVmByVueId(this.$vm, vuePid);
  1325. }
  1326. if (!parentVm) {
  1327. parentVm = this.$vm;
  1328. }
  1329. vueOptions.parent = parentVm;
  1330. }
  1331. function markMPComponent(component) {
  1332. // 在 Vue 中标记为小程序组件
  1333. var IS_MP = '__v_isMPComponent';
  1334. Object.defineProperty(component, IS_MP, {
  1335. configurable: true,
  1336. enumerable: false,
  1337. value: true
  1338. });
  1339. return component;
  1340. }
  1341. function toSkip(obj) {
  1342. var OB = '__ob__';
  1343. var SKIP = '__v_skip';
  1344. if (isObject(obj) && Object.isExtensible(obj)) {
  1345. // 避免被 @vue/composition-api 观测
  1346. Object.defineProperty(obj, OB, {
  1347. configurable: true,
  1348. enumerable: false,
  1349. value: (0, _defineProperty2.default)({}, SKIP, true)
  1350. });
  1351. }
  1352. return obj;
  1353. }
  1354. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1355. function initWorkletMethods(mpMethods, vueMethods) {
  1356. if (vueMethods) {
  1357. Object.keys(vueMethods).forEach(function (name) {
  1358. var matches = name.match(WORKLET_RE);
  1359. if (matches) {
  1360. var workletName = matches[1];
  1361. mpMethods[name] = vueMethods[name];
  1362. mpMethods[workletName] = vueMethods[workletName];
  1363. }
  1364. });
  1365. }
  1366. }
  1367. var MPPage = Page;
  1368. var MPComponent = Component;
  1369. var customizeRE = /:/g;
  1370. var customize = cached(function (str) {
  1371. return camelize(str.replace(customizeRE, '-'));
  1372. });
  1373. function initTriggerEvent(mpInstance) {
  1374. var oldTriggerEvent = mpInstance.triggerEvent;
  1375. var newTriggerEvent = function newTriggerEvent(event) {
  1376. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1377. args[_key3 - 1] = arguments[_key3];
  1378. }
  1379. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1380. if (this.$vm || this.dataset && this.dataset.comType) {
  1381. event = customize(event);
  1382. } else {
  1383. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1384. var newEvent = customize(event);
  1385. if (newEvent !== event) {
  1386. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1387. }
  1388. }
  1389. return oldTriggerEvent.apply(this, [event].concat(args));
  1390. };
  1391. try {
  1392. // 京东小程序 triggerEvent 为只读
  1393. mpInstance.triggerEvent = newTriggerEvent;
  1394. } catch (error) {
  1395. mpInstance._triggerEvent = newTriggerEvent;
  1396. }
  1397. }
  1398. function initHook(name, options, isComponent) {
  1399. var oldHook = options[name];
  1400. options[name] = function () {
  1401. markMPComponent(this);
  1402. initTriggerEvent(this);
  1403. if (oldHook) {
  1404. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1405. args[_key4] = arguments[_key4];
  1406. }
  1407. return oldHook.apply(this, args);
  1408. }
  1409. };
  1410. }
  1411. if (!MPPage.__$wrappered) {
  1412. MPPage.__$wrappered = true;
  1413. Page = function Page() {
  1414. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1415. initHook('onLoad', options);
  1416. return MPPage(options);
  1417. };
  1418. Page.after = MPPage.after;
  1419. Component = function Component() {
  1420. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1421. initHook('created', options);
  1422. return MPComponent(options);
  1423. };
  1424. }
  1425. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1426. function initMocks(vm, mocks) {
  1427. var mpInstance = vm.$mp[vm.mpType];
  1428. mocks.forEach(function (mock) {
  1429. if (hasOwn(mpInstance, mock)) {
  1430. vm[mock] = mpInstance[mock];
  1431. }
  1432. });
  1433. }
  1434. function hasHook(hook, vueOptions) {
  1435. if (!vueOptions) {
  1436. return true;
  1437. }
  1438. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1439. return true;
  1440. }
  1441. vueOptions = vueOptions.default || vueOptions;
  1442. if (isFn(vueOptions)) {
  1443. if (isFn(vueOptions.extendOptions[hook])) {
  1444. return true;
  1445. }
  1446. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1447. return true;
  1448. }
  1449. return false;
  1450. }
  1451. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1452. return true;
  1453. }
  1454. var mixins = vueOptions.mixins;
  1455. if (Array.isArray(mixins)) {
  1456. return !!mixins.find(function (mixin) {
  1457. return hasHook(hook, mixin);
  1458. });
  1459. }
  1460. }
  1461. function initHooks(mpOptions, hooks, vueOptions) {
  1462. hooks.forEach(function (hook) {
  1463. if (hasHook(hook, vueOptions)) {
  1464. mpOptions[hook] = function (args) {
  1465. return this.$vm && this.$vm.__call_hook(hook, args);
  1466. };
  1467. }
  1468. });
  1469. }
  1470. function initUnknownHooks(mpOptions, vueOptions) {
  1471. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1472. findHooks(vueOptions).forEach(function (hook) {
  1473. return initHook$1(mpOptions, hook, excludes);
  1474. });
  1475. }
  1476. function findHooks(vueOptions) {
  1477. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1478. if (vueOptions) {
  1479. Object.keys(vueOptions).forEach(function (name) {
  1480. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1481. hooks.push(name);
  1482. }
  1483. });
  1484. }
  1485. return hooks;
  1486. }
  1487. function initHook$1(mpOptions, hook, excludes) {
  1488. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1489. mpOptions[hook] = function (args) {
  1490. return this.$vm && this.$vm.__call_hook(hook, args);
  1491. };
  1492. }
  1493. }
  1494. function initVueComponent(Vue, vueOptions) {
  1495. vueOptions = vueOptions.default || vueOptions;
  1496. var VueComponent;
  1497. if (isFn(vueOptions)) {
  1498. VueComponent = vueOptions;
  1499. } else {
  1500. VueComponent = Vue.extend(vueOptions);
  1501. }
  1502. vueOptions = VueComponent.options;
  1503. return [VueComponent, vueOptions];
  1504. }
  1505. function initSlots(vm, vueSlots) {
  1506. if (Array.isArray(vueSlots) && vueSlots.length) {
  1507. var $slots = Object.create(null);
  1508. vueSlots.forEach(function (slotName) {
  1509. $slots[slotName] = true;
  1510. });
  1511. vm.$scopedSlots = vm.$slots = $slots;
  1512. }
  1513. }
  1514. function initVueIds(vueIds, mpInstance) {
  1515. vueIds = (vueIds || '').split(',');
  1516. var len = vueIds.length;
  1517. if (len === 1) {
  1518. mpInstance._$vueId = vueIds[0];
  1519. } else if (len === 2) {
  1520. mpInstance._$vueId = vueIds[0];
  1521. mpInstance._$vuePid = vueIds[1];
  1522. }
  1523. }
  1524. function initData(vueOptions, context) {
  1525. var data = vueOptions.data || {};
  1526. var methods = vueOptions.methods || {};
  1527. if (typeof data === 'function') {
  1528. try {
  1529. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1530. } catch (e) {
  1531. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sacanPay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1532. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1533. }
  1534. }
  1535. } else {
  1536. try {
  1537. // 对 data 格式化
  1538. data = JSON.parse(JSON.stringify(data));
  1539. } catch (e) {}
  1540. }
  1541. if (!isPlainObject(data)) {
  1542. data = {};
  1543. }
  1544. Object.keys(methods).forEach(function (methodName) {
  1545. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1546. data[methodName] = methods[methodName];
  1547. }
  1548. });
  1549. return data;
  1550. }
  1551. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1552. function createObserver(name) {
  1553. return function observer(newVal, oldVal) {
  1554. if (this.$vm) {
  1555. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1556. }
  1557. };
  1558. }
  1559. function initBehaviors(vueOptions, initBehavior) {
  1560. var vueBehaviors = vueOptions.behaviors;
  1561. var vueExtends = vueOptions.extends;
  1562. var vueMixins = vueOptions.mixins;
  1563. var vueProps = vueOptions.props;
  1564. if (!vueProps) {
  1565. vueOptions.props = vueProps = [];
  1566. }
  1567. var behaviors = [];
  1568. if (Array.isArray(vueBehaviors)) {
  1569. vueBehaviors.forEach(function (behavior) {
  1570. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1571. if (behavior === 'uni://form-field') {
  1572. if (Array.isArray(vueProps)) {
  1573. vueProps.push('name');
  1574. vueProps.push('value');
  1575. } else {
  1576. vueProps.name = {
  1577. type: String,
  1578. default: ''
  1579. };
  1580. vueProps.value = {
  1581. type: [String, Number, Boolean, Array, Object, Date],
  1582. default: ''
  1583. };
  1584. }
  1585. }
  1586. });
  1587. }
  1588. if (isPlainObject(vueExtends) && vueExtends.props) {
  1589. behaviors.push(initBehavior({
  1590. properties: initProperties(vueExtends.props, true)
  1591. }));
  1592. }
  1593. if (Array.isArray(vueMixins)) {
  1594. vueMixins.forEach(function (vueMixin) {
  1595. if (isPlainObject(vueMixin) && vueMixin.props) {
  1596. behaviors.push(initBehavior({
  1597. properties: initProperties(vueMixin.props, true)
  1598. }));
  1599. }
  1600. });
  1601. }
  1602. return behaviors;
  1603. }
  1604. function parsePropType(key, type, defaultValue, file) {
  1605. // [String]=>String
  1606. if (Array.isArray(type) && type.length === 1) {
  1607. return type[0];
  1608. }
  1609. return type;
  1610. }
  1611. function initProperties(props) {
  1612. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1613. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1614. var options = arguments.length > 3 ? arguments[3] : undefined;
  1615. var properties = {};
  1616. if (!isBehavior) {
  1617. properties.vueId = {
  1618. type: String,
  1619. value: ''
  1620. };
  1621. {
  1622. if (options.virtualHost) {
  1623. properties.virtualHostStyle = {
  1624. type: null,
  1625. value: ''
  1626. };
  1627. properties.virtualHostClass = {
  1628. type: null,
  1629. value: ''
  1630. };
  1631. }
  1632. }
  1633. // scopedSlotsCompiler auto
  1634. properties.scopedSlotsCompiler = {
  1635. type: String,
  1636. value: ''
  1637. };
  1638. properties.vueSlots = {
  1639. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1640. type: null,
  1641. value: [],
  1642. observer: function observer(newVal, oldVal) {
  1643. var $slots = Object.create(null);
  1644. newVal.forEach(function (slotName) {
  1645. $slots[slotName] = true;
  1646. });
  1647. this.setData({
  1648. $slots: $slots
  1649. });
  1650. }
  1651. };
  1652. }
  1653. if (Array.isArray(props)) {
  1654. // ['title']
  1655. props.forEach(function (key) {
  1656. properties[key] = {
  1657. type: null,
  1658. observer: createObserver(key)
  1659. };
  1660. });
  1661. } else if (isPlainObject(props)) {
  1662. // {title:{type:String,default:''},content:String}
  1663. Object.keys(props).forEach(function (key) {
  1664. var opts = props[key];
  1665. if (isPlainObject(opts)) {
  1666. // title:{type:String,default:''}
  1667. var value = opts.default;
  1668. if (isFn(value)) {
  1669. value = value();
  1670. }
  1671. opts.type = parsePropType(key, opts.type);
  1672. properties[key] = {
  1673. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1674. value: value,
  1675. observer: createObserver(key)
  1676. };
  1677. } else {
  1678. // content:String
  1679. var type = parsePropType(key, opts);
  1680. properties[key] = {
  1681. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1682. observer: createObserver(key)
  1683. };
  1684. }
  1685. });
  1686. }
  1687. return properties;
  1688. }
  1689. function wrapper$1(event) {
  1690. // TODO 又得兼容 mpvue 的 mp 对象
  1691. try {
  1692. event.mp = JSON.parse(JSON.stringify(event));
  1693. } catch (e) {}
  1694. event.stopPropagation = noop;
  1695. event.preventDefault = noop;
  1696. event.target = event.target || {};
  1697. if (!hasOwn(event, 'detail')) {
  1698. event.detail = {};
  1699. }
  1700. if (hasOwn(event, 'markerId')) {
  1701. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1702. event.detail.markerId = event.markerId;
  1703. }
  1704. if (isPlainObject(event.detail)) {
  1705. event.target = Object.assign({}, event.target, event.detail);
  1706. }
  1707. return event;
  1708. }
  1709. function getExtraValue(vm, dataPathsArray) {
  1710. var context = vm;
  1711. dataPathsArray.forEach(function (dataPathArray) {
  1712. var dataPath = dataPathArray[0];
  1713. var value = dataPathArray[2];
  1714. if (dataPath || typeof value !== 'undefined') {
  1715. // ['','',index,'disable']
  1716. var propPath = dataPathArray[1];
  1717. var valuePath = dataPathArray[3];
  1718. var vFor;
  1719. if (Number.isInteger(dataPath)) {
  1720. vFor = dataPath;
  1721. } else if (!dataPath) {
  1722. vFor = context;
  1723. } else if (typeof dataPath === 'string' && dataPath) {
  1724. if (dataPath.indexOf('#s#') === 0) {
  1725. vFor = dataPath.substr(3);
  1726. } else {
  1727. vFor = vm.__get_value(dataPath, context);
  1728. }
  1729. }
  1730. if (Number.isInteger(vFor)) {
  1731. context = value;
  1732. } else if (!propPath) {
  1733. context = vFor[value];
  1734. } else {
  1735. if (Array.isArray(vFor)) {
  1736. context = vFor.find(function (vForItem) {
  1737. return vm.__get_value(propPath, vForItem) === value;
  1738. });
  1739. } else if (isPlainObject(vFor)) {
  1740. context = Object.keys(vFor).find(function (vForKey) {
  1741. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1742. });
  1743. } else {
  1744. console.error('v-for 暂不支持循环数据:', vFor);
  1745. }
  1746. }
  1747. if (valuePath) {
  1748. context = vm.__get_value(valuePath, context);
  1749. }
  1750. }
  1751. });
  1752. return context;
  1753. }
  1754. function processEventExtra(vm, extra, event, __args__) {
  1755. var extraObj = {};
  1756. if (Array.isArray(extra) && extra.length) {
  1757. /**
  1758. *[
  1759. * ['data.items', 'data.id', item.data.id],
  1760. * ['metas', 'id', meta.id]
  1761. *],
  1762. *[
  1763. * ['data.items', 'data.id', item.data.id],
  1764. * ['metas', 'id', meta.id]
  1765. *],
  1766. *'test'
  1767. */
  1768. extra.forEach(function (dataPath, index) {
  1769. if (typeof dataPath === 'string') {
  1770. if (!dataPath) {
  1771. // model,prop.sync
  1772. extraObj['$' + index] = vm;
  1773. } else {
  1774. if (dataPath === '$event') {
  1775. // $event
  1776. extraObj['$' + index] = event;
  1777. } else if (dataPath === 'arguments') {
  1778. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1779. } else if (dataPath.indexOf('$event.') === 0) {
  1780. // $event.target.value
  1781. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1782. } else {
  1783. extraObj['$' + index] = vm.__get_value(dataPath);
  1784. }
  1785. }
  1786. } else {
  1787. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1788. }
  1789. });
  1790. }
  1791. return extraObj;
  1792. }
  1793. function getObjByArray(arr) {
  1794. var obj = {};
  1795. for (var i = 1; i < arr.length; i++) {
  1796. var element = arr[i];
  1797. obj[element[0]] = element[1];
  1798. }
  1799. return obj;
  1800. }
  1801. function processEventArgs(vm, event) {
  1802. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1803. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1804. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1805. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1806. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1807. // fixed 用户直接触发 mpInstance.triggerEvent
  1808. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1809. if (isCustom) {
  1810. // 自定义事件
  1811. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1812. if (!args.length) {
  1813. // 无参数,直接传入 event 或 detail 数组
  1814. if (isCustomMPEvent) {
  1815. return [event];
  1816. }
  1817. return __args__;
  1818. }
  1819. }
  1820. var extraObj = processEventExtra(vm, extra, event, __args__);
  1821. var ret = [];
  1822. args.forEach(function (arg) {
  1823. if (arg === '$event') {
  1824. if (methodName === '__set_model' && !isCustom) {
  1825. // input v-model value
  1826. ret.push(event.target.value);
  1827. } else {
  1828. if (isCustom && !isCustomMPEvent) {
  1829. ret.push(__args__[0]);
  1830. } else {
  1831. // wxcomponent 组件或内置组件
  1832. ret.push(event);
  1833. }
  1834. }
  1835. } else {
  1836. if (Array.isArray(arg) && arg[0] === 'o') {
  1837. ret.push(getObjByArray(arg));
  1838. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1839. ret.push(extraObj[arg]);
  1840. } else {
  1841. ret.push(arg);
  1842. }
  1843. }
  1844. });
  1845. return ret;
  1846. }
  1847. var ONCE = '~';
  1848. var CUSTOM = '^';
  1849. function isMatchEventType(eventType, optType) {
  1850. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1851. }
  1852. function getContextVm(vm) {
  1853. var $parent = vm.$parent;
  1854. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1855. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1856. $parent = $parent.$parent;
  1857. }
  1858. return $parent && $parent.$parent;
  1859. }
  1860. function handleEvent(event) {
  1861. var _this2 = this;
  1862. event = wrapper$1(event);
  1863. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1864. var dataset = (event.currentTarget || event.target).dataset;
  1865. if (!dataset) {
  1866. return console.warn('事件信息不存在');
  1867. }
  1868. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1869. if (!eventOpts) {
  1870. return console.warn('事件信息不存在');
  1871. }
  1872. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1873. var eventType = event.type;
  1874. var ret = [];
  1875. eventOpts.forEach(function (eventOpt) {
  1876. var type = eventOpt[0];
  1877. var eventsArray = eventOpt[1];
  1878. var isCustom = type.charAt(0) === CUSTOM;
  1879. type = isCustom ? type.slice(1) : type;
  1880. var isOnce = type.charAt(0) === ONCE;
  1881. type = isOnce ? type.slice(1) : type;
  1882. if (eventsArray && isMatchEventType(eventType, type)) {
  1883. eventsArray.forEach(function (eventArray) {
  1884. var methodName = eventArray[0];
  1885. if (methodName) {
  1886. var handlerCtx = _this2.$vm;
  1887. if (handlerCtx.$options.generic) {
  1888. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1889. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1890. }
  1891. if (methodName === '$emit') {
  1892. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1893. return;
  1894. }
  1895. var handler = handlerCtx[methodName];
  1896. if (!isFn(handler)) {
  1897. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1898. var path = _this2.route || _this2.is;
  1899. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1900. }
  1901. if (isOnce) {
  1902. if (handler.once) {
  1903. return;
  1904. }
  1905. handler.once = true;
  1906. }
  1907. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1908. params = Array.isArray(params) ? params : [];
  1909. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1910. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1911. // eslint-disable-next-line no-sparse-arrays
  1912. params = params.concat([,,,,,,,,,, event]);
  1913. }
  1914. ret.push(handler.apply(handlerCtx, params));
  1915. }
  1916. });
  1917. }
  1918. });
  1919. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1920. return ret[0];
  1921. }
  1922. }
  1923. var eventChannels = {};
  1924. function getEventChannel(id) {
  1925. var eventChannel = eventChannels[id];
  1926. delete eventChannels[id];
  1927. return eventChannel;
  1928. }
  1929. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1930. function initEventChannel() {
  1931. _vue.default.prototype.getOpenerEventChannel = function () {
  1932. // 微信小程序使用自身getOpenerEventChannel
  1933. {
  1934. return this.$scope.getOpenerEventChannel();
  1935. }
  1936. };
  1937. var callHook = _vue.default.prototype.__call_hook;
  1938. _vue.default.prototype.__call_hook = function (hook, args) {
  1939. if (hook === 'onLoad' && args && args.__id__) {
  1940. this.__eventChannel__ = getEventChannel(args.__id__);
  1941. delete args.__id__;
  1942. }
  1943. return callHook.call(this, hook, args);
  1944. };
  1945. }
  1946. function initScopedSlotsParams() {
  1947. var center = {};
  1948. var parents = {};
  1949. function currentId(fn) {
  1950. var vueIds = this.$options.propsData.vueId;
  1951. if (vueIds) {
  1952. var vueId = vueIds.split(',')[0];
  1953. fn(vueId);
  1954. }
  1955. }
  1956. _vue.default.prototype.$hasSSP = function (vueId) {
  1957. var slot = center[vueId];
  1958. if (!slot) {
  1959. parents[vueId] = this;
  1960. this.$on('hook:destroyed', function () {
  1961. delete parents[vueId];
  1962. });
  1963. }
  1964. return slot;
  1965. };
  1966. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1967. var slot = center[vueId];
  1968. if (slot) {
  1969. var params = slot[name] || [];
  1970. if (needAll) {
  1971. return params;
  1972. }
  1973. return params[0];
  1974. }
  1975. };
  1976. _vue.default.prototype.$setSSP = function (name, value) {
  1977. var index = 0;
  1978. currentId.call(this, function (vueId) {
  1979. var slot = center[vueId];
  1980. var params = slot[name] = slot[name] || [];
  1981. params.push(value);
  1982. index = params.length - 1;
  1983. });
  1984. return index;
  1985. };
  1986. _vue.default.prototype.$initSSP = function () {
  1987. currentId.call(this, function (vueId) {
  1988. center[vueId] = {};
  1989. });
  1990. };
  1991. _vue.default.prototype.$callSSP = function () {
  1992. currentId.call(this, function (vueId) {
  1993. if (parents[vueId]) {
  1994. parents[vueId].$forceUpdate();
  1995. }
  1996. });
  1997. };
  1998. _vue.default.mixin({
  1999. destroyed: function destroyed() {
  2000. var propsData = this.$options.propsData;
  2001. var vueId = propsData && propsData.vueId;
  2002. if (vueId) {
  2003. delete center[vueId];
  2004. delete parents[vueId];
  2005. }
  2006. }
  2007. });
  2008. }
  2009. function parseBaseApp(vm, _ref4) {
  2010. var mocks = _ref4.mocks,
  2011. initRefs = _ref4.initRefs;
  2012. initEventChannel();
  2013. {
  2014. initScopedSlotsParams();
  2015. }
  2016. if (vm.$options.store) {
  2017. _vue.default.prototype.$store = vm.$options.store;
  2018. }
  2019. uniIdMixin(_vue.default);
  2020. _vue.default.prototype.mpHost = "mp-weixin";
  2021. _vue.default.mixin({
  2022. beforeCreate: function beforeCreate() {
  2023. if (!this.$options.mpType) {
  2024. return;
  2025. }
  2026. this.mpType = this.$options.mpType;
  2027. this.$mp = (0, _defineProperty2.default)({
  2028. data: {}
  2029. }, this.mpType, this.$options.mpInstance);
  2030. this.$scope = this.$options.mpInstance;
  2031. delete this.$options.mpType;
  2032. delete this.$options.mpInstance;
  2033. if (this.mpType === 'page' && typeof getApp === 'function') {
  2034. // hack vue-i18n
  2035. var app = getApp();
  2036. if (app.$vm && app.$vm.$i18n) {
  2037. this._i18n = app.$vm.$i18n;
  2038. }
  2039. }
  2040. if (this.mpType !== 'app') {
  2041. initRefs(this);
  2042. initMocks(this, mocks);
  2043. }
  2044. }
  2045. });
  2046. var appOptions = {
  2047. onLaunch: function onLaunch(args) {
  2048. if (this.$vm) {
  2049. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2050. return;
  2051. }
  2052. {
  2053. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2054. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2055. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2056. }
  2057. }
  2058. this.$vm = vm;
  2059. this.$vm.$mp = {
  2060. app: this
  2061. };
  2062. this.$vm.$scope = this;
  2063. // vm 上也挂载 globalData
  2064. this.$vm.globalData = this.globalData;
  2065. this.$vm._isMounted = true;
  2066. this.$vm.__call_hook('mounted', args);
  2067. this.$vm.__call_hook('onLaunch', args);
  2068. }
  2069. };
  2070. // 兼容旧版本 globalData
  2071. appOptions.globalData = vm.$options.globalData || {};
  2072. // 将 methods 中的方法挂在 getApp() 中
  2073. var methods = vm.$options.methods;
  2074. if (methods) {
  2075. Object.keys(methods).forEach(function (name) {
  2076. appOptions[name] = methods[name];
  2077. });
  2078. }
  2079. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2080. initHooks(appOptions, hooks);
  2081. initUnknownHooks(appOptions, vm.$options);
  2082. return appOptions;
  2083. }
  2084. function parseApp(vm) {
  2085. return parseBaseApp(vm, {
  2086. mocks: mocks,
  2087. initRefs: initRefs
  2088. });
  2089. }
  2090. function createApp(vm) {
  2091. App(parseApp(vm));
  2092. return vm;
  2093. }
  2094. var encodeReserveRE = /[!'()*]/g;
  2095. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2096. return '%' + c.charCodeAt(0).toString(16);
  2097. };
  2098. var commaRE = /%2C/g;
  2099. // fixed encodeURIComponent which is more conformant to RFC3986:
  2100. // - escapes [!'()*]
  2101. // - preserve commas
  2102. var encode = function encode(str) {
  2103. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2104. };
  2105. function stringifyQuery(obj) {
  2106. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2107. var res = obj ? Object.keys(obj).map(function (key) {
  2108. var val = obj[key];
  2109. if (val === undefined) {
  2110. return '';
  2111. }
  2112. if (val === null) {
  2113. return encodeStr(key);
  2114. }
  2115. if (Array.isArray(val)) {
  2116. var result = [];
  2117. val.forEach(function (val2) {
  2118. if (val2 === undefined) {
  2119. return;
  2120. }
  2121. if (val2 === null) {
  2122. result.push(encodeStr(key));
  2123. } else {
  2124. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2125. }
  2126. });
  2127. return result.join('&');
  2128. }
  2129. return encodeStr(key) + '=' + encodeStr(val);
  2130. }).filter(function (x) {
  2131. return x.length > 0;
  2132. }).join('&') : null;
  2133. return res ? "?".concat(res) : '';
  2134. }
  2135. function parseBaseComponent(vueComponentOptions) {
  2136. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2137. isPage = _ref5.isPage,
  2138. initRelation = _ref5.initRelation;
  2139. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2140. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2141. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2142. VueComponent = _initVueComponent2[0],
  2143. vueOptions = _initVueComponent2[1];
  2144. var options = _objectSpread({
  2145. multipleSlots: true,
  2146. // styleIsolation: 'apply-shared',
  2147. addGlobalClass: true
  2148. }, vueOptions.options || {});
  2149. {
  2150. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2151. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2152. Object.assign(options, vueOptions['mp-weixin'].options);
  2153. }
  2154. }
  2155. var componentOptions = {
  2156. options: options,
  2157. data: initData(vueOptions, _vue.default.prototype),
  2158. behaviors: initBehaviors(vueOptions, initBehavior),
  2159. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2160. lifetimes: {
  2161. attached: function attached() {
  2162. var properties = this.properties;
  2163. var options = {
  2164. mpType: isPage.call(this) ? 'page' : 'component',
  2165. mpInstance: this,
  2166. propsData: properties
  2167. };
  2168. initVueIds(properties.vueId, this);
  2169. // 处理父子关系
  2170. initRelation.call(this, {
  2171. vuePid: this._$vuePid,
  2172. vueOptions: options
  2173. });
  2174. // 初始化 vue 实例
  2175. this.$vm = new VueComponent(options);
  2176. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2177. initSlots(this.$vm, properties.vueSlots);
  2178. // 触发首次 setData
  2179. this.$vm.$mount();
  2180. },
  2181. ready: function ready() {
  2182. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2183. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2184. if (this.$vm) {
  2185. this.$vm._isMounted = true;
  2186. this.$vm.__call_hook('mounted');
  2187. this.$vm.__call_hook('onReady');
  2188. }
  2189. },
  2190. detached: function detached() {
  2191. this.$vm && this.$vm.$destroy();
  2192. }
  2193. },
  2194. pageLifetimes: {
  2195. show: function show(args) {
  2196. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2197. },
  2198. hide: function hide() {
  2199. this.$vm && this.$vm.__call_hook('onPageHide');
  2200. },
  2201. resize: function resize(size) {
  2202. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2203. }
  2204. },
  2205. methods: {
  2206. __l: handleLink,
  2207. __e: handleEvent
  2208. }
  2209. };
  2210. // externalClasses
  2211. if (vueOptions.externalClasses) {
  2212. componentOptions.externalClasses = vueOptions.externalClasses;
  2213. }
  2214. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2215. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2216. componentOptions.methods[callMethod] = function (args) {
  2217. return this.$vm[callMethod](args);
  2218. };
  2219. });
  2220. }
  2221. if (needVueOptions) {
  2222. return [componentOptions, vueOptions, VueComponent];
  2223. }
  2224. if (isPage) {
  2225. return componentOptions;
  2226. }
  2227. return [componentOptions, VueComponent];
  2228. }
  2229. function parseComponent(vueComponentOptions, needVueOptions) {
  2230. return parseBaseComponent(vueComponentOptions, {
  2231. isPage: isPage,
  2232. initRelation: initRelation
  2233. }, needVueOptions);
  2234. }
  2235. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2236. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2237. function parseBasePage(vuePageOptions) {
  2238. var _parseComponent = parseComponent(vuePageOptions, true),
  2239. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2240. pageOptions = _parseComponent2[0],
  2241. vueOptions = _parseComponent2[1];
  2242. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2243. pageOptions.methods.onLoad = function (query) {
  2244. this.options = query;
  2245. var copyQuery = Object.assign({}, query);
  2246. delete copyQuery.__id__;
  2247. this.$page = {
  2248. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2249. };
  2250. this.$vm.$mp.query = query; // 兼容 mpvue
  2251. this.$vm.__call_hook('onLoad', query);
  2252. };
  2253. {
  2254. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2255. }
  2256. {
  2257. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2258. }
  2259. return pageOptions;
  2260. }
  2261. function parsePage(vuePageOptions) {
  2262. return parseBasePage(vuePageOptions);
  2263. }
  2264. function createPage(vuePageOptions) {
  2265. {
  2266. return Component(parsePage(vuePageOptions));
  2267. }
  2268. }
  2269. function createComponent(vueOptions) {
  2270. {
  2271. return Component(parseComponent(vueOptions));
  2272. }
  2273. }
  2274. function createSubpackageApp(vm) {
  2275. var appOptions = parseApp(vm);
  2276. var app = getApp({
  2277. allowDefault: true
  2278. });
  2279. vm.$scope = app;
  2280. var globalData = app.globalData;
  2281. if (globalData) {
  2282. Object.keys(appOptions.globalData).forEach(function (name) {
  2283. if (!hasOwn(globalData, name)) {
  2284. globalData[name] = appOptions.globalData[name];
  2285. }
  2286. });
  2287. }
  2288. Object.keys(appOptions).forEach(function (name) {
  2289. if (!hasOwn(app, name)) {
  2290. app[name] = appOptions[name];
  2291. }
  2292. });
  2293. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2294. wx.onAppShow(function () {
  2295. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2296. args[_key5] = arguments[_key5];
  2297. }
  2298. vm.__call_hook('onShow', args);
  2299. });
  2300. }
  2301. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2302. wx.onAppHide(function () {
  2303. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2304. args[_key6] = arguments[_key6];
  2305. }
  2306. vm.__call_hook('onHide', args);
  2307. });
  2308. }
  2309. if (isFn(appOptions.onLaunch)) {
  2310. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2311. vm.__call_hook('onLaunch', args);
  2312. }
  2313. return vm;
  2314. }
  2315. function createPlugin(vm) {
  2316. var appOptions = parseApp(vm);
  2317. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2318. wx.onAppShow(function () {
  2319. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2320. args[_key7] = arguments[_key7];
  2321. }
  2322. vm.__call_hook('onShow', args);
  2323. });
  2324. }
  2325. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2326. wx.onAppHide(function () {
  2327. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2328. args[_key8] = arguments[_key8];
  2329. }
  2330. vm.__call_hook('onHide', args);
  2331. });
  2332. }
  2333. if (isFn(appOptions.onLaunch)) {
  2334. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2335. vm.__call_hook('onLaunch', args);
  2336. }
  2337. return vm;
  2338. }
  2339. todos.forEach(function (todoApi) {
  2340. protocols[todoApi] = false;
  2341. });
  2342. canIUses.forEach(function (canIUseApi) {
  2343. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2344. if (!wx.canIUse(apiName)) {
  2345. protocols[canIUseApi] = false;
  2346. }
  2347. });
  2348. var uni = {};
  2349. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2350. uni = new Proxy({}, {
  2351. get: function get(target, name) {
  2352. if (hasOwn(target, name)) {
  2353. return target[name];
  2354. }
  2355. if (baseApi[name]) {
  2356. return baseApi[name];
  2357. }
  2358. if (api[name]) {
  2359. return promisify(name, api[name]);
  2360. }
  2361. {
  2362. if (extraApi[name]) {
  2363. return promisify(name, extraApi[name]);
  2364. }
  2365. if (todoApis[name]) {
  2366. return promisify(name, todoApis[name]);
  2367. }
  2368. }
  2369. if (eventApi[name]) {
  2370. return eventApi[name];
  2371. }
  2372. return promisify(name, wrapper(name, wx[name]));
  2373. },
  2374. set: function set(target, name, value) {
  2375. target[name] = value;
  2376. return true;
  2377. }
  2378. });
  2379. } else {
  2380. Object.keys(baseApi).forEach(function (name) {
  2381. uni[name] = baseApi[name];
  2382. });
  2383. {
  2384. Object.keys(todoApis).forEach(function (name) {
  2385. uni[name] = promisify(name, todoApis[name]);
  2386. });
  2387. Object.keys(extraApi).forEach(function (name) {
  2388. uni[name] = promisify(name, extraApi[name]);
  2389. });
  2390. }
  2391. Object.keys(eventApi).forEach(function (name) {
  2392. uni[name] = eventApi[name];
  2393. });
  2394. Object.keys(api).forEach(function (name) {
  2395. uni[name] = promisify(name, api[name]);
  2396. });
  2397. Object.keys(wx).forEach(function (name) {
  2398. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2399. uni[name] = promisify(name, wrapper(name, wx[name]));
  2400. }
  2401. });
  2402. }
  2403. wx.createApp = createApp;
  2404. wx.createPage = createPage;
  2405. wx.createComponent = createComponent;
  2406. wx.createSubpackageApp = createSubpackageApp;
  2407. wx.createPlugin = createPlugin;
  2408. var uni$1 = uni;
  2409. var _default = uni$1;
  2410. exports.default = _default;
  2411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2412. /***/ }),
  2413. /* 3 */
  2414. /*!***********************************!*\
  2415. !*** (webpack)/buildin/global.js ***!
  2416. \***********************************/
  2417. /*! no static exports found */
  2418. /***/ (function(module, exports) {
  2419. var g;
  2420. // This works in non-strict mode
  2421. g = (function() {
  2422. return this;
  2423. })();
  2424. try {
  2425. // This works if eval is allowed (see CSP)
  2426. g = g || new Function("return this")();
  2427. } catch (e) {
  2428. // This works if the window reference is available
  2429. if (typeof window === "object") g = window;
  2430. }
  2431. // g can still be undefined, but nothing to do about it...
  2432. // We return undefined, instead of nothing here, so it's
  2433. // easier to handle this case. if(!global) { ...}
  2434. module.exports = g;
  2435. /***/ }),
  2436. /* 4 */
  2437. /*!**********************************************************************!*\
  2438. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2439. \**********************************************************************/
  2440. /*! no static exports found */
  2441. /***/ (function(module, exports) {
  2442. function _interopRequireDefault(obj) {
  2443. return obj && obj.__esModule ? obj : {
  2444. "default": obj
  2445. };
  2446. }
  2447. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2448. /***/ }),
  2449. /* 5 */
  2450. /*!**************************************************************!*\
  2451. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2452. \**************************************************************/
  2453. /*! no static exports found */
  2454. /***/ (function(module, exports, __webpack_require__) {
  2455. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2456. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2457. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2458. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2459. function _slicedToArray(arr, i) {
  2460. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2461. }
  2462. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 6 */
  2465. /*!***************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2467. \***************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports) {
  2470. function _arrayWithHoles(arr) {
  2471. if (Array.isArray(arr)) return arr;
  2472. }
  2473. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2474. /***/ }),
  2475. /* 7 */
  2476. /*!*********************************************************************!*\
  2477. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2478. \*********************************************************************/
  2479. /*! no static exports found */
  2480. /***/ (function(module, exports) {
  2481. function _iterableToArrayLimit(r, l) {
  2482. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2483. if (null != t) {
  2484. var e,
  2485. n,
  2486. i,
  2487. u,
  2488. a = [],
  2489. f = !0,
  2490. o = !1;
  2491. try {
  2492. if (i = (t = t.call(r)).next, 0 === l) {
  2493. if (Object(t) !== t) return;
  2494. f = !1;
  2495. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2496. ;
  2497. }
  2498. } catch (r) {
  2499. o = !0, n = r;
  2500. } finally {
  2501. try {
  2502. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2503. } finally {
  2504. if (o) throw n;
  2505. }
  2506. }
  2507. return a;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function toPropertyKey(t) {
  2587. var i = toPrimitive(t, "string");
  2588. return "symbol" == _typeof(i) ? i : i + "";
  2589. }
  2590. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(o) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2601. return typeof o;
  2602. } : function (o) {
  2603. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function toPrimitive(t, r) {
  2616. if ("object" != _typeof(t) || !t) return t;
  2617. var e = t[Symbol.toPrimitive];
  2618. if (void 0 !== e) {
  2619. var i = e.call(t, r || "default");
  2620. if ("object" != _typeof(i)) return i;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return ("string" === r ? String : Number)(t);
  2624. }
  2625. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(t, e, r) {
  2636. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2637. var o = [null];
  2638. o.push.apply(o, e);
  2639. var p = new (t.bind.apply(t, o))();
  2640. return r && setPrototypeOf(p, r.prototype), p;
  2641. }
  2642. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2643. /***/ }),
  2644. /* 16 */
  2645. /*!***************************************************************!*\
  2646. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2647. \***************************************************************/
  2648. /*! no static exports found */
  2649. /***/ (function(module, exports) {
  2650. function _setPrototypeOf(o, p) {
  2651. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2652. o.__proto__ = p;
  2653. return o;
  2654. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. return _setPrototypeOf(o, p);
  2656. }
  2657. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2658. /***/ }),
  2659. /* 17 */
  2660. /*!*************************************************************************!*\
  2661. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2662. \*************************************************************************/
  2663. /*! no static exports found */
  2664. /***/ (function(module, exports) {
  2665. function _isNativeReflectConstruct() {
  2666. try {
  2667. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2668. } catch (t) {}
  2669. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2670. return !!t;
  2671. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2672. }
  2673. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2674. /***/ }),
  2675. /* 18 */
  2676. /*!******************************************************************!*\
  2677. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2678. \******************************************************************/
  2679. /*! no static exports found */
  2680. /***/ (function(module, exports, __webpack_require__) {
  2681. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2682. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2683. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2684. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2685. function _toConsumableArray(arr) {
  2686. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2687. }
  2688. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2689. /***/ }),
  2690. /* 19 */
  2691. /*!******************************************************************!*\
  2692. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2693. \******************************************************************/
  2694. /*! no static exports found */
  2695. /***/ (function(module, exports, __webpack_require__) {
  2696. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2697. function _arrayWithoutHoles(arr) {
  2698. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2699. }
  2700. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2701. /***/ }),
  2702. /* 20 */
  2703. /*!****************************************************************!*\
  2704. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2705. \****************************************************************/
  2706. /*! no static exports found */
  2707. /***/ (function(module, exports) {
  2708. function _iterableToArray(iter) {
  2709. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2710. }
  2711. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 21 */
  2714. /*!******************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2716. \******************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _nonIterableSpread() {
  2720. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2721. }
  2722. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 22 */
  2725. /*!*************************************************************!*\
  2726. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2727. \*************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports, __webpack_require__) {
  2730. "use strict";
  2731. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2732. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2733. Object.defineProperty(exports, "__esModule", {
  2734. value: true
  2735. });
  2736. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2737. exports.compileI18nJsonStr = compileI18nJsonStr;
  2738. exports.hasI18nJson = hasI18nJson;
  2739. exports.initVueI18n = initVueI18n;
  2740. exports.isI18nStr = isI18nStr;
  2741. exports.isString = void 0;
  2742. exports.normalizeLocale = normalizeLocale;
  2743. exports.parseI18nJson = parseI18nJson;
  2744. exports.resolveLocale = resolveLocale;
  2745. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2746. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2747. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2748. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2749. var isObject = function isObject(val) {
  2750. return val !== null && (0, _typeof2.default)(val) === 'object';
  2751. };
  2752. var defaultDelimiters = ['{', '}'];
  2753. var BaseFormatter = /*#__PURE__*/function () {
  2754. function BaseFormatter() {
  2755. (0, _classCallCheck2.default)(this, BaseFormatter);
  2756. this._caches = Object.create(null);
  2757. }
  2758. (0, _createClass2.default)(BaseFormatter, [{
  2759. key: "interpolate",
  2760. value: function interpolate(message, values) {
  2761. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2762. if (!values) {
  2763. return [message];
  2764. }
  2765. var tokens = this._caches[message];
  2766. if (!tokens) {
  2767. tokens = parse(message, delimiters);
  2768. this._caches[message] = tokens;
  2769. }
  2770. return compile(tokens, values);
  2771. }
  2772. }]);
  2773. return BaseFormatter;
  2774. }();
  2775. exports.Formatter = BaseFormatter;
  2776. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2777. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2778. function parse(format, _ref) {
  2779. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2780. startDelimiter = _ref2[0],
  2781. endDelimiter = _ref2[1];
  2782. var tokens = [];
  2783. var position = 0;
  2784. var text = '';
  2785. while (position < format.length) {
  2786. var char = format[position++];
  2787. if (char === startDelimiter) {
  2788. if (text) {
  2789. tokens.push({
  2790. type: 'text',
  2791. value: text
  2792. });
  2793. }
  2794. text = '';
  2795. var sub = '';
  2796. char = format[position++];
  2797. while (char !== undefined && char !== endDelimiter) {
  2798. sub += char;
  2799. char = format[position++];
  2800. }
  2801. var isClosed = char === endDelimiter;
  2802. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2803. tokens.push({
  2804. value: sub,
  2805. type: type
  2806. });
  2807. }
  2808. // else if (char === '%') {
  2809. // // when found rails i18n syntax, skip text capture
  2810. // if (format[position] !== '{') {
  2811. // text += char
  2812. // }
  2813. // }
  2814. else {
  2815. text += char;
  2816. }
  2817. }
  2818. text && tokens.push({
  2819. type: 'text',
  2820. value: text
  2821. });
  2822. return tokens;
  2823. }
  2824. function compile(tokens, values) {
  2825. var compiled = [];
  2826. var index = 0;
  2827. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2828. if (mode === 'unknown') {
  2829. return compiled;
  2830. }
  2831. while (index < tokens.length) {
  2832. var token = tokens[index];
  2833. switch (token.type) {
  2834. case 'text':
  2835. compiled.push(token.value);
  2836. break;
  2837. case 'list':
  2838. compiled.push(values[parseInt(token.value, 10)]);
  2839. break;
  2840. case 'named':
  2841. if (mode === 'named') {
  2842. compiled.push(values[token.value]);
  2843. } else {
  2844. if (true) {
  2845. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2846. }
  2847. }
  2848. break;
  2849. case 'unknown':
  2850. if (true) {
  2851. console.warn("Detect 'unknown' type of token!");
  2852. }
  2853. break;
  2854. }
  2855. index++;
  2856. }
  2857. return compiled;
  2858. }
  2859. var LOCALE_ZH_HANS = 'zh-Hans';
  2860. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2861. var LOCALE_ZH_HANT = 'zh-Hant';
  2862. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2863. var LOCALE_EN = 'en';
  2864. exports.LOCALE_EN = LOCALE_EN;
  2865. var LOCALE_FR = 'fr';
  2866. exports.LOCALE_FR = LOCALE_FR;
  2867. var LOCALE_ES = 'es';
  2868. exports.LOCALE_ES = LOCALE_ES;
  2869. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2870. var hasOwn = function hasOwn(val, key) {
  2871. return hasOwnProperty.call(val, key);
  2872. };
  2873. var defaultFormatter = new BaseFormatter();
  2874. function include(str, parts) {
  2875. return !!parts.find(function (part) {
  2876. return str.indexOf(part) !== -1;
  2877. });
  2878. }
  2879. function startsWith(str, parts) {
  2880. return parts.find(function (part) {
  2881. return str.indexOf(part) === 0;
  2882. });
  2883. }
  2884. function normalizeLocale(locale, messages) {
  2885. if (!locale) {
  2886. return;
  2887. }
  2888. locale = locale.trim().replace(/_/g, '-');
  2889. if (messages && messages[locale]) {
  2890. return locale;
  2891. }
  2892. locale = locale.toLowerCase();
  2893. if (locale === 'chinese') {
  2894. // 支付宝
  2895. return LOCALE_ZH_HANS;
  2896. }
  2897. if (locale.indexOf('zh') === 0) {
  2898. if (locale.indexOf('-hans') > -1) {
  2899. return LOCALE_ZH_HANS;
  2900. }
  2901. if (locale.indexOf('-hant') > -1) {
  2902. return LOCALE_ZH_HANT;
  2903. }
  2904. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2905. return LOCALE_ZH_HANT;
  2906. }
  2907. return LOCALE_ZH_HANS;
  2908. }
  2909. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2910. if (messages && Object.keys(messages).length > 0) {
  2911. locales = Object.keys(messages);
  2912. }
  2913. var lang = startsWith(locale, locales);
  2914. if (lang) {
  2915. return lang;
  2916. }
  2917. }
  2918. var I18n = /*#__PURE__*/function () {
  2919. function I18n(_ref3) {
  2920. var locale = _ref3.locale,
  2921. fallbackLocale = _ref3.fallbackLocale,
  2922. messages = _ref3.messages,
  2923. watcher = _ref3.watcher,
  2924. formater = _ref3.formater;
  2925. (0, _classCallCheck2.default)(this, I18n);
  2926. this.locale = LOCALE_EN;
  2927. this.fallbackLocale = LOCALE_EN;
  2928. this.message = {};
  2929. this.messages = {};
  2930. this.watchers = [];
  2931. if (fallbackLocale) {
  2932. this.fallbackLocale = fallbackLocale;
  2933. }
  2934. this.formater = formater || defaultFormatter;
  2935. this.messages = messages || {};
  2936. this.setLocale(locale || LOCALE_EN);
  2937. if (watcher) {
  2938. this.watchLocale(watcher);
  2939. }
  2940. }
  2941. (0, _createClass2.default)(I18n, [{
  2942. key: "setLocale",
  2943. value: function setLocale(locale) {
  2944. var _this = this;
  2945. var oldLocale = this.locale;
  2946. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2947. if (!this.messages[this.locale]) {
  2948. // 可能初始化时不存在
  2949. this.messages[this.locale] = {};
  2950. }
  2951. this.message = this.messages[this.locale];
  2952. // 仅发生变化时,通知
  2953. if (oldLocale !== this.locale) {
  2954. this.watchers.forEach(function (watcher) {
  2955. watcher(_this.locale, oldLocale);
  2956. });
  2957. }
  2958. }
  2959. }, {
  2960. key: "getLocale",
  2961. value: function getLocale() {
  2962. return this.locale;
  2963. }
  2964. }, {
  2965. key: "watchLocale",
  2966. value: function watchLocale(fn) {
  2967. var _this2 = this;
  2968. var index = this.watchers.push(fn) - 1;
  2969. return function () {
  2970. _this2.watchers.splice(index, 1);
  2971. };
  2972. }
  2973. }, {
  2974. key: "add",
  2975. value: function add(locale, message) {
  2976. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2977. var curMessages = this.messages[locale];
  2978. if (curMessages) {
  2979. if (override) {
  2980. Object.assign(curMessages, message);
  2981. } else {
  2982. Object.keys(message).forEach(function (key) {
  2983. if (!hasOwn(curMessages, key)) {
  2984. curMessages[key] = message[key];
  2985. }
  2986. });
  2987. }
  2988. } else {
  2989. this.messages[locale] = message;
  2990. }
  2991. }
  2992. }, {
  2993. key: "f",
  2994. value: function f(message, values, delimiters) {
  2995. return this.formater.interpolate(message, values, delimiters).join('');
  2996. }
  2997. }, {
  2998. key: "t",
  2999. value: function t(key, locale, values) {
  3000. var message = this.message;
  3001. if (typeof locale === 'string') {
  3002. locale = normalizeLocale(locale, this.messages);
  3003. locale && (message = this.messages[locale]);
  3004. } else {
  3005. values = locale;
  3006. }
  3007. if (!hasOwn(message, key)) {
  3008. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3009. return key;
  3010. }
  3011. return this.formater.interpolate(message[key], values).join('');
  3012. }
  3013. }]);
  3014. return I18n;
  3015. }();
  3016. exports.I18n = I18n;
  3017. function watchAppLocale(appVm, i18n) {
  3018. // 需要保证 watch 的触发在组件渲染之前
  3019. if (appVm.$watchLocale) {
  3020. // vue2
  3021. appVm.$watchLocale(function (newLocale) {
  3022. i18n.setLocale(newLocale);
  3023. });
  3024. } else {
  3025. appVm.$watch(function () {
  3026. return appVm.$locale;
  3027. }, function (newLocale) {
  3028. i18n.setLocale(newLocale);
  3029. });
  3030. }
  3031. }
  3032. function getDefaultLocale() {
  3033. if (typeof uni !== 'undefined' && uni.getLocale) {
  3034. return uni.getLocale();
  3035. }
  3036. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3037. if (typeof global !== 'undefined' && global.getLocale) {
  3038. return global.getLocale();
  3039. }
  3040. return LOCALE_EN;
  3041. }
  3042. function initVueI18n(locale) {
  3043. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3044. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3045. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3046. // 兼容旧版本入参
  3047. if (typeof locale !== 'string') {
  3048. var _ref4 = [messages, locale];
  3049. locale = _ref4[0];
  3050. messages = _ref4[1];
  3051. }
  3052. if (typeof locale !== 'string') {
  3053. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3054. locale = getDefaultLocale();
  3055. }
  3056. if (typeof fallbackLocale !== 'string') {
  3057. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3058. }
  3059. var i18n = new I18n({
  3060. locale: locale,
  3061. fallbackLocale: fallbackLocale,
  3062. messages: messages,
  3063. watcher: watcher
  3064. });
  3065. var _t = function t(key, values) {
  3066. if (typeof getApp !== 'function') {
  3067. // app view
  3068. /* eslint-disable no-func-assign */
  3069. _t = function t(key, values) {
  3070. return i18n.t(key, values);
  3071. };
  3072. } else {
  3073. var isWatchedAppLocale = false;
  3074. _t = function t(key, values) {
  3075. var appVm = getApp().$vm;
  3076. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3077. // options: {
  3078. // type: Array,
  3079. // default () {
  3080. // return [{
  3081. // icon: 'shop',
  3082. // text: t("uni-goods-nav.options.shop"),
  3083. // }, {
  3084. // icon: 'cart',
  3085. // text: t("uni-goods-nav.options.cart")
  3086. // }]
  3087. // }
  3088. // },
  3089. if (appVm) {
  3090. // 触发响应式
  3091. appVm.$locale;
  3092. if (!isWatchedAppLocale) {
  3093. isWatchedAppLocale = true;
  3094. watchAppLocale(appVm, i18n);
  3095. }
  3096. }
  3097. return i18n.t(key, values);
  3098. };
  3099. }
  3100. return _t(key, values);
  3101. };
  3102. return {
  3103. i18n: i18n,
  3104. f: function f(message, values, delimiters) {
  3105. return i18n.f(message, values, delimiters);
  3106. },
  3107. t: function t(key, values) {
  3108. return _t(key, values);
  3109. },
  3110. add: function add(locale, message) {
  3111. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3112. return i18n.add(locale, message, override);
  3113. },
  3114. watch: function watch(fn) {
  3115. return i18n.watchLocale(fn);
  3116. },
  3117. getLocale: function getLocale() {
  3118. return i18n.getLocale();
  3119. },
  3120. setLocale: function setLocale(newLocale) {
  3121. return i18n.setLocale(newLocale);
  3122. }
  3123. };
  3124. }
  3125. var isString = function isString(val) {
  3126. return typeof val === 'string';
  3127. };
  3128. exports.isString = isString;
  3129. var formater;
  3130. function hasI18nJson(jsonObj, delimiters) {
  3131. if (!formater) {
  3132. formater = new BaseFormatter();
  3133. }
  3134. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3135. var value = jsonObj[key];
  3136. if (isString(value)) {
  3137. if (isI18nStr(value, delimiters)) {
  3138. return true;
  3139. }
  3140. } else {
  3141. return hasI18nJson(value, delimiters);
  3142. }
  3143. });
  3144. }
  3145. function parseI18nJson(jsonObj, values, delimiters) {
  3146. if (!formater) {
  3147. formater = new BaseFormatter();
  3148. }
  3149. walkJsonObj(jsonObj, function (jsonObj, key) {
  3150. var value = jsonObj[key];
  3151. if (isString(value)) {
  3152. if (isI18nStr(value, delimiters)) {
  3153. jsonObj[key] = compileStr(value, values, delimiters);
  3154. }
  3155. } else {
  3156. parseI18nJson(value, values, delimiters);
  3157. }
  3158. });
  3159. return jsonObj;
  3160. }
  3161. function compileI18nJsonStr(jsonStr, _ref5) {
  3162. var locale = _ref5.locale,
  3163. locales = _ref5.locales,
  3164. delimiters = _ref5.delimiters;
  3165. if (!isI18nStr(jsonStr, delimiters)) {
  3166. return jsonStr;
  3167. }
  3168. if (!formater) {
  3169. formater = new BaseFormatter();
  3170. }
  3171. var localeValues = [];
  3172. Object.keys(locales).forEach(function (name) {
  3173. if (name !== locale) {
  3174. localeValues.push({
  3175. locale: name,
  3176. values: locales[name]
  3177. });
  3178. }
  3179. });
  3180. localeValues.unshift({
  3181. locale: locale,
  3182. values: locales[locale]
  3183. });
  3184. try {
  3185. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3186. } catch (e) {}
  3187. return jsonStr;
  3188. }
  3189. function isI18nStr(value, delimiters) {
  3190. return value.indexOf(delimiters[0]) > -1;
  3191. }
  3192. function compileStr(value, values, delimiters) {
  3193. return formater.interpolate(value, values, delimiters).join('');
  3194. }
  3195. function compileValue(jsonObj, key, localeValues, delimiters) {
  3196. var value = jsonObj[key];
  3197. if (isString(value)) {
  3198. // 存在国际化
  3199. if (isI18nStr(value, delimiters)) {
  3200. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3201. if (localeValues.length > 1) {
  3202. // 格式化国际化语言
  3203. var valueLocales = jsonObj[key + 'Locales'] = {};
  3204. localeValues.forEach(function (localValue) {
  3205. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3206. });
  3207. }
  3208. }
  3209. } else {
  3210. compileJsonObj(value, localeValues, delimiters);
  3211. }
  3212. }
  3213. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3214. walkJsonObj(jsonObj, function (jsonObj, key) {
  3215. compileValue(jsonObj, key, localeValues, delimiters);
  3216. });
  3217. return jsonObj;
  3218. }
  3219. function walkJsonObj(jsonObj, walk) {
  3220. if (Array.isArray(jsonObj)) {
  3221. for (var i = 0; i < jsonObj.length; i++) {
  3222. if (walk(jsonObj, i)) {
  3223. return true;
  3224. }
  3225. }
  3226. } else if (isObject(jsonObj)) {
  3227. for (var key in jsonObj) {
  3228. if (walk(jsonObj, key)) {
  3229. return true;
  3230. }
  3231. }
  3232. }
  3233. return false;
  3234. }
  3235. function resolveLocale(locales) {
  3236. return function (locale) {
  3237. if (!locale) {
  3238. return locale;
  3239. }
  3240. locale = normalizeLocale(locale) || locale;
  3241. return resolveLocaleChain(locale).find(function (locale) {
  3242. return locales.indexOf(locale) > -1;
  3243. });
  3244. };
  3245. }
  3246. function resolveLocaleChain(locale) {
  3247. var chain = [];
  3248. var tokens = locale.split('-');
  3249. while (tokens.length) {
  3250. chain.push(tokens.join('-'));
  3251. tokens.pop();
  3252. }
  3253. return chain;
  3254. }
  3255. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3256. /***/ }),
  3257. /* 23 */
  3258. /*!***************************************************************!*\
  3259. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3260. \***************************************************************/
  3261. /*! no static exports found */
  3262. /***/ (function(module, exports) {
  3263. function _classCallCheck(instance, Constructor) {
  3264. if (!(instance instanceof Constructor)) {
  3265. throw new TypeError("Cannot call a class as a function");
  3266. }
  3267. }
  3268. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3269. /***/ }),
  3270. /* 24 */
  3271. /*!************************************************************!*\
  3272. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3273. \************************************************************/
  3274. /*! no static exports found */
  3275. /***/ (function(module, exports, __webpack_require__) {
  3276. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3277. function _defineProperties(target, props) {
  3278. for (var i = 0; i < props.length; i++) {
  3279. var descriptor = props[i];
  3280. descriptor.enumerable = descriptor.enumerable || false;
  3281. descriptor.configurable = true;
  3282. if ("value" in descriptor) descriptor.writable = true;
  3283. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3284. }
  3285. }
  3286. function _createClass(Constructor, protoProps, staticProps) {
  3287. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3288. if (staticProps) _defineProperties(Constructor, staticProps);
  3289. Object.defineProperty(Constructor, "prototype", {
  3290. writable: false
  3291. });
  3292. return Constructor;
  3293. }
  3294. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3295. /***/ }),
  3296. /* 25 */
  3297. /*!******************************************************************************************!*\
  3298. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3299. \******************************************************************************************/
  3300. /*! exports provided: default */
  3301. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3302. "use strict";
  3303. __webpack_require__.r(__webpack_exports__);
  3304. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3305. * Vue.js v2.6.11
  3306. * (c) 2014-2023 Evan You
  3307. * Released under the MIT License.
  3308. */
  3309. /* */
  3310. var emptyObject = Object.freeze({});
  3311. // These helpers produce better VM code in JS engines due to their
  3312. // explicitness and function inlining.
  3313. function isUndef (v) {
  3314. return v === undefined || v === null
  3315. }
  3316. function isDef (v) {
  3317. return v !== undefined && v !== null
  3318. }
  3319. function isTrue (v) {
  3320. return v === true
  3321. }
  3322. function isFalse (v) {
  3323. return v === false
  3324. }
  3325. /**
  3326. * Check if value is primitive.
  3327. */
  3328. function isPrimitive (value) {
  3329. return (
  3330. typeof value === 'string' ||
  3331. typeof value === 'number' ||
  3332. // $flow-disable-line
  3333. typeof value === 'symbol' ||
  3334. typeof value === 'boolean'
  3335. )
  3336. }
  3337. /**
  3338. * Quick object check - this is primarily used to tell
  3339. * Objects from primitive values when we know the value
  3340. * is a JSON-compliant type.
  3341. */
  3342. function isObject (obj) {
  3343. return obj !== null && typeof obj === 'object'
  3344. }
  3345. /**
  3346. * Get the raw type string of a value, e.g., [object Object].
  3347. */
  3348. var _toString = Object.prototype.toString;
  3349. function toRawType (value) {
  3350. return _toString.call(value).slice(8, -1)
  3351. }
  3352. /**
  3353. * Strict object type check. Only returns true
  3354. * for plain JavaScript objects.
  3355. */
  3356. function isPlainObject (obj) {
  3357. return _toString.call(obj) === '[object Object]'
  3358. }
  3359. function isRegExp (v) {
  3360. return _toString.call(v) === '[object RegExp]'
  3361. }
  3362. /**
  3363. * Check if val is a valid array index.
  3364. */
  3365. function isValidArrayIndex (val) {
  3366. var n = parseFloat(String(val));
  3367. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3368. }
  3369. function isPromise (val) {
  3370. return (
  3371. isDef(val) &&
  3372. typeof val.then === 'function' &&
  3373. typeof val.catch === 'function'
  3374. )
  3375. }
  3376. /**
  3377. * Convert a value to a string that is actually rendered.
  3378. */
  3379. function toString (val) {
  3380. return val == null
  3381. ? ''
  3382. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3383. ? JSON.stringify(val, null, 2)
  3384. : String(val)
  3385. }
  3386. /**
  3387. * Convert an input value to a number for persistence.
  3388. * If the conversion fails, return original string.
  3389. */
  3390. function toNumber (val) {
  3391. var n = parseFloat(val);
  3392. return isNaN(n) ? val : n
  3393. }
  3394. /**
  3395. * Make a map and return a function for checking if a key
  3396. * is in that map.
  3397. */
  3398. function makeMap (
  3399. str,
  3400. expectsLowerCase
  3401. ) {
  3402. var map = Object.create(null);
  3403. var list = str.split(',');
  3404. for (var i = 0; i < list.length; i++) {
  3405. map[list[i]] = true;
  3406. }
  3407. return expectsLowerCase
  3408. ? function (val) { return map[val.toLowerCase()]; }
  3409. : function (val) { return map[val]; }
  3410. }
  3411. /**
  3412. * Check if a tag is a built-in tag.
  3413. */
  3414. var isBuiltInTag = makeMap('slot,component', true);
  3415. /**
  3416. * Check if an attribute is a reserved attribute.
  3417. */
  3418. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3419. /**
  3420. * Remove an item from an array.
  3421. */
  3422. function remove (arr, item) {
  3423. if (arr.length) {
  3424. var index = arr.indexOf(item);
  3425. if (index > -1) {
  3426. return arr.splice(index, 1)
  3427. }
  3428. }
  3429. }
  3430. /**
  3431. * Check whether an object has the property.
  3432. */
  3433. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3434. function hasOwn (obj, key) {
  3435. return hasOwnProperty.call(obj, key)
  3436. }
  3437. /**
  3438. * Create a cached version of a pure function.
  3439. */
  3440. function cached (fn) {
  3441. var cache = Object.create(null);
  3442. return (function cachedFn (str) {
  3443. var hit = cache[str];
  3444. return hit || (cache[str] = fn(str))
  3445. })
  3446. }
  3447. /**
  3448. * Camelize a hyphen-delimited string.
  3449. */
  3450. var camelizeRE = /-(\w)/g;
  3451. var camelize = cached(function (str) {
  3452. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3453. });
  3454. /**
  3455. * Capitalize a string.
  3456. */
  3457. var capitalize = cached(function (str) {
  3458. return str.charAt(0).toUpperCase() + str.slice(1)
  3459. });
  3460. /**
  3461. * Hyphenate a camelCase string.
  3462. */
  3463. var hyphenateRE = /\B([A-Z])/g;
  3464. var hyphenate = cached(function (str) {
  3465. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3466. });
  3467. /**
  3468. * Simple bind polyfill for environments that do not support it,
  3469. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3470. * since native bind is now performant enough in most browsers.
  3471. * But removing it would mean breaking code that was able to run in
  3472. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3473. */
  3474. /* istanbul ignore next */
  3475. function polyfillBind (fn, ctx) {
  3476. function boundFn (a) {
  3477. var l = arguments.length;
  3478. return l
  3479. ? l > 1
  3480. ? fn.apply(ctx, arguments)
  3481. : fn.call(ctx, a)
  3482. : fn.call(ctx)
  3483. }
  3484. boundFn._length = fn.length;
  3485. return boundFn
  3486. }
  3487. function nativeBind (fn, ctx) {
  3488. return fn.bind(ctx)
  3489. }
  3490. var bind = Function.prototype.bind
  3491. ? nativeBind
  3492. : polyfillBind;
  3493. /**
  3494. * Convert an Array-like object to a real Array.
  3495. */
  3496. function toArray (list, start) {
  3497. start = start || 0;
  3498. var i = list.length - start;
  3499. var ret = new Array(i);
  3500. while (i--) {
  3501. ret[i] = list[i + start];
  3502. }
  3503. return ret
  3504. }
  3505. /**
  3506. * Mix properties into target object.
  3507. */
  3508. function extend (to, _from) {
  3509. for (var key in _from) {
  3510. to[key] = _from[key];
  3511. }
  3512. return to
  3513. }
  3514. /**
  3515. * Merge an Array of Objects into a single Object.
  3516. */
  3517. function toObject (arr) {
  3518. var res = {};
  3519. for (var i = 0; i < arr.length; i++) {
  3520. if (arr[i]) {
  3521. extend(res, arr[i]);
  3522. }
  3523. }
  3524. return res
  3525. }
  3526. /* eslint-disable no-unused-vars */
  3527. /**
  3528. * Perform no operation.
  3529. * Stubbing args to make Flow happy without leaving useless transpiled code
  3530. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3531. */
  3532. function noop (a, b, c) {}
  3533. /**
  3534. * Always return false.
  3535. */
  3536. var no = function (a, b, c) { return false; };
  3537. /* eslint-enable no-unused-vars */
  3538. /**
  3539. * Return the same value.
  3540. */
  3541. var identity = function (_) { return _; };
  3542. /**
  3543. * Check if two values are loosely equal - that is,
  3544. * if they are plain objects, do they have the same shape?
  3545. */
  3546. function looseEqual (a, b) {
  3547. if (a === b) { return true }
  3548. var isObjectA = isObject(a);
  3549. var isObjectB = isObject(b);
  3550. if (isObjectA && isObjectB) {
  3551. try {
  3552. var isArrayA = Array.isArray(a);
  3553. var isArrayB = Array.isArray(b);
  3554. if (isArrayA && isArrayB) {
  3555. return a.length === b.length && a.every(function (e, i) {
  3556. return looseEqual(e, b[i])
  3557. })
  3558. } else if (a instanceof Date && b instanceof Date) {
  3559. return a.getTime() === b.getTime()
  3560. } else if (!isArrayA && !isArrayB) {
  3561. var keysA = Object.keys(a);
  3562. var keysB = Object.keys(b);
  3563. return keysA.length === keysB.length && keysA.every(function (key) {
  3564. return looseEqual(a[key], b[key])
  3565. })
  3566. } else {
  3567. /* istanbul ignore next */
  3568. return false
  3569. }
  3570. } catch (e) {
  3571. /* istanbul ignore next */
  3572. return false
  3573. }
  3574. } else if (!isObjectA && !isObjectB) {
  3575. return String(a) === String(b)
  3576. } else {
  3577. return false
  3578. }
  3579. }
  3580. /**
  3581. * Return the first index at which a loosely equal value can be
  3582. * found in the array (if value is a plain object, the array must
  3583. * contain an object of the same shape), or -1 if it is not present.
  3584. */
  3585. function looseIndexOf (arr, val) {
  3586. for (var i = 0; i < arr.length; i++) {
  3587. if (looseEqual(arr[i], val)) { return i }
  3588. }
  3589. return -1
  3590. }
  3591. /**
  3592. * Ensure a function is called only once.
  3593. */
  3594. function once (fn) {
  3595. var called = false;
  3596. return function () {
  3597. if (!called) {
  3598. called = true;
  3599. fn.apply(this, arguments);
  3600. }
  3601. }
  3602. }
  3603. var ASSET_TYPES = [
  3604. 'component',
  3605. 'directive',
  3606. 'filter'
  3607. ];
  3608. var LIFECYCLE_HOOKS = [
  3609. 'beforeCreate',
  3610. 'created',
  3611. 'beforeMount',
  3612. 'mounted',
  3613. 'beforeUpdate',
  3614. 'updated',
  3615. 'beforeDestroy',
  3616. 'destroyed',
  3617. 'activated',
  3618. 'deactivated',
  3619. 'errorCaptured',
  3620. 'serverPrefetch'
  3621. ];
  3622. /* */
  3623. var config = ({
  3624. /**
  3625. * Option merge strategies (used in core/util/options)
  3626. */
  3627. // $flow-disable-line
  3628. optionMergeStrategies: Object.create(null),
  3629. /**
  3630. * Whether to suppress warnings.
  3631. */
  3632. silent: false,
  3633. /**
  3634. * Show production mode tip message on boot?
  3635. */
  3636. productionTip: "development" !== 'production',
  3637. /**
  3638. * Whether to enable devtools
  3639. */
  3640. devtools: "development" !== 'production',
  3641. /**
  3642. * Whether to record perf
  3643. */
  3644. performance: false,
  3645. /**
  3646. * Error handler for watcher errors
  3647. */
  3648. errorHandler: null,
  3649. /**
  3650. * Warn handler for watcher warns
  3651. */
  3652. warnHandler: null,
  3653. /**
  3654. * Ignore certain custom elements
  3655. */
  3656. ignoredElements: [],
  3657. /**
  3658. * Custom user key aliases for v-on
  3659. */
  3660. // $flow-disable-line
  3661. keyCodes: Object.create(null),
  3662. /**
  3663. * Check if a tag is reserved so that it cannot be registered as a
  3664. * component. This is platform-dependent and may be overwritten.
  3665. */
  3666. isReservedTag: no,
  3667. /**
  3668. * Check if an attribute is reserved so that it cannot be used as a component
  3669. * prop. This is platform-dependent and may be overwritten.
  3670. */
  3671. isReservedAttr: no,
  3672. /**
  3673. * Check if a tag is an unknown element.
  3674. * Platform-dependent.
  3675. */
  3676. isUnknownElement: no,
  3677. /**
  3678. * Get the namespace of an element
  3679. */
  3680. getTagNamespace: noop,
  3681. /**
  3682. * Parse the real tag name for the specific platform.
  3683. */
  3684. parsePlatformTagName: identity,
  3685. /**
  3686. * Check if an attribute must be bound using property, e.g. value
  3687. * Platform-dependent.
  3688. */
  3689. mustUseProp: no,
  3690. /**
  3691. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3692. * This will significantly reduce performance if set to false.
  3693. */
  3694. async: true,
  3695. /**
  3696. * Exposed for legacy reasons
  3697. */
  3698. _lifecycleHooks: LIFECYCLE_HOOKS
  3699. });
  3700. /* */
  3701. /**
  3702. * unicode letters used for parsing html tags, component names and property paths.
  3703. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3704. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3705. */
  3706. 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/;
  3707. /**
  3708. * Check if a string starts with $ or _
  3709. */
  3710. function isReserved (str) {
  3711. var c = (str + '').charCodeAt(0);
  3712. return c === 0x24 || c === 0x5F
  3713. }
  3714. /**
  3715. * Define a property.
  3716. */
  3717. function def (obj, key, val, enumerable) {
  3718. Object.defineProperty(obj, key, {
  3719. value: val,
  3720. enumerable: !!enumerable,
  3721. writable: true,
  3722. configurable: true
  3723. });
  3724. }
  3725. /**
  3726. * Parse simple path.
  3727. */
  3728. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3729. function parsePath (path) {
  3730. if (bailRE.test(path)) {
  3731. return
  3732. }
  3733. var segments = path.split('.');
  3734. return function (obj) {
  3735. for (var i = 0; i < segments.length; i++) {
  3736. if (!obj) { return }
  3737. obj = obj[segments[i]];
  3738. }
  3739. return obj
  3740. }
  3741. }
  3742. /* */
  3743. // can we use __proto__?
  3744. var hasProto = '__proto__' in {};
  3745. // Browser environment sniffing
  3746. var inBrowser = typeof window !== 'undefined';
  3747. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3748. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3749. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3750. var isIE = UA && /msie|trident/.test(UA);
  3751. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3752. var isEdge = UA && UA.indexOf('edge/') > 0;
  3753. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3754. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3755. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3756. var isPhantomJS = UA && /phantomjs/.test(UA);
  3757. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3758. // Firefox has a "watch" function on Object.prototype...
  3759. var nativeWatch = ({}).watch;
  3760. if (inBrowser) {
  3761. try {
  3762. var opts = {};
  3763. Object.defineProperty(opts, 'passive', ({
  3764. get: function get () {
  3765. }
  3766. })); // https://github.com/facebook/flow/issues/285
  3767. window.addEventListener('test-passive', null, opts);
  3768. } catch (e) {}
  3769. }
  3770. // this needs to be lazy-evaled because vue may be required before
  3771. // vue-server-renderer can set VUE_ENV
  3772. var _isServer;
  3773. var isServerRendering = function () {
  3774. if (_isServer === undefined) {
  3775. /* istanbul ignore if */
  3776. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3777. // detect presence of vue-server-renderer and avoid
  3778. // Webpack shimming the process
  3779. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3780. } else {
  3781. _isServer = false;
  3782. }
  3783. }
  3784. return _isServer
  3785. };
  3786. // detect devtools
  3787. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3788. /* istanbul ignore next */
  3789. function isNative (Ctor) {
  3790. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3791. }
  3792. var hasSymbol =
  3793. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3794. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3795. var _Set;
  3796. /* istanbul ignore if */ // $flow-disable-line
  3797. if (typeof Set !== 'undefined' && isNative(Set)) {
  3798. // use native Set when available.
  3799. _Set = Set;
  3800. } else {
  3801. // a non-standard Set polyfill that only works with primitive keys.
  3802. _Set = /*@__PURE__*/(function () {
  3803. function Set () {
  3804. this.set = Object.create(null);
  3805. }
  3806. Set.prototype.has = function has (key) {
  3807. return this.set[key] === true
  3808. };
  3809. Set.prototype.add = function add (key) {
  3810. this.set[key] = true;
  3811. };
  3812. Set.prototype.clear = function clear () {
  3813. this.set = Object.create(null);
  3814. };
  3815. return Set;
  3816. }());
  3817. }
  3818. /* */
  3819. var warn = noop;
  3820. var tip = noop;
  3821. var generateComponentTrace = (noop); // work around flow check
  3822. var formatComponentName = (noop);
  3823. if (true) {
  3824. var hasConsole = typeof console !== 'undefined';
  3825. var classifyRE = /(?:^|[-_])(\w)/g;
  3826. var classify = function (str) { return str
  3827. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3828. .replace(/[-_]/g, ''); };
  3829. warn = function (msg, vm) {
  3830. var trace = vm ? generateComponentTrace(vm) : '';
  3831. if (config.warnHandler) {
  3832. config.warnHandler.call(null, msg, vm, trace);
  3833. } else if (hasConsole && (!config.silent)) {
  3834. console.error(("[Vue warn]: " + msg + trace));
  3835. }
  3836. };
  3837. tip = function (msg, vm) {
  3838. if (hasConsole && (!config.silent)) {
  3839. console.warn("[Vue tip]: " + msg + (
  3840. vm ? generateComponentTrace(vm) : ''
  3841. ));
  3842. }
  3843. };
  3844. formatComponentName = function (vm, includeFile) {
  3845. if (vm.$root === vm) {
  3846. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3847. return ('') + vm.$options.__file
  3848. }
  3849. return '<Root>'
  3850. }
  3851. var options = typeof vm === 'function' && vm.cid != null
  3852. ? vm.options
  3853. : vm._isVue
  3854. ? vm.$options || vm.constructor.options
  3855. : vm;
  3856. var name = options.name || options._componentTag;
  3857. var file = options.__file;
  3858. if (!name && file) {
  3859. var match = file.match(/([^/\\]+)\.vue$/);
  3860. name = match && match[1];
  3861. }
  3862. return (
  3863. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3864. (file && includeFile !== false ? (" at " + file) : '')
  3865. )
  3866. };
  3867. var repeat = function (str, n) {
  3868. var res = '';
  3869. while (n) {
  3870. if (n % 2 === 1) { res += str; }
  3871. if (n > 1) { str += str; }
  3872. n >>= 1;
  3873. }
  3874. return res
  3875. };
  3876. generateComponentTrace = function (vm) {
  3877. if (vm._isVue && vm.$parent) {
  3878. var tree = [];
  3879. var currentRecursiveSequence = 0;
  3880. while (vm && vm.$options.name !== 'PageBody') {
  3881. if (tree.length > 0) {
  3882. var last = tree[tree.length - 1];
  3883. if (last.constructor === vm.constructor) {
  3884. currentRecursiveSequence++;
  3885. vm = vm.$parent;
  3886. continue
  3887. } else if (currentRecursiveSequence > 0) {
  3888. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3889. currentRecursiveSequence = 0;
  3890. }
  3891. }
  3892. !vm.$options.isReserved && tree.push(vm);
  3893. vm = vm.$parent;
  3894. }
  3895. return '\n\nfound in\n\n' + tree
  3896. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3897. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3898. : formatComponentName(vm))); })
  3899. .join('\n')
  3900. } else {
  3901. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3902. }
  3903. };
  3904. }
  3905. /* */
  3906. var uid = 0;
  3907. /**
  3908. * A dep is an observable that can have multiple
  3909. * directives subscribing to it.
  3910. */
  3911. var Dep = function Dep () {
  3912. this.id = uid++;
  3913. this.subs = [];
  3914. };
  3915. Dep.prototype.addSub = function addSub (sub) {
  3916. this.subs.push(sub);
  3917. };
  3918. Dep.prototype.removeSub = function removeSub (sub) {
  3919. remove(this.subs, sub);
  3920. };
  3921. Dep.prototype.depend = function depend () {
  3922. if (Dep.SharedObject.target) {
  3923. Dep.SharedObject.target.addDep(this);
  3924. }
  3925. };
  3926. Dep.prototype.notify = function notify () {
  3927. // stabilize the subscriber list first
  3928. var subs = this.subs.slice();
  3929. if ( true && !config.async) {
  3930. // subs aren't sorted in scheduler if not running async
  3931. // we need to sort them now to make sure they fire in correct
  3932. // order
  3933. subs.sort(function (a, b) { return a.id - b.id; });
  3934. }
  3935. for (var i = 0, l = subs.length; i < l; i++) {
  3936. subs[i].update();
  3937. }
  3938. };
  3939. // The current target watcher being evaluated.
  3940. // This is globally unique because only one watcher
  3941. // can be evaluated at a time.
  3942. // fixed by xxxxxx (nvue shared vuex)
  3943. /* eslint-disable no-undef */
  3944. Dep.SharedObject = {};
  3945. Dep.SharedObject.target = null;
  3946. Dep.SharedObject.targetStack = [];
  3947. function pushTarget (target) {
  3948. Dep.SharedObject.targetStack.push(target);
  3949. Dep.SharedObject.target = target;
  3950. Dep.target = target;
  3951. }
  3952. function popTarget () {
  3953. Dep.SharedObject.targetStack.pop();
  3954. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3955. Dep.target = Dep.SharedObject.target;
  3956. }
  3957. /* */
  3958. var VNode = function VNode (
  3959. tag,
  3960. data,
  3961. children,
  3962. text,
  3963. elm,
  3964. context,
  3965. componentOptions,
  3966. asyncFactory
  3967. ) {
  3968. this.tag = tag;
  3969. this.data = data;
  3970. this.children = children;
  3971. this.text = text;
  3972. this.elm = elm;
  3973. this.ns = undefined;
  3974. this.context = context;
  3975. this.fnContext = undefined;
  3976. this.fnOptions = undefined;
  3977. this.fnScopeId = undefined;
  3978. this.key = data && data.key;
  3979. this.componentOptions = componentOptions;
  3980. this.componentInstance = undefined;
  3981. this.parent = undefined;
  3982. this.raw = false;
  3983. this.isStatic = false;
  3984. this.isRootInsert = true;
  3985. this.isComment = false;
  3986. this.isCloned = false;
  3987. this.isOnce = false;
  3988. this.asyncFactory = asyncFactory;
  3989. this.asyncMeta = undefined;
  3990. this.isAsyncPlaceholder = false;
  3991. };
  3992. var prototypeAccessors = { child: { configurable: true } };
  3993. // DEPRECATED: alias for componentInstance for backwards compat.
  3994. /* istanbul ignore next */
  3995. prototypeAccessors.child.get = function () {
  3996. return this.componentInstance
  3997. };
  3998. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3999. var createEmptyVNode = function (text) {
  4000. if ( text === void 0 ) text = '';
  4001. var node = new VNode();
  4002. node.text = text;
  4003. node.isComment = true;
  4004. return node
  4005. };
  4006. function createTextVNode (val) {
  4007. return new VNode(undefined, undefined, undefined, String(val))
  4008. }
  4009. // optimized shallow clone
  4010. // used for static nodes and slot nodes because they may be reused across
  4011. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4012. // on their elm reference.
  4013. function cloneVNode (vnode) {
  4014. var cloned = new VNode(
  4015. vnode.tag,
  4016. vnode.data,
  4017. // #7975
  4018. // clone children array to avoid mutating original in case of cloning
  4019. // a child.
  4020. vnode.children && vnode.children.slice(),
  4021. vnode.text,
  4022. vnode.elm,
  4023. vnode.context,
  4024. vnode.componentOptions,
  4025. vnode.asyncFactory
  4026. );
  4027. cloned.ns = vnode.ns;
  4028. cloned.isStatic = vnode.isStatic;
  4029. cloned.key = vnode.key;
  4030. cloned.isComment = vnode.isComment;
  4031. cloned.fnContext = vnode.fnContext;
  4032. cloned.fnOptions = vnode.fnOptions;
  4033. cloned.fnScopeId = vnode.fnScopeId;
  4034. cloned.asyncMeta = vnode.asyncMeta;
  4035. cloned.isCloned = true;
  4036. return cloned
  4037. }
  4038. /*
  4039. * not type checking this file because flow doesn't play well with
  4040. * dynamically accessing methods on Array prototype
  4041. */
  4042. var arrayProto = Array.prototype;
  4043. var arrayMethods = Object.create(arrayProto);
  4044. var methodsToPatch = [
  4045. 'push',
  4046. 'pop',
  4047. 'shift',
  4048. 'unshift',
  4049. 'splice',
  4050. 'sort',
  4051. 'reverse'
  4052. ];
  4053. /**
  4054. * Intercept mutating methods and emit events
  4055. */
  4056. methodsToPatch.forEach(function (method) {
  4057. // cache original method
  4058. var original = arrayProto[method];
  4059. def(arrayMethods, method, function mutator () {
  4060. var args = [], len = arguments.length;
  4061. while ( len-- ) args[ len ] = arguments[ len ];
  4062. var result = original.apply(this, args);
  4063. var ob = this.__ob__;
  4064. var inserted;
  4065. switch (method) {
  4066. case 'push':
  4067. case 'unshift':
  4068. inserted = args;
  4069. break
  4070. case 'splice':
  4071. inserted = args.slice(2);
  4072. break
  4073. }
  4074. if (inserted) { ob.observeArray(inserted); }
  4075. // notify change
  4076. ob.dep.notify();
  4077. return result
  4078. });
  4079. });
  4080. /* */
  4081. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4082. /**
  4083. * In some cases we may want to disable observation inside a component's
  4084. * update computation.
  4085. */
  4086. var shouldObserve = true;
  4087. function toggleObserving (value) {
  4088. shouldObserve = value;
  4089. }
  4090. /**
  4091. * Observer class that is attached to each observed
  4092. * object. Once attached, the observer converts the target
  4093. * object's property keys into getter/setters that
  4094. * collect dependencies and dispatch updates.
  4095. */
  4096. var Observer = function Observer (value) {
  4097. this.value = value;
  4098. this.dep = new Dep();
  4099. this.vmCount = 0;
  4100. def(value, '__ob__', this);
  4101. if (Array.isArray(value)) {
  4102. if (hasProto) {
  4103. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4104. if(value.push !== value.__proto__.push){
  4105. copyAugment(value, arrayMethods, arrayKeys);
  4106. } else {
  4107. protoAugment(value, arrayMethods);
  4108. }
  4109. }
  4110. } else {
  4111. copyAugment(value, arrayMethods, arrayKeys);
  4112. }
  4113. this.observeArray(value);
  4114. } else {
  4115. this.walk(value);
  4116. }
  4117. };
  4118. /**
  4119. * Walk through all properties and convert them into
  4120. * getter/setters. This method should only be called when
  4121. * value type is Object.
  4122. */
  4123. Observer.prototype.walk = function walk (obj) {
  4124. var keys = Object.keys(obj);
  4125. for (var i = 0; i < keys.length; i++) {
  4126. defineReactive$$1(obj, keys[i]);
  4127. }
  4128. };
  4129. /**
  4130. * Observe a list of Array items.
  4131. */
  4132. Observer.prototype.observeArray = function observeArray (items) {
  4133. for (var i = 0, l = items.length; i < l; i++) {
  4134. observe(items[i]);
  4135. }
  4136. };
  4137. // helpers
  4138. /**
  4139. * Augment a target Object or Array by intercepting
  4140. * the prototype chain using __proto__
  4141. */
  4142. function protoAugment (target, src) {
  4143. /* eslint-disable no-proto */
  4144. target.__proto__ = src;
  4145. /* eslint-enable no-proto */
  4146. }
  4147. /**
  4148. * Augment a target Object or Array by defining
  4149. * hidden properties.
  4150. */
  4151. /* istanbul ignore next */
  4152. function copyAugment (target, src, keys) {
  4153. for (var i = 0, l = keys.length; i < l; i++) {
  4154. var key = keys[i];
  4155. def(target, key, src[key]);
  4156. }
  4157. }
  4158. /**
  4159. * Attempt to create an observer instance for a value,
  4160. * returns the new observer if successfully observed,
  4161. * or the existing observer if the value already has one.
  4162. */
  4163. function observe (value, asRootData) {
  4164. if (!isObject(value) || value instanceof VNode) {
  4165. return
  4166. }
  4167. var ob;
  4168. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4169. ob = value.__ob__;
  4170. } else if (
  4171. shouldObserve &&
  4172. !isServerRendering() &&
  4173. (Array.isArray(value) || isPlainObject(value)) &&
  4174. Object.isExtensible(value) &&
  4175. !value._isVue &&
  4176. !value.__v_isMPComponent
  4177. ) {
  4178. ob = new Observer(value);
  4179. }
  4180. if (asRootData && ob) {
  4181. ob.vmCount++;
  4182. }
  4183. return ob
  4184. }
  4185. /**
  4186. * Define a reactive property on an Object.
  4187. */
  4188. function defineReactive$$1 (
  4189. obj,
  4190. key,
  4191. val,
  4192. customSetter,
  4193. shallow
  4194. ) {
  4195. var dep = new Dep();
  4196. var property = Object.getOwnPropertyDescriptor(obj, key);
  4197. if (property && property.configurable === false) {
  4198. return
  4199. }
  4200. // cater for pre-defined getter/setters
  4201. var getter = property && property.get;
  4202. var setter = property && property.set;
  4203. if ((!getter || setter) && arguments.length === 2) {
  4204. val = obj[key];
  4205. }
  4206. var childOb = !shallow && observe(val);
  4207. Object.defineProperty(obj, key, {
  4208. enumerable: true,
  4209. configurable: true,
  4210. get: function reactiveGetter () {
  4211. var value = getter ? getter.call(obj) : val;
  4212. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4213. dep.depend();
  4214. if (childOb) {
  4215. childOb.dep.depend();
  4216. if (Array.isArray(value)) {
  4217. dependArray(value);
  4218. }
  4219. }
  4220. }
  4221. return value
  4222. },
  4223. set: function reactiveSetter (newVal) {
  4224. var value = getter ? getter.call(obj) : val;
  4225. /* eslint-disable no-self-compare */
  4226. if (newVal === value || (newVal !== newVal && value !== value)) {
  4227. return
  4228. }
  4229. /* eslint-enable no-self-compare */
  4230. if ( true && customSetter) {
  4231. customSetter();
  4232. }
  4233. // #7981: for accessor properties without setter
  4234. if (getter && !setter) { return }
  4235. if (setter) {
  4236. setter.call(obj, newVal);
  4237. } else {
  4238. val = newVal;
  4239. }
  4240. childOb = !shallow && observe(newVal);
  4241. dep.notify();
  4242. }
  4243. });
  4244. }
  4245. /**
  4246. * Set a property on an object. Adds the new property and
  4247. * triggers change notification if the property doesn't
  4248. * already exist.
  4249. */
  4250. function set (target, key, val) {
  4251. if ( true &&
  4252. (isUndef(target) || isPrimitive(target))
  4253. ) {
  4254. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4255. }
  4256. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4257. target.length = Math.max(target.length, key);
  4258. target.splice(key, 1, val);
  4259. return val
  4260. }
  4261. if (key in target && !(key in Object.prototype)) {
  4262. target[key] = val;
  4263. return val
  4264. }
  4265. var ob = (target).__ob__;
  4266. if (target._isVue || (ob && ob.vmCount)) {
  4267. true && warn(
  4268. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4269. 'at runtime - declare it upfront in the data option.'
  4270. );
  4271. return val
  4272. }
  4273. if (!ob) {
  4274. target[key] = val;
  4275. return val
  4276. }
  4277. defineReactive$$1(ob.value, key, val);
  4278. ob.dep.notify();
  4279. return val
  4280. }
  4281. /**
  4282. * Delete a property and trigger change if necessary.
  4283. */
  4284. function del (target, key) {
  4285. if ( true &&
  4286. (isUndef(target) || isPrimitive(target))
  4287. ) {
  4288. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4289. }
  4290. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4291. target.splice(key, 1);
  4292. return
  4293. }
  4294. var ob = (target).__ob__;
  4295. if (target._isVue || (ob && ob.vmCount)) {
  4296. true && warn(
  4297. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4298. '- just set it to null.'
  4299. );
  4300. return
  4301. }
  4302. if (!hasOwn(target, key)) {
  4303. return
  4304. }
  4305. delete target[key];
  4306. if (!ob) {
  4307. return
  4308. }
  4309. ob.dep.notify();
  4310. }
  4311. /**
  4312. * Collect dependencies on array elements when the array is touched, since
  4313. * we cannot intercept array element access like property getters.
  4314. */
  4315. function dependArray (value) {
  4316. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4317. e = value[i];
  4318. e && e.__ob__ && e.__ob__.dep.depend();
  4319. if (Array.isArray(e)) {
  4320. dependArray(e);
  4321. }
  4322. }
  4323. }
  4324. /* */
  4325. /**
  4326. * Option overwriting strategies are functions that handle
  4327. * how to merge a parent option value and a child option
  4328. * value into the final value.
  4329. */
  4330. var strats = config.optionMergeStrategies;
  4331. /**
  4332. * Options with restrictions
  4333. */
  4334. if (true) {
  4335. strats.el = strats.propsData = function (parent, child, vm, key) {
  4336. if (!vm) {
  4337. warn(
  4338. "option \"" + key + "\" can only be used during instance " +
  4339. 'creation with the `new` keyword.'
  4340. );
  4341. }
  4342. return defaultStrat(parent, child)
  4343. };
  4344. }
  4345. /**
  4346. * Helper that recursively merges two data objects together.
  4347. */
  4348. function mergeData (to, from) {
  4349. if (!from) { return to }
  4350. var key, toVal, fromVal;
  4351. var keys = hasSymbol
  4352. ? Reflect.ownKeys(from)
  4353. : Object.keys(from);
  4354. for (var i = 0; i < keys.length; i++) {
  4355. key = keys[i];
  4356. // in case the object is already observed...
  4357. if (key === '__ob__') { continue }
  4358. toVal = to[key];
  4359. fromVal = from[key];
  4360. if (!hasOwn(to, key)) {
  4361. set(to, key, fromVal);
  4362. } else if (
  4363. toVal !== fromVal &&
  4364. isPlainObject(toVal) &&
  4365. isPlainObject(fromVal)
  4366. ) {
  4367. mergeData(toVal, fromVal);
  4368. }
  4369. }
  4370. return to
  4371. }
  4372. /**
  4373. * Data
  4374. */
  4375. function mergeDataOrFn (
  4376. parentVal,
  4377. childVal,
  4378. vm
  4379. ) {
  4380. if (!vm) {
  4381. // in a Vue.extend merge, both should be functions
  4382. if (!childVal) {
  4383. return parentVal
  4384. }
  4385. if (!parentVal) {
  4386. return childVal
  4387. }
  4388. // when parentVal & childVal are both present,
  4389. // we need to return a function that returns the
  4390. // merged result of both functions... no need to
  4391. // check if parentVal is a function here because
  4392. // it has to be a function to pass previous merges.
  4393. return function mergedDataFn () {
  4394. return mergeData(
  4395. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4396. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4397. )
  4398. }
  4399. } else {
  4400. return function mergedInstanceDataFn () {
  4401. // instance merge
  4402. var instanceData = typeof childVal === 'function'
  4403. ? childVal.call(vm, vm)
  4404. : childVal;
  4405. var defaultData = typeof parentVal === 'function'
  4406. ? parentVal.call(vm, vm)
  4407. : parentVal;
  4408. if (instanceData) {
  4409. return mergeData(instanceData, defaultData)
  4410. } else {
  4411. return defaultData
  4412. }
  4413. }
  4414. }
  4415. }
  4416. strats.data = function (
  4417. parentVal,
  4418. childVal,
  4419. vm
  4420. ) {
  4421. if (!vm) {
  4422. if (childVal && typeof childVal !== 'function') {
  4423. true && warn(
  4424. 'The "data" option should be a function ' +
  4425. 'that returns a per-instance value in component ' +
  4426. 'definitions.',
  4427. vm
  4428. );
  4429. return parentVal
  4430. }
  4431. return mergeDataOrFn(parentVal, childVal)
  4432. }
  4433. return mergeDataOrFn(parentVal, childVal, vm)
  4434. };
  4435. /**
  4436. * Hooks and props are merged as arrays.
  4437. */
  4438. function mergeHook (
  4439. parentVal,
  4440. childVal
  4441. ) {
  4442. var res = childVal
  4443. ? parentVal
  4444. ? parentVal.concat(childVal)
  4445. : Array.isArray(childVal)
  4446. ? childVal
  4447. : [childVal]
  4448. : parentVal;
  4449. return res
  4450. ? dedupeHooks(res)
  4451. : res
  4452. }
  4453. function dedupeHooks (hooks) {
  4454. var res = [];
  4455. for (var i = 0; i < hooks.length; i++) {
  4456. if (res.indexOf(hooks[i]) === -1) {
  4457. res.push(hooks[i]);
  4458. }
  4459. }
  4460. return res
  4461. }
  4462. LIFECYCLE_HOOKS.forEach(function (hook) {
  4463. strats[hook] = mergeHook;
  4464. });
  4465. /**
  4466. * Assets
  4467. *
  4468. * When a vm is present (instance creation), we need to do
  4469. * a three-way merge between constructor options, instance
  4470. * options and parent options.
  4471. */
  4472. function mergeAssets (
  4473. parentVal,
  4474. childVal,
  4475. vm,
  4476. key
  4477. ) {
  4478. var res = Object.create(parentVal || null);
  4479. if (childVal) {
  4480. true && assertObjectType(key, childVal, vm);
  4481. return extend(res, childVal)
  4482. } else {
  4483. return res
  4484. }
  4485. }
  4486. ASSET_TYPES.forEach(function (type) {
  4487. strats[type + 's'] = mergeAssets;
  4488. });
  4489. /**
  4490. * Watchers.
  4491. *
  4492. * Watchers hashes should not overwrite one
  4493. * another, so we merge them as arrays.
  4494. */
  4495. strats.watch = function (
  4496. parentVal,
  4497. childVal,
  4498. vm,
  4499. key
  4500. ) {
  4501. // work around Firefox's Object.prototype.watch...
  4502. if (parentVal === nativeWatch) { parentVal = undefined; }
  4503. if (childVal === nativeWatch) { childVal = undefined; }
  4504. /* istanbul ignore if */
  4505. if (!childVal) { return Object.create(parentVal || null) }
  4506. if (true) {
  4507. assertObjectType(key, childVal, vm);
  4508. }
  4509. if (!parentVal) { return childVal }
  4510. var ret = {};
  4511. extend(ret, parentVal);
  4512. for (var key$1 in childVal) {
  4513. var parent = ret[key$1];
  4514. var child = childVal[key$1];
  4515. if (parent && !Array.isArray(parent)) {
  4516. parent = [parent];
  4517. }
  4518. ret[key$1] = parent
  4519. ? parent.concat(child)
  4520. : Array.isArray(child) ? child : [child];
  4521. }
  4522. return ret
  4523. };
  4524. /**
  4525. * Other object hashes.
  4526. */
  4527. strats.props =
  4528. strats.methods =
  4529. strats.inject =
  4530. strats.computed = function (
  4531. parentVal,
  4532. childVal,
  4533. vm,
  4534. key
  4535. ) {
  4536. if (childVal && "development" !== 'production') {
  4537. assertObjectType(key, childVal, vm);
  4538. }
  4539. if (!parentVal) { return childVal }
  4540. var ret = Object.create(null);
  4541. extend(ret, parentVal);
  4542. if (childVal) { extend(ret, childVal); }
  4543. return ret
  4544. };
  4545. strats.provide = mergeDataOrFn;
  4546. /**
  4547. * Default strategy.
  4548. */
  4549. var defaultStrat = function (parentVal, childVal) {
  4550. return childVal === undefined
  4551. ? parentVal
  4552. : childVal
  4553. };
  4554. /**
  4555. * Validate component names
  4556. */
  4557. function checkComponents (options) {
  4558. for (var key in options.components) {
  4559. validateComponentName(key);
  4560. }
  4561. }
  4562. function validateComponentName (name) {
  4563. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4564. warn(
  4565. 'Invalid component name: "' + name + '". Component names ' +
  4566. 'should conform to valid custom element name in html5 specification.'
  4567. );
  4568. }
  4569. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4570. warn(
  4571. 'Do not use built-in or reserved HTML elements as component ' +
  4572. 'id: ' + name
  4573. );
  4574. }
  4575. }
  4576. /**
  4577. * Ensure all props option syntax are normalized into the
  4578. * Object-based format.
  4579. */
  4580. function normalizeProps (options, vm) {
  4581. var props = options.props;
  4582. if (!props) { return }
  4583. var res = {};
  4584. var i, val, name;
  4585. if (Array.isArray(props)) {
  4586. i = props.length;
  4587. while (i--) {
  4588. val = props[i];
  4589. if (typeof val === 'string') {
  4590. name = camelize(val);
  4591. res[name] = { type: null };
  4592. } else if (true) {
  4593. warn('props must be strings when using array syntax.');
  4594. }
  4595. }
  4596. } else if (isPlainObject(props)) {
  4597. for (var key in props) {
  4598. val = props[key];
  4599. name = camelize(key);
  4600. res[name] = isPlainObject(val)
  4601. ? val
  4602. : { type: val };
  4603. }
  4604. } else if (true) {
  4605. warn(
  4606. "Invalid value for option \"props\": expected an Array or an Object, " +
  4607. "but got " + (toRawType(props)) + ".",
  4608. vm
  4609. );
  4610. }
  4611. options.props = res;
  4612. }
  4613. /**
  4614. * Normalize all injections into Object-based format
  4615. */
  4616. function normalizeInject (options, vm) {
  4617. var inject = options.inject;
  4618. if (!inject) { return }
  4619. var normalized = options.inject = {};
  4620. if (Array.isArray(inject)) {
  4621. for (var i = 0; i < inject.length; i++) {
  4622. normalized[inject[i]] = { from: inject[i] };
  4623. }
  4624. } else if (isPlainObject(inject)) {
  4625. for (var key in inject) {
  4626. var val = inject[key];
  4627. normalized[key] = isPlainObject(val)
  4628. ? extend({ from: key }, val)
  4629. : { from: val };
  4630. }
  4631. } else if (true) {
  4632. warn(
  4633. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4634. "but got " + (toRawType(inject)) + ".",
  4635. vm
  4636. );
  4637. }
  4638. }
  4639. /**
  4640. * Normalize raw function directives into object format.
  4641. */
  4642. function normalizeDirectives (options) {
  4643. var dirs = options.directives;
  4644. if (dirs) {
  4645. for (var key in dirs) {
  4646. var def$$1 = dirs[key];
  4647. if (typeof def$$1 === 'function') {
  4648. dirs[key] = { bind: def$$1, update: def$$1 };
  4649. }
  4650. }
  4651. }
  4652. }
  4653. function assertObjectType (name, value, vm) {
  4654. if (!isPlainObject(value)) {
  4655. warn(
  4656. "Invalid value for option \"" + name + "\": expected an Object, " +
  4657. "but got " + (toRawType(value)) + ".",
  4658. vm
  4659. );
  4660. }
  4661. }
  4662. /**
  4663. * Merge two option objects into a new one.
  4664. * Core utility used in both instantiation and inheritance.
  4665. */
  4666. function mergeOptions (
  4667. parent,
  4668. child,
  4669. vm
  4670. ) {
  4671. if (true) {
  4672. checkComponents(child);
  4673. }
  4674. if (typeof child === 'function') {
  4675. child = child.options;
  4676. }
  4677. normalizeProps(child, vm);
  4678. normalizeInject(child, vm);
  4679. normalizeDirectives(child);
  4680. // Apply extends and mixins on the child options,
  4681. // but only if it is a raw options object that isn't
  4682. // the result of another mergeOptions call.
  4683. // Only merged options has the _base property.
  4684. if (!child._base) {
  4685. if (child.extends) {
  4686. parent = mergeOptions(parent, child.extends, vm);
  4687. }
  4688. if (child.mixins) {
  4689. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4690. parent = mergeOptions(parent, child.mixins[i], vm);
  4691. }
  4692. }
  4693. }
  4694. var options = {};
  4695. var key;
  4696. for (key in parent) {
  4697. mergeField(key);
  4698. }
  4699. for (key in child) {
  4700. if (!hasOwn(parent, key)) {
  4701. mergeField(key);
  4702. }
  4703. }
  4704. function mergeField (key) {
  4705. var strat = strats[key] || defaultStrat;
  4706. options[key] = strat(parent[key], child[key], vm, key);
  4707. }
  4708. return options
  4709. }
  4710. /**
  4711. * Resolve an asset.
  4712. * This function is used because child instances need access
  4713. * to assets defined in its ancestor chain.
  4714. */
  4715. function resolveAsset (
  4716. options,
  4717. type,
  4718. id,
  4719. warnMissing
  4720. ) {
  4721. /* istanbul ignore if */
  4722. if (typeof id !== 'string') {
  4723. return
  4724. }
  4725. var assets = options[type];
  4726. // check local registration variations first
  4727. if (hasOwn(assets, id)) { return assets[id] }
  4728. var camelizedId = camelize(id);
  4729. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4730. var PascalCaseId = capitalize(camelizedId);
  4731. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4732. // fallback to prototype chain
  4733. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4734. if ( true && warnMissing && !res) {
  4735. warn(
  4736. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4737. options
  4738. );
  4739. }
  4740. return res
  4741. }
  4742. /* */
  4743. function validateProp (
  4744. key,
  4745. propOptions,
  4746. propsData,
  4747. vm
  4748. ) {
  4749. var prop = propOptions[key];
  4750. var absent = !hasOwn(propsData, key);
  4751. var value = propsData[key];
  4752. // boolean casting
  4753. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4754. if (booleanIndex > -1) {
  4755. if (absent && !hasOwn(prop, 'default')) {
  4756. value = false;
  4757. } else if (value === '' || value === hyphenate(key)) {
  4758. // only cast empty string / same name to boolean if
  4759. // boolean has higher priority
  4760. var stringIndex = getTypeIndex(String, prop.type);
  4761. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4762. value = true;
  4763. }
  4764. }
  4765. }
  4766. // check default value
  4767. if (value === undefined) {
  4768. value = getPropDefaultValue(vm, prop, key);
  4769. // since the default value is a fresh copy,
  4770. // make sure to observe it.
  4771. var prevShouldObserve = shouldObserve;
  4772. toggleObserving(true);
  4773. observe(value);
  4774. toggleObserving(prevShouldObserve);
  4775. }
  4776. if (
  4777. true
  4778. ) {
  4779. assertProp(prop, key, value, vm, absent);
  4780. }
  4781. return value
  4782. }
  4783. /**
  4784. * Get the default value of a prop.
  4785. */
  4786. function getPropDefaultValue (vm, prop, key) {
  4787. // no default, return undefined
  4788. if (!hasOwn(prop, 'default')) {
  4789. return undefined
  4790. }
  4791. var def = prop.default;
  4792. // warn against non-factory defaults for Object & Array
  4793. if ( true && isObject(def)) {
  4794. warn(
  4795. 'Invalid default value for prop "' + key + '": ' +
  4796. 'Props with type Object/Array must use a factory function ' +
  4797. 'to return the default value.',
  4798. vm
  4799. );
  4800. }
  4801. // the raw prop value was also undefined from previous render,
  4802. // return previous default value to avoid unnecessary watcher trigger
  4803. if (vm && vm.$options.propsData &&
  4804. vm.$options.propsData[key] === undefined &&
  4805. vm._props[key] !== undefined
  4806. ) {
  4807. return vm._props[key]
  4808. }
  4809. // call factory function for non-Function types
  4810. // a value is Function if its prototype is function even across different execution context
  4811. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4812. ? def.call(vm)
  4813. : def
  4814. }
  4815. /**
  4816. * Assert whether a prop is valid.
  4817. */
  4818. function assertProp (
  4819. prop,
  4820. name,
  4821. value,
  4822. vm,
  4823. absent
  4824. ) {
  4825. if (prop.required && absent) {
  4826. warn(
  4827. 'Missing required prop: "' + name + '"',
  4828. vm
  4829. );
  4830. return
  4831. }
  4832. if (value == null && !prop.required) {
  4833. return
  4834. }
  4835. var type = prop.type;
  4836. var valid = !type || type === true;
  4837. var expectedTypes = [];
  4838. if (type) {
  4839. if (!Array.isArray(type)) {
  4840. type = [type];
  4841. }
  4842. for (var i = 0; i < type.length && !valid; i++) {
  4843. var assertedType = assertType(value, type[i]);
  4844. expectedTypes.push(assertedType.expectedType || '');
  4845. valid = assertedType.valid;
  4846. }
  4847. }
  4848. if (!valid) {
  4849. warn(
  4850. getInvalidTypeMessage(name, value, expectedTypes),
  4851. vm
  4852. );
  4853. return
  4854. }
  4855. var validator = prop.validator;
  4856. if (validator) {
  4857. if (!validator(value)) {
  4858. warn(
  4859. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4860. vm
  4861. );
  4862. }
  4863. }
  4864. }
  4865. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4866. function assertType (value, type) {
  4867. var valid;
  4868. var expectedType = getType(type);
  4869. if (simpleCheckRE.test(expectedType)) {
  4870. var t = typeof value;
  4871. valid = t === expectedType.toLowerCase();
  4872. // for primitive wrapper objects
  4873. if (!valid && t === 'object') {
  4874. valid = value instanceof type;
  4875. }
  4876. } else if (expectedType === 'Object') {
  4877. valid = isPlainObject(value);
  4878. } else if (expectedType === 'Array') {
  4879. valid = Array.isArray(value);
  4880. } else {
  4881. valid = value instanceof type;
  4882. }
  4883. return {
  4884. valid: valid,
  4885. expectedType: expectedType
  4886. }
  4887. }
  4888. /**
  4889. * Use function string name to check built-in types,
  4890. * because a simple equality check will fail when running
  4891. * across different vms / iframes.
  4892. */
  4893. function getType (fn) {
  4894. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4895. return match ? match[1] : ''
  4896. }
  4897. function isSameType (a, b) {
  4898. return getType(a) === getType(b)
  4899. }
  4900. function getTypeIndex (type, expectedTypes) {
  4901. if (!Array.isArray(expectedTypes)) {
  4902. return isSameType(expectedTypes, type) ? 0 : -1
  4903. }
  4904. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4905. if (isSameType(expectedTypes[i], type)) {
  4906. return i
  4907. }
  4908. }
  4909. return -1
  4910. }
  4911. function getInvalidTypeMessage (name, value, expectedTypes) {
  4912. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4913. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4914. var expectedType = expectedTypes[0];
  4915. var receivedType = toRawType(value);
  4916. var expectedValue = styleValue(value, expectedType);
  4917. var receivedValue = styleValue(value, receivedType);
  4918. // check if we need to specify expected value
  4919. if (expectedTypes.length === 1 &&
  4920. isExplicable(expectedType) &&
  4921. !isBoolean(expectedType, receivedType)) {
  4922. message += " with value " + expectedValue;
  4923. }
  4924. message += ", got " + receivedType + " ";
  4925. // check if we need to specify received value
  4926. if (isExplicable(receivedType)) {
  4927. message += "with value " + receivedValue + ".";
  4928. }
  4929. return message
  4930. }
  4931. function styleValue (value, type) {
  4932. if (type === 'String') {
  4933. return ("\"" + value + "\"")
  4934. } else if (type === 'Number') {
  4935. return ("" + (Number(value)))
  4936. } else {
  4937. return ("" + value)
  4938. }
  4939. }
  4940. function isExplicable (value) {
  4941. var explicitTypes = ['string', 'number', 'boolean'];
  4942. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4943. }
  4944. function isBoolean () {
  4945. var args = [], len = arguments.length;
  4946. while ( len-- ) args[ len ] = arguments[ len ];
  4947. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4948. }
  4949. /* */
  4950. function handleError (err, vm, info) {
  4951. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4952. // See: https://github.com/vuejs/vuex/issues/1505
  4953. pushTarget();
  4954. try {
  4955. if (vm) {
  4956. var cur = vm;
  4957. while ((cur = cur.$parent)) {
  4958. var hooks = cur.$options.errorCaptured;
  4959. if (hooks) {
  4960. for (var i = 0; i < hooks.length; i++) {
  4961. try {
  4962. var capture = hooks[i].call(cur, err, vm, info) === false;
  4963. if (capture) { return }
  4964. } catch (e) {
  4965. globalHandleError(e, cur, 'errorCaptured hook');
  4966. }
  4967. }
  4968. }
  4969. }
  4970. }
  4971. globalHandleError(err, vm, info);
  4972. } finally {
  4973. popTarget();
  4974. }
  4975. }
  4976. function invokeWithErrorHandling (
  4977. handler,
  4978. context,
  4979. args,
  4980. vm,
  4981. info
  4982. ) {
  4983. var res;
  4984. try {
  4985. res = args ? handler.apply(context, args) : handler.call(context);
  4986. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4987. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4988. // issue #9511
  4989. // avoid catch triggering multiple times when nested calls
  4990. res._handled = true;
  4991. }
  4992. } catch (e) {
  4993. handleError(e, vm, info);
  4994. }
  4995. return res
  4996. }
  4997. function globalHandleError (err, vm, info) {
  4998. if (config.errorHandler) {
  4999. try {
  5000. return config.errorHandler.call(null, err, vm, info)
  5001. } catch (e) {
  5002. // if the user intentionally throws the original error in the handler,
  5003. // do not log it twice
  5004. if (e !== err) {
  5005. logError(e, null, 'config.errorHandler');
  5006. }
  5007. }
  5008. }
  5009. logError(err, vm, info);
  5010. }
  5011. function logError (err, vm, info) {
  5012. if (true) {
  5013. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5014. }
  5015. /* istanbul ignore else */
  5016. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5017. console.error(err);
  5018. } else {
  5019. throw err
  5020. }
  5021. }
  5022. /* */
  5023. var callbacks = [];
  5024. var pending = false;
  5025. function flushCallbacks () {
  5026. pending = false;
  5027. var copies = callbacks.slice(0);
  5028. callbacks.length = 0;
  5029. for (var i = 0; i < copies.length; i++) {
  5030. copies[i]();
  5031. }
  5032. }
  5033. // Here we have async deferring wrappers using microtasks.
  5034. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5035. // However, it has subtle problems when state is changed right before repaint
  5036. // (e.g. #6813, out-in transitions).
  5037. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5038. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5039. // So we now use microtasks everywhere, again.
  5040. // A major drawback of this tradeoff is that there are some scenarios
  5041. // where microtasks have too high a priority and fire in between supposedly
  5042. // sequential events (e.g. #4521, #6690, which have workarounds)
  5043. // or even between bubbling of the same event (#6566).
  5044. var timerFunc;
  5045. // The nextTick behavior leverages the microtask queue, which can be accessed
  5046. // via either native Promise.then or MutationObserver.
  5047. // MutationObserver has wider support, however it is seriously bugged in
  5048. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5049. // completely stops working after triggering a few times... so, if native
  5050. // Promise is available, we will use it:
  5051. /* istanbul ignore next, $flow-disable-line */
  5052. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5053. var p = Promise.resolve();
  5054. timerFunc = function () {
  5055. p.then(flushCallbacks);
  5056. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5057. // it can get stuck in a weird state where callbacks are pushed into the
  5058. // microtask queue but the queue isn't being flushed, until the browser
  5059. // needs to do some other work, e.g. handle a timer. Therefore we can
  5060. // "force" the microtask queue to be flushed by adding an empty timer.
  5061. if (isIOS) { setTimeout(noop); }
  5062. };
  5063. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5064. isNative(MutationObserver) ||
  5065. // PhantomJS and iOS 7.x
  5066. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5067. )) {
  5068. // Use MutationObserver where native Promise is not available,
  5069. // e.g. PhantomJS, iOS7, Android 4.4
  5070. // (#6466 MutationObserver is unreliable in IE11)
  5071. var counter = 1;
  5072. var observer = new MutationObserver(flushCallbacks);
  5073. var textNode = document.createTextNode(String(counter));
  5074. observer.observe(textNode, {
  5075. characterData: true
  5076. });
  5077. timerFunc = function () {
  5078. counter = (counter + 1) % 2;
  5079. textNode.data = String(counter);
  5080. };
  5081. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5082. // Fallback to setImmediate.
  5083. // Technically it leverages the (macro) task queue,
  5084. // but it is still a better choice than setTimeout.
  5085. timerFunc = function () {
  5086. setImmediate(flushCallbacks);
  5087. };
  5088. } else {
  5089. // Fallback to setTimeout.
  5090. timerFunc = function () {
  5091. setTimeout(flushCallbacks, 0);
  5092. };
  5093. }
  5094. function nextTick (cb, ctx) {
  5095. var _resolve;
  5096. callbacks.push(function () {
  5097. if (cb) {
  5098. try {
  5099. cb.call(ctx);
  5100. } catch (e) {
  5101. handleError(e, ctx, 'nextTick');
  5102. }
  5103. } else if (_resolve) {
  5104. _resolve(ctx);
  5105. }
  5106. });
  5107. if (!pending) {
  5108. pending = true;
  5109. timerFunc();
  5110. }
  5111. // $flow-disable-line
  5112. if (!cb && typeof Promise !== 'undefined') {
  5113. return new Promise(function (resolve) {
  5114. _resolve = resolve;
  5115. })
  5116. }
  5117. }
  5118. /* */
  5119. /* not type checking this file because flow doesn't play well with Proxy */
  5120. var initProxy;
  5121. if (true) {
  5122. var allowedGlobals = makeMap(
  5123. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5124. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5125. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5126. 'require' // for Webpack/Browserify
  5127. );
  5128. var warnNonPresent = function (target, key) {
  5129. warn(
  5130. "Property or method \"" + key + "\" is not defined on the instance but " +
  5131. 'referenced during render. Make sure that this property is reactive, ' +
  5132. 'either in the data option, or for class-based components, by ' +
  5133. 'initializing the property. ' +
  5134. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5135. target
  5136. );
  5137. };
  5138. var warnReservedPrefix = function (target, key) {
  5139. warn(
  5140. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5141. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5142. 'prevent conflicts with Vue internals. ' +
  5143. 'See: https://vuejs.org/v2/api/#data',
  5144. target
  5145. );
  5146. };
  5147. var hasProxy =
  5148. typeof Proxy !== 'undefined' && isNative(Proxy);
  5149. if (hasProxy) {
  5150. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5151. config.keyCodes = new Proxy(config.keyCodes, {
  5152. set: function set (target, key, value) {
  5153. if (isBuiltInModifier(key)) {
  5154. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5155. return false
  5156. } else {
  5157. target[key] = value;
  5158. return true
  5159. }
  5160. }
  5161. });
  5162. }
  5163. var hasHandler = {
  5164. has: function has (target, key) {
  5165. var has = key in target;
  5166. var isAllowed = allowedGlobals(key) ||
  5167. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5168. if (!has && !isAllowed) {
  5169. if (key in target.$data) { warnReservedPrefix(target, key); }
  5170. else { warnNonPresent(target, key); }
  5171. }
  5172. return has || !isAllowed
  5173. }
  5174. };
  5175. var getHandler = {
  5176. get: function get (target, key) {
  5177. if (typeof key === 'string' && !(key in target)) {
  5178. if (key in target.$data) { warnReservedPrefix(target, key); }
  5179. else { warnNonPresent(target, key); }
  5180. }
  5181. return target[key]
  5182. }
  5183. };
  5184. initProxy = function initProxy (vm) {
  5185. if (hasProxy) {
  5186. // determine which proxy handler to use
  5187. var options = vm.$options;
  5188. var handlers = options.render && options.render._withStripped
  5189. ? getHandler
  5190. : hasHandler;
  5191. vm._renderProxy = new Proxy(vm, handlers);
  5192. } else {
  5193. vm._renderProxy = vm;
  5194. }
  5195. };
  5196. }
  5197. /* */
  5198. var seenObjects = new _Set();
  5199. /**
  5200. * Recursively traverse an object to evoke all converted
  5201. * getters, so that every nested property inside the object
  5202. * is collected as a "deep" dependency.
  5203. */
  5204. function traverse (val) {
  5205. _traverse(val, seenObjects);
  5206. seenObjects.clear();
  5207. }
  5208. function _traverse (val, seen) {
  5209. var i, keys;
  5210. var isA = Array.isArray(val);
  5211. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5212. return
  5213. }
  5214. if (val.__ob__) {
  5215. var depId = val.__ob__.dep.id;
  5216. if (seen.has(depId)) {
  5217. return
  5218. }
  5219. seen.add(depId);
  5220. }
  5221. if (isA) {
  5222. i = val.length;
  5223. while (i--) { _traverse(val[i], seen); }
  5224. } else {
  5225. keys = Object.keys(val);
  5226. i = keys.length;
  5227. while (i--) { _traverse(val[keys[i]], seen); }
  5228. }
  5229. }
  5230. var mark;
  5231. var measure;
  5232. if (true) {
  5233. var perf = inBrowser && window.performance;
  5234. /* istanbul ignore if */
  5235. if (
  5236. perf &&
  5237. perf.mark &&
  5238. perf.measure &&
  5239. perf.clearMarks &&
  5240. perf.clearMeasures
  5241. ) {
  5242. mark = function (tag) { return perf.mark(tag); };
  5243. measure = function (name, startTag, endTag) {
  5244. perf.measure(name, startTag, endTag);
  5245. perf.clearMarks(startTag);
  5246. perf.clearMarks(endTag);
  5247. // perf.clearMeasures(name)
  5248. };
  5249. }
  5250. }
  5251. /* */
  5252. var normalizeEvent = cached(function (name) {
  5253. var passive = name.charAt(0) === '&';
  5254. name = passive ? name.slice(1) : name;
  5255. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5256. name = once$$1 ? name.slice(1) : name;
  5257. var capture = name.charAt(0) === '!';
  5258. name = capture ? name.slice(1) : name;
  5259. return {
  5260. name: name,
  5261. once: once$$1,
  5262. capture: capture,
  5263. passive: passive
  5264. }
  5265. });
  5266. function createFnInvoker (fns, vm) {
  5267. function invoker () {
  5268. var arguments$1 = arguments;
  5269. var fns = invoker.fns;
  5270. if (Array.isArray(fns)) {
  5271. var cloned = fns.slice();
  5272. for (var i = 0; i < cloned.length; i++) {
  5273. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5274. }
  5275. } else {
  5276. // return handler return value for single handlers
  5277. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5278. }
  5279. }
  5280. invoker.fns = fns;
  5281. return invoker
  5282. }
  5283. function updateListeners (
  5284. on,
  5285. oldOn,
  5286. add,
  5287. remove$$1,
  5288. createOnceHandler,
  5289. vm
  5290. ) {
  5291. var name, def$$1, cur, old, event;
  5292. for (name in on) {
  5293. def$$1 = cur = on[name];
  5294. old = oldOn[name];
  5295. event = normalizeEvent(name);
  5296. if (isUndef(cur)) {
  5297. true && warn(
  5298. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5299. vm
  5300. );
  5301. } else if (isUndef(old)) {
  5302. if (isUndef(cur.fns)) {
  5303. cur = on[name] = createFnInvoker(cur, vm);
  5304. }
  5305. if (isTrue(event.once)) {
  5306. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5307. }
  5308. add(event.name, cur, event.capture, event.passive, event.params);
  5309. } else if (cur !== old) {
  5310. old.fns = cur;
  5311. on[name] = old;
  5312. }
  5313. }
  5314. for (name in oldOn) {
  5315. if (isUndef(on[name])) {
  5316. event = normalizeEvent(name);
  5317. remove$$1(event.name, oldOn[name], event.capture);
  5318. }
  5319. }
  5320. }
  5321. /* */
  5322. /* */
  5323. // fixed by xxxxxx (mp properties)
  5324. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5325. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5326. if (isUndef(propOptions)) {
  5327. return res
  5328. }
  5329. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5330. var attrs = data.attrs;
  5331. var props = data.props;
  5332. if (isDef(attrs) || isDef(props)) {
  5333. for (var key in propOptions) {
  5334. var altKey = hyphenate(key);
  5335. var result = checkProp(res, props, key, altKey, true) ||
  5336. checkProp(res, attrs, key, altKey, false);
  5337. // externalClass
  5338. if (
  5339. result &&
  5340. res[key] &&
  5341. externalClasses.indexOf(altKey) !== -1 &&
  5342. context[camelize(res[key])]
  5343. ) {
  5344. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5345. res[key] = context[camelize(res[key])];
  5346. }
  5347. }
  5348. }
  5349. return res
  5350. }
  5351. function extractPropsFromVNodeData (
  5352. data,
  5353. Ctor,
  5354. tag,
  5355. context// fixed by xxxxxx
  5356. ) {
  5357. // we are only extracting raw values here.
  5358. // validation and default values are handled in the child
  5359. // component itself.
  5360. var propOptions = Ctor.options.props;
  5361. if (isUndef(propOptions)) {
  5362. // fixed by xxxxxx
  5363. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5364. }
  5365. var res = {};
  5366. var attrs = data.attrs;
  5367. var props = data.props;
  5368. if (isDef(attrs) || isDef(props)) {
  5369. for (var key in propOptions) {
  5370. var altKey = hyphenate(key);
  5371. if (true) {
  5372. var keyInLowerCase = key.toLowerCase();
  5373. if (
  5374. key !== keyInLowerCase &&
  5375. attrs && hasOwn(attrs, keyInLowerCase)
  5376. ) {
  5377. tip(
  5378. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5379. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5380. " \"" + key + "\". " +
  5381. "Note that HTML attributes are case-insensitive and camelCased " +
  5382. "props need to use their kebab-case equivalents when using in-DOM " +
  5383. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5384. );
  5385. }
  5386. }
  5387. checkProp(res, props, key, altKey, true) ||
  5388. checkProp(res, attrs, key, altKey, false);
  5389. }
  5390. }
  5391. // fixed by xxxxxx
  5392. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5393. }
  5394. function checkProp (
  5395. res,
  5396. hash,
  5397. key,
  5398. altKey,
  5399. preserve
  5400. ) {
  5401. if (isDef(hash)) {
  5402. if (hasOwn(hash, key)) {
  5403. res[key] = hash[key];
  5404. if (!preserve) {
  5405. delete hash[key];
  5406. }
  5407. return true
  5408. } else if (hasOwn(hash, altKey)) {
  5409. res[key] = hash[altKey];
  5410. if (!preserve) {
  5411. delete hash[altKey];
  5412. }
  5413. return true
  5414. }
  5415. }
  5416. return false
  5417. }
  5418. /* */
  5419. // The template compiler attempts to minimize the need for normalization by
  5420. // statically analyzing the template at compile time.
  5421. //
  5422. // For plain HTML markup, normalization can be completely skipped because the
  5423. // generated render function is guaranteed to return Array<VNode>. There are
  5424. // two cases where extra normalization is needed:
  5425. // 1. When the children contains components - because a functional component
  5426. // may return an Array instead of a single root. In this case, just a simple
  5427. // normalization is needed - if any child is an Array, we flatten the whole
  5428. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5429. // because functional components already normalize their own children.
  5430. function simpleNormalizeChildren (children) {
  5431. for (var i = 0; i < children.length; i++) {
  5432. if (Array.isArray(children[i])) {
  5433. return Array.prototype.concat.apply([], children)
  5434. }
  5435. }
  5436. return children
  5437. }
  5438. // 2. When the children contains constructs that always generated nested Arrays,
  5439. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5440. // with hand-written render functions / JSX. In such cases a full normalization
  5441. // is needed to cater to all possible types of children values.
  5442. function normalizeChildren (children) {
  5443. return isPrimitive(children)
  5444. ? [createTextVNode(children)]
  5445. : Array.isArray(children)
  5446. ? normalizeArrayChildren(children)
  5447. : undefined
  5448. }
  5449. function isTextNode (node) {
  5450. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5451. }
  5452. function normalizeArrayChildren (children, nestedIndex) {
  5453. var res = [];
  5454. var i, c, lastIndex, last;
  5455. for (i = 0; i < children.length; i++) {
  5456. c = children[i];
  5457. if (isUndef(c) || typeof c === 'boolean') { continue }
  5458. lastIndex = res.length - 1;
  5459. last = res[lastIndex];
  5460. // nested
  5461. if (Array.isArray(c)) {
  5462. if (c.length > 0) {
  5463. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5464. // merge adjacent text nodes
  5465. if (isTextNode(c[0]) && isTextNode(last)) {
  5466. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5467. c.shift();
  5468. }
  5469. res.push.apply(res, c);
  5470. }
  5471. } else if (isPrimitive(c)) {
  5472. if (isTextNode(last)) {
  5473. // merge adjacent text nodes
  5474. // this is necessary for SSR hydration because text nodes are
  5475. // essentially merged when rendered to HTML strings
  5476. res[lastIndex] = createTextVNode(last.text + c);
  5477. } else if (c !== '') {
  5478. // convert primitive to vnode
  5479. res.push(createTextVNode(c));
  5480. }
  5481. } else {
  5482. if (isTextNode(c) && isTextNode(last)) {
  5483. // merge adjacent text nodes
  5484. res[lastIndex] = createTextVNode(last.text + c.text);
  5485. } else {
  5486. // default key for nested array children (likely generated by v-for)
  5487. if (isTrue(children._isVList) &&
  5488. isDef(c.tag) &&
  5489. isUndef(c.key) &&
  5490. isDef(nestedIndex)) {
  5491. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5492. }
  5493. res.push(c);
  5494. }
  5495. }
  5496. }
  5497. return res
  5498. }
  5499. /* */
  5500. function initProvide (vm) {
  5501. var provide = vm.$options.provide;
  5502. if (provide) {
  5503. vm._provided = typeof provide === 'function'
  5504. ? provide.call(vm)
  5505. : provide;
  5506. }
  5507. }
  5508. function initInjections (vm) {
  5509. var result = resolveInject(vm.$options.inject, vm);
  5510. if (result) {
  5511. toggleObserving(false);
  5512. Object.keys(result).forEach(function (key) {
  5513. /* istanbul ignore else */
  5514. if (true) {
  5515. defineReactive$$1(vm, key, result[key], function () {
  5516. warn(
  5517. "Avoid mutating an injected value directly since the changes will be " +
  5518. "overwritten whenever the provided component re-renders. " +
  5519. "injection being mutated: \"" + key + "\"",
  5520. vm
  5521. );
  5522. });
  5523. } else {}
  5524. });
  5525. toggleObserving(true);
  5526. }
  5527. }
  5528. function resolveInject (inject, vm) {
  5529. if (inject) {
  5530. // inject is :any because flow is not smart enough to figure out cached
  5531. var result = Object.create(null);
  5532. var keys = hasSymbol
  5533. ? Reflect.ownKeys(inject)
  5534. : Object.keys(inject);
  5535. for (var i = 0; i < keys.length; i++) {
  5536. var key = keys[i];
  5537. // #6574 in case the inject object is observed...
  5538. if (key === '__ob__') { continue }
  5539. var provideKey = inject[key].from;
  5540. var source = vm;
  5541. while (source) {
  5542. if (source._provided && hasOwn(source._provided, provideKey)) {
  5543. result[key] = source._provided[provideKey];
  5544. break
  5545. }
  5546. source = source.$parent;
  5547. }
  5548. if (!source) {
  5549. if ('default' in inject[key]) {
  5550. var provideDefault = inject[key].default;
  5551. result[key] = typeof provideDefault === 'function'
  5552. ? provideDefault.call(vm)
  5553. : provideDefault;
  5554. } else if (true) {
  5555. warn(("Injection \"" + key + "\" not found"), vm);
  5556. }
  5557. }
  5558. }
  5559. return result
  5560. }
  5561. }
  5562. /* */
  5563. /**
  5564. * Runtime helper for resolving raw children VNodes into a slot object.
  5565. */
  5566. function resolveSlots (
  5567. children,
  5568. context
  5569. ) {
  5570. if (!children || !children.length) {
  5571. return {}
  5572. }
  5573. var slots = {};
  5574. for (var i = 0, l = children.length; i < l; i++) {
  5575. var child = children[i];
  5576. var data = child.data;
  5577. // remove slot attribute if the node is resolved as a Vue slot node
  5578. if (data && data.attrs && data.attrs.slot) {
  5579. delete data.attrs.slot;
  5580. }
  5581. // named slots should only be respected if the vnode was rendered in the
  5582. // same context.
  5583. if ((child.context === context || child.fnContext === context) &&
  5584. data && data.slot != null
  5585. ) {
  5586. var name = data.slot;
  5587. var slot = (slots[name] || (slots[name] = []));
  5588. if (child.tag === 'template') {
  5589. slot.push.apply(slot, child.children || []);
  5590. } else {
  5591. slot.push(child);
  5592. }
  5593. } else {
  5594. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5595. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5596. (slots['page'] || (slots['page'] = [])).push(child);
  5597. }else{
  5598. (slots.default || (slots.default = [])).push(child);
  5599. }
  5600. }
  5601. }
  5602. // ignore slots that contains only whitespace
  5603. for (var name$1 in slots) {
  5604. if (slots[name$1].every(isWhitespace)) {
  5605. delete slots[name$1];
  5606. }
  5607. }
  5608. return slots
  5609. }
  5610. function isWhitespace (node) {
  5611. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5612. }
  5613. /* */
  5614. function normalizeScopedSlots (
  5615. slots,
  5616. normalSlots,
  5617. prevSlots
  5618. ) {
  5619. var res;
  5620. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5621. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5622. var key = slots && slots.$key;
  5623. if (!slots) {
  5624. res = {};
  5625. } else if (slots._normalized) {
  5626. // fast path 1: child component re-render only, parent did not change
  5627. return slots._normalized
  5628. } else if (
  5629. isStable &&
  5630. prevSlots &&
  5631. prevSlots !== emptyObject &&
  5632. key === prevSlots.$key &&
  5633. !hasNormalSlots &&
  5634. !prevSlots.$hasNormal
  5635. ) {
  5636. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5637. // only need to normalize once
  5638. return prevSlots
  5639. } else {
  5640. res = {};
  5641. for (var key$1 in slots) {
  5642. if (slots[key$1] && key$1[0] !== '$') {
  5643. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5644. }
  5645. }
  5646. }
  5647. // expose normal slots on scopedSlots
  5648. for (var key$2 in normalSlots) {
  5649. if (!(key$2 in res)) {
  5650. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5651. }
  5652. }
  5653. // avoriaz seems to mock a non-extensible $scopedSlots object
  5654. // and when that is passed down this would cause an error
  5655. if (slots && Object.isExtensible(slots)) {
  5656. (slots)._normalized = res;
  5657. }
  5658. def(res, '$stable', isStable);
  5659. def(res, '$key', key);
  5660. def(res, '$hasNormal', hasNormalSlots);
  5661. return res
  5662. }
  5663. function normalizeScopedSlot(normalSlots, key, fn) {
  5664. var normalized = function () {
  5665. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5666. res = res && typeof res === 'object' && !Array.isArray(res)
  5667. ? [res] // single vnode
  5668. : normalizeChildren(res);
  5669. return res && (
  5670. res.length === 0 ||
  5671. (res.length === 1 && res[0].isComment) // #9658
  5672. ) ? undefined
  5673. : res
  5674. };
  5675. // this is a slot using the new v-slot syntax without scope. although it is
  5676. // compiled as a scoped slot, render fn users would expect it to be present
  5677. // on this.$slots because the usage is semantically a normal slot.
  5678. if (fn.proxy) {
  5679. Object.defineProperty(normalSlots, key, {
  5680. get: normalized,
  5681. enumerable: true,
  5682. configurable: true
  5683. });
  5684. }
  5685. return normalized
  5686. }
  5687. function proxyNormalSlot(slots, key) {
  5688. return function () { return slots[key]; }
  5689. }
  5690. /* */
  5691. /**
  5692. * Runtime helper for rendering v-for lists.
  5693. */
  5694. function renderList (
  5695. val,
  5696. render
  5697. ) {
  5698. var ret, i, l, keys, key;
  5699. if (Array.isArray(val) || typeof val === 'string') {
  5700. ret = new Array(val.length);
  5701. for (i = 0, l = val.length; i < l; i++) {
  5702. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5703. }
  5704. } else if (typeof val === 'number') {
  5705. ret = new Array(val);
  5706. for (i = 0; i < val; i++) {
  5707. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5708. }
  5709. } else if (isObject(val)) {
  5710. if (hasSymbol && val[Symbol.iterator]) {
  5711. ret = [];
  5712. var iterator = val[Symbol.iterator]();
  5713. var result = iterator.next();
  5714. while (!result.done) {
  5715. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5716. result = iterator.next();
  5717. }
  5718. } else {
  5719. keys = Object.keys(val);
  5720. ret = new Array(keys.length);
  5721. for (i = 0, l = keys.length; i < l; i++) {
  5722. key = keys[i];
  5723. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5724. }
  5725. }
  5726. }
  5727. if (!isDef(ret)) {
  5728. ret = [];
  5729. }
  5730. (ret)._isVList = true;
  5731. return ret
  5732. }
  5733. /* */
  5734. /**
  5735. * Runtime helper for rendering <slot>
  5736. */
  5737. function renderSlot (
  5738. name,
  5739. fallback,
  5740. props,
  5741. bindObject
  5742. ) {
  5743. var scopedSlotFn = this.$scopedSlots[name];
  5744. var nodes;
  5745. if (scopedSlotFn) { // scoped slot
  5746. props = props || {};
  5747. if (bindObject) {
  5748. if ( true && !isObject(bindObject)) {
  5749. warn(
  5750. 'slot v-bind without argument expects an Object',
  5751. this
  5752. );
  5753. }
  5754. props = extend(extend({}, bindObject), props);
  5755. }
  5756. // fixed by xxxxxx app-plus scopedSlot
  5757. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5758. } else {
  5759. nodes = this.$slots[name] || fallback;
  5760. }
  5761. var target = props && props.slot;
  5762. if (target) {
  5763. return this.$createElement('template', { slot: target }, nodes)
  5764. } else {
  5765. return nodes
  5766. }
  5767. }
  5768. /* */
  5769. /**
  5770. * Runtime helper for resolving filters
  5771. */
  5772. function resolveFilter (id) {
  5773. return resolveAsset(this.$options, 'filters', id, true) || identity
  5774. }
  5775. /* */
  5776. function isKeyNotMatch (expect, actual) {
  5777. if (Array.isArray(expect)) {
  5778. return expect.indexOf(actual) === -1
  5779. } else {
  5780. return expect !== actual
  5781. }
  5782. }
  5783. /**
  5784. * Runtime helper for checking keyCodes from config.
  5785. * exposed as Vue.prototype._k
  5786. * passing in eventKeyName as last argument separately for backwards compat
  5787. */
  5788. function checkKeyCodes (
  5789. eventKeyCode,
  5790. key,
  5791. builtInKeyCode,
  5792. eventKeyName,
  5793. builtInKeyName
  5794. ) {
  5795. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5796. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5797. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5798. } else if (mappedKeyCode) {
  5799. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5800. } else if (eventKeyName) {
  5801. return hyphenate(eventKeyName) !== key
  5802. }
  5803. }
  5804. /* */
  5805. /**
  5806. * Runtime helper for merging v-bind="object" into a VNode's data.
  5807. */
  5808. function bindObjectProps (
  5809. data,
  5810. tag,
  5811. value,
  5812. asProp,
  5813. isSync
  5814. ) {
  5815. if (value) {
  5816. if (!isObject(value)) {
  5817. true && warn(
  5818. 'v-bind without argument expects an Object or Array value',
  5819. this
  5820. );
  5821. } else {
  5822. if (Array.isArray(value)) {
  5823. value = toObject(value);
  5824. }
  5825. var hash;
  5826. var loop = function ( key ) {
  5827. if (
  5828. key === 'class' ||
  5829. key === 'style' ||
  5830. isReservedAttribute(key)
  5831. ) {
  5832. hash = data;
  5833. } else {
  5834. var type = data.attrs && data.attrs.type;
  5835. hash = asProp || config.mustUseProp(tag, type, key)
  5836. ? data.domProps || (data.domProps = {})
  5837. : data.attrs || (data.attrs = {});
  5838. }
  5839. var camelizedKey = camelize(key);
  5840. var hyphenatedKey = hyphenate(key);
  5841. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5842. hash[key] = value[key];
  5843. if (isSync) {
  5844. var on = data.on || (data.on = {});
  5845. on[("update:" + key)] = function ($event) {
  5846. value[key] = $event;
  5847. };
  5848. }
  5849. }
  5850. };
  5851. for (var key in value) loop( key );
  5852. }
  5853. }
  5854. return data
  5855. }
  5856. /* */
  5857. /**
  5858. * Runtime helper for rendering static trees.
  5859. */
  5860. function renderStatic (
  5861. index,
  5862. isInFor
  5863. ) {
  5864. var cached = this._staticTrees || (this._staticTrees = []);
  5865. var tree = cached[index];
  5866. // if has already-rendered static tree and not inside v-for,
  5867. // we can reuse the same tree.
  5868. if (tree && !isInFor) {
  5869. return tree
  5870. }
  5871. // otherwise, render a fresh tree.
  5872. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5873. this._renderProxy,
  5874. null,
  5875. this // for render fns generated for functional component templates
  5876. );
  5877. markStatic(tree, ("__static__" + index), false);
  5878. return tree
  5879. }
  5880. /**
  5881. * Runtime helper for v-once.
  5882. * Effectively it means marking the node as static with a unique key.
  5883. */
  5884. function markOnce (
  5885. tree,
  5886. index,
  5887. key
  5888. ) {
  5889. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5890. return tree
  5891. }
  5892. function markStatic (
  5893. tree,
  5894. key,
  5895. isOnce
  5896. ) {
  5897. if (Array.isArray(tree)) {
  5898. for (var i = 0; i < tree.length; i++) {
  5899. if (tree[i] && typeof tree[i] !== 'string') {
  5900. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5901. }
  5902. }
  5903. } else {
  5904. markStaticNode(tree, key, isOnce);
  5905. }
  5906. }
  5907. function markStaticNode (node, key, isOnce) {
  5908. node.isStatic = true;
  5909. node.key = key;
  5910. node.isOnce = isOnce;
  5911. }
  5912. /* */
  5913. function bindObjectListeners (data, value) {
  5914. if (value) {
  5915. if (!isPlainObject(value)) {
  5916. true && warn(
  5917. 'v-on without argument expects an Object value',
  5918. this
  5919. );
  5920. } else {
  5921. var on = data.on = data.on ? extend({}, data.on) : {};
  5922. for (var key in value) {
  5923. var existing = on[key];
  5924. var ours = value[key];
  5925. on[key] = existing ? [].concat(existing, ours) : ours;
  5926. }
  5927. }
  5928. }
  5929. return data
  5930. }
  5931. /* */
  5932. function resolveScopedSlots (
  5933. fns, // see flow/vnode
  5934. res,
  5935. // the following are added in 2.6
  5936. hasDynamicKeys,
  5937. contentHashKey
  5938. ) {
  5939. res = res || { $stable: !hasDynamicKeys };
  5940. for (var i = 0; i < fns.length; i++) {
  5941. var slot = fns[i];
  5942. if (Array.isArray(slot)) {
  5943. resolveScopedSlots(slot, res, hasDynamicKeys);
  5944. } else if (slot) {
  5945. // marker for reverse proxying v-slot without scope on this.$slots
  5946. if (slot.proxy) {
  5947. slot.fn.proxy = true;
  5948. }
  5949. res[slot.key] = slot.fn;
  5950. }
  5951. }
  5952. if (contentHashKey) {
  5953. (res).$key = contentHashKey;
  5954. }
  5955. return res
  5956. }
  5957. /* */
  5958. function bindDynamicKeys (baseObj, values) {
  5959. for (var i = 0; i < values.length; i += 2) {
  5960. var key = values[i];
  5961. if (typeof key === 'string' && key) {
  5962. baseObj[values[i]] = values[i + 1];
  5963. } else if ( true && key !== '' && key !== null) {
  5964. // null is a special value for explicitly removing a binding
  5965. warn(
  5966. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5967. this
  5968. );
  5969. }
  5970. }
  5971. return baseObj
  5972. }
  5973. // helper to dynamically append modifier runtime markers to event names.
  5974. // ensure only append when value is already string, otherwise it will be cast
  5975. // to string and cause the type check to miss.
  5976. function prependModifier (value, symbol) {
  5977. return typeof value === 'string' ? symbol + value : value
  5978. }
  5979. /* */
  5980. function installRenderHelpers (target) {
  5981. target._o = markOnce;
  5982. target._n = toNumber;
  5983. target._s = toString;
  5984. target._l = renderList;
  5985. target._t = renderSlot;
  5986. target._q = looseEqual;
  5987. target._i = looseIndexOf;
  5988. target._m = renderStatic;
  5989. target._f = resolveFilter;
  5990. target._k = checkKeyCodes;
  5991. target._b = bindObjectProps;
  5992. target._v = createTextVNode;
  5993. target._e = createEmptyVNode;
  5994. target._u = resolveScopedSlots;
  5995. target._g = bindObjectListeners;
  5996. target._d = bindDynamicKeys;
  5997. target._p = prependModifier;
  5998. }
  5999. /* */
  6000. function FunctionalRenderContext (
  6001. data,
  6002. props,
  6003. children,
  6004. parent,
  6005. Ctor
  6006. ) {
  6007. var this$1 = this;
  6008. var options = Ctor.options;
  6009. // ensure the createElement function in functional components
  6010. // gets a unique context - this is necessary for correct named slot check
  6011. var contextVm;
  6012. if (hasOwn(parent, '_uid')) {
  6013. contextVm = Object.create(parent);
  6014. // $flow-disable-line
  6015. contextVm._original = parent;
  6016. } else {
  6017. // the context vm passed in is a functional context as well.
  6018. // in this case we want to make sure we are able to get a hold to the
  6019. // real context instance.
  6020. contextVm = parent;
  6021. // $flow-disable-line
  6022. parent = parent._original;
  6023. }
  6024. var isCompiled = isTrue(options._compiled);
  6025. var needNormalization = !isCompiled;
  6026. this.data = data;
  6027. this.props = props;
  6028. this.children = children;
  6029. this.parent = parent;
  6030. this.listeners = data.on || emptyObject;
  6031. this.injections = resolveInject(options.inject, parent);
  6032. this.slots = function () {
  6033. if (!this$1.$slots) {
  6034. normalizeScopedSlots(
  6035. data.scopedSlots,
  6036. this$1.$slots = resolveSlots(children, parent)
  6037. );
  6038. }
  6039. return this$1.$slots
  6040. };
  6041. Object.defineProperty(this, 'scopedSlots', ({
  6042. enumerable: true,
  6043. get: function get () {
  6044. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6045. }
  6046. }));
  6047. // support for compiled functional template
  6048. if (isCompiled) {
  6049. // exposing $options for renderStatic()
  6050. this.$options = options;
  6051. // pre-resolve slots for renderSlot()
  6052. this.$slots = this.slots();
  6053. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6054. }
  6055. if (options._scopeId) {
  6056. this._c = function (a, b, c, d) {
  6057. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6058. if (vnode && !Array.isArray(vnode)) {
  6059. vnode.fnScopeId = options._scopeId;
  6060. vnode.fnContext = parent;
  6061. }
  6062. return vnode
  6063. };
  6064. } else {
  6065. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6066. }
  6067. }
  6068. installRenderHelpers(FunctionalRenderContext.prototype);
  6069. function createFunctionalComponent (
  6070. Ctor,
  6071. propsData,
  6072. data,
  6073. contextVm,
  6074. children
  6075. ) {
  6076. var options = Ctor.options;
  6077. var props = {};
  6078. var propOptions = options.props;
  6079. if (isDef(propOptions)) {
  6080. for (var key in propOptions) {
  6081. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6082. }
  6083. } else {
  6084. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6085. if (isDef(data.props)) { mergeProps(props, data.props); }
  6086. }
  6087. var renderContext = new FunctionalRenderContext(
  6088. data,
  6089. props,
  6090. children,
  6091. contextVm,
  6092. Ctor
  6093. );
  6094. var vnode = options.render.call(null, renderContext._c, renderContext);
  6095. if (vnode instanceof VNode) {
  6096. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6097. } else if (Array.isArray(vnode)) {
  6098. var vnodes = normalizeChildren(vnode) || [];
  6099. var res = new Array(vnodes.length);
  6100. for (var i = 0; i < vnodes.length; i++) {
  6101. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6102. }
  6103. return res
  6104. }
  6105. }
  6106. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6107. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6108. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6109. // that should not be matched to match.
  6110. var clone = cloneVNode(vnode);
  6111. clone.fnContext = contextVm;
  6112. clone.fnOptions = options;
  6113. if (true) {
  6114. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6115. }
  6116. if (data.slot) {
  6117. (clone.data || (clone.data = {})).slot = data.slot;
  6118. }
  6119. return clone
  6120. }
  6121. function mergeProps (to, from) {
  6122. for (var key in from) {
  6123. to[camelize(key)] = from[key];
  6124. }
  6125. }
  6126. /* */
  6127. /* */
  6128. /* */
  6129. /* */
  6130. // inline hooks to be invoked on component VNodes during patch
  6131. var componentVNodeHooks = {
  6132. init: function init (vnode, hydrating) {
  6133. if (
  6134. vnode.componentInstance &&
  6135. !vnode.componentInstance._isDestroyed &&
  6136. vnode.data.keepAlive
  6137. ) {
  6138. // kept-alive components, treat as a patch
  6139. var mountedNode = vnode; // work around flow
  6140. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6141. } else {
  6142. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6143. vnode,
  6144. activeInstance
  6145. );
  6146. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6147. }
  6148. },
  6149. prepatch: function prepatch (oldVnode, vnode) {
  6150. var options = vnode.componentOptions;
  6151. var child = vnode.componentInstance = oldVnode.componentInstance;
  6152. updateChildComponent(
  6153. child,
  6154. options.propsData, // updated props
  6155. options.listeners, // updated listeners
  6156. vnode, // new parent vnode
  6157. options.children // new children
  6158. );
  6159. },
  6160. insert: function insert (vnode) {
  6161. var context = vnode.context;
  6162. var componentInstance = vnode.componentInstance;
  6163. if (!componentInstance._isMounted) {
  6164. callHook(componentInstance, 'onServiceCreated');
  6165. callHook(componentInstance, 'onServiceAttached');
  6166. componentInstance._isMounted = true;
  6167. callHook(componentInstance, 'mounted');
  6168. }
  6169. if (vnode.data.keepAlive) {
  6170. if (context._isMounted) {
  6171. // vue-router#1212
  6172. // During updates, a kept-alive component's child components may
  6173. // change, so directly walking the tree here may call activated hooks
  6174. // on incorrect children. Instead we push them into a queue which will
  6175. // be processed after the whole patch process ended.
  6176. queueActivatedComponent(componentInstance);
  6177. } else {
  6178. activateChildComponent(componentInstance, true /* direct */);
  6179. }
  6180. }
  6181. },
  6182. destroy: function destroy (vnode) {
  6183. var componentInstance = vnode.componentInstance;
  6184. if (!componentInstance._isDestroyed) {
  6185. if (!vnode.data.keepAlive) {
  6186. componentInstance.$destroy();
  6187. } else {
  6188. deactivateChildComponent(componentInstance, true /* direct */);
  6189. }
  6190. }
  6191. }
  6192. };
  6193. var hooksToMerge = Object.keys(componentVNodeHooks);
  6194. function createComponent (
  6195. Ctor,
  6196. data,
  6197. context,
  6198. children,
  6199. tag
  6200. ) {
  6201. if (isUndef(Ctor)) {
  6202. return
  6203. }
  6204. var baseCtor = context.$options._base;
  6205. // plain options object: turn it into a constructor
  6206. if (isObject(Ctor)) {
  6207. Ctor = baseCtor.extend(Ctor);
  6208. }
  6209. // if at this stage it's not a constructor or an async component factory,
  6210. // reject.
  6211. if (typeof Ctor !== 'function') {
  6212. if (true) {
  6213. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6214. }
  6215. return
  6216. }
  6217. // async component
  6218. var asyncFactory;
  6219. if (isUndef(Ctor.cid)) {
  6220. asyncFactory = Ctor;
  6221. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6222. if (Ctor === undefined) {
  6223. // return a placeholder node for async component, which is rendered
  6224. // as a comment node but preserves all the raw information for the node.
  6225. // the information will be used for async server-rendering and hydration.
  6226. return createAsyncPlaceholder(
  6227. asyncFactory,
  6228. data,
  6229. context,
  6230. children,
  6231. tag
  6232. )
  6233. }
  6234. }
  6235. data = data || {};
  6236. // resolve constructor options in case global mixins are applied after
  6237. // component constructor creation
  6238. resolveConstructorOptions(Ctor);
  6239. // transform component v-model data into props & events
  6240. if (isDef(data.model)) {
  6241. transformModel(Ctor.options, data);
  6242. }
  6243. // extract props
  6244. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6245. // functional component
  6246. if (isTrue(Ctor.options.functional)) {
  6247. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6248. }
  6249. // extract listeners, since these needs to be treated as
  6250. // child component listeners instead of DOM listeners
  6251. var listeners = data.on;
  6252. // replace with listeners with .native modifier
  6253. // so it gets processed during parent component patch.
  6254. data.on = data.nativeOn;
  6255. if (isTrue(Ctor.options.abstract)) {
  6256. // abstract components do not keep anything
  6257. // other than props & listeners & slot
  6258. // work around flow
  6259. var slot = data.slot;
  6260. data = {};
  6261. if (slot) {
  6262. data.slot = slot;
  6263. }
  6264. }
  6265. // install component management hooks onto the placeholder node
  6266. installComponentHooks(data);
  6267. // return a placeholder vnode
  6268. var name = Ctor.options.name || tag;
  6269. var vnode = new VNode(
  6270. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6271. data, undefined, undefined, undefined, context,
  6272. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6273. asyncFactory
  6274. );
  6275. return vnode
  6276. }
  6277. function createComponentInstanceForVnode (
  6278. vnode, // we know it's MountedComponentVNode but flow doesn't
  6279. parent // activeInstance in lifecycle state
  6280. ) {
  6281. var options = {
  6282. _isComponent: true,
  6283. _parentVnode: vnode,
  6284. parent: parent
  6285. };
  6286. // check inline-template render functions
  6287. var inlineTemplate = vnode.data.inlineTemplate;
  6288. if (isDef(inlineTemplate)) {
  6289. options.render = inlineTemplate.render;
  6290. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6291. }
  6292. return new vnode.componentOptions.Ctor(options)
  6293. }
  6294. function installComponentHooks (data) {
  6295. var hooks = data.hook || (data.hook = {});
  6296. for (var i = 0; i < hooksToMerge.length; i++) {
  6297. var key = hooksToMerge[i];
  6298. var existing = hooks[key];
  6299. var toMerge = componentVNodeHooks[key];
  6300. if (existing !== toMerge && !(existing && existing._merged)) {
  6301. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6302. }
  6303. }
  6304. }
  6305. function mergeHook$1 (f1, f2) {
  6306. var merged = function (a, b) {
  6307. // flow complains about extra args which is why we use any
  6308. f1(a, b);
  6309. f2(a, b);
  6310. };
  6311. merged._merged = true;
  6312. return merged
  6313. }
  6314. // transform component v-model info (value and callback) into
  6315. // prop and event handler respectively.
  6316. function transformModel (options, data) {
  6317. var prop = (options.model && options.model.prop) || 'value';
  6318. var event = (options.model && options.model.event) || 'input'
  6319. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6320. var on = data.on || (data.on = {});
  6321. var existing = on[event];
  6322. var callback = data.model.callback;
  6323. if (isDef(existing)) {
  6324. if (
  6325. Array.isArray(existing)
  6326. ? existing.indexOf(callback) === -1
  6327. : existing !== callback
  6328. ) {
  6329. on[event] = [callback].concat(existing);
  6330. }
  6331. } else {
  6332. on[event] = callback;
  6333. }
  6334. }
  6335. /* */
  6336. var SIMPLE_NORMALIZE = 1;
  6337. var ALWAYS_NORMALIZE = 2;
  6338. // wrapper function for providing a more flexible interface
  6339. // without getting yelled at by flow
  6340. function createElement (
  6341. context,
  6342. tag,
  6343. data,
  6344. children,
  6345. normalizationType,
  6346. alwaysNormalize
  6347. ) {
  6348. if (Array.isArray(data) || isPrimitive(data)) {
  6349. normalizationType = children;
  6350. children = data;
  6351. data = undefined;
  6352. }
  6353. if (isTrue(alwaysNormalize)) {
  6354. normalizationType = ALWAYS_NORMALIZE;
  6355. }
  6356. return _createElement(context, tag, data, children, normalizationType)
  6357. }
  6358. function _createElement (
  6359. context,
  6360. tag,
  6361. data,
  6362. children,
  6363. normalizationType
  6364. ) {
  6365. if (isDef(data) && isDef((data).__ob__)) {
  6366. true && warn(
  6367. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6368. 'Always create fresh vnode data objects in each render!',
  6369. context
  6370. );
  6371. return createEmptyVNode()
  6372. }
  6373. // object syntax in v-bind
  6374. if (isDef(data) && isDef(data.is)) {
  6375. tag = data.is;
  6376. }
  6377. if (!tag) {
  6378. // in case of component :is set to falsy value
  6379. return createEmptyVNode()
  6380. }
  6381. // warn against non-primitive key
  6382. if ( true &&
  6383. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6384. ) {
  6385. {
  6386. warn(
  6387. 'Avoid using non-primitive value as key, ' +
  6388. 'use string/number value instead.',
  6389. context
  6390. );
  6391. }
  6392. }
  6393. // support single function children as default scoped slot
  6394. if (Array.isArray(children) &&
  6395. typeof children[0] === 'function'
  6396. ) {
  6397. data = data || {};
  6398. data.scopedSlots = { default: children[0] };
  6399. children.length = 0;
  6400. }
  6401. if (normalizationType === ALWAYS_NORMALIZE) {
  6402. children = normalizeChildren(children);
  6403. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6404. children = simpleNormalizeChildren(children);
  6405. }
  6406. var vnode, ns;
  6407. if (typeof tag === 'string') {
  6408. var Ctor;
  6409. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6410. if (config.isReservedTag(tag)) {
  6411. // platform built-in elements
  6412. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6413. warn(
  6414. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6415. context
  6416. );
  6417. }
  6418. vnode = new VNode(
  6419. config.parsePlatformTagName(tag), data, children,
  6420. undefined, undefined, context
  6421. );
  6422. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6423. // component
  6424. vnode = createComponent(Ctor, data, context, children, tag);
  6425. } else {
  6426. // unknown or unlisted namespaced elements
  6427. // check at runtime because it may get assigned a namespace when its
  6428. // parent normalizes children
  6429. vnode = new VNode(
  6430. tag, data, children,
  6431. undefined, undefined, context
  6432. );
  6433. }
  6434. } else {
  6435. // direct component options / constructor
  6436. vnode = createComponent(tag, data, context, children);
  6437. }
  6438. if (Array.isArray(vnode)) {
  6439. return vnode
  6440. } else if (isDef(vnode)) {
  6441. if (isDef(ns)) { applyNS(vnode, ns); }
  6442. if (isDef(data)) { registerDeepBindings(data); }
  6443. return vnode
  6444. } else {
  6445. return createEmptyVNode()
  6446. }
  6447. }
  6448. function applyNS (vnode, ns, force) {
  6449. vnode.ns = ns;
  6450. if (vnode.tag === 'foreignObject') {
  6451. // use default namespace inside foreignObject
  6452. ns = undefined;
  6453. force = true;
  6454. }
  6455. if (isDef(vnode.children)) {
  6456. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6457. var child = vnode.children[i];
  6458. if (isDef(child.tag) && (
  6459. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6460. applyNS(child, ns, force);
  6461. }
  6462. }
  6463. }
  6464. }
  6465. // ref #5318
  6466. // necessary to ensure parent re-render when deep bindings like :style and
  6467. // :class are used on slot nodes
  6468. function registerDeepBindings (data) {
  6469. if (isObject(data.style)) {
  6470. traverse(data.style);
  6471. }
  6472. if (isObject(data.class)) {
  6473. traverse(data.class);
  6474. }
  6475. }
  6476. /* */
  6477. function initRender (vm) {
  6478. vm._vnode = null; // the root of the child tree
  6479. vm._staticTrees = null; // v-once cached trees
  6480. var options = vm.$options;
  6481. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6482. var renderContext = parentVnode && parentVnode.context;
  6483. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6484. vm.$scopedSlots = emptyObject;
  6485. // bind the createElement fn to this instance
  6486. // so that we get proper render context inside it.
  6487. // args order: tag, data, children, normalizationType, alwaysNormalize
  6488. // internal version is used by render functions compiled from templates
  6489. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6490. // normalization is always applied for the public version, used in
  6491. // user-written render functions.
  6492. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6493. // $attrs & $listeners are exposed for easier HOC creation.
  6494. // they need to be reactive so that HOCs using them are always updated
  6495. var parentData = parentVnode && parentVnode.data;
  6496. /* istanbul ignore else */
  6497. if (true) {
  6498. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6499. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6500. }, true);
  6501. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6502. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6503. }, true);
  6504. } else {}
  6505. }
  6506. var currentRenderingInstance = null;
  6507. function renderMixin (Vue) {
  6508. // install runtime convenience helpers
  6509. installRenderHelpers(Vue.prototype);
  6510. Vue.prototype.$nextTick = function (fn) {
  6511. return nextTick(fn, this)
  6512. };
  6513. Vue.prototype._render = function () {
  6514. var vm = this;
  6515. var ref = vm.$options;
  6516. var render = ref.render;
  6517. var _parentVnode = ref._parentVnode;
  6518. if (_parentVnode) {
  6519. vm.$scopedSlots = normalizeScopedSlots(
  6520. _parentVnode.data.scopedSlots,
  6521. vm.$slots,
  6522. vm.$scopedSlots
  6523. );
  6524. }
  6525. // set parent vnode. this allows render functions to have access
  6526. // to the data on the placeholder node.
  6527. vm.$vnode = _parentVnode;
  6528. // render self
  6529. var vnode;
  6530. try {
  6531. // There's no need to maintain a stack because all render fns are called
  6532. // separately from one another. Nested component's render fns are called
  6533. // when parent component is patched.
  6534. currentRenderingInstance = vm;
  6535. vnode = render.call(vm._renderProxy, vm.$createElement);
  6536. } catch (e) {
  6537. handleError(e, vm, "render");
  6538. // return error render result,
  6539. // or previous vnode to prevent render error causing blank component
  6540. /* istanbul ignore else */
  6541. if ( true && vm.$options.renderError) {
  6542. try {
  6543. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6544. } catch (e) {
  6545. handleError(e, vm, "renderError");
  6546. vnode = vm._vnode;
  6547. }
  6548. } else {
  6549. vnode = vm._vnode;
  6550. }
  6551. } finally {
  6552. currentRenderingInstance = null;
  6553. }
  6554. // if the returned array contains only a single node, allow it
  6555. if (Array.isArray(vnode) && vnode.length === 1) {
  6556. vnode = vnode[0];
  6557. }
  6558. // return empty vnode in case the render function errored out
  6559. if (!(vnode instanceof VNode)) {
  6560. if ( true && Array.isArray(vnode)) {
  6561. warn(
  6562. 'Multiple root nodes returned from render function. Render function ' +
  6563. 'should return a single root node.',
  6564. vm
  6565. );
  6566. }
  6567. vnode = createEmptyVNode();
  6568. }
  6569. // set parent
  6570. vnode.parent = _parentVnode;
  6571. return vnode
  6572. };
  6573. }
  6574. /* */
  6575. function ensureCtor (comp, base) {
  6576. if (
  6577. comp.__esModule ||
  6578. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6579. ) {
  6580. comp = comp.default;
  6581. }
  6582. return isObject(comp)
  6583. ? base.extend(comp)
  6584. : comp
  6585. }
  6586. function createAsyncPlaceholder (
  6587. factory,
  6588. data,
  6589. context,
  6590. children,
  6591. tag
  6592. ) {
  6593. var node = createEmptyVNode();
  6594. node.asyncFactory = factory;
  6595. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6596. return node
  6597. }
  6598. function resolveAsyncComponent (
  6599. factory,
  6600. baseCtor
  6601. ) {
  6602. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6603. return factory.errorComp
  6604. }
  6605. if (isDef(factory.resolved)) {
  6606. return factory.resolved
  6607. }
  6608. var owner = currentRenderingInstance;
  6609. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6610. // already pending
  6611. factory.owners.push(owner);
  6612. }
  6613. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6614. return factory.loadingComp
  6615. }
  6616. if (owner && !isDef(factory.owners)) {
  6617. var owners = factory.owners = [owner];
  6618. var sync = true;
  6619. var timerLoading = null;
  6620. var timerTimeout = null
  6621. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6622. var forceRender = function (renderCompleted) {
  6623. for (var i = 0, l = owners.length; i < l; i++) {
  6624. (owners[i]).$forceUpdate();
  6625. }
  6626. if (renderCompleted) {
  6627. owners.length = 0;
  6628. if (timerLoading !== null) {
  6629. clearTimeout(timerLoading);
  6630. timerLoading = null;
  6631. }
  6632. if (timerTimeout !== null) {
  6633. clearTimeout(timerTimeout);
  6634. timerTimeout = null;
  6635. }
  6636. }
  6637. };
  6638. var resolve = once(function (res) {
  6639. // cache resolved
  6640. factory.resolved = ensureCtor(res, baseCtor);
  6641. // invoke callbacks only if this is not a synchronous resolve
  6642. // (async resolves are shimmed as synchronous during SSR)
  6643. if (!sync) {
  6644. forceRender(true);
  6645. } else {
  6646. owners.length = 0;
  6647. }
  6648. });
  6649. var reject = once(function (reason) {
  6650. true && warn(
  6651. "Failed to resolve async component: " + (String(factory)) +
  6652. (reason ? ("\nReason: " + reason) : '')
  6653. );
  6654. if (isDef(factory.errorComp)) {
  6655. factory.error = true;
  6656. forceRender(true);
  6657. }
  6658. });
  6659. var res = factory(resolve, reject);
  6660. if (isObject(res)) {
  6661. if (isPromise(res)) {
  6662. // () => Promise
  6663. if (isUndef(factory.resolved)) {
  6664. res.then(resolve, reject);
  6665. }
  6666. } else if (isPromise(res.component)) {
  6667. res.component.then(resolve, reject);
  6668. if (isDef(res.error)) {
  6669. factory.errorComp = ensureCtor(res.error, baseCtor);
  6670. }
  6671. if (isDef(res.loading)) {
  6672. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6673. if (res.delay === 0) {
  6674. factory.loading = true;
  6675. } else {
  6676. timerLoading = setTimeout(function () {
  6677. timerLoading = null;
  6678. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6679. factory.loading = true;
  6680. forceRender(false);
  6681. }
  6682. }, res.delay || 200);
  6683. }
  6684. }
  6685. if (isDef(res.timeout)) {
  6686. timerTimeout = setTimeout(function () {
  6687. timerTimeout = null;
  6688. if (isUndef(factory.resolved)) {
  6689. reject(
  6690. true
  6691. ? ("timeout (" + (res.timeout) + "ms)")
  6692. : undefined
  6693. );
  6694. }
  6695. }, res.timeout);
  6696. }
  6697. }
  6698. }
  6699. sync = false;
  6700. // return in case resolved synchronously
  6701. return factory.loading
  6702. ? factory.loadingComp
  6703. : factory.resolved
  6704. }
  6705. }
  6706. /* */
  6707. function isAsyncPlaceholder (node) {
  6708. return node.isComment && node.asyncFactory
  6709. }
  6710. /* */
  6711. function getFirstComponentChild (children) {
  6712. if (Array.isArray(children)) {
  6713. for (var i = 0; i < children.length; i++) {
  6714. var c = children[i];
  6715. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6716. return c
  6717. }
  6718. }
  6719. }
  6720. }
  6721. /* */
  6722. /* */
  6723. function initEvents (vm) {
  6724. vm._events = Object.create(null);
  6725. vm._hasHookEvent = false;
  6726. // init parent attached events
  6727. var listeners = vm.$options._parentListeners;
  6728. if (listeners) {
  6729. updateComponentListeners(vm, listeners);
  6730. }
  6731. }
  6732. var target;
  6733. function add (event, fn) {
  6734. target.$on(event, fn);
  6735. }
  6736. function remove$1 (event, fn) {
  6737. target.$off(event, fn);
  6738. }
  6739. function createOnceHandler (event, fn) {
  6740. var _target = target;
  6741. return function onceHandler () {
  6742. var res = fn.apply(null, arguments);
  6743. if (res !== null) {
  6744. _target.$off(event, onceHandler);
  6745. }
  6746. }
  6747. }
  6748. function updateComponentListeners (
  6749. vm,
  6750. listeners,
  6751. oldListeners
  6752. ) {
  6753. target = vm;
  6754. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6755. target = undefined;
  6756. }
  6757. function eventsMixin (Vue) {
  6758. var hookRE = /^hook:/;
  6759. Vue.prototype.$on = function (event, fn) {
  6760. var vm = this;
  6761. if (Array.isArray(event)) {
  6762. for (var i = 0, l = event.length; i < l; i++) {
  6763. vm.$on(event[i], fn);
  6764. }
  6765. } else {
  6766. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6767. // optimize hook:event cost by using a boolean flag marked at registration
  6768. // instead of a hash lookup
  6769. if (hookRE.test(event)) {
  6770. vm._hasHookEvent = true;
  6771. }
  6772. }
  6773. return vm
  6774. };
  6775. Vue.prototype.$once = function (event, fn) {
  6776. var vm = this;
  6777. function on () {
  6778. vm.$off(event, on);
  6779. fn.apply(vm, arguments);
  6780. }
  6781. on.fn = fn;
  6782. vm.$on(event, on);
  6783. return vm
  6784. };
  6785. Vue.prototype.$off = function (event, fn) {
  6786. var vm = this;
  6787. // all
  6788. if (!arguments.length) {
  6789. vm._events = Object.create(null);
  6790. return vm
  6791. }
  6792. // array of events
  6793. if (Array.isArray(event)) {
  6794. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6795. vm.$off(event[i$1], fn);
  6796. }
  6797. return vm
  6798. }
  6799. // specific event
  6800. var cbs = vm._events[event];
  6801. if (!cbs) {
  6802. return vm
  6803. }
  6804. if (!fn) {
  6805. vm._events[event] = null;
  6806. return vm
  6807. }
  6808. // specific handler
  6809. var cb;
  6810. var i = cbs.length;
  6811. while (i--) {
  6812. cb = cbs[i];
  6813. if (cb === fn || cb.fn === fn) {
  6814. cbs.splice(i, 1);
  6815. break
  6816. }
  6817. }
  6818. return vm
  6819. };
  6820. Vue.prototype.$emit = function (event) {
  6821. var vm = this;
  6822. if (true) {
  6823. var lowerCaseEvent = event.toLowerCase();
  6824. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6825. tip(
  6826. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6827. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6828. "Note that HTML attributes are case-insensitive and you cannot use " +
  6829. "v-on to listen to camelCase events when using in-DOM templates. " +
  6830. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6831. );
  6832. }
  6833. }
  6834. var cbs = vm._events[event];
  6835. if (cbs) {
  6836. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6837. var args = toArray(arguments, 1);
  6838. var info = "event handler for \"" + event + "\"";
  6839. for (var i = 0, l = cbs.length; i < l; i++) {
  6840. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6841. }
  6842. }
  6843. return vm
  6844. };
  6845. }
  6846. /* */
  6847. var activeInstance = null;
  6848. var isUpdatingChildComponent = false;
  6849. function setActiveInstance(vm) {
  6850. var prevActiveInstance = activeInstance;
  6851. activeInstance = vm;
  6852. return function () {
  6853. activeInstance = prevActiveInstance;
  6854. }
  6855. }
  6856. function initLifecycle (vm) {
  6857. var options = vm.$options;
  6858. // locate first non-abstract parent
  6859. var parent = options.parent;
  6860. if (parent && !options.abstract) {
  6861. while (parent.$options.abstract && parent.$parent) {
  6862. parent = parent.$parent;
  6863. }
  6864. parent.$children.push(vm);
  6865. }
  6866. vm.$parent = parent;
  6867. vm.$root = parent ? parent.$root : vm;
  6868. vm.$children = [];
  6869. vm.$refs = {};
  6870. vm._watcher = null;
  6871. vm._inactive = null;
  6872. vm._directInactive = false;
  6873. vm._isMounted = false;
  6874. vm._isDestroyed = false;
  6875. vm._isBeingDestroyed = false;
  6876. }
  6877. function lifecycleMixin (Vue) {
  6878. Vue.prototype._update = function (vnode, hydrating) {
  6879. var vm = this;
  6880. var prevEl = vm.$el;
  6881. var prevVnode = vm._vnode;
  6882. var restoreActiveInstance = setActiveInstance(vm);
  6883. vm._vnode = vnode;
  6884. // Vue.prototype.__patch__ is injected in entry points
  6885. // based on the rendering backend used.
  6886. if (!prevVnode) {
  6887. // initial render
  6888. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6889. } else {
  6890. // updates
  6891. vm.$el = vm.__patch__(prevVnode, vnode);
  6892. }
  6893. restoreActiveInstance();
  6894. // update __vue__ reference
  6895. if (prevEl) {
  6896. prevEl.__vue__ = null;
  6897. }
  6898. if (vm.$el) {
  6899. vm.$el.__vue__ = vm;
  6900. }
  6901. // if parent is an HOC, update its $el as well
  6902. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6903. vm.$parent.$el = vm.$el;
  6904. }
  6905. // updated hook is called by the scheduler to ensure that children are
  6906. // updated in a parent's updated hook.
  6907. };
  6908. Vue.prototype.$forceUpdate = function () {
  6909. var vm = this;
  6910. if (vm._watcher) {
  6911. vm._watcher.update();
  6912. }
  6913. };
  6914. Vue.prototype.$destroy = function () {
  6915. var vm = this;
  6916. if (vm._isBeingDestroyed) {
  6917. return
  6918. }
  6919. callHook(vm, 'beforeDestroy');
  6920. vm._isBeingDestroyed = true;
  6921. // remove self from parent
  6922. var parent = vm.$parent;
  6923. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6924. remove(parent.$children, vm);
  6925. }
  6926. // teardown watchers
  6927. if (vm._watcher) {
  6928. vm._watcher.teardown();
  6929. }
  6930. var i = vm._watchers.length;
  6931. while (i--) {
  6932. vm._watchers[i].teardown();
  6933. }
  6934. // remove reference from data ob
  6935. // frozen object may not have observer.
  6936. if (vm._data.__ob__) {
  6937. vm._data.__ob__.vmCount--;
  6938. }
  6939. // call the last hook...
  6940. vm._isDestroyed = true;
  6941. // invoke destroy hooks on current rendered tree
  6942. vm.__patch__(vm._vnode, null);
  6943. // fire destroyed hook
  6944. callHook(vm, 'destroyed');
  6945. // turn off all instance listeners.
  6946. vm.$off();
  6947. // remove __vue__ reference
  6948. if (vm.$el) {
  6949. vm.$el.__vue__ = null;
  6950. }
  6951. // release circular reference (#6759)
  6952. if (vm.$vnode) {
  6953. vm.$vnode.parent = null;
  6954. }
  6955. };
  6956. }
  6957. function updateChildComponent (
  6958. vm,
  6959. propsData,
  6960. listeners,
  6961. parentVnode,
  6962. renderChildren
  6963. ) {
  6964. if (true) {
  6965. isUpdatingChildComponent = true;
  6966. }
  6967. // determine whether component has slot children
  6968. // we need to do this before overwriting $options._renderChildren.
  6969. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6970. // dynamic slot names). Static scoped slots compiled from template has the
  6971. // "$stable" marker.
  6972. var newScopedSlots = parentVnode.data.scopedSlots;
  6973. var oldScopedSlots = vm.$scopedSlots;
  6974. var hasDynamicScopedSlot = !!(
  6975. (newScopedSlots && !newScopedSlots.$stable) ||
  6976. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6977. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6978. );
  6979. // Any static slot children from the parent may have changed during parent's
  6980. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6981. // update is necessary to ensure correctness.
  6982. var needsForceUpdate = !!(
  6983. renderChildren || // has new static slots
  6984. vm.$options._renderChildren || // has old static slots
  6985. hasDynamicScopedSlot
  6986. );
  6987. vm.$options._parentVnode = parentVnode;
  6988. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6989. if (vm._vnode) { // update child tree's parent
  6990. vm._vnode.parent = parentVnode;
  6991. }
  6992. vm.$options._renderChildren = renderChildren;
  6993. // update $attrs and $listeners hash
  6994. // these are also reactive so they may trigger child update if the child
  6995. // used them during render
  6996. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6997. vm.$listeners = listeners || emptyObject;
  6998. // update props
  6999. if (propsData && vm.$options.props) {
  7000. toggleObserving(false);
  7001. var props = vm._props;
  7002. var propKeys = vm.$options._propKeys || [];
  7003. for (var i = 0; i < propKeys.length; i++) {
  7004. var key = propKeys[i];
  7005. var propOptions = vm.$options.props; // wtf flow?
  7006. props[key] = validateProp(key, propOptions, propsData, vm);
  7007. }
  7008. toggleObserving(true);
  7009. // keep a copy of raw propsData
  7010. vm.$options.propsData = propsData;
  7011. }
  7012. // fixed by xxxxxx update properties(mp runtime)
  7013. vm._$updateProperties && vm._$updateProperties(vm);
  7014. // update listeners
  7015. listeners = listeners || emptyObject;
  7016. var oldListeners = vm.$options._parentListeners;
  7017. vm.$options._parentListeners = listeners;
  7018. updateComponentListeners(vm, listeners, oldListeners);
  7019. // resolve slots + force update if has children
  7020. if (needsForceUpdate) {
  7021. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7022. vm.$forceUpdate();
  7023. }
  7024. if (true) {
  7025. isUpdatingChildComponent = false;
  7026. }
  7027. }
  7028. function isInInactiveTree (vm) {
  7029. while (vm && (vm = vm.$parent)) {
  7030. if (vm._inactive) { return true }
  7031. }
  7032. return false
  7033. }
  7034. function activateChildComponent (vm, direct) {
  7035. if (direct) {
  7036. vm._directInactive = false;
  7037. if (isInInactiveTree(vm)) {
  7038. return
  7039. }
  7040. } else if (vm._directInactive) {
  7041. return
  7042. }
  7043. if (vm._inactive || vm._inactive === null) {
  7044. vm._inactive = false;
  7045. for (var i = 0; i < vm.$children.length; i++) {
  7046. activateChildComponent(vm.$children[i]);
  7047. }
  7048. callHook(vm, 'activated');
  7049. }
  7050. }
  7051. function deactivateChildComponent (vm, direct) {
  7052. if (direct) {
  7053. vm._directInactive = true;
  7054. if (isInInactiveTree(vm)) {
  7055. return
  7056. }
  7057. }
  7058. if (!vm._inactive) {
  7059. vm._inactive = true;
  7060. for (var i = 0; i < vm.$children.length; i++) {
  7061. deactivateChildComponent(vm.$children[i]);
  7062. }
  7063. callHook(vm, 'deactivated');
  7064. }
  7065. }
  7066. function callHook (vm, hook) {
  7067. // #7573 disable dep collection when invoking lifecycle hooks
  7068. pushTarget();
  7069. var handlers = vm.$options[hook];
  7070. var info = hook + " hook";
  7071. if (handlers) {
  7072. for (var i = 0, j = handlers.length; i < j; i++) {
  7073. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7074. }
  7075. }
  7076. if (vm._hasHookEvent) {
  7077. vm.$emit('hook:' + hook);
  7078. }
  7079. popTarget();
  7080. }
  7081. /* */
  7082. var MAX_UPDATE_COUNT = 100;
  7083. var queue = [];
  7084. var activatedChildren = [];
  7085. var has = {};
  7086. var circular = {};
  7087. var waiting = false;
  7088. var flushing = false;
  7089. var index = 0;
  7090. /**
  7091. * Reset the scheduler's state.
  7092. */
  7093. function resetSchedulerState () {
  7094. index = queue.length = activatedChildren.length = 0;
  7095. has = {};
  7096. if (true) {
  7097. circular = {};
  7098. }
  7099. waiting = flushing = false;
  7100. }
  7101. // Async edge case #6566 requires saving the timestamp when event listeners are
  7102. // attached. However, calling performance.now() has a perf overhead especially
  7103. // if the page has thousands of event listeners. Instead, we take a timestamp
  7104. // every time the scheduler flushes and use that for all event listeners
  7105. // attached during that flush.
  7106. var currentFlushTimestamp = 0;
  7107. // Async edge case fix requires storing an event listener's attach timestamp.
  7108. var getNow = Date.now;
  7109. // Determine what event timestamp the browser is using. Annoyingly, the
  7110. // timestamp can either be hi-res (relative to page load) or low-res
  7111. // (relative to UNIX epoch), so in order to compare time we have to use the
  7112. // same timestamp type when saving the flush timestamp.
  7113. // All IE versions use low-res event timestamps, and have problematic clock
  7114. // implementations (#9632)
  7115. if (inBrowser && !isIE) {
  7116. var performance = window.performance;
  7117. if (
  7118. performance &&
  7119. typeof performance.now === 'function' &&
  7120. getNow() > document.createEvent('Event').timeStamp
  7121. ) {
  7122. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7123. // smaller than it, it means the event is using a hi-res timestamp,
  7124. // and we need to use the hi-res version for event listener timestamps as
  7125. // well.
  7126. getNow = function () { return performance.now(); };
  7127. }
  7128. }
  7129. /**
  7130. * Flush both queues and run the watchers.
  7131. */
  7132. function flushSchedulerQueue () {
  7133. currentFlushTimestamp = getNow();
  7134. flushing = true;
  7135. var watcher, id;
  7136. // Sort queue before flush.
  7137. // This ensures that:
  7138. // 1. Components are updated from parent to child. (because parent is always
  7139. // created before the child)
  7140. // 2. A component's user watchers are run before its render watcher (because
  7141. // user watchers are created before the render watcher)
  7142. // 3. If a component is destroyed during a parent component's watcher run,
  7143. // its watchers can be skipped.
  7144. queue.sort(function (a, b) { return a.id - b.id; });
  7145. // do not cache length because more watchers might be pushed
  7146. // as we run existing watchers
  7147. for (index = 0; index < queue.length; index++) {
  7148. watcher = queue[index];
  7149. if (watcher.before) {
  7150. watcher.before();
  7151. }
  7152. id = watcher.id;
  7153. has[id] = null;
  7154. watcher.run();
  7155. // in dev build, check and stop circular updates.
  7156. if ( true && has[id] != null) {
  7157. circular[id] = (circular[id] || 0) + 1;
  7158. if (circular[id] > MAX_UPDATE_COUNT) {
  7159. warn(
  7160. 'You may have an infinite update loop ' + (
  7161. watcher.user
  7162. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7163. : "in a component render function."
  7164. ),
  7165. watcher.vm
  7166. );
  7167. break
  7168. }
  7169. }
  7170. }
  7171. // keep copies of post queues before resetting state
  7172. var activatedQueue = activatedChildren.slice();
  7173. var updatedQueue = queue.slice();
  7174. resetSchedulerState();
  7175. // call component updated and activated hooks
  7176. callActivatedHooks(activatedQueue);
  7177. callUpdatedHooks(updatedQueue);
  7178. // devtool hook
  7179. /* istanbul ignore if */
  7180. if (devtools && config.devtools) {
  7181. devtools.emit('flush');
  7182. }
  7183. }
  7184. function callUpdatedHooks (queue) {
  7185. var i = queue.length;
  7186. while (i--) {
  7187. var watcher = queue[i];
  7188. var vm = watcher.vm;
  7189. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7190. callHook(vm, 'updated');
  7191. }
  7192. }
  7193. }
  7194. /**
  7195. * Queue a kept-alive component that was activated during patch.
  7196. * The queue will be processed after the entire tree has been patched.
  7197. */
  7198. function queueActivatedComponent (vm) {
  7199. // setting _inactive to false here so that a render function can
  7200. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7201. vm._inactive = false;
  7202. activatedChildren.push(vm);
  7203. }
  7204. function callActivatedHooks (queue) {
  7205. for (var i = 0; i < queue.length; i++) {
  7206. queue[i]._inactive = true;
  7207. activateChildComponent(queue[i], true /* true */);
  7208. }
  7209. }
  7210. /**
  7211. * Push a watcher into the watcher queue.
  7212. * Jobs with duplicate IDs will be skipped unless it's
  7213. * pushed when the queue is being flushed.
  7214. */
  7215. function queueWatcher (watcher) {
  7216. var id = watcher.id;
  7217. if (has[id] == null) {
  7218. has[id] = true;
  7219. if (!flushing) {
  7220. queue.push(watcher);
  7221. } else {
  7222. // if already flushing, splice the watcher based on its id
  7223. // if already past its id, it will be run next immediately.
  7224. var i = queue.length - 1;
  7225. while (i > index && queue[i].id > watcher.id) {
  7226. i--;
  7227. }
  7228. queue.splice(i + 1, 0, watcher);
  7229. }
  7230. // queue the flush
  7231. if (!waiting) {
  7232. waiting = true;
  7233. if ( true && !config.async) {
  7234. flushSchedulerQueue();
  7235. return
  7236. }
  7237. nextTick(flushSchedulerQueue);
  7238. }
  7239. }
  7240. }
  7241. /* */
  7242. var uid$2 = 0;
  7243. /**
  7244. * A watcher parses an expression, collects dependencies,
  7245. * and fires callback when the expression value changes.
  7246. * This is used for both the $watch() api and directives.
  7247. */
  7248. var Watcher = function Watcher (
  7249. vm,
  7250. expOrFn,
  7251. cb,
  7252. options,
  7253. isRenderWatcher
  7254. ) {
  7255. this.vm = vm;
  7256. if (isRenderWatcher) {
  7257. vm._watcher = this;
  7258. }
  7259. vm._watchers.push(this);
  7260. // options
  7261. if (options) {
  7262. this.deep = !!options.deep;
  7263. this.user = !!options.user;
  7264. this.lazy = !!options.lazy;
  7265. this.sync = !!options.sync;
  7266. this.before = options.before;
  7267. } else {
  7268. this.deep = this.user = this.lazy = this.sync = false;
  7269. }
  7270. this.cb = cb;
  7271. this.id = ++uid$2; // uid for batching
  7272. this.active = true;
  7273. this.dirty = this.lazy; // for lazy watchers
  7274. this.deps = [];
  7275. this.newDeps = [];
  7276. this.depIds = new _Set();
  7277. this.newDepIds = new _Set();
  7278. this.expression = true
  7279. ? expOrFn.toString()
  7280. : undefined;
  7281. // parse expression for getter
  7282. if (typeof expOrFn === 'function') {
  7283. this.getter = expOrFn;
  7284. } else {
  7285. this.getter = parsePath(expOrFn);
  7286. if (!this.getter) {
  7287. this.getter = noop;
  7288. true && warn(
  7289. "Failed watching path: \"" + expOrFn + "\" " +
  7290. 'Watcher only accepts simple dot-delimited paths. ' +
  7291. 'For full control, use a function instead.',
  7292. vm
  7293. );
  7294. }
  7295. }
  7296. this.value = this.lazy
  7297. ? undefined
  7298. : this.get();
  7299. };
  7300. /**
  7301. * Evaluate the getter, and re-collect dependencies.
  7302. */
  7303. Watcher.prototype.get = function get () {
  7304. pushTarget(this);
  7305. var value;
  7306. var vm = this.vm;
  7307. try {
  7308. value = this.getter.call(vm, vm);
  7309. } catch (e) {
  7310. if (this.user) {
  7311. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7312. } else {
  7313. throw e
  7314. }
  7315. } finally {
  7316. // "touch" every property so they are all tracked as
  7317. // dependencies for deep watching
  7318. if (this.deep) {
  7319. traverse(value);
  7320. }
  7321. popTarget();
  7322. this.cleanupDeps();
  7323. }
  7324. return value
  7325. };
  7326. /**
  7327. * Add a dependency to this directive.
  7328. */
  7329. Watcher.prototype.addDep = function addDep (dep) {
  7330. var id = dep.id;
  7331. if (!this.newDepIds.has(id)) {
  7332. this.newDepIds.add(id);
  7333. this.newDeps.push(dep);
  7334. if (!this.depIds.has(id)) {
  7335. dep.addSub(this);
  7336. }
  7337. }
  7338. };
  7339. /**
  7340. * Clean up for dependency collection.
  7341. */
  7342. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7343. var i = this.deps.length;
  7344. while (i--) {
  7345. var dep = this.deps[i];
  7346. if (!this.newDepIds.has(dep.id)) {
  7347. dep.removeSub(this);
  7348. }
  7349. }
  7350. var tmp = this.depIds;
  7351. this.depIds = this.newDepIds;
  7352. this.newDepIds = tmp;
  7353. this.newDepIds.clear();
  7354. tmp = this.deps;
  7355. this.deps = this.newDeps;
  7356. this.newDeps = tmp;
  7357. this.newDeps.length = 0;
  7358. };
  7359. /**
  7360. * Subscriber interface.
  7361. * Will be called when a dependency changes.
  7362. */
  7363. Watcher.prototype.update = function update () {
  7364. /* istanbul ignore else */
  7365. if (this.lazy) {
  7366. this.dirty = true;
  7367. } else if (this.sync) {
  7368. this.run();
  7369. } else {
  7370. queueWatcher(this);
  7371. }
  7372. };
  7373. /**
  7374. * Scheduler job interface.
  7375. * Will be called by the scheduler.
  7376. */
  7377. Watcher.prototype.run = function run () {
  7378. if (this.active) {
  7379. var value = this.get();
  7380. if (
  7381. value !== this.value ||
  7382. // Deep watchers and watchers on Object/Arrays should fire even
  7383. // when the value is the same, because the value may
  7384. // have mutated.
  7385. isObject(value) ||
  7386. this.deep
  7387. ) {
  7388. // set new value
  7389. var oldValue = this.value;
  7390. this.value = value;
  7391. if (this.user) {
  7392. try {
  7393. this.cb.call(this.vm, value, oldValue);
  7394. } catch (e) {
  7395. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7396. }
  7397. } else {
  7398. this.cb.call(this.vm, value, oldValue);
  7399. }
  7400. }
  7401. }
  7402. };
  7403. /**
  7404. * Evaluate the value of the watcher.
  7405. * This only gets called for lazy watchers.
  7406. */
  7407. Watcher.prototype.evaluate = function evaluate () {
  7408. this.value = this.get();
  7409. this.dirty = false;
  7410. };
  7411. /**
  7412. * Depend on all deps collected by this watcher.
  7413. */
  7414. Watcher.prototype.depend = function depend () {
  7415. var i = this.deps.length;
  7416. while (i--) {
  7417. this.deps[i].depend();
  7418. }
  7419. };
  7420. /**
  7421. * Remove self from all dependencies' subscriber list.
  7422. */
  7423. Watcher.prototype.teardown = function teardown () {
  7424. if (this.active) {
  7425. // remove self from vm's watcher list
  7426. // this is a somewhat expensive operation so we skip it
  7427. // if the vm is being destroyed.
  7428. if (!this.vm._isBeingDestroyed) {
  7429. remove(this.vm._watchers, this);
  7430. }
  7431. var i = this.deps.length;
  7432. while (i--) {
  7433. this.deps[i].removeSub(this);
  7434. }
  7435. this.active = false;
  7436. }
  7437. };
  7438. /* */
  7439. var sharedPropertyDefinition = {
  7440. enumerable: true,
  7441. configurable: true,
  7442. get: noop,
  7443. set: noop
  7444. };
  7445. function proxy (target, sourceKey, key) {
  7446. sharedPropertyDefinition.get = function proxyGetter () {
  7447. return this[sourceKey][key]
  7448. };
  7449. sharedPropertyDefinition.set = function proxySetter (val) {
  7450. this[sourceKey][key] = val;
  7451. };
  7452. Object.defineProperty(target, key, sharedPropertyDefinition);
  7453. }
  7454. function initState (vm) {
  7455. vm._watchers = [];
  7456. var opts = vm.$options;
  7457. if (opts.props) { initProps(vm, opts.props); }
  7458. if (opts.methods) { initMethods(vm, opts.methods); }
  7459. if (opts.data) {
  7460. initData(vm);
  7461. } else {
  7462. observe(vm._data = {}, true /* asRootData */);
  7463. }
  7464. if (opts.computed) { initComputed(vm, opts.computed); }
  7465. if (opts.watch && opts.watch !== nativeWatch) {
  7466. initWatch(vm, opts.watch);
  7467. }
  7468. }
  7469. function initProps (vm, propsOptions) {
  7470. var propsData = vm.$options.propsData || {};
  7471. var props = vm._props = {};
  7472. // cache prop keys so that future props updates can iterate using Array
  7473. // instead of dynamic object key enumeration.
  7474. var keys = vm.$options._propKeys = [];
  7475. var isRoot = !vm.$parent;
  7476. // root instance props should be converted
  7477. if (!isRoot) {
  7478. toggleObserving(false);
  7479. }
  7480. var loop = function ( key ) {
  7481. keys.push(key);
  7482. var value = validateProp(key, propsOptions, propsData, vm);
  7483. /* istanbul ignore else */
  7484. if (true) {
  7485. var hyphenatedKey = hyphenate(key);
  7486. if (isReservedAttribute(hyphenatedKey) ||
  7487. config.isReservedAttr(hyphenatedKey)) {
  7488. warn(
  7489. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7490. vm
  7491. );
  7492. }
  7493. defineReactive$$1(props, key, value, function () {
  7494. if (!isRoot && !isUpdatingChildComponent) {
  7495. {
  7496. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7497. return
  7498. }
  7499. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7500. if(
  7501. key === 'value' &&
  7502. Array.isArray(vm.$options.behaviors) &&
  7503. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7504. ){
  7505. return
  7506. }
  7507. if(vm._getFormData){
  7508. return
  7509. }
  7510. var $parent = vm.$parent;
  7511. while($parent){
  7512. if($parent.__next_tick_pending){
  7513. return
  7514. }
  7515. $parent = $parent.$parent;
  7516. }
  7517. }
  7518. warn(
  7519. "Avoid mutating a prop directly since the value will be " +
  7520. "overwritten whenever the parent component re-renders. " +
  7521. "Instead, use a data or computed property based on the prop's " +
  7522. "value. Prop being mutated: \"" + key + "\"",
  7523. vm
  7524. );
  7525. }
  7526. });
  7527. } else {}
  7528. // static props are already proxied on the component's prototype
  7529. // during Vue.extend(). We only need to proxy props defined at
  7530. // instantiation here.
  7531. if (!(key in vm)) {
  7532. proxy(vm, "_props", key);
  7533. }
  7534. };
  7535. for (var key in propsOptions) loop( key );
  7536. toggleObserving(true);
  7537. }
  7538. function initData (vm) {
  7539. var data = vm.$options.data;
  7540. data = vm._data = typeof data === 'function'
  7541. ? getData(data, vm)
  7542. : data || {};
  7543. if (!isPlainObject(data)) {
  7544. data = {};
  7545. true && warn(
  7546. 'data functions should return an object:\n' +
  7547. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7548. vm
  7549. );
  7550. }
  7551. // proxy data on instance
  7552. var keys = Object.keys(data);
  7553. var props = vm.$options.props;
  7554. var methods = vm.$options.methods;
  7555. var i = keys.length;
  7556. while (i--) {
  7557. var key = keys[i];
  7558. if (true) {
  7559. if (methods && hasOwn(methods, key)) {
  7560. warn(
  7561. ("Method \"" + key + "\" has already been defined as a data property."),
  7562. vm
  7563. );
  7564. }
  7565. }
  7566. if (props && hasOwn(props, key)) {
  7567. true && warn(
  7568. "The data property \"" + key + "\" is already declared as a prop. " +
  7569. "Use prop default value instead.",
  7570. vm
  7571. );
  7572. } else if (!isReserved(key)) {
  7573. proxy(vm, "_data", key);
  7574. }
  7575. }
  7576. // observe data
  7577. observe(data, true /* asRootData */);
  7578. }
  7579. function getData (data, vm) {
  7580. // #7573 disable dep collection when invoking data getters
  7581. pushTarget();
  7582. try {
  7583. return data.call(vm, vm)
  7584. } catch (e) {
  7585. handleError(e, vm, "data()");
  7586. return {}
  7587. } finally {
  7588. popTarget();
  7589. }
  7590. }
  7591. var computedWatcherOptions = { lazy: true };
  7592. function initComputed (vm, computed) {
  7593. // $flow-disable-line
  7594. var watchers = vm._computedWatchers = Object.create(null);
  7595. // computed properties are just getters during SSR
  7596. var isSSR = isServerRendering();
  7597. for (var key in computed) {
  7598. var userDef = computed[key];
  7599. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7600. if ( true && getter == null) {
  7601. warn(
  7602. ("Getter is missing for computed property \"" + key + "\"."),
  7603. vm
  7604. );
  7605. }
  7606. if (!isSSR) {
  7607. // create internal watcher for the computed property.
  7608. watchers[key] = new Watcher(
  7609. vm,
  7610. getter || noop,
  7611. noop,
  7612. computedWatcherOptions
  7613. );
  7614. }
  7615. // component-defined computed properties are already defined on the
  7616. // component prototype. We only need to define computed properties defined
  7617. // at instantiation here.
  7618. if (!(key in vm)) {
  7619. defineComputed(vm, key, userDef);
  7620. } else if (true) {
  7621. if (key in vm.$data) {
  7622. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7623. } else if (vm.$options.props && key in vm.$options.props) {
  7624. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7625. }
  7626. }
  7627. }
  7628. }
  7629. function defineComputed (
  7630. target,
  7631. key,
  7632. userDef
  7633. ) {
  7634. var shouldCache = !isServerRendering();
  7635. if (typeof userDef === 'function') {
  7636. sharedPropertyDefinition.get = shouldCache
  7637. ? createComputedGetter(key)
  7638. : createGetterInvoker(userDef);
  7639. sharedPropertyDefinition.set = noop;
  7640. } else {
  7641. sharedPropertyDefinition.get = userDef.get
  7642. ? shouldCache && userDef.cache !== false
  7643. ? createComputedGetter(key)
  7644. : createGetterInvoker(userDef.get)
  7645. : noop;
  7646. sharedPropertyDefinition.set = userDef.set || noop;
  7647. }
  7648. if ( true &&
  7649. sharedPropertyDefinition.set === noop) {
  7650. sharedPropertyDefinition.set = function () {
  7651. warn(
  7652. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7653. this
  7654. );
  7655. };
  7656. }
  7657. Object.defineProperty(target, key, sharedPropertyDefinition);
  7658. }
  7659. function createComputedGetter (key) {
  7660. return function computedGetter () {
  7661. var watcher = this._computedWatchers && this._computedWatchers[key];
  7662. if (watcher) {
  7663. if (watcher.dirty) {
  7664. watcher.evaluate();
  7665. }
  7666. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7667. watcher.depend();
  7668. }
  7669. return watcher.value
  7670. }
  7671. }
  7672. }
  7673. function createGetterInvoker(fn) {
  7674. return function computedGetter () {
  7675. return fn.call(this, this)
  7676. }
  7677. }
  7678. function initMethods (vm, methods) {
  7679. var props = vm.$options.props;
  7680. for (var key in methods) {
  7681. if (true) {
  7682. if (typeof methods[key] !== 'function') {
  7683. warn(
  7684. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7685. "Did you reference the function correctly?",
  7686. vm
  7687. );
  7688. }
  7689. if (props && hasOwn(props, key)) {
  7690. warn(
  7691. ("Method \"" + key + "\" has already been defined as a prop."),
  7692. vm
  7693. );
  7694. }
  7695. if ((key in vm) && isReserved(key)) {
  7696. warn(
  7697. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7698. "Avoid defining component methods that start with _ or $."
  7699. );
  7700. }
  7701. }
  7702. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7703. }
  7704. }
  7705. function initWatch (vm, watch) {
  7706. for (var key in watch) {
  7707. var handler = watch[key];
  7708. if (Array.isArray(handler)) {
  7709. for (var i = 0; i < handler.length; i++) {
  7710. createWatcher(vm, key, handler[i]);
  7711. }
  7712. } else {
  7713. createWatcher(vm, key, handler);
  7714. }
  7715. }
  7716. }
  7717. function createWatcher (
  7718. vm,
  7719. expOrFn,
  7720. handler,
  7721. options
  7722. ) {
  7723. if (isPlainObject(handler)) {
  7724. options = handler;
  7725. handler = handler.handler;
  7726. }
  7727. if (typeof handler === 'string') {
  7728. handler = vm[handler];
  7729. }
  7730. return vm.$watch(expOrFn, handler, options)
  7731. }
  7732. function stateMixin (Vue) {
  7733. // flow somehow has problems with directly declared definition object
  7734. // when using Object.defineProperty, so we have to procedurally build up
  7735. // the object here.
  7736. var dataDef = {};
  7737. dataDef.get = function () { return this._data };
  7738. var propsDef = {};
  7739. propsDef.get = function () { return this._props };
  7740. if (true) {
  7741. dataDef.set = function () {
  7742. warn(
  7743. 'Avoid replacing instance root $data. ' +
  7744. 'Use nested data properties instead.',
  7745. this
  7746. );
  7747. };
  7748. propsDef.set = function () {
  7749. warn("$props is readonly.", this);
  7750. };
  7751. }
  7752. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7753. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7754. Vue.prototype.$set = set;
  7755. Vue.prototype.$delete = del;
  7756. Vue.prototype.$watch = function (
  7757. expOrFn,
  7758. cb,
  7759. options
  7760. ) {
  7761. var vm = this;
  7762. if (isPlainObject(cb)) {
  7763. return createWatcher(vm, expOrFn, cb, options)
  7764. }
  7765. options = options || {};
  7766. options.user = true;
  7767. var watcher = new Watcher(vm, expOrFn, cb, options);
  7768. if (options.immediate) {
  7769. try {
  7770. cb.call(vm, watcher.value);
  7771. } catch (error) {
  7772. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7773. }
  7774. }
  7775. return function unwatchFn () {
  7776. watcher.teardown();
  7777. }
  7778. };
  7779. }
  7780. /* */
  7781. var uid$3 = 0;
  7782. function initMixin (Vue) {
  7783. Vue.prototype._init = function (options) {
  7784. var vm = this;
  7785. // a uid
  7786. vm._uid = uid$3++;
  7787. var startTag, endTag;
  7788. /* istanbul ignore if */
  7789. if ( true && config.performance && mark) {
  7790. startTag = "vue-perf-start:" + (vm._uid);
  7791. endTag = "vue-perf-end:" + (vm._uid);
  7792. mark(startTag);
  7793. }
  7794. // a flag to avoid this being observed
  7795. vm._isVue = true;
  7796. // merge options
  7797. if (options && options._isComponent) {
  7798. // optimize internal component instantiation
  7799. // since dynamic options merging is pretty slow, and none of the
  7800. // internal component options needs special treatment.
  7801. initInternalComponent(vm, options);
  7802. } else {
  7803. vm.$options = mergeOptions(
  7804. resolveConstructorOptions(vm.constructor),
  7805. options || {},
  7806. vm
  7807. );
  7808. }
  7809. /* istanbul ignore else */
  7810. if (true) {
  7811. initProxy(vm);
  7812. } else {}
  7813. // expose real self
  7814. vm._self = vm;
  7815. initLifecycle(vm);
  7816. initEvents(vm);
  7817. initRender(vm);
  7818. callHook(vm, 'beforeCreate');
  7819. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7820. initState(vm);
  7821. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7822. !vm._$fallback && callHook(vm, 'created');
  7823. /* istanbul ignore if */
  7824. if ( true && config.performance && mark) {
  7825. vm._name = formatComponentName(vm, false);
  7826. mark(endTag);
  7827. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7828. }
  7829. if (vm.$options.el) {
  7830. vm.$mount(vm.$options.el);
  7831. }
  7832. };
  7833. }
  7834. function initInternalComponent (vm, options) {
  7835. var opts = vm.$options = Object.create(vm.constructor.options);
  7836. // doing this because it's faster than dynamic enumeration.
  7837. var parentVnode = options._parentVnode;
  7838. opts.parent = options.parent;
  7839. opts._parentVnode = parentVnode;
  7840. var vnodeComponentOptions = parentVnode.componentOptions;
  7841. opts.propsData = vnodeComponentOptions.propsData;
  7842. opts._parentListeners = vnodeComponentOptions.listeners;
  7843. opts._renderChildren = vnodeComponentOptions.children;
  7844. opts._componentTag = vnodeComponentOptions.tag;
  7845. if (options.render) {
  7846. opts.render = options.render;
  7847. opts.staticRenderFns = options.staticRenderFns;
  7848. }
  7849. }
  7850. function resolveConstructorOptions (Ctor) {
  7851. var options = Ctor.options;
  7852. if (Ctor.super) {
  7853. var superOptions = resolveConstructorOptions(Ctor.super);
  7854. var cachedSuperOptions = Ctor.superOptions;
  7855. if (superOptions !== cachedSuperOptions) {
  7856. // super option changed,
  7857. // need to resolve new options.
  7858. Ctor.superOptions = superOptions;
  7859. // check if there are any late-modified/attached options (#4976)
  7860. var modifiedOptions = resolveModifiedOptions(Ctor);
  7861. // update base extend options
  7862. if (modifiedOptions) {
  7863. extend(Ctor.extendOptions, modifiedOptions);
  7864. }
  7865. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7866. if (options.name) {
  7867. options.components[options.name] = Ctor;
  7868. }
  7869. }
  7870. }
  7871. return options
  7872. }
  7873. function resolveModifiedOptions (Ctor) {
  7874. var modified;
  7875. var latest = Ctor.options;
  7876. var sealed = Ctor.sealedOptions;
  7877. for (var key in latest) {
  7878. if (latest[key] !== sealed[key]) {
  7879. if (!modified) { modified = {}; }
  7880. modified[key] = latest[key];
  7881. }
  7882. }
  7883. return modified
  7884. }
  7885. function Vue (options) {
  7886. if ( true &&
  7887. !(this instanceof Vue)
  7888. ) {
  7889. warn('Vue is a constructor and should be called with the `new` keyword');
  7890. }
  7891. this._init(options);
  7892. }
  7893. initMixin(Vue);
  7894. stateMixin(Vue);
  7895. eventsMixin(Vue);
  7896. lifecycleMixin(Vue);
  7897. renderMixin(Vue);
  7898. /* */
  7899. function initUse (Vue) {
  7900. Vue.use = function (plugin) {
  7901. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7902. if (installedPlugins.indexOf(plugin) > -1) {
  7903. return this
  7904. }
  7905. // additional parameters
  7906. var args = toArray(arguments, 1);
  7907. args.unshift(this);
  7908. if (typeof plugin.install === 'function') {
  7909. plugin.install.apply(plugin, args);
  7910. } else if (typeof plugin === 'function') {
  7911. plugin.apply(null, args);
  7912. }
  7913. installedPlugins.push(plugin);
  7914. return this
  7915. };
  7916. }
  7917. /* */
  7918. function initMixin$1 (Vue) {
  7919. Vue.mixin = function (mixin) {
  7920. this.options = mergeOptions(this.options, mixin);
  7921. return this
  7922. };
  7923. }
  7924. /* */
  7925. function initExtend (Vue) {
  7926. /**
  7927. * Each instance constructor, including Vue, has a unique
  7928. * cid. This enables us to create wrapped "child
  7929. * constructors" for prototypal inheritance and cache them.
  7930. */
  7931. Vue.cid = 0;
  7932. var cid = 1;
  7933. /**
  7934. * Class inheritance
  7935. */
  7936. Vue.extend = function (extendOptions) {
  7937. extendOptions = extendOptions || {};
  7938. var Super = this;
  7939. var SuperId = Super.cid;
  7940. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7941. if (cachedCtors[SuperId]) {
  7942. return cachedCtors[SuperId]
  7943. }
  7944. var name = extendOptions.name || Super.options.name;
  7945. if ( true && name) {
  7946. validateComponentName(name);
  7947. }
  7948. var Sub = function VueComponent (options) {
  7949. this._init(options);
  7950. };
  7951. Sub.prototype = Object.create(Super.prototype);
  7952. Sub.prototype.constructor = Sub;
  7953. Sub.cid = cid++;
  7954. Sub.options = mergeOptions(
  7955. Super.options,
  7956. extendOptions
  7957. );
  7958. Sub['super'] = Super;
  7959. // For props and computed properties, we define the proxy getters on
  7960. // the Vue instances at extension time, on the extended prototype. This
  7961. // avoids Object.defineProperty calls for each instance created.
  7962. if (Sub.options.props) {
  7963. initProps$1(Sub);
  7964. }
  7965. if (Sub.options.computed) {
  7966. initComputed$1(Sub);
  7967. }
  7968. // allow further extension/mixin/plugin usage
  7969. Sub.extend = Super.extend;
  7970. Sub.mixin = Super.mixin;
  7971. Sub.use = Super.use;
  7972. // create asset registers, so extended classes
  7973. // can have their private assets too.
  7974. ASSET_TYPES.forEach(function (type) {
  7975. Sub[type] = Super[type];
  7976. });
  7977. // enable recursive self-lookup
  7978. if (name) {
  7979. Sub.options.components[name] = Sub;
  7980. }
  7981. // keep a reference to the super options at extension time.
  7982. // later at instantiation we can check if Super's options have
  7983. // been updated.
  7984. Sub.superOptions = Super.options;
  7985. Sub.extendOptions = extendOptions;
  7986. Sub.sealedOptions = extend({}, Sub.options);
  7987. // cache constructor
  7988. cachedCtors[SuperId] = Sub;
  7989. return Sub
  7990. };
  7991. }
  7992. function initProps$1 (Comp) {
  7993. var props = Comp.options.props;
  7994. for (var key in props) {
  7995. proxy(Comp.prototype, "_props", key);
  7996. }
  7997. }
  7998. function initComputed$1 (Comp) {
  7999. var computed = Comp.options.computed;
  8000. for (var key in computed) {
  8001. defineComputed(Comp.prototype, key, computed[key]);
  8002. }
  8003. }
  8004. /* */
  8005. function initAssetRegisters (Vue) {
  8006. /**
  8007. * Create asset registration methods.
  8008. */
  8009. ASSET_TYPES.forEach(function (type) {
  8010. Vue[type] = function (
  8011. id,
  8012. definition
  8013. ) {
  8014. if (!definition) {
  8015. return this.options[type + 's'][id]
  8016. } else {
  8017. /* istanbul ignore if */
  8018. if ( true && type === 'component') {
  8019. validateComponentName(id);
  8020. }
  8021. if (type === 'component' && isPlainObject(definition)) {
  8022. definition.name = definition.name || id;
  8023. definition = this.options._base.extend(definition);
  8024. }
  8025. if (type === 'directive' && typeof definition === 'function') {
  8026. definition = { bind: definition, update: definition };
  8027. }
  8028. this.options[type + 's'][id] = definition;
  8029. return definition
  8030. }
  8031. };
  8032. });
  8033. }
  8034. /* */
  8035. function getComponentName (opts) {
  8036. return opts && (opts.Ctor.options.name || opts.tag)
  8037. }
  8038. function matches (pattern, name) {
  8039. if (Array.isArray(pattern)) {
  8040. return pattern.indexOf(name) > -1
  8041. } else if (typeof pattern === 'string') {
  8042. return pattern.split(',').indexOf(name) > -1
  8043. } else if (isRegExp(pattern)) {
  8044. return pattern.test(name)
  8045. }
  8046. /* istanbul ignore next */
  8047. return false
  8048. }
  8049. function pruneCache (keepAliveInstance, filter) {
  8050. var cache = keepAliveInstance.cache;
  8051. var keys = keepAliveInstance.keys;
  8052. var _vnode = keepAliveInstance._vnode;
  8053. for (var key in cache) {
  8054. var cachedNode = cache[key];
  8055. if (cachedNode) {
  8056. var name = getComponentName(cachedNode.componentOptions);
  8057. if (name && !filter(name)) {
  8058. pruneCacheEntry(cache, key, keys, _vnode);
  8059. }
  8060. }
  8061. }
  8062. }
  8063. function pruneCacheEntry (
  8064. cache,
  8065. key,
  8066. keys,
  8067. current
  8068. ) {
  8069. var cached$$1 = cache[key];
  8070. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8071. cached$$1.componentInstance.$destroy();
  8072. }
  8073. cache[key] = null;
  8074. remove(keys, key);
  8075. }
  8076. var patternTypes = [String, RegExp, Array];
  8077. var KeepAlive = {
  8078. name: 'keep-alive',
  8079. abstract: true,
  8080. props: {
  8081. include: patternTypes,
  8082. exclude: patternTypes,
  8083. max: [String, Number]
  8084. },
  8085. created: function created () {
  8086. this.cache = Object.create(null);
  8087. this.keys = [];
  8088. },
  8089. destroyed: function destroyed () {
  8090. for (var key in this.cache) {
  8091. pruneCacheEntry(this.cache, key, this.keys);
  8092. }
  8093. },
  8094. mounted: function mounted () {
  8095. var this$1 = this;
  8096. this.$watch('include', function (val) {
  8097. pruneCache(this$1, function (name) { return matches(val, name); });
  8098. });
  8099. this.$watch('exclude', function (val) {
  8100. pruneCache(this$1, function (name) { return !matches(val, name); });
  8101. });
  8102. },
  8103. render: function render () {
  8104. var slot = this.$slots.default;
  8105. var vnode = getFirstComponentChild(slot);
  8106. var componentOptions = vnode && vnode.componentOptions;
  8107. if (componentOptions) {
  8108. // check pattern
  8109. var name = getComponentName(componentOptions);
  8110. var ref = this;
  8111. var include = ref.include;
  8112. var exclude = ref.exclude;
  8113. if (
  8114. // not included
  8115. (include && (!name || !matches(include, name))) ||
  8116. // excluded
  8117. (exclude && name && matches(exclude, name))
  8118. ) {
  8119. return vnode
  8120. }
  8121. var ref$1 = this;
  8122. var cache = ref$1.cache;
  8123. var keys = ref$1.keys;
  8124. var key = vnode.key == null
  8125. // same constructor may get registered as different local components
  8126. // so cid alone is not enough (#3269)
  8127. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8128. : vnode.key;
  8129. if (cache[key]) {
  8130. vnode.componentInstance = cache[key].componentInstance;
  8131. // make current key freshest
  8132. remove(keys, key);
  8133. keys.push(key);
  8134. } else {
  8135. cache[key] = vnode;
  8136. keys.push(key);
  8137. // prune oldest entry
  8138. if (this.max && keys.length > parseInt(this.max)) {
  8139. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8140. }
  8141. }
  8142. vnode.data.keepAlive = true;
  8143. }
  8144. return vnode || (slot && slot[0])
  8145. }
  8146. };
  8147. var builtInComponents = {
  8148. KeepAlive: KeepAlive
  8149. };
  8150. /* */
  8151. function initGlobalAPI (Vue) {
  8152. // config
  8153. var configDef = {};
  8154. configDef.get = function () { return config; };
  8155. if (true) {
  8156. configDef.set = function () {
  8157. warn(
  8158. 'Do not replace the Vue.config object, set individual fields instead.'
  8159. );
  8160. };
  8161. }
  8162. Object.defineProperty(Vue, 'config', configDef);
  8163. // exposed util methods.
  8164. // NOTE: these are not considered part of the public API - avoid relying on
  8165. // them unless you are aware of the risk.
  8166. Vue.util = {
  8167. warn: warn,
  8168. extend: extend,
  8169. mergeOptions: mergeOptions,
  8170. defineReactive: defineReactive$$1
  8171. };
  8172. Vue.set = set;
  8173. Vue.delete = del;
  8174. Vue.nextTick = nextTick;
  8175. // 2.6 explicit observable API
  8176. Vue.observable = function (obj) {
  8177. observe(obj);
  8178. return obj
  8179. };
  8180. Vue.options = Object.create(null);
  8181. ASSET_TYPES.forEach(function (type) {
  8182. Vue.options[type + 's'] = Object.create(null);
  8183. });
  8184. // this is used to identify the "base" constructor to extend all plain-object
  8185. // components with in Weex's multi-instance scenarios.
  8186. Vue.options._base = Vue;
  8187. extend(Vue.options.components, builtInComponents);
  8188. initUse(Vue);
  8189. initMixin$1(Vue);
  8190. initExtend(Vue);
  8191. initAssetRegisters(Vue);
  8192. }
  8193. initGlobalAPI(Vue);
  8194. Object.defineProperty(Vue.prototype, '$isServer', {
  8195. get: isServerRendering
  8196. });
  8197. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8198. get: function get () {
  8199. /* istanbul ignore next */
  8200. return this.$vnode && this.$vnode.ssrContext
  8201. }
  8202. });
  8203. // expose FunctionalRenderContext for ssr runtime helper installation
  8204. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8205. value: FunctionalRenderContext
  8206. });
  8207. Vue.version = '2.6.11';
  8208. /**
  8209. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8210. */
  8211. var ARRAYTYPE = '[object Array]';
  8212. var OBJECTTYPE = '[object Object]';
  8213. var NULLTYPE = '[object Null]';
  8214. var UNDEFINEDTYPE = '[object Undefined]';
  8215. // const FUNCTIONTYPE = '[object Function]'
  8216. function diff(current, pre) {
  8217. var result = {};
  8218. syncKeys(current, pre);
  8219. _diff(current, pre, '', result);
  8220. return result
  8221. }
  8222. function syncKeys(current, pre) {
  8223. if (current === pre) { return }
  8224. var rootCurrentType = type(current);
  8225. var rootPreType = type(pre);
  8226. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8227. if(Object.keys(current).length >= Object.keys(pre).length){
  8228. for (var key in pre) {
  8229. var currentValue = current[key];
  8230. if (currentValue === undefined) {
  8231. current[key] = null;
  8232. } else {
  8233. syncKeys(currentValue, pre[key]);
  8234. }
  8235. }
  8236. }
  8237. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8238. if (current.length >= pre.length) {
  8239. pre.forEach(function (item, index) {
  8240. syncKeys(current[index], item);
  8241. });
  8242. }
  8243. }
  8244. }
  8245. function nullOrUndefined(currentType, preType) {
  8246. if(
  8247. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8248. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8249. ) {
  8250. return false
  8251. }
  8252. return true
  8253. }
  8254. function _diff(current, pre, path, result) {
  8255. if (current === pre) { return }
  8256. var rootCurrentType = type(current);
  8257. var rootPreType = type(pre);
  8258. if (rootCurrentType == OBJECTTYPE) {
  8259. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8260. setResult(result, path, current);
  8261. } else {
  8262. var loop = function ( key ) {
  8263. var currentValue = current[key];
  8264. var preValue = pre[key];
  8265. var currentType = type(currentValue);
  8266. var preType = type(preValue);
  8267. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8268. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8269. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8270. }
  8271. } else if (currentType == ARRAYTYPE) {
  8272. if (preType != ARRAYTYPE) {
  8273. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8274. } else {
  8275. if (currentValue.length < preValue.length) {
  8276. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8277. } else {
  8278. currentValue.forEach(function (item, index) {
  8279. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8280. });
  8281. }
  8282. }
  8283. } else if (currentType == OBJECTTYPE) {
  8284. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8285. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8286. } else {
  8287. for (var subKey in currentValue) {
  8288. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8289. }
  8290. }
  8291. }
  8292. };
  8293. for (var key in current) loop( key );
  8294. }
  8295. } else if (rootCurrentType == ARRAYTYPE) {
  8296. if (rootPreType != ARRAYTYPE) {
  8297. setResult(result, path, current);
  8298. } else {
  8299. if (current.length < pre.length) {
  8300. setResult(result, path, current);
  8301. } else {
  8302. current.forEach(function (item, index) {
  8303. _diff(item, pre[index], path + '[' + index + ']', result);
  8304. });
  8305. }
  8306. }
  8307. } else {
  8308. setResult(result, path, current);
  8309. }
  8310. }
  8311. function setResult(result, k, v) {
  8312. // if (type(v) != FUNCTIONTYPE) {
  8313. result[k] = v;
  8314. // }
  8315. }
  8316. function type(obj) {
  8317. return Object.prototype.toString.call(obj)
  8318. }
  8319. /* */
  8320. function flushCallbacks$1(vm) {
  8321. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8322. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sacanPay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8323. var mpInstance = vm.$scope;
  8324. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8325. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8326. }
  8327. var copies = vm.__next_tick_callbacks.slice(0);
  8328. vm.__next_tick_callbacks.length = 0;
  8329. for (var i = 0; i < copies.length; i++) {
  8330. copies[i]();
  8331. }
  8332. }
  8333. }
  8334. function hasRenderWatcher(vm) {
  8335. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8336. }
  8337. function nextTick$1(vm, cb) {
  8338. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8339. //2.nextTick 之前存在 render watcher
  8340. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8341. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sacanPay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8342. var mpInstance = vm.$scope;
  8343. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8344. ']:nextVueTick');
  8345. }
  8346. return nextTick(cb, vm)
  8347. }else{
  8348. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sacanPay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8349. var mpInstance$1 = vm.$scope;
  8350. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8351. ']:nextMPTick');
  8352. }
  8353. }
  8354. var _resolve;
  8355. if (!vm.__next_tick_callbacks) {
  8356. vm.__next_tick_callbacks = [];
  8357. }
  8358. vm.__next_tick_callbacks.push(function () {
  8359. if (cb) {
  8360. try {
  8361. cb.call(vm);
  8362. } catch (e) {
  8363. handleError(e, vm, 'nextTick');
  8364. }
  8365. } else if (_resolve) {
  8366. _resolve(vm);
  8367. }
  8368. });
  8369. // $flow-disable-line
  8370. if (!cb && typeof Promise !== 'undefined') {
  8371. return new Promise(function (resolve) {
  8372. _resolve = resolve;
  8373. })
  8374. }
  8375. }
  8376. /* */
  8377. function clearInstance(key, value) {
  8378. // 简易去除 Vue 和小程序组件实例
  8379. if (value) {
  8380. if (value._isVue || value.__v_isMPComponent) {
  8381. return {}
  8382. }
  8383. }
  8384. return value
  8385. }
  8386. function cloneWithData(vm) {
  8387. // 确保当前 vm 所有数据被同步
  8388. var ret = Object.create(null);
  8389. var dataKeys = [].concat(
  8390. Object.keys(vm._data || {}),
  8391. Object.keys(vm._computedWatchers || {}));
  8392. dataKeys.reduce(function(ret, key) {
  8393. ret[key] = vm[key];
  8394. return ret
  8395. }, ret);
  8396. // vue-composition-api
  8397. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8398. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8399. if (rawBindings) {
  8400. Object.keys(rawBindings).forEach(function (key) {
  8401. ret[key] = vm[key];
  8402. });
  8403. }
  8404. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8405. Object.assign(ret, vm.$mp.data || {});
  8406. if (
  8407. Array.isArray(vm.$options.behaviors) &&
  8408. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8409. ) { //form-field
  8410. ret['name'] = vm.name;
  8411. ret['value'] = vm.value;
  8412. }
  8413. return JSON.parse(JSON.stringify(ret, clearInstance))
  8414. }
  8415. var patch = function(oldVnode, vnode) {
  8416. var this$1 = this;
  8417. if (vnode === null) { //destroy
  8418. return
  8419. }
  8420. if (this.mpType === 'page' || this.mpType === 'component') {
  8421. var mpInstance = this.$scope;
  8422. var data = Object.create(null);
  8423. try {
  8424. data = cloneWithData(this);
  8425. } catch (err) {
  8426. console.error(err);
  8427. }
  8428. data.__webviewId__ = mpInstance.data.__webviewId__;
  8429. var mpData = Object.create(null);
  8430. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8431. mpData[key] = mpInstance.data[key];
  8432. });
  8433. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8434. if (Object.keys(diffData).length) {
  8435. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sacanPay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8436. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8437. ']差量更新',
  8438. JSON.stringify(diffData));
  8439. }
  8440. this.__next_tick_pending = true;
  8441. mpInstance.setData(diffData, function () {
  8442. this$1.__next_tick_pending = false;
  8443. flushCallbacks$1(this$1);
  8444. });
  8445. } else {
  8446. flushCallbacks$1(this);
  8447. }
  8448. }
  8449. };
  8450. /* */
  8451. function createEmptyRender() {
  8452. }
  8453. function mountComponent$1(
  8454. vm,
  8455. el,
  8456. hydrating
  8457. ) {
  8458. if (!vm.mpType) {//main.js 中的 new Vue
  8459. return vm
  8460. }
  8461. if (vm.mpType === 'app') {
  8462. vm.$options.render = createEmptyRender;
  8463. }
  8464. if (!vm.$options.render) {
  8465. vm.$options.render = createEmptyRender;
  8466. if (true) {
  8467. /* istanbul ignore if */
  8468. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8469. vm.$options.el || el) {
  8470. warn(
  8471. 'You are using the runtime-only build of Vue where the template ' +
  8472. 'compiler is not available. Either pre-compile the templates into ' +
  8473. 'render functions, or use the compiler-included build.',
  8474. vm
  8475. );
  8476. } else {
  8477. warn(
  8478. 'Failed to mount component: template or render function not defined.',
  8479. vm
  8480. );
  8481. }
  8482. }
  8483. }
  8484. !vm._$fallback && callHook(vm, 'beforeMount');
  8485. var updateComponent = function () {
  8486. vm._update(vm._render(), hydrating);
  8487. };
  8488. // we set this to vm._watcher inside the watcher's constructor
  8489. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8490. // component's mounted hook), which relies on vm._watcher being already defined
  8491. new Watcher(vm, updateComponent, noop, {
  8492. before: function before() {
  8493. if (vm._isMounted && !vm._isDestroyed) {
  8494. callHook(vm, 'beforeUpdate');
  8495. }
  8496. }
  8497. }, true /* isRenderWatcher */);
  8498. hydrating = false;
  8499. return vm
  8500. }
  8501. /* */
  8502. function renderClass (
  8503. staticClass,
  8504. dynamicClass
  8505. ) {
  8506. if (isDef(staticClass) || isDef(dynamicClass)) {
  8507. return concat(staticClass, stringifyClass(dynamicClass))
  8508. }
  8509. /* istanbul ignore next */
  8510. return ''
  8511. }
  8512. function concat (a, b) {
  8513. return a ? b ? (a + ' ' + b) : a : (b || '')
  8514. }
  8515. function stringifyClass (value) {
  8516. if (Array.isArray(value)) {
  8517. return stringifyArray(value)
  8518. }
  8519. if (isObject(value)) {
  8520. return stringifyObject(value)
  8521. }
  8522. if (typeof value === 'string') {
  8523. return value
  8524. }
  8525. /* istanbul ignore next */
  8526. return ''
  8527. }
  8528. function stringifyArray (value) {
  8529. var res = '';
  8530. var stringified;
  8531. for (var i = 0, l = value.length; i < l; i++) {
  8532. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8533. if (res) { res += ' '; }
  8534. res += stringified;
  8535. }
  8536. }
  8537. return res
  8538. }
  8539. function stringifyObject (value) {
  8540. var res = '';
  8541. for (var key in value) {
  8542. if (value[key]) {
  8543. if (res) { res += ' '; }
  8544. res += key;
  8545. }
  8546. }
  8547. return res
  8548. }
  8549. /* */
  8550. var parseStyleText = cached(function (cssText) {
  8551. var res = {};
  8552. var listDelimiter = /;(?![^(]*\))/g;
  8553. var propertyDelimiter = /:(.+)/;
  8554. cssText.split(listDelimiter).forEach(function (item) {
  8555. if (item) {
  8556. var tmp = item.split(propertyDelimiter);
  8557. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8558. }
  8559. });
  8560. return res
  8561. });
  8562. // normalize possible array / string values into Object
  8563. function normalizeStyleBinding (bindingStyle) {
  8564. if (Array.isArray(bindingStyle)) {
  8565. return toObject(bindingStyle)
  8566. }
  8567. if (typeof bindingStyle === 'string') {
  8568. return parseStyleText(bindingStyle)
  8569. }
  8570. return bindingStyle
  8571. }
  8572. /* */
  8573. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8574. function getTarget(obj, path) {
  8575. var parts = path.split('.');
  8576. var key = parts[0];
  8577. if (key.indexOf('__$n') === 0) { //number index
  8578. key = parseInt(key.replace('__$n', ''));
  8579. }
  8580. if (parts.length === 1) {
  8581. return obj[key]
  8582. }
  8583. return getTarget(obj[key], parts.slice(1).join('.'))
  8584. }
  8585. function internalMixin(Vue) {
  8586. Vue.config.errorHandler = function(err, vm, info) {
  8587. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8588. console.error(err);
  8589. /* eslint-disable no-undef */
  8590. var app = typeof getApp === 'function' && getApp();
  8591. if (app && app.onError) {
  8592. app.onError(err);
  8593. }
  8594. };
  8595. var oldEmit = Vue.prototype.$emit;
  8596. Vue.prototype.$emit = function(event) {
  8597. if (this.$scope && event) {
  8598. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8599. if (triggerEvent) {
  8600. try {
  8601. triggerEvent.call(this.$scope, event, {
  8602. __args__: toArray(arguments, 1)
  8603. });
  8604. } catch (error) {
  8605. }
  8606. }
  8607. }
  8608. return oldEmit.apply(this, arguments)
  8609. };
  8610. Vue.prototype.$nextTick = function(fn) {
  8611. return nextTick$1(this, fn)
  8612. };
  8613. MP_METHODS.forEach(function (method) {
  8614. Vue.prototype[method] = function(args) {
  8615. if (this.$scope && this.$scope[method]) {
  8616. return this.$scope[method](args)
  8617. }
  8618. // mp-alipay
  8619. if (typeof my === 'undefined') {
  8620. return
  8621. }
  8622. if (method === 'createSelectorQuery') {
  8623. /* eslint-disable no-undef */
  8624. return my.createSelectorQuery(args)
  8625. } else if (method === 'createIntersectionObserver') {
  8626. /* eslint-disable no-undef */
  8627. return my.createIntersectionObserver(args)
  8628. }
  8629. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8630. };
  8631. });
  8632. Vue.prototype.__init_provide = initProvide;
  8633. Vue.prototype.__init_injections = initInjections;
  8634. Vue.prototype.__call_hook = function(hook, args) {
  8635. var vm = this;
  8636. // #7573 disable dep collection when invoking lifecycle hooks
  8637. pushTarget();
  8638. var handlers = vm.$options[hook];
  8639. var info = hook + " hook";
  8640. var ret;
  8641. if (handlers) {
  8642. for (var i = 0, j = handlers.length; i < j; i++) {
  8643. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8644. }
  8645. }
  8646. if (vm._hasHookEvent) {
  8647. vm.$emit('hook:' + hook, args);
  8648. }
  8649. popTarget();
  8650. return ret
  8651. };
  8652. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8653. if (Array.isArray(modifiers)) {
  8654. if (modifiers.indexOf('trim') !== -1) {
  8655. value = value.trim();
  8656. }
  8657. if (modifiers.indexOf('number') !== -1) {
  8658. value = this._n(value);
  8659. }
  8660. }
  8661. if (!target) {
  8662. target = this;
  8663. }
  8664. // 解决动态属性添加
  8665. Vue.set(target, key, value);
  8666. };
  8667. Vue.prototype.__set_sync = function(target, key, value) {
  8668. if (!target) {
  8669. target = this;
  8670. }
  8671. // 解决动态属性添加
  8672. Vue.set(target, key, value);
  8673. };
  8674. Vue.prototype.__get_orig = function(item) {
  8675. if (isPlainObject(item)) {
  8676. return item['$orig'] || item
  8677. }
  8678. return item
  8679. };
  8680. Vue.prototype.__get_value = function(dataPath, target) {
  8681. return getTarget(target || this, dataPath)
  8682. };
  8683. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8684. return renderClass(staticClass, dynamicClass)
  8685. };
  8686. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8687. if (!dynamicStyle && !staticStyle) {
  8688. return ''
  8689. }
  8690. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8691. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8692. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8693. };
  8694. Vue.prototype.__map = function(val, iteratee) {
  8695. //TODO 暂不考虑 string
  8696. var ret, i, l, keys, key;
  8697. if (Array.isArray(val)) {
  8698. ret = new Array(val.length);
  8699. for (i = 0, l = val.length; i < l; i++) {
  8700. ret[i] = iteratee(val[i], i);
  8701. }
  8702. return ret
  8703. } else if (isObject(val)) {
  8704. keys = Object.keys(val);
  8705. ret = Object.create(null);
  8706. for (i = 0, l = keys.length; i < l; i++) {
  8707. key = keys[i];
  8708. ret[key] = iteratee(val[key], key, i);
  8709. }
  8710. return ret
  8711. } else if (typeof val === 'number') {
  8712. ret = new Array(val);
  8713. for (i = 0, l = val; i < l; i++) {
  8714. // 第一个参数暂时仍和小程序一致
  8715. ret[i] = iteratee(i, i);
  8716. }
  8717. return ret
  8718. }
  8719. return []
  8720. };
  8721. }
  8722. /* */
  8723. var LIFECYCLE_HOOKS$1 = [
  8724. //App
  8725. 'onLaunch',
  8726. 'onShow',
  8727. 'onHide',
  8728. 'onUniNViewMessage',
  8729. 'onPageNotFound',
  8730. 'onThemeChange',
  8731. 'onError',
  8732. 'onUnhandledRejection',
  8733. //Page
  8734. 'onInit',
  8735. 'onLoad',
  8736. // 'onShow',
  8737. 'onReady',
  8738. // 'onHide',
  8739. 'onUnload',
  8740. 'onPullDownRefresh',
  8741. 'onReachBottom',
  8742. 'onTabItemTap',
  8743. 'onAddToFavorites',
  8744. 'onShareTimeline',
  8745. 'onShareAppMessage',
  8746. 'onResize',
  8747. 'onPageScroll',
  8748. 'onNavigationBarButtonTap',
  8749. 'onBackPress',
  8750. 'onNavigationBarSearchInputChanged',
  8751. 'onNavigationBarSearchInputConfirmed',
  8752. 'onNavigationBarSearchInputClicked',
  8753. 'onUploadDouyinVideo',
  8754. 'onNFCReadMessage',
  8755. //Component
  8756. // 'onReady', // 兼容旧版本,应该移除该事件
  8757. 'onPageShow',
  8758. 'onPageHide',
  8759. 'onPageResize'
  8760. ];
  8761. function lifecycleMixin$1(Vue) {
  8762. //fixed vue-class-component
  8763. var oldExtend = Vue.extend;
  8764. Vue.extend = function(extendOptions) {
  8765. extendOptions = extendOptions || {};
  8766. var methods = extendOptions.methods;
  8767. if (methods) {
  8768. Object.keys(methods).forEach(function (methodName) {
  8769. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8770. extendOptions[methodName] = methods[methodName];
  8771. delete methods[methodName];
  8772. }
  8773. });
  8774. }
  8775. return oldExtend.call(this, extendOptions)
  8776. };
  8777. var strategies = Vue.config.optionMergeStrategies;
  8778. var mergeHook = strategies.created;
  8779. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8780. strategies[hook] = mergeHook;
  8781. });
  8782. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8783. }
  8784. /* */
  8785. // install platform patch function
  8786. Vue.prototype.__patch__ = patch;
  8787. // public mount method
  8788. Vue.prototype.$mount = function(
  8789. el ,
  8790. hydrating
  8791. ) {
  8792. return mountComponent$1(this, el, hydrating)
  8793. };
  8794. lifecycleMixin$1(Vue);
  8795. internalMixin(Vue);
  8796. /* */
  8797. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8798. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8799. /***/ }),
  8800. /* 26 */
  8801. /*!**********************************************!*\
  8802. !*** E:/hbuildweepspace/sacanPay/pages.json ***!
  8803. \**********************************************/
  8804. /*! no static exports found */
  8805. /***/ (function(module, exports) {
  8806. /***/ }),
  8807. /* 27 */,
  8808. /* 28 */,
  8809. /* 29 */,
  8810. /* 30 */,
  8811. /* 31 */,
  8812. /* 32 */
  8813. /*!**********************************************************************************************************!*\
  8814. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8815. \**********************************************************************************************************/
  8816. /*! exports provided: default */
  8817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8818. "use strict";
  8819. __webpack_require__.r(__webpack_exports__);
  8820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8821. /* globals __VUE_SSR_CONTEXT__ */
  8822. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8823. // This module is a runtime utility for cleaner component module output and will
  8824. // be included in the final webpack user bundle.
  8825. function normalizeComponent (
  8826. scriptExports,
  8827. render,
  8828. staticRenderFns,
  8829. functionalTemplate,
  8830. injectStyles,
  8831. scopeId,
  8832. moduleIdentifier, /* server only */
  8833. shadowMode, /* vue-cli only */
  8834. components, // fixed by xxxxxx auto components
  8835. renderjs // fixed by xxxxxx renderjs
  8836. ) {
  8837. // Vue.extend constructor export interop
  8838. var options = typeof scriptExports === 'function'
  8839. ? scriptExports.options
  8840. : scriptExports
  8841. // fixed by xxxxxx auto components
  8842. if (components) {
  8843. if (!options.components) {
  8844. options.components = {}
  8845. }
  8846. var hasOwn = Object.prototype.hasOwnProperty
  8847. for (var name in components) {
  8848. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8849. options.components[name] = components[name]
  8850. }
  8851. }
  8852. }
  8853. // fixed by xxxxxx renderjs
  8854. if (renderjs) {
  8855. if(typeof renderjs.beforeCreate === 'function'){
  8856. renderjs.beforeCreate = [renderjs.beforeCreate]
  8857. }
  8858. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8859. this[renderjs.__module] = this
  8860. });
  8861. (options.mixins || (options.mixins = [])).push(renderjs)
  8862. }
  8863. // render functions
  8864. if (render) {
  8865. options.render = render
  8866. options.staticRenderFns = staticRenderFns
  8867. options._compiled = true
  8868. }
  8869. // functional template
  8870. if (functionalTemplate) {
  8871. options.functional = true
  8872. }
  8873. // scopedId
  8874. if (scopeId) {
  8875. options._scopeId = 'data-v-' + scopeId
  8876. }
  8877. var hook
  8878. if (moduleIdentifier) { // server build
  8879. hook = function (context) {
  8880. // 2.3 injection
  8881. context =
  8882. context || // cached call
  8883. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8884. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8885. // 2.2 with runInNewContext: true
  8886. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8887. context = __VUE_SSR_CONTEXT__
  8888. }
  8889. // inject component styles
  8890. if (injectStyles) {
  8891. injectStyles.call(this, context)
  8892. }
  8893. // register component module identifier for async chunk inferrence
  8894. if (context && context._registeredComponents) {
  8895. context._registeredComponents.add(moduleIdentifier)
  8896. }
  8897. }
  8898. // used by ssr in case component is cached and beforeCreate
  8899. // never gets called
  8900. options._ssrRegister = hook
  8901. } else if (injectStyles) {
  8902. hook = shadowMode
  8903. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8904. : injectStyles
  8905. }
  8906. if (hook) {
  8907. if (options.functional) {
  8908. // for template-only hot-reload because in that case the render fn doesn't
  8909. // go through the normalizer
  8910. options._injectStyles = hook
  8911. // register for functioal component in vue file
  8912. var originalRender = options.render
  8913. options.render = function renderWithStyleInjection (h, context) {
  8914. hook.call(context)
  8915. return originalRender(h, context)
  8916. }
  8917. } else {
  8918. // inject component registration as beforeCreate hook
  8919. var existing = options.beforeCreate
  8920. options.beforeCreate = existing
  8921. ? [].concat(existing, hook)
  8922. : [hook]
  8923. }
  8924. }
  8925. return {
  8926. exports: scriptExports,
  8927. options: options
  8928. }
  8929. }
  8930. /***/ }),
  8931. /* 33 */
  8932. /*!*****************************************************************!*\
  8933. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/index.js ***!
  8934. \*****************************************************************/
  8935. /*! no static exports found */
  8936. /***/ (function(module, exports, __webpack_require__) {
  8937. "use strict";
  8938. /* WEBPACK VAR INJECTION */(function(uni) {
  8939. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8940. Object.defineProperty(exports, "__esModule", {
  8941. value: true
  8942. });
  8943. exports.default = void 0;
  8944. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8945. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  8946. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  8947. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  8948. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  8949. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  8950. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  8951. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  8952. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  8953. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  8954. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 65));
  8955. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 66));
  8956. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 156));
  8957. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 114));
  8958. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 157));
  8959. 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; }
  8960. 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; }
  8961. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8962. var pleaseSetTranspileDependencies = {},
  8963. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  8964. // 引入全局mixin
  8965. var $u = _objectSpread(_objectSpread({
  8966. route: _route.default,
  8967. date: _index.default.timeFormat,
  8968. // 另名date
  8969. colorGradient: _colorGradient.default.colorGradient,
  8970. hexToRgb: _colorGradient.default.hexToRgb,
  8971. rgbToHex: _colorGradient.default.rgbToHex,
  8972. colorToRgba: _colorGradient.default.colorToRgba,
  8973. test: _test.default,
  8974. type: ['primary', 'success', 'error', 'warning', 'info'],
  8975. http: new _luchRequest.default(),
  8976. config: _config.default,
  8977. // uView配置信息相关,比如版本号
  8978. zIndex: _zIndex.default,
  8979. debounce: _debounce.default,
  8980. throttle: _throttle.default,
  8981. mixin: _mixin.default,
  8982. mpMixin: _mpMixin.default,
  8983. props: _props.default
  8984. }, _index.default), {}, {
  8985. color: _color.default,
  8986. platform: _platform.default
  8987. });
  8988. // $u挂载到uni对象上
  8989. uni.$u = $u;
  8990. var install = function install(Vue) {
  8991. // 时间格式化,同时两个名称,date和timeFormat
  8992. Vue.filter('timeFormat', function (timestamp, format) {
  8993. return uni.$u.timeFormat(timestamp, format);
  8994. });
  8995. Vue.filter('date', function (timestamp, format) {
  8996. return uni.$u.timeFormat(timestamp, format);
  8997. });
  8998. // 将多久以前的方法,注入到全局过滤器
  8999. Vue.filter('timeFrom', function (timestamp, format) {
  9000. return uni.$u.timeFrom(timestamp, format);
  9001. });
  9002. // 同时挂载到uni和Vue.prototype中
  9003. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9004. Vue.prototype.$u = $u;
  9005. Vue.mixin(_mixin.default);
  9006. };
  9007. var _default = {
  9008. install: install
  9009. };
  9010. exports.default = _default;
  9011. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9012. /***/ }),
  9013. /* 34 */
  9014. /*!****************************************************************************!*\
  9015. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9016. \****************************************************************************/
  9017. /*! no static exports found */
  9018. /***/ (function(module, exports, __webpack_require__) {
  9019. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9020. // 定义每个组件都可能需要用到的外部样式以及类名
  9021. props: {
  9022. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9023. customStyle: {
  9024. type: [Object, String],
  9025. default: function _default() {
  9026. return {};
  9027. }
  9028. },
  9029. customClass: {
  9030. type: String,
  9031. default: ''
  9032. },
  9033. // 跳转的页面路径
  9034. url: {
  9035. type: String,
  9036. default: ''
  9037. },
  9038. // 页面跳转的类型
  9039. linkType: {
  9040. type: String,
  9041. default: 'navigateTo'
  9042. }
  9043. },
  9044. data: function data() {
  9045. return {};
  9046. },
  9047. onLoad: function onLoad() {
  9048. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9049. this.$u.getRect = this.$uGetRect;
  9050. },
  9051. created: function created() {
  9052. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9053. this.$u.getRect = this.$uGetRect;
  9054. },
  9055. computed: {
  9056. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9057. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9058. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9059. $u: function $u() {
  9060. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9061. return uni.$u.deepMerge(uni.$u, {
  9062. props: undefined,
  9063. http: undefined,
  9064. mixin: undefined
  9065. });
  9066. },
  9067. /**
  9068. * 生成bem规则类名
  9069. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9070. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9071. * @param {String} name 组件名称
  9072. * @param {Array} fixed 一直会存在的类名
  9073. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9074. * @returns {Array|string}
  9075. */
  9076. bem: function bem() {
  9077. return function (name, fixed, change) {
  9078. var _this = this;
  9079. // 类名前缀
  9080. var prefix = "u-".concat(name, "--");
  9081. var classes = {};
  9082. if (fixed) {
  9083. fixed.map(function (item) {
  9084. // 这里的类名,会一直存在
  9085. classes[prefix + _this[item]] = true;
  9086. });
  9087. }
  9088. if (change) {
  9089. change.map(function (item) {
  9090. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9091. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9092. });
  9093. }
  9094. return Object.keys(classes);
  9095. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9096. };
  9097. }
  9098. },
  9099. methods: {
  9100. // 跳转某一个页面
  9101. openPage: function openPage() {
  9102. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9103. var url = this[urlKey];
  9104. if (url) {
  9105. // 执行类似uni.navigateTo的方法
  9106. uni[this.linkType]({
  9107. url: url
  9108. });
  9109. }
  9110. },
  9111. // 查询节点信息
  9112. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9113. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9114. $uGetRect: function $uGetRect(selector, all) {
  9115. var _this2 = this;
  9116. return new Promise(function (resolve) {
  9117. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9118. if (all && Array.isArray(rect) && rect.length) {
  9119. resolve(rect);
  9120. }
  9121. if (!all && rect) {
  9122. resolve(rect);
  9123. }
  9124. }).exec();
  9125. });
  9126. },
  9127. getParentData: function getParentData() {
  9128. var _this3 = this;
  9129. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9130. // 避免在created中去定义parent变量
  9131. if (!this.parent) this.parent = {};
  9132. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9133. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9134. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9135. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9136. this.parent = uni.$u.$parent.call(this, parentName);
  9137. if (this.parent.children) {
  9138. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9139. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9140. }
  9141. if (this.parent && this.parentData) {
  9142. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9143. Object.keys(this.parentData).map(function (key) {
  9144. _this3.parentData[key] = _this3.parent[key];
  9145. });
  9146. }
  9147. },
  9148. // 阻止事件冒泡
  9149. preventEvent: function preventEvent(e) {
  9150. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9151. },
  9152. // 空操作
  9153. noop: function noop(e) {
  9154. this.preventEvent(e);
  9155. }
  9156. },
  9157. onReachBottom: function onReachBottom() {
  9158. uni.$emit('uOnReachBottom');
  9159. },
  9160. beforeDestroy: function beforeDestroy() {
  9161. var _this4 = this;
  9162. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9163. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9164. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9165. // 组件销毁时,移除父组件中的children数组中对应的实例
  9166. var childrenList = this.parent.children;
  9167. childrenList.map(function (child, index) {
  9168. // 如果相等,则移除
  9169. if (child === _this4) {
  9170. childrenList.splice(index, 1);
  9171. }
  9172. });
  9173. }
  9174. }
  9175. };
  9176. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9177. /***/ }),
  9178. /* 35 */
  9179. /*!******************************************************************************!*\
  9180. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9181. \******************************************************************************/
  9182. /*! no static exports found */
  9183. /***/ (function(module, exports, __webpack_require__) {
  9184. "use strict";
  9185. Object.defineProperty(exports, "__esModule", {
  9186. value: true
  9187. });
  9188. exports.default = void 0;
  9189. var _default = {
  9190. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9191. options: {
  9192. virtualHost: true
  9193. }
  9194. };
  9195. exports.default = _default;
  9196. /***/ }),
  9197. /* 36 */
  9198. /*!***********************************************************************************!*\
  9199. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9200. \***********************************************************************************/
  9201. /*! no static exports found */
  9202. /***/ (function(module, exports, __webpack_require__) {
  9203. "use strict";
  9204. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9205. Object.defineProperty(exports, "__esModule", {
  9206. value: true
  9207. });
  9208. exports.default = void 0;
  9209. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));
  9210. var _default = _Request.default;
  9211. exports.default = _default;
  9212. /***/ }),
  9213. /* 37 */
  9214. /*!******************************************************************************************!*\
  9215. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9216. \******************************************************************************************/
  9217. /*! no static exports found */
  9218. /***/ (function(module, exports, __webpack_require__) {
  9219. "use strict";
  9220. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9221. Object.defineProperty(exports, "__esModule", {
  9222. value: true
  9223. });
  9224. exports.default = void 0;
  9225. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9226. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9227. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9228. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  9229. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  9230. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  9231. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  9232. var _utils = __webpack_require__(/*! ../utils */ 41);
  9233. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));
  9234. 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; }
  9235. 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; }
  9236. var Request = /*#__PURE__*/function () {
  9237. /**
  9238. * @param {Object} arg - 全局配置
  9239. * @param {String} arg.baseURL - 全局根路径
  9240. * @param {Object} arg.header - 全局header
  9241. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9242. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9243. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9244. * @param {Object} arg.custom - 全局默认的自定义参数
  9245. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9246. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9247. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9248. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9249. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9250. */
  9251. function Request() {
  9252. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9253. (0, _classCallCheck2.default)(this, Request);
  9254. if (!(0, _utils.isPlainObject)(arg)) {
  9255. arg = {};
  9256. console.warn('设置全局参数必须接收一个Object');
  9257. }
  9258. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9259. this.interceptors = {
  9260. request: new _InterceptorManager.default(),
  9261. response: new _InterceptorManager.default()
  9262. };
  9263. }
  9264. /**
  9265. * @Function
  9266. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9267. */
  9268. (0, _createClass2.default)(Request, [{
  9269. key: "setConfig",
  9270. value: function setConfig(f) {
  9271. this.config = f(this.config);
  9272. }
  9273. }, {
  9274. key: "middleware",
  9275. value: function middleware(config) {
  9276. config = (0, _mergeConfig.default)(this.config, config);
  9277. var chain = [_dispatchRequest.default, undefined];
  9278. var promise = Promise.resolve(config);
  9279. this.interceptors.request.forEach(function (interceptor) {
  9280. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9281. });
  9282. this.interceptors.response.forEach(function (interceptor) {
  9283. chain.push(interceptor.fulfilled, interceptor.rejected);
  9284. });
  9285. while (chain.length) {
  9286. promise = promise.then(chain.shift(), chain.shift());
  9287. }
  9288. return promise;
  9289. }
  9290. /**
  9291. * @Function
  9292. * @param {Object} config - 请求配置项
  9293. * @prop {String} options.url - 请求路径
  9294. * @prop {Object} options.data - 请求参数
  9295. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9296. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9297. * @prop {Object} [options.header = config.header] - 请求header
  9298. * @prop {Object} [options.method = config.method] - 请求方法
  9299. * @returns {Promise<unknown>}
  9300. */
  9301. }, {
  9302. key: "request",
  9303. value: function request() {
  9304. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9305. return this.middleware(config);
  9306. }
  9307. }, {
  9308. key: "get",
  9309. value: function get(url) {
  9310. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9311. return this.middleware(_objectSpread({
  9312. url: url,
  9313. method: 'GET'
  9314. }, options));
  9315. }
  9316. }, {
  9317. key: "post",
  9318. value: function post(url, data) {
  9319. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9320. return this.middleware(_objectSpread({
  9321. url: url,
  9322. data: data,
  9323. method: 'POST'
  9324. }, options));
  9325. }
  9326. }, {
  9327. key: "put",
  9328. value: function put(url, data) {
  9329. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9330. return this.middleware(_objectSpread({
  9331. url: url,
  9332. data: data,
  9333. method: 'PUT'
  9334. }, options));
  9335. }
  9336. }, {
  9337. key: "delete",
  9338. value: function _delete(url, data) {
  9339. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9340. return this.middleware(_objectSpread({
  9341. url: url,
  9342. data: data,
  9343. method: 'DELETE'
  9344. }, options));
  9345. }
  9346. }, {
  9347. key: "connect",
  9348. value: function connect(url, data) {
  9349. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9350. return this.middleware(_objectSpread({
  9351. url: url,
  9352. data: data,
  9353. method: 'CONNECT'
  9354. }, options));
  9355. }
  9356. }, {
  9357. key: "head",
  9358. value: function head(url, data) {
  9359. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9360. return this.middleware(_objectSpread({
  9361. url: url,
  9362. data: data,
  9363. method: 'HEAD'
  9364. }, options));
  9365. }
  9366. }, {
  9367. key: "options",
  9368. value: function options(url, data) {
  9369. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9370. return this.middleware(_objectSpread({
  9371. url: url,
  9372. data: data,
  9373. method: 'OPTIONS'
  9374. }, _options));
  9375. }
  9376. }, {
  9377. key: "trace",
  9378. value: function trace(url, data) {
  9379. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9380. return this.middleware(_objectSpread({
  9381. url: url,
  9382. data: data,
  9383. method: 'TRACE'
  9384. }, options));
  9385. }
  9386. }, {
  9387. key: "upload",
  9388. value: function upload(url) {
  9389. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9390. config.url = url;
  9391. config.method = 'UPLOAD';
  9392. return this.middleware(config);
  9393. }
  9394. }, {
  9395. key: "download",
  9396. value: function download(url) {
  9397. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9398. config.url = url;
  9399. config.method = 'DOWNLOAD';
  9400. return this.middleware(config);
  9401. }
  9402. }]);
  9403. return Request;
  9404. }();
  9405. /**
  9406. * setConfig回调
  9407. * @return {Object} - 返回操作后的config
  9408. * @callback Request~setConfigCallback
  9409. * @param {Object} config - 全局默认config
  9410. */
  9411. exports.default = Request;
  9412. /***/ }),
  9413. /* 38 */
  9414. /*!**************************************************************************************************!*\
  9415. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9416. \**************************************************************************************************/
  9417. /*! no static exports found */
  9418. /***/ (function(module, exports, __webpack_require__) {
  9419. "use strict";
  9420. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9421. Object.defineProperty(exports, "__esModule", {
  9422. value: true
  9423. });
  9424. exports.default = void 0;
  9425. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));
  9426. var _default = function _default(config) {
  9427. return (0, _index.default)(config);
  9428. };
  9429. exports.default = _default;
  9430. /***/ }),
  9431. /* 39 */
  9432. /*!********************************************************************************************!*\
  9433. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9434. \********************************************************************************************/
  9435. /*! no static exports found */
  9436. /***/ (function(module, exports, __webpack_require__) {
  9437. "use strict";
  9438. /* WEBPACK VAR INJECTION */(function(uni) {
  9439. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9440. Object.defineProperty(exports, "__esModule", {
  9441. value: true
  9442. });
  9443. exports.default = void 0;
  9444. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9445. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  9446. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  9447. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  9448. var _utils = __webpack_require__(/*! ../utils */ 41);
  9449. 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; }
  9450. 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; }
  9451. /**
  9452. * 返回可选值存在的配置
  9453. * @param {Array} keys - 可选值数组
  9454. * @param {Object} config2 - 配置
  9455. * @return {{}} - 存在的配置项
  9456. */
  9457. var mergeKeys = function mergeKeys(keys, config2) {
  9458. var config = {};
  9459. keys.forEach(function (prop) {
  9460. if (!(0, _utils.isUndefined)(config2[prop])) {
  9461. config[prop] = config2[prop];
  9462. }
  9463. });
  9464. return config;
  9465. };
  9466. var _default = function _default(config) {
  9467. return new Promise(function (resolve, reject) {
  9468. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9469. var _config = {
  9470. url: fullPath,
  9471. header: config.header,
  9472. complete: function complete(response) {
  9473. config.fullPath = fullPath;
  9474. response.config = config;
  9475. try {
  9476. // 对可能字符串不是json 的情况容错
  9477. if (typeof response.data === 'string') {
  9478. response.data = JSON.parse(response.data);
  9479. }
  9480. // eslint-disable-next-line no-empty
  9481. } catch (e) {}
  9482. (0, _settle.default)(resolve, reject, response);
  9483. }
  9484. };
  9485. var requestTask;
  9486. if (config.method === 'UPLOAD') {
  9487. delete _config.header['content-type'];
  9488. delete _config.header['Content-Type'];
  9489. var otherConfig = {
  9490. filePath: config.filePath,
  9491. name: config.name
  9492. };
  9493. var optionalKeys = ['formData'];
  9494. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9495. } else if (config.method === 'DOWNLOAD') {
  9496. requestTask = uni.downloadFile(_config);
  9497. } else {
  9498. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9499. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9500. }
  9501. if (config.getTask) {
  9502. config.getTask(requestTask, config);
  9503. }
  9504. });
  9505. };
  9506. exports.default = _default;
  9507. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9508. /***/ }),
  9509. /* 40 */
  9510. /*!**********************************************************************************************!*\
  9511. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9512. \**********************************************************************************************/
  9513. /*! no static exports found */
  9514. /***/ (function(module, exports, __webpack_require__) {
  9515. "use strict";
  9516. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9517. Object.defineProperty(exports, "__esModule", {
  9518. value: true
  9519. });
  9520. exports.default = buildURL;
  9521. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));
  9522. 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); }
  9523. 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; }
  9524. function encode(val) {
  9525. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9526. }
  9527. /**
  9528. * Build a URL by appending params to the end
  9529. *
  9530. * @param {string} url The base of the url (e.g., http://www.google.com)
  9531. * @param {object} [params] The params to be appended
  9532. * @returns {string} The formatted url
  9533. */
  9534. function buildURL(url, params) {
  9535. /* eslint no-param-reassign:0 */
  9536. if (!params) {
  9537. return url;
  9538. }
  9539. var serializedParams;
  9540. if (utils.isURLSearchParams(params)) {
  9541. serializedParams = params.toString();
  9542. } else {
  9543. var parts = [];
  9544. utils.forEach(params, function (val, key) {
  9545. if (val === null || typeof val === 'undefined') {
  9546. return;
  9547. }
  9548. if (utils.isArray(val)) {
  9549. key = "".concat(key, "[]");
  9550. } else {
  9551. val = [val];
  9552. }
  9553. utils.forEach(val, function (v) {
  9554. if (utils.isDate(v)) {
  9555. v = v.toISOString();
  9556. } else if (utils.isObject(v)) {
  9557. v = JSON.stringify(v);
  9558. }
  9559. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9560. });
  9561. });
  9562. serializedParams = parts.join('&');
  9563. }
  9564. if (serializedParams) {
  9565. var hashmarkIndex = url.indexOf('#');
  9566. if (hashmarkIndex !== -1) {
  9567. url = url.slice(0, hashmarkIndex);
  9568. }
  9569. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9570. }
  9571. return url;
  9572. }
  9573. /***/ }),
  9574. /* 41 */
  9575. /*!***********************************************************************************!*\
  9576. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  9577. \***********************************************************************************/
  9578. /*! no static exports found */
  9579. /***/ (function(module, exports, __webpack_require__) {
  9580. "use strict";
  9581. // utils is a library of generic helper functions non-specific to axios
  9582. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9583. Object.defineProperty(exports, "__esModule", {
  9584. value: true
  9585. });
  9586. exports.deepMerge = deepMerge;
  9587. exports.forEach = forEach;
  9588. exports.isArray = isArray;
  9589. exports.isBoolean = isBoolean;
  9590. exports.isDate = isDate;
  9591. exports.isObject = isObject;
  9592. exports.isPlainObject = isPlainObject;
  9593. exports.isURLSearchParams = isURLSearchParams;
  9594. exports.isUndefined = isUndefined;
  9595. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9596. var toString = Object.prototype.toString;
  9597. /**
  9598. * Determine if a value is an Array
  9599. *
  9600. * @param {Object} val The value to test
  9601. * @returns {boolean} True if value is an Array, otherwise false
  9602. */
  9603. function isArray(val) {
  9604. return toString.call(val) === '[object Array]';
  9605. }
  9606. /**
  9607. * Determine if a value is an Object
  9608. *
  9609. * @param {Object} val The value to test
  9610. * @returns {boolean} True if value is an Object, otherwise false
  9611. */
  9612. function isObject(val) {
  9613. return val !== null && (0, _typeof2.default)(val) === 'object';
  9614. }
  9615. /**
  9616. * Determine if a value is a Date
  9617. *
  9618. * @param {Object} val The value to test
  9619. * @returns {boolean} True if value is a Date, otherwise false
  9620. */
  9621. function isDate(val) {
  9622. return toString.call(val) === '[object Date]';
  9623. }
  9624. /**
  9625. * Determine if a value is a URLSearchParams object
  9626. *
  9627. * @param {Object} val The value to test
  9628. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9629. */
  9630. function isURLSearchParams(val) {
  9631. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9632. }
  9633. /**
  9634. * Iterate over an Array or an Object invoking a function for each item.
  9635. *
  9636. * If `obj` is an Array callback will be called passing
  9637. * the value, index, and complete array for each item.
  9638. *
  9639. * If 'obj' is an Object callback will be called passing
  9640. * the value, key, and complete object for each property.
  9641. *
  9642. * @param {Object|Array} obj The object to iterate
  9643. * @param {Function} fn The callback to invoke for each item
  9644. */
  9645. function forEach(obj, fn) {
  9646. // Don't bother if no value provided
  9647. if (obj === null || typeof obj === 'undefined') {
  9648. return;
  9649. }
  9650. // Force an array if not already something iterable
  9651. if ((0, _typeof2.default)(obj) !== 'object') {
  9652. /* eslint no-param-reassign:0 */
  9653. obj = [obj];
  9654. }
  9655. if (isArray(obj)) {
  9656. // Iterate over array values
  9657. for (var i = 0, l = obj.length; i < l; i++) {
  9658. fn.call(null, obj[i], i, obj);
  9659. }
  9660. } else {
  9661. // Iterate over object keys
  9662. for (var key in obj) {
  9663. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9664. fn.call(null, obj[key], key, obj);
  9665. }
  9666. }
  9667. }
  9668. }
  9669. /**
  9670. * 是否为boolean 值
  9671. * @param val
  9672. * @returns {boolean}
  9673. */
  9674. function isBoolean(val) {
  9675. return typeof val === 'boolean';
  9676. }
  9677. /**
  9678. * 是否为真正的对象{} new Object
  9679. * @param {any} obj - 检测的对象
  9680. * @returns {boolean}
  9681. */
  9682. function isPlainObject(obj) {
  9683. return Object.prototype.toString.call(obj) === '[object Object]';
  9684. }
  9685. /**
  9686. * Function equal to merge with the difference being that no reference
  9687. * to original objects is kept.
  9688. *
  9689. * @see merge
  9690. * @param {Object} obj1 Object to merge
  9691. * @returns {Object} Result of all merge properties
  9692. */
  9693. function deepMerge( /* obj1, obj2, obj3, ... */
  9694. ) {
  9695. var result = {};
  9696. function assignValue(val, key) {
  9697. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9698. result[key] = deepMerge(result[key], val);
  9699. } else if ((0, _typeof2.default)(val) === 'object') {
  9700. result[key] = deepMerge({}, val);
  9701. } else {
  9702. result[key] = val;
  9703. }
  9704. }
  9705. for (var i = 0, l = arguments.length; i < l; i++) {
  9706. forEach(arguments[i], assignValue);
  9707. }
  9708. return result;
  9709. }
  9710. function isUndefined(val) {
  9711. return typeof val === 'undefined';
  9712. }
  9713. /***/ }),
  9714. /* 42 */
  9715. /*!************************************************************************************************!*\
  9716. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9717. \************************************************************************************************/
  9718. /*! no static exports found */
  9719. /***/ (function(module, exports, __webpack_require__) {
  9720. "use strict";
  9721. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9722. Object.defineProperty(exports, "__esModule", {
  9723. value: true
  9724. });
  9725. exports.default = buildFullPath;
  9726. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  9727. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));
  9728. /**
  9729. * Creates a new URL by combining the baseURL with the requestedURL,
  9730. * only when the requestedURL is not already an absolute URL.
  9731. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9732. *
  9733. * @param {string} baseURL The base URL
  9734. * @param {string} requestedURL Absolute or relative URL to combine
  9735. * @returns {string} The combined full path
  9736. */
  9737. function buildFullPath(baseURL, requestedURL) {
  9738. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9739. return (0, _combineURLs.default)(baseURL, requestedURL);
  9740. }
  9741. return requestedURL;
  9742. }
  9743. /***/ }),
  9744. /* 43 */
  9745. /*!***************************************************************************************************!*\
  9746. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9747. \***************************************************************************************************/
  9748. /*! no static exports found */
  9749. /***/ (function(module, exports, __webpack_require__) {
  9750. "use strict";
  9751. /**
  9752. * Determines whether the specified URL is absolute
  9753. *
  9754. * @param {string} url The URL to test
  9755. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9756. */
  9757. Object.defineProperty(exports, "__esModule", {
  9758. value: true
  9759. });
  9760. exports.default = isAbsoluteURL;
  9761. function isAbsoluteURL(url) {
  9762. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9763. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9764. // by any combination of letters, digits, plus, period, or hyphen.
  9765. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9766. }
  9767. /***/ }),
  9768. /* 44 */
  9769. /*!*************************************************************************************************!*\
  9770. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9771. \*************************************************************************************************/
  9772. /*! no static exports found */
  9773. /***/ (function(module, exports, __webpack_require__) {
  9774. "use strict";
  9775. /**
  9776. * Creates a new URL by combining the specified URLs
  9777. *
  9778. * @param {string} baseURL The base URL
  9779. * @param {string} relativeURL The relative URL
  9780. * @returns {string} The combined URL
  9781. */
  9782. Object.defineProperty(exports, "__esModule", {
  9783. value: true
  9784. });
  9785. exports.default = combineURLs;
  9786. function combineURLs(baseURL, relativeURL) {
  9787. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9788. }
  9789. /***/ }),
  9790. /* 45 */
  9791. /*!*****************************************************************************************!*\
  9792. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9793. \*****************************************************************************************/
  9794. /*! no static exports found */
  9795. /***/ (function(module, exports, __webpack_require__) {
  9796. "use strict";
  9797. Object.defineProperty(exports, "__esModule", {
  9798. value: true
  9799. });
  9800. exports.default = settle;
  9801. /**
  9802. * Resolve or reject a Promise based on response status.
  9803. *
  9804. * @param {Function} resolve A function that resolves the promise.
  9805. * @param {Function} reject A function that rejects the promise.
  9806. * @param {object} response The response.
  9807. */
  9808. function settle(resolve, reject, response) {
  9809. var validateStatus = response.config.validateStatus;
  9810. var status = response.statusCode;
  9811. if (status && (!validateStatus || validateStatus(status))) {
  9812. resolve(response);
  9813. } else {
  9814. reject(response);
  9815. }
  9816. }
  9817. /***/ }),
  9818. /* 46 */
  9819. /*!*****************************************************************************************************!*\
  9820. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9821. \*****************************************************************************************************/
  9822. /*! no static exports found */
  9823. /***/ (function(module, exports, __webpack_require__) {
  9824. "use strict";
  9825. Object.defineProperty(exports, "__esModule", {
  9826. value: true
  9827. });
  9828. exports.default = void 0;
  9829. function InterceptorManager() {
  9830. this.handlers = [];
  9831. }
  9832. /**
  9833. * Add a new interceptor to the stack
  9834. *
  9835. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9836. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9837. *
  9838. * @return {Number} An ID used to remove interceptor later
  9839. */
  9840. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9841. this.handlers.push({
  9842. fulfilled: fulfilled,
  9843. rejected: rejected
  9844. });
  9845. return this.handlers.length - 1;
  9846. };
  9847. /**
  9848. * Remove an interceptor from the stack
  9849. *
  9850. * @param {Number} id The ID that was returned by `use`
  9851. */
  9852. InterceptorManager.prototype.eject = function eject(id) {
  9853. if (this.handlers[id]) {
  9854. this.handlers[id] = null;
  9855. }
  9856. };
  9857. /**
  9858. * Iterate over all the registered interceptors
  9859. *
  9860. * This method is particularly useful for skipping over any
  9861. * interceptors that may have become `null` calling `eject`.
  9862. *
  9863. * @param {Function} fn The function to call for each interceptor
  9864. */
  9865. InterceptorManager.prototype.forEach = function forEach(fn) {
  9866. this.handlers.forEach(function (h) {
  9867. if (h !== null) {
  9868. fn(h);
  9869. }
  9870. });
  9871. };
  9872. var _default = InterceptorManager;
  9873. exports.default = _default;
  9874. /***/ }),
  9875. /* 47 */
  9876. /*!**********************************************************************************************!*\
  9877. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9878. \**********************************************************************************************/
  9879. /*! no static exports found */
  9880. /***/ (function(module, exports, __webpack_require__) {
  9881. "use strict";
  9882. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9883. Object.defineProperty(exports, "__esModule", {
  9884. value: true
  9885. });
  9886. exports.default = void 0;
  9887. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9888. var _utils = __webpack_require__(/*! ../utils */ 41);
  9889. 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; }
  9890. 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; }
  9891. /**
  9892. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9893. * @param {Array} keys - 配置项
  9894. * @param {Object} globalsConfig - 当前的全局配置
  9895. * @param {Object} config2 - 局部配置
  9896. * @return {{}}
  9897. */
  9898. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9899. var config = {};
  9900. keys.forEach(function (prop) {
  9901. if (!(0, _utils.isUndefined)(config2[prop])) {
  9902. config[prop] = config2[prop];
  9903. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9904. config[prop] = globalsConfig[prop];
  9905. }
  9906. });
  9907. return config;
  9908. };
  9909. /**
  9910. *
  9911. * @param globalsConfig - 当前实例的全局配置
  9912. * @param config2 - 当前的局部配置
  9913. * @return - 合并后的配置
  9914. */
  9915. var _default = function _default(globalsConfig) {
  9916. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9917. var method = config2.method || globalsConfig.method || 'GET';
  9918. var config = {
  9919. baseURL: globalsConfig.baseURL || '',
  9920. method: method,
  9921. url: config2.url || '',
  9922. params: config2.params || {},
  9923. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9924. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  9925. };
  9926. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9927. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9928. // eslint-disable-next-line no-empty
  9929. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  9930. delete config.header['content-type'];
  9931. delete config.header['Content-Type'];
  9932. var uploadKeys = ['filePath', 'name', 'formData'];
  9933. uploadKeys.forEach(function (prop) {
  9934. if (!(0, _utils.isUndefined)(config2[prop])) {
  9935. config[prop] = config2[prop];
  9936. }
  9937. });
  9938. } else {
  9939. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  9940. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9941. }
  9942. return config;
  9943. };
  9944. exports.default = _default;
  9945. /***/ }),
  9946. /* 48 */
  9947. /*!*******************************************************************************************!*\
  9948. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  9949. \*******************************************************************************************/
  9950. /*! no static exports found */
  9951. /***/ (function(module, exports, __webpack_require__) {
  9952. "use strict";
  9953. Object.defineProperty(exports, "__esModule", {
  9954. value: true
  9955. });
  9956. exports.default = void 0;
  9957. /**
  9958. * 默认的全局配置
  9959. */
  9960. var _default = {
  9961. baseURL: '',
  9962. header: {},
  9963. method: 'GET',
  9964. dataType: 'json',
  9965. responseType: 'text',
  9966. custom: {},
  9967. timeout: 60000,
  9968. validateStatus: function validateStatus(status) {
  9969. return status >= 200 && status < 300;
  9970. }
  9971. };
  9972. exports.default = _default;
  9973. /***/ }),
  9974. /* 49 */
  9975. /*!*****************************************************************************************!*\
  9976. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  9977. \*****************************************************************************************/
  9978. /*! no static exports found */
  9979. /***/ (function(module, exports, __webpack_require__) {
  9980. "use strict";
  9981. /* WEBPACK VAR INJECTION */(function(Buffer) {
  9982. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9983. Object.defineProperty(exports, "__esModule", {
  9984. value: true
  9985. });
  9986. exports.default = void 0;
  9987. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9988. /* eslint-disable */
  9989. var clone = function () {
  9990. 'use strict';
  9991. function _instanceof(obj, type) {
  9992. return type != null && obj instanceof type;
  9993. }
  9994. var nativeMap;
  9995. try {
  9996. nativeMap = Map;
  9997. } catch (_) {
  9998. // maybe a reference error because no `Map`. Give it a dummy value that no
  9999. // value will ever be an instanceof.
  10000. nativeMap = function nativeMap() {};
  10001. }
  10002. var nativeSet;
  10003. try {
  10004. nativeSet = Set;
  10005. } catch (_) {
  10006. nativeSet = function nativeSet() {};
  10007. }
  10008. var nativePromise;
  10009. try {
  10010. nativePromise = Promise;
  10011. } catch (_) {
  10012. nativePromise = function nativePromise() {};
  10013. }
  10014. /**
  10015. * Clones (copies) an Object using deep copying.
  10016. *
  10017. * This function supports circular references by default, but if you are certain
  10018. * there are no circular references in your object, you can save some CPU time
  10019. * by calling clone(obj, false).
  10020. *
  10021. * Caution: if `circular` is false and `parent` contains circular references,
  10022. * your program may enter an infinite loop and crash.
  10023. *
  10024. * @param `parent` - the object to be cloned
  10025. * @param `circular` - set to true if the object to be cloned may contain
  10026. * circular references. (optional - true by default)
  10027. * @param `depth` - set to a number if the object is only to be cloned to
  10028. * a particular depth. (optional - defaults to Infinity)
  10029. * @param `prototype` - sets the prototype to be used when cloning an object.
  10030. * (optional - defaults to parent prototype).
  10031. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10032. * should be cloned as well. Non-enumerable properties on the prototype
  10033. * chain will be ignored. (optional - false by default)
  10034. */
  10035. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10036. if ((0, _typeof2.default)(circular) === 'object') {
  10037. depth = circular.depth;
  10038. prototype = circular.prototype;
  10039. includeNonEnumerable = circular.includeNonEnumerable;
  10040. circular = circular.circular;
  10041. }
  10042. // maintain two arrays for circular references, where corresponding parents
  10043. // and children have the same index
  10044. var allParents = [];
  10045. var allChildren = [];
  10046. var useBuffer = typeof Buffer != 'undefined';
  10047. if (typeof circular == 'undefined') circular = true;
  10048. if (typeof depth == 'undefined') depth = Infinity;
  10049. // recurse this function so we don't reset allParents and allChildren
  10050. function _clone(parent, depth) {
  10051. // cloning null always returns null
  10052. if (parent === null) return null;
  10053. if (depth === 0) return parent;
  10054. var child;
  10055. var proto;
  10056. if ((0, _typeof2.default)(parent) != 'object') {
  10057. return parent;
  10058. }
  10059. if (_instanceof(parent, nativeMap)) {
  10060. child = new nativeMap();
  10061. } else if (_instanceof(parent, nativeSet)) {
  10062. child = new nativeSet();
  10063. } else if (_instanceof(parent, nativePromise)) {
  10064. child = new nativePromise(function (resolve, reject) {
  10065. parent.then(function (value) {
  10066. resolve(_clone(value, depth - 1));
  10067. }, function (err) {
  10068. reject(_clone(err, depth - 1));
  10069. });
  10070. });
  10071. } else if (clone.__isArray(parent)) {
  10072. child = [];
  10073. } else if (clone.__isRegExp(parent)) {
  10074. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10075. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10076. } else if (clone.__isDate(parent)) {
  10077. child = new Date(parent.getTime());
  10078. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10079. if (Buffer.from) {
  10080. // Node.js >= 5.10.0
  10081. child = Buffer.from(parent);
  10082. } else {
  10083. // Older Node.js versions
  10084. child = new Buffer(parent.length);
  10085. parent.copy(child);
  10086. }
  10087. return child;
  10088. } else if (_instanceof(parent, Error)) {
  10089. child = Object.create(parent);
  10090. } else {
  10091. if (typeof prototype == 'undefined') {
  10092. proto = Object.getPrototypeOf(parent);
  10093. child = Object.create(proto);
  10094. } else {
  10095. child = Object.create(prototype);
  10096. proto = prototype;
  10097. }
  10098. }
  10099. if (circular) {
  10100. var index = allParents.indexOf(parent);
  10101. if (index != -1) {
  10102. return allChildren[index];
  10103. }
  10104. allParents.push(parent);
  10105. allChildren.push(child);
  10106. }
  10107. if (_instanceof(parent, nativeMap)) {
  10108. parent.forEach(function (value, key) {
  10109. var keyChild = _clone(key, depth - 1);
  10110. var valueChild = _clone(value, depth - 1);
  10111. child.set(keyChild, valueChild);
  10112. });
  10113. }
  10114. if (_instanceof(parent, nativeSet)) {
  10115. parent.forEach(function (value) {
  10116. var entryChild = _clone(value, depth - 1);
  10117. child.add(entryChild);
  10118. });
  10119. }
  10120. for (var i in parent) {
  10121. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10122. if (attrs) {
  10123. child[i] = _clone(parent[i], depth - 1);
  10124. }
  10125. try {
  10126. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10127. if (objProperty.set === 'undefined') {
  10128. // no setter defined. Skip cloning this property
  10129. continue;
  10130. }
  10131. child[i] = _clone(parent[i], depth - 1);
  10132. } catch (e) {
  10133. if (e instanceof TypeError) {
  10134. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10135. // we can't do anything about this, other than inform the user that this property cannot be set.
  10136. continue;
  10137. } else if (e instanceof ReferenceError) {
  10138. //this may happen in non strict mode
  10139. continue;
  10140. }
  10141. }
  10142. }
  10143. if (Object.getOwnPropertySymbols) {
  10144. var symbols = Object.getOwnPropertySymbols(parent);
  10145. for (var i = 0; i < symbols.length; i++) {
  10146. // Don't need to worry about cloning a symbol because it is a primitive,
  10147. // like a number or string.
  10148. var symbol = symbols[i];
  10149. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10150. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10151. continue;
  10152. }
  10153. child[symbol] = _clone(parent[symbol], depth - 1);
  10154. Object.defineProperty(child, symbol, descriptor);
  10155. }
  10156. }
  10157. if (includeNonEnumerable) {
  10158. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10159. for (var i = 0; i < allPropertyNames.length; i++) {
  10160. var propertyName = allPropertyNames[i];
  10161. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10162. if (descriptor && descriptor.enumerable) {
  10163. continue;
  10164. }
  10165. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10166. Object.defineProperty(child, propertyName, descriptor);
  10167. }
  10168. }
  10169. return child;
  10170. }
  10171. return _clone(parent, depth);
  10172. }
  10173. /**
  10174. * Simple flat clone using prototype, accepts only objects, usefull for property
  10175. * override on FLAT configuration object (no nested props).
  10176. *
  10177. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10178. * works.
  10179. */
  10180. clone.clonePrototype = function clonePrototype(parent) {
  10181. if (parent === null) return null;
  10182. var c = function c() {};
  10183. c.prototype = parent;
  10184. return new c();
  10185. };
  10186. // private utility functions
  10187. function __objToStr(o) {
  10188. return Object.prototype.toString.call(o);
  10189. }
  10190. clone.__objToStr = __objToStr;
  10191. function __isDate(o) {
  10192. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10193. }
  10194. clone.__isDate = __isDate;
  10195. function __isArray(o) {
  10196. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10197. }
  10198. clone.__isArray = __isArray;
  10199. function __isRegExp(o) {
  10200. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10201. }
  10202. clone.__isRegExp = __isRegExp;
  10203. function __getRegExpFlags(re) {
  10204. var flags = '';
  10205. if (re.global) flags += 'g';
  10206. if (re.ignoreCase) flags += 'i';
  10207. if (re.multiline) flags += 'm';
  10208. return flags;
  10209. }
  10210. clone.__getRegExpFlags = __getRegExpFlags;
  10211. return clone;
  10212. }();
  10213. var _default = clone;
  10214. exports.default = _default;
  10215. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 50).Buffer))
  10216. /***/ }),
  10217. /* 50 */
  10218. /*!**************************************!*\
  10219. !*** ./node_modules/buffer/index.js ***!
  10220. \**************************************/
  10221. /*! no static exports found */
  10222. /***/ (function(module, exports, __webpack_require__) {
  10223. "use strict";
  10224. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10225. * The buffer module from node.js, for the browser.
  10226. *
  10227. * @author Feross Aboukhadijeh <http://feross.org>
  10228. * @license MIT
  10229. */
  10230. /* eslint-disable no-proto */
  10231. var base64 = __webpack_require__(/*! base64-js */ 51)
  10232. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  10233. var isArray = __webpack_require__(/*! isarray */ 53)
  10234. exports.Buffer = Buffer
  10235. exports.SlowBuffer = SlowBuffer
  10236. exports.INSPECT_MAX_BYTES = 50
  10237. /**
  10238. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10239. * === true Use Uint8Array implementation (fastest)
  10240. * === false Use Object implementation (most compatible, even IE6)
  10241. *
  10242. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10243. * Opera 11.6+, iOS 4.2+.
  10244. *
  10245. * Due to various browser bugs, sometimes the Object implementation will be used even
  10246. * when the browser supports typed arrays.
  10247. *
  10248. * Note:
  10249. *
  10250. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10251. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10252. *
  10253. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10254. *
  10255. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10256. * incorrect length in some situations.
  10257. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10258. * get the Object implementation, which is slower but behaves correctly.
  10259. */
  10260. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10261. ? global.TYPED_ARRAY_SUPPORT
  10262. : typedArraySupport()
  10263. /*
  10264. * Export kMaxLength after typed array support is determined.
  10265. */
  10266. exports.kMaxLength = kMaxLength()
  10267. function typedArraySupport () {
  10268. try {
  10269. var arr = new Uint8Array(1)
  10270. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10271. return arr.foo() === 42 && // typed array instances can be augmented
  10272. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10273. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10274. } catch (e) {
  10275. return false
  10276. }
  10277. }
  10278. function kMaxLength () {
  10279. return Buffer.TYPED_ARRAY_SUPPORT
  10280. ? 0x7fffffff
  10281. : 0x3fffffff
  10282. }
  10283. function createBuffer (that, length) {
  10284. if (kMaxLength() < length) {
  10285. throw new RangeError('Invalid typed array length')
  10286. }
  10287. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10288. // Return an augmented `Uint8Array` instance, for best performance
  10289. that = new Uint8Array(length)
  10290. that.__proto__ = Buffer.prototype
  10291. } else {
  10292. // Fallback: Return an object instance of the Buffer class
  10293. if (that === null) {
  10294. that = new Buffer(length)
  10295. }
  10296. that.length = length
  10297. }
  10298. return that
  10299. }
  10300. /**
  10301. * The Buffer constructor returns instances of `Uint8Array` that have their
  10302. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10303. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10304. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10305. * returns a single octet.
  10306. *
  10307. * The `Uint8Array` prototype remains unmodified.
  10308. */
  10309. function Buffer (arg, encodingOrOffset, length) {
  10310. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10311. return new Buffer(arg, encodingOrOffset, length)
  10312. }
  10313. // Common case.
  10314. if (typeof arg === 'number') {
  10315. if (typeof encodingOrOffset === 'string') {
  10316. throw new Error(
  10317. 'If encoding is specified then the first argument must be a string'
  10318. )
  10319. }
  10320. return allocUnsafe(this, arg)
  10321. }
  10322. return from(this, arg, encodingOrOffset, length)
  10323. }
  10324. Buffer.poolSize = 8192 // not used by this implementation
  10325. // TODO: Legacy, not needed anymore. Remove in next major version.
  10326. Buffer._augment = function (arr) {
  10327. arr.__proto__ = Buffer.prototype
  10328. return arr
  10329. }
  10330. function from (that, value, encodingOrOffset, length) {
  10331. if (typeof value === 'number') {
  10332. throw new TypeError('"value" argument must not be a number')
  10333. }
  10334. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10335. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10336. }
  10337. if (typeof value === 'string') {
  10338. return fromString(that, value, encodingOrOffset)
  10339. }
  10340. return fromObject(that, value)
  10341. }
  10342. /**
  10343. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10344. * if value is a number.
  10345. * Buffer.from(str[, encoding])
  10346. * Buffer.from(array)
  10347. * Buffer.from(buffer)
  10348. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10349. **/
  10350. Buffer.from = function (value, encodingOrOffset, length) {
  10351. return from(null, value, encodingOrOffset, length)
  10352. }
  10353. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10354. Buffer.prototype.__proto__ = Uint8Array.prototype
  10355. Buffer.__proto__ = Uint8Array
  10356. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10357. Buffer[Symbol.species] === Buffer) {
  10358. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10359. Object.defineProperty(Buffer, Symbol.species, {
  10360. value: null,
  10361. configurable: true
  10362. })
  10363. }
  10364. }
  10365. function assertSize (size) {
  10366. if (typeof size !== 'number') {
  10367. throw new TypeError('"size" argument must be a number')
  10368. } else if (size < 0) {
  10369. throw new RangeError('"size" argument must not be negative')
  10370. }
  10371. }
  10372. function alloc (that, size, fill, encoding) {
  10373. assertSize(size)
  10374. if (size <= 0) {
  10375. return createBuffer(that, size)
  10376. }
  10377. if (fill !== undefined) {
  10378. // Only pay attention to encoding if it's a string. This
  10379. // prevents accidentally sending in a number that would
  10380. // be interpretted as a start offset.
  10381. return typeof encoding === 'string'
  10382. ? createBuffer(that, size).fill(fill, encoding)
  10383. : createBuffer(that, size).fill(fill)
  10384. }
  10385. return createBuffer(that, size)
  10386. }
  10387. /**
  10388. * Creates a new filled Buffer instance.
  10389. * alloc(size[, fill[, encoding]])
  10390. **/
  10391. Buffer.alloc = function (size, fill, encoding) {
  10392. return alloc(null, size, fill, encoding)
  10393. }
  10394. function allocUnsafe (that, size) {
  10395. assertSize(size)
  10396. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10397. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10398. for (var i = 0; i < size; ++i) {
  10399. that[i] = 0
  10400. }
  10401. }
  10402. return that
  10403. }
  10404. /**
  10405. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10406. * */
  10407. Buffer.allocUnsafe = function (size) {
  10408. return allocUnsafe(null, size)
  10409. }
  10410. /**
  10411. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10412. */
  10413. Buffer.allocUnsafeSlow = function (size) {
  10414. return allocUnsafe(null, size)
  10415. }
  10416. function fromString (that, string, encoding) {
  10417. if (typeof encoding !== 'string' || encoding === '') {
  10418. encoding = 'utf8'
  10419. }
  10420. if (!Buffer.isEncoding(encoding)) {
  10421. throw new TypeError('"encoding" must be a valid string encoding')
  10422. }
  10423. var length = byteLength(string, encoding) | 0
  10424. that = createBuffer(that, length)
  10425. var actual = that.write(string, encoding)
  10426. if (actual !== length) {
  10427. // Writing a hex string, for example, that contains invalid characters will
  10428. // cause everything after the first invalid character to be ignored. (e.g.
  10429. // 'abxxcd' will be treated as 'ab')
  10430. that = that.slice(0, actual)
  10431. }
  10432. return that
  10433. }
  10434. function fromArrayLike (that, array) {
  10435. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10436. that = createBuffer(that, length)
  10437. for (var i = 0; i < length; i += 1) {
  10438. that[i] = array[i] & 255
  10439. }
  10440. return that
  10441. }
  10442. function fromArrayBuffer (that, array, byteOffset, length) {
  10443. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10444. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10445. throw new RangeError('\'offset\' is out of bounds')
  10446. }
  10447. if (array.byteLength < byteOffset + (length || 0)) {
  10448. throw new RangeError('\'length\' is out of bounds')
  10449. }
  10450. if (byteOffset === undefined && length === undefined) {
  10451. array = new Uint8Array(array)
  10452. } else if (length === undefined) {
  10453. array = new Uint8Array(array, byteOffset)
  10454. } else {
  10455. array = new Uint8Array(array, byteOffset, length)
  10456. }
  10457. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10458. // Return an augmented `Uint8Array` instance, for best performance
  10459. that = array
  10460. that.__proto__ = Buffer.prototype
  10461. } else {
  10462. // Fallback: Return an object instance of the Buffer class
  10463. that = fromArrayLike(that, array)
  10464. }
  10465. return that
  10466. }
  10467. function fromObject (that, obj) {
  10468. if (Buffer.isBuffer(obj)) {
  10469. var len = checked(obj.length) | 0
  10470. that = createBuffer(that, len)
  10471. if (that.length === 0) {
  10472. return that
  10473. }
  10474. obj.copy(that, 0, 0, len)
  10475. return that
  10476. }
  10477. if (obj) {
  10478. if ((typeof ArrayBuffer !== 'undefined' &&
  10479. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10480. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10481. return createBuffer(that, 0)
  10482. }
  10483. return fromArrayLike(that, obj)
  10484. }
  10485. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10486. return fromArrayLike(that, obj.data)
  10487. }
  10488. }
  10489. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10490. }
  10491. function checked (length) {
  10492. // Note: cannot use `length < kMaxLength()` here because that fails when
  10493. // length is NaN (which is otherwise coerced to zero.)
  10494. if (length >= kMaxLength()) {
  10495. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10496. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10497. }
  10498. return length | 0
  10499. }
  10500. function SlowBuffer (length) {
  10501. if (+length != length) { // eslint-disable-line eqeqeq
  10502. length = 0
  10503. }
  10504. return Buffer.alloc(+length)
  10505. }
  10506. Buffer.isBuffer = function isBuffer (b) {
  10507. return !!(b != null && b._isBuffer)
  10508. }
  10509. Buffer.compare = function compare (a, b) {
  10510. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10511. throw new TypeError('Arguments must be Buffers')
  10512. }
  10513. if (a === b) return 0
  10514. var x = a.length
  10515. var y = b.length
  10516. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10517. if (a[i] !== b[i]) {
  10518. x = a[i]
  10519. y = b[i]
  10520. break
  10521. }
  10522. }
  10523. if (x < y) return -1
  10524. if (y < x) return 1
  10525. return 0
  10526. }
  10527. Buffer.isEncoding = function isEncoding (encoding) {
  10528. switch (String(encoding).toLowerCase()) {
  10529. case 'hex':
  10530. case 'utf8':
  10531. case 'utf-8':
  10532. case 'ascii':
  10533. case 'latin1':
  10534. case 'binary':
  10535. case 'base64':
  10536. case 'ucs2':
  10537. case 'ucs-2':
  10538. case 'utf16le':
  10539. case 'utf-16le':
  10540. return true
  10541. default:
  10542. return false
  10543. }
  10544. }
  10545. Buffer.concat = function concat (list, length) {
  10546. if (!isArray(list)) {
  10547. throw new TypeError('"list" argument must be an Array of Buffers')
  10548. }
  10549. if (list.length === 0) {
  10550. return Buffer.alloc(0)
  10551. }
  10552. var i
  10553. if (length === undefined) {
  10554. length = 0
  10555. for (i = 0; i < list.length; ++i) {
  10556. length += list[i].length
  10557. }
  10558. }
  10559. var buffer = Buffer.allocUnsafe(length)
  10560. var pos = 0
  10561. for (i = 0; i < list.length; ++i) {
  10562. var buf = list[i]
  10563. if (!Buffer.isBuffer(buf)) {
  10564. throw new TypeError('"list" argument must be an Array of Buffers')
  10565. }
  10566. buf.copy(buffer, pos)
  10567. pos += buf.length
  10568. }
  10569. return buffer
  10570. }
  10571. function byteLength (string, encoding) {
  10572. if (Buffer.isBuffer(string)) {
  10573. return string.length
  10574. }
  10575. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10576. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10577. return string.byteLength
  10578. }
  10579. if (typeof string !== 'string') {
  10580. string = '' + string
  10581. }
  10582. var len = string.length
  10583. if (len === 0) return 0
  10584. // Use a for loop to avoid recursion
  10585. var loweredCase = false
  10586. for (;;) {
  10587. switch (encoding) {
  10588. case 'ascii':
  10589. case 'latin1':
  10590. case 'binary':
  10591. return len
  10592. case 'utf8':
  10593. case 'utf-8':
  10594. case undefined:
  10595. return utf8ToBytes(string).length
  10596. case 'ucs2':
  10597. case 'ucs-2':
  10598. case 'utf16le':
  10599. case 'utf-16le':
  10600. return len * 2
  10601. case 'hex':
  10602. return len >>> 1
  10603. case 'base64':
  10604. return base64ToBytes(string).length
  10605. default:
  10606. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10607. encoding = ('' + encoding).toLowerCase()
  10608. loweredCase = true
  10609. }
  10610. }
  10611. }
  10612. Buffer.byteLength = byteLength
  10613. function slowToString (encoding, start, end) {
  10614. var loweredCase = false
  10615. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10616. // property of a typed array.
  10617. // This behaves neither like String nor Uint8Array in that we set start/end
  10618. // to their upper/lower bounds if the value passed is out of range.
  10619. // undefined is handled specially as per ECMA-262 6th Edition,
  10620. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10621. if (start === undefined || start < 0) {
  10622. start = 0
  10623. }
  10624. // Return early if start > this.length. Done here to prevent potential uint32
  10625. // coercion fail below.
  10626. if (start > this.length) {
  10627. return ''
  10628. }
  10629. if (end === undefined || end > this.length) {
  10630. end = this.length
  10631. }
  10632. if (end <= 0) {
  10633. return ''
  10634. }
  10635. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10636. end >>>= 0
  10637. start >>>= 0
  10638. if (end <= start) {
  10639. return ''
  10640. }
  10641. if (!encoding) encoding = 'utf8'
  10642. while (true) {
  10643. switch (encoding) {
  10644. case 'hex':
  10645. return hexSlice(this, start, end)
  10646. case 'utf8':
  10647. case 'utf-8':
  10648. return utf8Slice(this, start, end)
  10649. case 'ascii':
  10650. return asciiSlice(this, start, end)
  10651. case 'latin1':
  10652. case 'binary':
  10653. return latin1Slice(this, start, end)
  10654. case 'base64':
  10655. return base64Slice(this, start, end)
  10656. case 'ucs2':
  10657. case 'ucs-2':
  10658. case 'utf16le':
  10659. case 'utf-16le':
  10660. return utf16leSlice(this, start, end)
  10661. default:
  10662. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10663. encoding = (encoding + '').toLowerCase()
  10664. loweredCase = true
  10665. }
  10666. }
  10667. }
  10668. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10669. // Buffer instances.
  10670. Buffer.prototype._isBuffer = true
  10671. function swap (b, n, m) {
  10672. var i = b[n]
  10673. b[n] = b[m]
  10674. b[m] = i
  10675. }
  10676. Buffer.prototype.swap16 = function swap16 () {
  10677. var len = this.length
  10678. if (len % 2 !== 0) {
  10679. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10680. }
  10681. for (var i = 0; i < len; i += 2) {
  10682. swap(this, i, i + 1)
  10683. }
  10684. return this
  10685. }
  10686. Buffer.prototype.swap32 = function swap32 () {
  10687. var len = this.length
  10688. if (len % 4 !== 0) {
  10689. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10690. }
  10691. for (var i = 0; i < len; i += 4) {
  10692. swap(this, i, i + 3)
  10693. swap(this, i + 1, i + 2)
  10694. }
  10695. return this
  10696. }
  10697. Buffer.prototype.swap64 = function swap64 () {
  10698. var len = this.length
  10699. if (len % 8 !== 0) {
  10700. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10701. }
  10702. for (var i = 0; i < len; i += 8) {
  10703. swap(this, i, i + 7)
  10704. swap(this, i + 1, i + 6)
  10705. swap(this, i + 2, i + 5)
  10706. swap(this, i + 3, i + 4)
  10707. }
  10708. return this
  10709. }
  10710. Buffer.prototype.toString = function toString () {
  10711. var length = this.length | 0
  10712. if (length === 0) return ''
  10713. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10714. return slowToString.apply(this, arguments)
  10715. }
  10716. Buffer.prototype.equals = function equals (b) {
  10717. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10718. if (this === b) return true
  10719. return Buffer.compare(this, b) === 0
  10720. }
  10721. Buffer.prototype.inspect = function inspect () {
  10722. var str = ''
  10723. var max = exports.INSPECT_MAX_BYTES
  10724. if (this.length > 0) {
  10725. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10726. if (this.length > max) str += ' ... '
  10727. }
  10728. return '<Buffer ' + str + '>'
  10729. }
  10730. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10731. if (!Buffer.isBuffer(target)) {
  10732. throw new TypeError('Argument must be a Buffer')
  10733. }
  10734. if (start === undefined) {
  10735. start = 0
  10736. }
  10737. if (end === undefined) {
  10738. end = target ? target.length : 0
  10739. }
  10740. if (thisStart === undefined) {
  10741. thisStart = 0
  10742. }
  10743. if (thisEnd === undefined) {
  10744. thisEnd = this.length
  10745. }
  10746. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10747. throw new RangeError('out of range index')
  10748. }
  10749. if (thisStart >= thisEnd && start >= end) {
  10750. return 0
  10751. }
  10752. if (thisStart >= thisEnd) {
  10753. return -1
  10754. }
  10755. if (start >= end) {
  10756. return 1
  10757. }
  10758. start >>>= 0
  10759. end >>>= 0
  10760. thisStart >>>= 0
  10761. thisEnd >>>= 0
  10762. if (this === target) return 0
  10763. var x = thisEnd - thisStart
  10764. var y = end - start
  10765. var len = Math.min(x, y)
  10766. var thisCopy = this.slice(thisStart, thisEnd)
  10767. var targetCopy = target.slice(start, end)
  10768. for (var i = 0; i < len; ++i) {
  10769. if (thisCopy[i] !== targetCopy[i]) {
  10770. x = thisCopy[i]
  10771. y = targetCopy[i]
  10772. break
  10773. }
  10774. }
  10775. if (x < y) return -1
  10776. if (y < x) return 1
  10777. return 0
  10778. }
  10779. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10780. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10781. //
  10782. // Arguments:
  10783. // - buffer - a Buffer to search
  10784. // - val - a string, Buffer, or number
  10785. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10786. // - encoding - an optional encoding, relevant is val is a string
  10787. // - dir - true for indexOf, false for lastIndexOf
  10788. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10789. // Empty buffer means no match
  10790. if (buffer.length === 0) return -1
  10791. // Normalize byteOffset
  10792. if (typeof byteOffset === 'string') {
  10793. encoding = byteOffset
  10794. byteOffset = 0
  10795. } else if (byteOffset > 0x7fffffff) {
  10796. byteOffset = 0x7fffffff
  10797. } else if (byteOffset < -0x80000000) {
  10798. byteOffset = -0x80000000
  10799. }
  10800. byteOffset = +byteOffset // Coerce to Number.
  10801. if (isNaN(byteOffset)) {
  10802. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10803. byteOffset = dir ? 0 : (buffer.length - 1)
  10804. }
  10805. // Normalize byteOffset: negative offsets start from the end of the buffer
  10806. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10807. if (byteOffset >= buffer.length) {
  10808. if (dir) return -1
  10809. else byteOffset = buffer.length - 1
  10810. } else if (byteOffset < 0) {
  10811. if (dir) byteOffset = 0
  10812. else return -1
  10813. }
  10814. // Normalize val
  10815. if (typeof val === 'string') {
  10816. val = Buffer.from(val, encoding)
  10817. }
  10818. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10819. if (Buffer.isBuffer(val)) {
  10820. // Special case: looking for empty string/buffer always fails
  10821. if (val.length === 0) {
  10822. return -1
  10823. }
  10824. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10825. } else if (typeof val === 'number') {
  10826. val = val & 0xFF // Search for a byte value [0-255]
  10827. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10828. typeof Uint8Array.prototype.indexOf === 'function') {
  10829. if (dir) {
  10830. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10831. } else {
  10832. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10833. }
  10834. }
  10835. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10836. }
  10837. throw new TypeError('val must be string, number or Buffer')
  10838. }
  10839. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10840. var indexSize = 1
  10841. var arrLength = arr.length
  10842. var valLength = val.length
  10843. if (encoding !== undefined) {
  10844. encoding = String(encoding).toLowerCase()
  10845. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10846. encoding === 'utf16le' || encoding === 'utf-16le') {
  10847. if (arr.length < 2 || val.length < 2) {
  10848. return -1
  10849. }
  10850. indexSize = 2
  10851. arrLength /= 2
  10852. valLength /= 2
  10853. byteOffset /= 2
  10854. }
  10855. }
  10856. function read (buf, i) {
  10857. if (indexSize === 1) {
  10858. return buf[i]
  10859. } else {
  10860. return buf.readUInt16BE(i * indexSize)
  10861. }
  10862. }
  10863. var i
  10864. if (dir) {
  10865. var foundIndex = -1
  10866. for (i = byteOffset; i < arrLength; i++) {
  10867. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10868. if (foundIndex === -1) foundIndex = i
  10869. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10870. } else {
  10871. if (foundIndex !== -1) i -= i - foundIndex
  10872. foundIndex = -1
  10873. }
  10874. }
  10875. } else {
  10876. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10877. for (i = byteOffset; i >= 0; i--) {
  10878. var found = true
  10879. for (var j = 0; j < valLength; j++) {
  10880. if (read(arr, i + j) !== read(val, j)) {
  10881. found = false
  10882. break
  10883. }
  10884. }
  10885. if (found) return i
  10886. }
  10887. }
  10888. return -1
  10889. }
  10890. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10891. return this.indexOf(val, byteOffset, encoding) !== -1
  10892. }
  10893. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10894. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10895. }
  10896. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10897. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10898. }
  10899. function hexWrite (buf, string, offset, length) {
  10900. offset = Number(offset) || 0
  10901. var remaining = buf.length - offset
  10902. if (!length) {
  10903. length = remaining
  10904. } else {
  10905. length = Number(length)
  10906. if (length > remaining) {
  10907. length = remaining
  10908. }
  10909. }
  10910. // must be an even number of digits
  10911. var strLen = string.length
  10912. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10913. if (length > strLen / 2) {
  10914. length = strLen / 2
  10915. }
  10916. for (var i = 0; i < length; ++i) {
  10917. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10918. if (isNaN(parsed)) return i
  10919. buf[offset + i] = parsed
  10920. }
  10921. return i
  10922. }
  10923. function utf8Write (buf, string, offset, length) {
  10924. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10925. }
  10926. function asciiWrite (buf, string, offset, length) {
  10927. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10928. }
  10929. function latin1Write (buf, string, offset, length) {
  10930. return asciiWrite(buf, string, offset, length)
  10931. }
  10932. function base64Write (buf, string, offset, length) {
  10933. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10934. }
  10935. function ucs2Write (buf, string, offset, length) {
  10936. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10937. }
  10938. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10939. // Buffer#write(string)
  10940. if (offset === undefined) {
  10941. encoding = 'utf8'
  10942. length = this.length
  10943. offset = 0
  10944. // Buffer#write(string, encoding)
  10945. } else if (length === undefined && typeof offset === 'string') {
  10946. encoding = offset
  10947. length = this.length
  10948. offset = 0
  10949. // Buffer#write(string, offset[, length][, encoding])
  10950. } else if (isFinite(offset)) {
  10951. offset = offset | 0
  10952. if (isFinite(length)) {
  10953. length = length | 0
  10954. if (encoding === undefined) encoding = 'utf8'
  10955. } else {
  10956. encoding = length
  10957. length = undefined
  10958. }
  10959. // legacy write(string, encoding, offset, length) - remove in v0.13
  10960. } else {
  10961. throw new Error(
  10962. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10963. )
  10964. }
  10965. var remaining = this.length - offset
  10966. if (length === undefined || length > remaining) length = remaining
  10967. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10968. throw new RangeError('Attempt to write outside buffer bounds')
  10969. }
  10970. if (!encoding) encoding = 'utf8'
  10971. var loweredCase = false
  10972. for (;;) {
  10973. switch (encoding) {
  10974. case 'hex':
  10975. return hexWrite(this, string, offset, length)
  10976. case 'utf8':
  10977. case 'utf-8':
  10978. return utf8Write(this, string, offset, length)
  10979. case 'ascii':
  10980. return asciiWrite(this, string, offset, length)
  10981. case 'latin1':
  10982. case 'binary':
  10983. return latin1Write(this, string, offset, length)
  10984. case 'base64':
  10985. // Warning: maxLength not taken into account in base64Write
  10986. return base64Write(this, string, offset, length)
  10987. case 'ucs2':
  10988. case 'ucs-2':
  10989. case 'utf16le':
  10990. case 'utf-16le':
  10991. return ucs2Write(this, string, offset, length)
  10992. default:
  10993. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10994. encoding = ('' + encoding).toLowerCase()
  10995. loweredCase = true
  10996. }
  10997. }
  10998. }
  10999. Buffer.prototype.toJSON = function toJSON () {
  11000. return {
  11001. type: 'Buffer',
  11002. data: Array.prototype.slice.call(this._arr || this, 0)
  11003. }
  11004. }
  11005. function base64Slice (buf, start, end) {
  11006. if (start === 0 && end === buf.length) {
  11007. return base64.fromByteArray(buf)
  11008. } else {
  11009. return base64.fromByteArray(buf.slice(start, end))
  11010. }
  11011. }
  11012. function utf8Slice (buf, start, end) {
  11013. end = Math.min(buf.length, end)
  11014. var res = []
  11015. var i = start
  11016. while (i < end) {
  11017. var firstByte = buf[i]
  11018. var codePoint = null
  11019. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11020. : (firstByte > 0xDF) ? 3
  11021. : (firstByte > 0xBF) ? 2
  11022. : 1
  11023. if (i + bytesPerSequence <= end) {
  11024. var secondByte, thirdByte, fourthByte, tempCodePoint
  11025. switch (bytesPerSequence) {
  11026. case 1:
  11027. if (firstByte < 0x80) {
  11028. codePoint = firstByte
  11029. }
  11030. break
  11031. case 2:
  11032. secondByte = buf[i + 1]
  11033. if ((secondByte & 0xC0) === 0x80) {
  11034. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11035. if (tempCodePoint > 0x7F) {
  11036. codePoint = tempCodePoint
  11037. }
  11038. }
  11039. break
  11040. case 3:
  11041. secondByte = buf[i + 1]
  11042. thirdByte = buf[i + 2]
  11043. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11044. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11045. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11046. codePoint = tempCodePoint
  11047. }
  11048. }
  11049. break
  11050. case 4:
  11051. secondByte = buf[i + 1]
  11052. thirdByte = buf[i + 2]
  11053. fourthByte = buf[i + 3]
  11054. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11055. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11056. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11057. codePoint = tempCodePoint
  11058. }
  11059. }
  11060. }
  11061. }
  11062. if (codePoint === null) {
  11063. // we did not generate a valid codePoint so insert a
  11064. // replacement char (U+FFFD) and advance only 1 byte
  11065. codePoint = 0xFFFD
  11066. bytesPerSequence = 1
  11067. } else if (codePoint > 0xFFFF) {
  11068. // encode to utf16 (surrogate pair dance)
  11069. codePoint -= 0x10000
  11070. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11071. codePoint = 0xDC00 | codePoint & 0x3FF
  11072. }
  11073. res.push(codePoint)
  11074. i += bytesPerSequence
  11075. }
  11076. return decodeCodePointsArray(res)
  11077. }
  11078. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11079. // the lowest limit is Chrome, with 0x10000 args.
  11080. // We go 1 magnitude less, for safety
  11081. var MAX_ARGUMENTS_LENGTH = 0x1000
  11082. function decodeCodePointsArray (codePoints) {
  11083. var len = codePoints.length
  11084. if (len <= MAX_ARGUMENTS_LENGTH) {
  11085. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11086. }
  11087. // Decode in chunks to avoid "call stack size exceeded".
  11088. var res = ''
  11089. var i = 0
  11090. while (i < len) {
  11091. res += String.fromCharCode.apply(
  11092. String,
  11093. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11094. )
  11095. }
  11096. return res
  11097. }
  11098. function asciiSlice (buf, start, end) {
  11099. var ret = ''
  11100. end = Math.min(buf.length, end)
  11101. for (var i = start; i < end; ++i) {
  11102. ret += String.fromCharCode(buf[i] & 0x7F)
  11103. }
  11104. return ret
  11105. }
  11106. function latin1Slice (buf, start, end) {
  11107. var ret = ''
  11108. end = Math.min(buf.length, end)
  11109. for (var i = start; i < end; ++i) {
  11110. ret += String.fromCharCode(buf[i])
  11111. }
  11112. return ret
  11113. }
  11114. function hexSlice (buf, start, end) {
  11115. var len = buf.length
  11116. if (!start || start < 0) start = 0
  11117. if (!end || end < 0 || end > len) end = len
  11118. var out = ''
  11119. for (var i = start; i < end; ++i) {
  11120. out += toHex(buf[i])
  11121. }
  11122. return out
  11123. }
  11124. function utf16leSlice (buf, start, end) {
  11125. var bytes = buf.slice(start, end)
  11126. var res = ''
  11127. for (var i = 0; i < bytes.length; i += 2) {
  11128. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11129. }
  11130. return res
  11131. }
  11132. Buffer.prototype.slice = function slice (start, end) {
  11133. var len = this.length
  11134. start = ~~start
  11135. end = end === undefined ? len : ~~end
  11136. if (start < 0) {
  11137. start += len
  11138. if (start < 0) start = 0
  11139. } else if (start > len) {
  11140. start = len
  11141. }
  11142. if (end < 0) {
  11143. end += len
  11144. if (end < 0) end = 0
  11145. } else if (end > len) {
  11146. end = len
  11147. }
  11148. if (end < start) end = start
  11149. var newBuf
  11150. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11151. newBuf = this.subarray(start, end)
  11152. newBuf.__proto__ = Buffer.prototype
  11153. } else {
  11154. var sliceLen = end - start
  11155. newBuf = new Buffer(sliceLen, undefined)
  11156. for (var i = 0; i < sliceLen; ++i) {
  11157. newBuf[i] = this[i + start]
  11158. }
  11159. }
  11160. return newBuf
  11161. }
  11162. /*
  11163. * Need to make sure that buffer isn't trying to write out of bounds.
  11164. */
  11165. function checkOffset (offset, ext, length) {
  11166. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11167. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11168. }
  11169. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11170. offset = offset | 0
  11171. byteLength = byteLength | 0
  11172. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11173. var val = this[offset]
  11174. var mul = 1
  11175. var i = 0
  11176. while (++i < byteLength && (mul *= 0x100)) {
  11177. val += this[offset + i] * mul
  11178. }
  11179. return val
  11180. }
  11181. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11182. offset = offset | 0
  11183. byteLength = byteLength | 0
  11184. if (!noAssert) {
  11185. checkOffset(offset, byteLength, this.length)
  11186. }
  11187. var val = this[offset + --byteLength]
  11188. var mul = 1
  11189. while (byteLength > 0 && (mul *= 0x100)) {
  11190. val += this[offset + --byteLength] * mul
  11191. }
  11192. return val
  11193. }
  11194. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11195. if (!noAssert) checkOffset(offset, 1, this.length)
  11196. return this[offset]
  11197. }
  11198. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11199. if (!noAssert) checkOffset(offset, 2, this.length)
  11200. return this[offset] | (this[offset + 1] << 8)
  11201. }
  11202. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11203. if (!noAssert) checkOffset(offset, 2, this.length)
  11204. return (this[offset] << 8) | this[offset + 1]
  11205. }
  11206. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11207. if (!noAssert) checkOffset(offset, 4, this.length)
  11208. return ((this[offset]) |
  11209. (this[offset + 1] << 8) |
  11210. (this[offset + 2] << 16)) +
  11211. (this[offset + 3] * 0x1000000)
  11212. }
  11213. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11214. if (!noAssert) checkOffset(offset, 4, this.length)
  11215. return (this[offset] * 0x1000000) +
  11216. ((this[offset + 1] << 16) |
  11217. (this[offset + 2] << 8) |
  11218. this[offset + 3])
  11219. }
  11220. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11221. offset = offset | 0
  11222. byteLength = byteLength | 0
  11223. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11224. var val = this[offset]
  11225. var mul = 1
  11226. var i = 0
  11227. while (++i < byteLength && (mul *= 0x100)) {
  11228. val += this[offset + i] * mul
  11229. }
  11230. mul *= 0x80
  11231. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11232. return val
  11233. }
  11234. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11235. offset = offset | 0
  11236. byteLength = byteLength | 0
  11237. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11238. var i = byteLength
  11239. var mul = 1
  11240. var val = this[offset + --i]
  11241. while (i > 0 && (mul *= 0x100)) {
  11242. val += this[offset + --i] * mul
  11243. }
  11244. mul *= 0x80
  11245. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11246. return val
  11247. }
  11248. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11249. if (!noAssert) checkOffset(offset, 1, this.length)
  11250. if (!(this[offset] & 0x80)) return (this[offset])
  11251. return ((0xff - this[offset] + 1) * -1)
  11252. }
  11253. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11254. if (!noAssert) checkOffset(offset, 2, this.length)
  11255. var val = this[offset] | (this[offset + 1] << 8)
  11256. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11257. }
  11258. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11259. if (!noAssert) checkOffset(offset, 2, this.length)
  11260. var val = this[offset + 1] | (this[offset] << 8)
  11261. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11262. }
  11263. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11264. if (!noAssert) checkOffset(offset, 4, this.length)
  11265. return (this[offset]) |
  11266. (this[offset + 1] << 8) |
  11267. (this[offset + 2] << 16) |
  11268. (this[offset + 3] << 24)
  11269. }
  11270. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11271. if (!noAssert) checkOffset(offset, 4, this.length)
  11272. return (this[offset] << 24) |
  11273. (this[offset + 1] << 16) |
  11274. (this[offset + 2] << 8) |
  11275. (this[offset + 3])
  11276. }
  11277. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11278. if (!noAssert) checkOffset(offset, 4, this.length)
  11279. return ieee754.read(this, offset, true, 23, 4)
  11280. }
  11281. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11282. if (!noAssert) checkOffset(offset, 4, this.length)
  11283. return ieee754.read(this, offset, false, 23, 4)
  11284. }
  11285. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11286. if (!noAssert) checkOffset(offset, 8, this.length)
  11287. return ieee754.read(this, offset, true, 52, 8)
  11288. }
  11289. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11290. if (!noAssert) checkOffset(offset, 8, this.length)
  11291. return ieee754.read(this, offset, false, 52, 8)
  11292. }
  11293. function checkInt (buf, value, offset, ext, max, min) {
  11294. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11295. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11296. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11297. }
  11298. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11299. value = +value
  11300. offset = offset | 0
  11301. byteLength = byteLength | 0
  11302. if (!noAssert) {
  11303. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11304. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11305. }
  11306. var mul = 1
  11307. var i = 0
  11308. this[offset] = value & 0xFF
  11309. while (++i < byteLength && (mul *= 0x100)) {
  11310. this[offset + i] = (value / mul) & 0xFF
  11311. }
  11312. return offset + byteLength
  11313. }
  11314. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11315. value = +value
  11316. offset = offset | 0
  11317. byteLength = byteLength | 0
  11318. if (!noAssert) {
  11319. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11320. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11321. }
  11322. var i = byteLength - 1
  11323. var mul = 1
  11324. this[offset + i] = value & 0xFF
  11325. while (--i >= 0 && (mul *= 0x100)) {
  11326. this[offset + i] = (value / mul) & 0xFF
  11327. }
  11328. return offset + byteLength
  11329. }
  11330. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11331. value = +value
  11332. offset = offset | 0
  11333. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11334. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11335. this[offset] = (value & 0xff)
  11336. return offset + 1
  11337. }
  11338. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11339. if (value < 0) value = 0xffff + value + 1
  11340. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11341. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11342. (littleEndian ? i : 1 - i) * 8
  11343. }
  11344. }
  11345. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11346. value = +value
  11347. offset = offset | 0
  11348. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11349. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11350. this[offset] = (value & 0xff)
  11351. this[offset + 1] = (value >>> 8)
  11352. } else {
  11353. objectWriteUInt16(this, value, offset, true)
  11354. }
  11355. return offset + 2
  11356. }
  11357. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11358. value = +value
  11359. offset = offset | 0
  11360. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11361. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11362. this[offset] = (value >>> 8)
  11363. this[offset + 1] = (value & 0xff)
  11364. } else {
  11365. objectWriteUInt16(this, value, offset, false)
  11366. }
  11367. return offset + 2
  11368. }
  11369. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11370. if (value < 0) value = 0xffffffff + value + 1
  11371. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11372. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11373. }
  11374. }
  11375. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11376. value = +value
  11377. offset = offset | 0
  11378. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11379. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11380. this[offset + 3] = (value >>> 24)
  11381. this[offset + 2] = (value >>> 16)
  11382. this[offset + 1] = (value >>> 8)
  11383. this[offset] = (value & 0xff)
  11384. } else {
  11385. objectWriteUInt32(this, value, offset, true)
  11386. }
  11387. return offset + 4
  11388. }
  11389. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11390. value = +value
  11391. offset = offset | 0
  11392. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11393. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11394. this[offset] = (value >>> 24)
  11395. this[offset + 1] = (value >>> 16)
  11396. this[offset + 2] = (value >>> 8)
  11397. this[offset + 3] = (value & 0xff)
  11398. } else {
  11399. objectWriteUInt32(this, value, offset, false)
  11400. }
  11401. return offset + 4
  11402. }
  11403. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11404. value = +value
  11405. offset = offset | 0
  11406. if (!noAssert) {
  11407. var limit = Math.pow(2, 8 * byteLength - 1)
  11408. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11409. }
  11410. var i = 0
  11411. var mul = 1
  11412. var sub = 0
  11413. this[offset] = value & 0xFF
  11414. while (++i < byteLength && (mul *= 0x100)) {
  11415. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11416. sub = 1
  11417. }
  11418. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11419. }
  11420. return offset + byteLength
  11421. }
  11422. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11423. value = +value
  11424. offset = offset | 0
  11425. if (!noAssert) {
  11426. var limit = Math.pow(2, 8 * byteLength - 1)
  11427. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11428. }
  11429. var i = byteLength - 1
  11430. var mul = 1
  11431. var sub = 0
  11432. this[offset + i] = value & 0xFF
  11433. while (--i >= 0 && (mul *= 0x100)) {
  11434. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11435. sub = 1
  11436. }
  11437. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11438. }
  11439. return offset + byteLength
  11440. }
  11441. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11442. value = +value
  11443. offset = offset | 0
  11444. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11445. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11446. if (value < 0) value = 0xff + value + 1
  11447. this[offset] = (value & 0xff)
  11448. return offset + 1
  11449. }
  11450. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11451. value = +value
  11452. offset = offset | 0
  11453. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11454. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11455. this[offset] = (value & 0xff)
  11456. this[offset + 1] = (value >>> 8)
  11457. } else {
  11458. objectWriteUInt16(this, value, offset, true)
  11459. }
  11460. return offset + 2
  11461. }
  11462. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11463. value = +value
  11464. offset = offset | 0
  11465. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11466. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11467. this[offset] = (value >>> 8)
  11468. this[offset + 1] = (value & 0xff)
  11469. } else {
  11470. objectWriteUInt16(this, value, offset, false)
  11471. }
  11472. return offset + 2
  11473. }
  11474. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11475. value = +value
  11476. offset = offset | 0
  11477. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11478. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11479. this[offset] = (value & 0xff)
  11480. this[offset + 1] = (value >>> 8)
  11481. this[offset + 2] = (value >>> 16)
  11482. this[offset + 3] = (value >>> 24)
  11483. } else {
  11484. objectWriteUInt32(this, value, offset, true)
  11485. }
  11486. return offset + 4
  11487. }
  11488. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11489. value = +value
  11490. offset = offset | 0
  11491. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11492. if (value < 0) value = 0xffffffff + value + 1
  11493. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11494. this[offset] = (value >>> 24)
  11495. this[offset + 1] = (value >>> 16)
  11496. this[offset + 2] = (value >>> 8)
  11497. this[offset + 3] = (value & 0xff)
  11498. } else {
  11499. objectWriteUInt32(this, value, offset, false)
  11500. }
  11501. return offset + 4
  11502. }
  11503. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11504. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11505. if (offset < 0) throw new RangeError('Index out of range')
  11506. }
  11507. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11508. if (!noAssert) {
  11509. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11510. }
  11511. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11512. return offset + 4
  11513. }
  11514. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11515. return writeFloat(this, value, offset, true, noAssert)
  11516. }
  11517. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11518. return writeFloat(this, value, offset, false, noAssert)
  11519. }
  11520. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11521. if (!noAssert) {
  11522. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11523. }
  11524. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11525. return offset + 8
  11526. }
  11527. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11528. return writeDouble(this, value, offset, true, noAssert)
  11529. }
  11530. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11531. return writeDouble(this, value, offset, false, noAssert)
  11532. }
  11533. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11534. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11535. if (!start) start = 0
  11536. if (!end && end !== 0) end = this.length
  11537. if (targetStart >= target.length) targetStart = target.length
  11538. if (!targetStart) targetStart = 0
  11539. if (end > 0 && end < start) end = start
  11540. // Copy 0 bytes; we're done
  11541. if (end === start) return 0
  11542. if (target.length === 0 || this.length === 0) return 0
  11543. // Fatal error conditions
  11544. if (targetStart < 0) {
  11545. throw new RangeError('targetStart out of bounds')
  11546. }
  11547. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11548. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11549. // Are we oob?
  11550. if (end > this.length) end = this.length
  11551. if (target.length - targetStart < end - start) {
  11552. end = target.length - targetStart + start
  11553. }
  11554. var len = end - start
  11555. var i
  11556. if (this === target && start < targetStart && targetStart < end) {
  11557. // descending copy from end
  11558. for (i = len - 1; i >= 0; --i) {
  11559. target[i + targetStart] = this[i + start]
  11560. }
  11561. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11562. // ascending copy from start
  11563. for (i = 0; i < len; ++i) {
  11564. target[i + targetStart] = this[i + start]
  11565. }
  11566. } else {
  11567. Uint8Array.prototype.set.call(
  11568. target,
  11569. this.subarray(start, start + len),
  11570. targetStart
  11571. )
  11572. }
  11573. return len
  11574. }
  11575. // Usage:
  11576. // buffer.fill(number[, offset[, end]])
  11577. // buffer.fill(buffer[, offset[, end]])
  11578. // buffer.fill(string[, offset[, end]][, encoding])
  11579. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11580. // Handle string cases:
  11581. if (typeof val === 'string') {
  11582. if (typeof start === 'string') {
  11583. encoding = start
  11584. start = 0
  11585. end = this.length
  11586. } else if (typeof end === 'string') {
  11587. encoding = end
  11588. end = this.length
  11589. }
  11590. if (val.length === 1) {
  11591. var code = val.charCodeAt(0)
  11592. if (code < 256) {
  11593. val = code
  11594. }
  11595. }
  11596. if (encoding !== undefined && typeof encoding !== 'string') {
  11597. throw new TypeError('encoding must be a string')
  11598. }
  11599. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11600. throw new TypeError('Unknown encoding: ' + encoding)
  11601. }
  11602. } else if (typeof val === 'number') {
  11603. val = val & 255
  11604. }
  11605. // Invalid ranges are not set to a default, so can range check early.
  11606. if (start < 0 || this.length < start || this.length < end) {
  11607. throw new RangeError('Out of range index')
  11608. }
  11609. if (end <= start) {
  11610. return this
  11611. }
  11612. start = start >>> 0
  11613. end = end === undefined ? this.length : end >>> 0
  11614. if (!val) val = 0
  11615. var i
  11616. if (typeof val === 'number') {
  11617. for (i = start; i < end; ++i) {
  11618. this[i] = val
  11619. }
  11620. } else {
  11621. var bytes = Buffer.isBuffer(val)
  11622. ? val
  11623. : utf8ToBytes(new Buffer(val, encoding).toString())
  11624. var len = bytes.length
  11625. for (i = 0; i < end - start; ++i) {
  11626. this[i + start] = bytes[i % len]
  11627. }
  11628. }
  11629. return this
  11630. }
  11631. // HELPER FUNCTIONS
  11632. // ================
  11633. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11634. function base64clean (str) {
  11635. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11636. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11637. // Node converts strings with length < 2 to ''
  11638. if (str.length < 2) return ''
  11639. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11640. while (str.length % 4 !== 0) {
  11641. str = str + '='
  11642. }
  11643. return str
  11644. }
  11645. function stringtrim (str) {
  11646. if (str.trim) return str.trim()
  11647. return str.replace(/^\s+|\s+$/g, '')
  11648. }
  11649. function toHex (n) {
  11650. if (n < 16) return '0' + n.toString(16)
  11651. return n.toString(16)
  11652. }
  11653. function utf8ToBytes (string, units) {
  11654. units = units || Infinity
  11655. var codePoint
  11656. var length = string.length
  11657. var leadSurrogate = null
  11658. var bytes = []
  11659. for (var i = 0; i < length; ++i) {
  11660. codePoint = string.charCodeAt(i)
  11661. // is surrogate component
  11662. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11663. // last char was a lead
  11664. if (!leadSurrogate) {
  11665. // no lead yet
  11666. if (codePoint > 0xDBFF) {
  11667. // unexpected trail
  11668. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11669. continue
  11670. } else if (i + 1 === length) {
  11671. // unpaired lead
  11672. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11673. continue
  11674. }
  11675. // valid lead
  11676. leadSurrogate = codePoint
  11677. continue
  11678. }
  11679. // 2 leads in a row
  11680. if (codePoint < 0xDC00) {
  11681. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11682. leadSurrogate = codePoint
  11683. continue
  11684. }
  11685. // valid surrogate pair
  11686. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11687. } else if (leadSurrogate) {
  11688. // valid bmp char, but last char was a lead
  11689. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11690. }
  11691. leadSurrogate = null
  11692. // encode utf8
  11693. if (codePoint < 0x80) {
  11694. if ((units -= 1) < 0) break
  11695. bytes.push(codePoint)
  11696. } else if (codePoint < 0x800) {
  11697. if ((units -= 2) < 0) break
  11698. bytes.push(
  11699. codePoint >> 0x6 | 0xC0,
  11700. codePoint & 0x3F | 0x80
  11701. )
  11702. } else if (codePoint < 0x10000) {
  11703. if ((units -= 3) < 0) break
  11704. bytes.push(
  11705. codePoint >> 0xC | 0xE0,
  11706. codePoint >> 0x6 & 0x3F | 0x80,
  11707. codePoint & 0x3F | 0x80
  11708. )
  11709. } else if (codePoint < 0x110000) {
  11710. if ((units -= 4) < 0) break
  11711. bytes.push(
  11712. codePoint >> 0x12 | 0xF0,
  11713. codePoint >> 0xC & 0x3F | 0x80,
  11714. codePoint >> 0x6 & 0x3F | 0x80,
  11715. codePoint & 0x3F | 0x80
  11716. )
  11717. } else {
  11718. throw new Error('Invalid code point')
  11719. }
  11720. }
  11721. return bytes
  11722. }
  11723. function asciiToBytes (str) {
  11724. var byteArray = []
  11725. for (var i = 0; i < str.length; ++i) {
  11726. // Node's code seems to be doing this and not & 0x7F..
  11727. byteArray.push(str.charCodeAt(i) & 0xFF)
  11728. }
  11729. return byteArray
  11730. }
  11731. function utf16leToBytes (str, units) {
  11732. var c, hi, lo
  11733. var byteArray = []
  11734. for (var i = 0; i < str.length; ++i) {
  11735. if ((units -= 2) < 0) break
  11736. c = str.charCodeAt(i)
  11737. hi = c >> 8
  11738. lo = c % 256
  11739. byteArray.push(lo)
  11740. byteArray.push(hi)
  11741. }
  11742. return byteArray
  11743. }
  11744. function base64ToBytes (str) {
  11745. return base64.toByteArray(base64clean(str))
  11746. }
  11747. function blitBuffer (src, dst, offset, length) {
  11748. for (var i = 0; i < length; ++i) {
  11749. if ((i + offset >= dst.length) || (i >= src.length)) break
  11750. dst[i + offset] = src[i]
  11751. }
  11752. return i
  11753. }
  11754. function isnan (val) {
  11755. return val !== val // eslint-disable-line no-self-compare
  11756. }
  11757. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11758. /***/ }),
  11759. /* 51 */
  11760. /*!*****************************************!*\
  11761. !*** ./node_modules/base64-js/index.js ***!
  11762. \*****************************************/
  11763. /*! no static exports found */
  11764. /***/ (function(module, exports, __webpack_require__) {
  11765. "use strict";
  11766. exports.byteLength = byteLength
  11767. exports.toByteArray = toByteArray
  11768. exports.fromByteArray = fromByteArray
  11769. var lookup = []
  11770. var revLookup = []
  11771. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11772. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11773. for (var i = 0, len = code.length; i < len; ++i) {
  11774. lookup[i] = code[i]
  11775. revLookup[code.charCodeAt(i)] = i
  11776. }
  11777. // Support decoding URL-safe base64 strings, as Node.js does.
  11778. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11779. revLookup['-'.charCodeAt(0)] = 62
  11780. revLookup['_'.charCodeAt(0)] = 63
  11781. function getLens (b64) {
  11782. var len = b64.length
  11783. if (len % 4 > 0) {
  11784. throw new Error('Invalid string. Length must be a multiple of 4')
  11785. }
  11786. // Trim off extra bytes after placeholder bytes are found
  11787. // See: https://github.com/beatgammit/base64-js/issues/42
  11788. var validLen = b64.indexOf('=')
  11789. if (validLen === -1) validLen = len
  11790. var placeHoldersLen = validLen === len
  11791. ? 0
  11792. : 4 - (validLen % 4)
  11793. return [validLen, placeHoldersLen]
  11794. }
  11795. // base64 is 4/3 + up to two characters of the original data
  11796. function byteLength (b64) {
  11797. var lens = getLens(b64)
  11798. var validLen = lens[0]
  11799. var placeHoldersLen = lens[1]
  11800. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11801. }
  11802. function _byteLength (b64, validLen, placeHoldersLen) {
  11803. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11804. }
  11805. function toByteArray (b64) {
  11806. var tmp
  11807. var lens = getLens(b64)
  11808. var validLen = lens[0]
  11809. var placeHoldersLen = lens[1]
  11810. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11811. var curByte = 0
  11812. // if there are placeholders, only get up to the last complete 4 chars
  11813. var len = placeHoldersLen > 0
  11814. ? validLen - 4
  11815. : validLen
  11816. var i
  11817. for (i = 0; i < len; i += 4) {
  11818. tmp =
  11819. (revLookup[b64.charCodeAt(i)] << 18) |
  11820. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11821. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11822. revLookup[b64.charCodeAt(i + 3)]
  11823. arr[curByte++] = (tmp >> 16) & 0xFF
  11824. arr[curByte++] = (tmp >> 8) & 0xFF
  11825. arr[curByte++] = tmp & 0xFF
  11826. }
  11827. if (placeHoldersLen === 2) {
  11828. tmp =
  11829. (revLookup[b64.charCodeAt(i)] << 2) |
  11830. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11831. arr[curByte++] = tmp & 0xFF
  11832. }
  11833. if (placeHoldersLen === 1) {
  11834. tmp =
  11835. (revLookup[b64.charCodeAt(i)] << 10) |
  11836. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11837. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11838. arr[curByte++] = (tmp >> 8) & 0xFF
  11839. arr[curByte++] = tmp & 0xFF
  11840. }
  11841. return arr
  11842. }
  11843. function tripletToBase64 (num) {
  11844. return lookup[num >> 18 & 0x3F] +
  11845. lookup[num >> 12 & 0x3F] +
  11846. lookup[num >> 6 & 0x3F] +
  11847. lookup[num & 0x3F]
  11848. }
  11849. function encodeChunk (uint8, start, end) {
  11850. var tmp
  11851. var output = []
  11852. for (var i = start; i < end; i += 3) {
  11853. tmp =
  11854. ((uint8[i] << 16) & 0xFF0000) +
  11855. ((uint8[i + 1] << 8) & 0xFF00) +
  11856. (uint8[i + 2] & 0xFF)
  11857. output.push(tripletToBase64(tmp))
  11858. }
  11859. return output.join('')
  11860. }
  11861. function fromByteArray (uint8) {
  11862. var tmp
  11863. var len = uint8.length
  11864. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11865. var parts = []
  11866. var maxChunkLength = 16383 // must be multiple of 3
  11867. // go through the array every three bytes, we'll deal with trailing stuff later
  11868. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11869. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11870. }
  11871. // pad the end with zeros, but make sure to not forget the extra bytes
  11872. if (extraBytes === 1) {
  11873. tmp = uint8[len - 1]
  11874. parts.push(
  11875. lookup[tmp >> 2] +
  11876. lookup[(tmp << 4) & 0x3F] +
  11877. '=='
  11878. )
  11879. } else if (extraBytes === 2) {
  11880. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11881. parts.push(
  11882. lookup[tmp >> 10] +
  11883. lookup[(tmp >> 4) & 0x3F] +
  11884. lookup[(tmp << 2) & 0x3F] +
  11885. '='
  11886. )
  11887. }
  11888. return parts.join('')
  11889. }
  11890. /***/ }),
  11891. /* 52 */
  11892. /*!***************************************!*\
  11893. !*** ./node_modules/ieee754/index.js ***!
  11894. \***************************************/
  11895. /*! no static exports found */
  11896. /***/ (function(module, exports) {
  11897. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11898. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11899. var e, m
  11900. var eLen = (nBytes * 8) - mLen - 1
  11901. var eMax = (1 << eLen) - 1
  11902. var eBias = eMax >> 1
  11903. var nBits = -7
  11904. var i = isLE ? (nBytes - 1) : 0
  11905. var d = isLE ? -1 : 1
  11906. var s = buffer[offset + i]
  11907. i += d
  11908. e = s & ((1 << (-nBits)) - 1)
  11909. s >>= (-nBits)
  11910. nBits += eLen
  11911. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11912. m = e & ((1 << (-nBits)) - 1)
  11913. e >>= (-nBits)
  11914. nBits += mLen
  11915. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11916. if (e === 0) {
  11917. e = 1 - eBias
  11918. } else if (e === eMax) {
  11919. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11920. } else {
  11921. m = m + Math.pow(2, mLen)
  11922. e = e - eBias
  11923. }
  11924. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11925. }
  11926. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11927. var e, m, c
  11928. var eLen = (nBytes * 8) - mLen - 1
  11929. var eMax = (1 << eLen) - 1
  11930. var eBias = eMax >> 1
  11931. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11932. var i = isLE ? 0 : (nBytes - 1)
  11933. var d = isLE ? 1 : -1
  11934. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11935. value = Math.abs(value)
  11936. if (isNaN(value) || value === Infinity) {
  11937. m = isNaN(value) ? 1 : 0
  11938. e = eMax
  11939. } else {
  11940. e = Math.floor(Math.log(value) / Math.LN2)
  11941. if (value * (c = Math.pow(2, -e)) < 1) {
  11942. e--
  11943. c *= 2
  11944. }
  11945. if (e + eBias >= 1) {
  11946. value += rt / c
  11947. } else {
  11948. value += rt * Math.pow(2, 1 - eBias)
  11949. }
  11950. if (value * c >= 2) {
  11951. e++
  11952. c /= 2
  11953. }
  11954. if (e + eBias >= eMax) {
  11955. m = 0
  11956. e = eMax
  11957. } else if (e + eBias >= 1) {
  11958. m = ((value * c) - 1) * Math.pow(2, mLen)
  11959. e = e + eBias
  11960. } else {
  11961. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11962. e = 0
  11963. }
  11964. }
  11965. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11966. e = (e << mLen) | m
  11967. eLen += mLen
  11968. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11969. buffer[offset + i - d] |= s * 128
  11970. }
  11971. /***/ }),
  11972. /* 53 */
  11973. /*!***************************************!*\
  11974. !*** ./node_modules/isarray/index.js ***!
  11975. \***************************************/
  11976. /*! no static exports found */
  11977. /***/ (function(module, exports) {
  11978. var toString = {}.toString;
  11979. module.exports = Array.isArray || function (arr) {
  11980. return toString.call(arr) == '[object Array]';
  11981. };
  11982. /***/ }),
  11983. /* 54 */
  11984. /*!***************************************************************************!*\
  11985. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/util/route.js ***!
  11986. \***************************************************************************/
  11987. /*! no static exports found */
  11988. /***/ (function(module, exports, __webpack_require__) {
  11989. "use strict";
  11990. /* WEBPACK VAR INJECTION */(function(uni) {
  11991. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11992. Object.defineProperty(exports, "__esModule", {
  11993. value: true
  11994. });
  11995. exports.default = void 0;
  11996. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  11997. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  11998. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  11999. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12000. /**
  12001. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12002. * 并且带有路由拦截功能
  12003. */
  12004. var Router = /*#__PURE__*/function () {
  12005. function Router() {
  12006. (0, _classCallCheck2.default)(this, Router);
  12007. // 原始属性定义
  12008. this.config = {
  12009. type: 'navigateTo',
  12010. url: '',
  12011. delta: 1,
  12012. // navigateBack页面后退时,回退的层数
  12013. params: {},
  12014. // 传递的参数
  12015. animationType: 'pop-in',
  12016. // 窗口动画,只在APP有效
  12017. animationDuration: 300,
  12018. // 窗口动画持续时间,单位毫秒,只在APP有效
  12019. intercept: false // 是否需要拦截
  12020. };
  12021. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12022. // 这里在构造函数中进行this绑定
  12023. this.route = this.route.bind(this);
  12024. }
  12025. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12026. (0, _createClass2.default)(Router, [{
  12027. key: "addRootPath",
  12028. value: function addRootPath(url) {
  12029. return url[0] === '/' ? url : "/".concat(url);
  12030. }
  12031. // 整合路由参数
  12032. }, {
  12033. key: "mixinParam",
  12034. value: function mixinParam(url, params) {
  12035. url = url && this.addRootPath(url);
  12036. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12037. // 如果有url中有get参数,转换后无需带上"?"
  12038. var query = '';
  12039. if (/.*\/.*\?.*=.*/.test(url)) {
  12040. // object对象转为get类型的参数
  12041. query = uni.$u.queryParams(params, false);
  12042. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12043. return url += "&".concat(query);
  12044. }
  12045. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12046. query = uni.$u.queryParams(params);
  12047. return url += query;
  12048. }
  12049. // 对外的方法名称
  12050. }, {
  12051. key: "route",
  12052. value: function () {
  12053. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12054. var options,
  12055. params,
  12056. mergeConfig,
  12057. isNext,
  12058. _args = arguments;
  12059. return _regenerator.default.wrap(function _callee$(_context) {
  12060. while (1) {
  12061. switch (_context.prev = _context.next) {
  12062. case 0:
  12063. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12064. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12065. // 合并用户的配置和内部的默认配置
  12066. mergeConfig = {};
  12067. if (typeof options === 'string') {
  12068. // 如果options为字符串,则为route(url, params)的形式
  12069. mergeConfig.url = this.mixinParam(options, params);
  12070. mergeConfig.type = 'navigateTo';
  12071. } else {
  12072. mergeConfig = uni.$u.deepMerge(this.config, options);
  12073. // 否则正常使用mergeConfig中的url和params进行拼接
  12074. mergeConfig.url = this.mixinParam(options.url, options.params);
  12075. }
  12076. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12077. if (!(mergeConfig.url === uni.$u.page())) {
  12078. _context.next = 6;
  12079. break;
  12080. }
  12081. return _context.abrupt("return");
  12082. case 6:
  12083. if (params.intercept) {
  12084. this.config.intercept = params.intercept;
  12085. }
  12086. // params参数也带给拦截器
  12087. mergeConfig.params = params;
  12088. // 合并内外部参数
  12089. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12090. // 判断用户是否定义了拦截器
  12091. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12092. _context.next = 16;
  12093. break;
  12094. }
  12095. _context.next = 12;
  12096. return new Promise(function (resolve, reject) {
  12097. uni.$u.routeIntercept(mergeConfig, resolve);
  12098. });
  12099. case 12:
  12100. isNext = _context.sent;
  12101. // 如果isNext为true,则执行路由跳转
  12102. isNext && this.openPage(mergeConfig);
  12103. _context.next = 17;
  12104. break;
  12105. case 16:
  12106. this.openPage(mergeConfig);
  12107. case 17:
  12108. case "end":
  12109. return _context.stop();
  12110. }
  12111. }
  12112. }, _callee, this);
  12113. }));
  12114. function route() {
  12115. return _route.apply(this, arguments);
  12116. }
  12117. return route;
  12118. }() // 执行路由跳转
  12119. }, {
  12120. key: "openPage",
  12121. value: function openPage(config) {
  12122. // 解构参数
  12123. var url = config.url,
  12124. type = config.type,
  12125. delta = config.delta,
  12126. animationType = config.animationType,
  12127. animationDuration = config.animationDuration;
  12128. if (config.type == 'navigateTo' || config.type == 'to') {
  12129. uni.navigateTo({
  12130. url: url,
  12131. animationType: animationType,
  12132. animationDuration: animationDuration
  12133. });
  12134. }
  12135. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12136. uni.redirectTo({
  12137. url: url
  12138. });
  12139. }
  12140. if (config.type == 'switchTab' || config.type == 'tab') {
  12141. uni.switchTab({
  12142. url: url
  12143. });
  12144. }
  12145. if (config.type == 'reLaunch' || config.type == 'launch') {
  12146. uni.reLaunch({
  12147. url: url
  12148. });
  12149. }
  12150. if (config.type == 'navigateBack' || config.type == 'back') {
  12151. uni.navigateBack({
  12152. delta: delta
  12153. });
  12154. }
  12155. }
  12156. }]);
  12157. return Router;
  12158. }();
  12159. var _default = new Router().route;
  12160. exports.default = _default;
  12161. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12162. /***/ }),
  12163. /* 55 */
  12164. /*!************************************************************************************************!*\
  12165. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12166. \************************************************************************************************/
  12167. /*! no static exports found */
  12168. /***/ (function(module, exports, __webpack_require__) {
  12169. // TODO(Babel 8): Remove this file.
  12170. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 56)();
  12171. module.exports = runtime;
  12172. /***/ }),
  12173. /* 56 */
  12174. /*!*******************************************************************!*\
  12175. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12176. \*******************************************************************/
  12177. /*! no static exports found */
  12178. /***/ (function(module, exports, __webpack_require__) {
  12179. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12180. function _regeneratorRuntime() {
  12181. "use strict";
  12182. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12183. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12184. return e;
  12185. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12186. var t,
  12187. e = {},
  12188. r = Object.prototype,
  12189. n = r.hasOwnProperty,
  12190. o = Object.defineProperty || function (t, e, r) {
  12191. t[e] = r.value;
  12192. },
  12193. i = "function" == typeof Symbol ? Symbol : {},
  12194. a = i.iterator || "@@iterator",
  12195. c = i.asyncIterator || "@@asyncIterator",
  12196. u = i.toStringTag || "@@toStringTag";
  12197. function define(t, e, r) {
  12198. return Object.defineProperty(t, e, {
  12199. value: r,
  12200. enumerable: !0,
  12201. configurable: !0,
  12202. writable: !0
  12203. }), t[e];
  12204. }
  12205. try {
  12206. define({}, "");
  12207. } catch (t) {
  12208. define = function define(t, e, r) {
  12209. return t[e] = r;
  12210. };
  12211. }
  12212. function wrap(t, e, r, n) {
  12213. var i = e && e.prototype instanceof Generator ? e : Generator,
  12214. a = Object.create(i.prototype),
  12215. c = new Context(n || []);
  12216. return o(a, "_invoke", {
  12217. value: makeInvokeMethod(t, r, c)
  12218. }), a;
  12219. }
  12220. function tryCatch(t, e, r) {
  12221. try {
  12222. return {
  12223. type: "normal",
  12224. arg: t.call(e, r)
  12225. };
  12226. } catch (t) {
  12227. return {
  12228. type: "throw",
  12229. arg: t
  12230. };
  12231. }
  12232. }
  12233. e.wrap = wrap;
  12234. var h = "suspendedStart",
  12235. l = "suspendedYield",
  12236. f = "executing",
  12237. s = "completed",
  12238. y = {};
  12239. function Generator() {}
  12240. function GeneratorFunction() {}
  12241. function GeneratorFunctionPrototype() {}
  12242. var p = {};
  12243. define(p, a, function () {
  12244. return this;
  12245. });
  12246. var d = Object.getPrototypeOf,
  12247. v = d && d(d(values([])));
  12248. v && v !== r && n.call(v, a) && (p = v);
  12249. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12250. function defineIteratorMethods(t) {
  12251. ["next", "throw", "return"].forEach(function (e) {
  12252. define(t, e, function (t) {
  12253. return this._invoke(e, t);
  12254. });
  12255. });
  12256. }
  12257. function AsyncIterator(t, e) {
  12258. function invoke(r, o, i, a) {
  12259. var c = tryCatch(t[r], t, o);
  12260. if ("throw" !== c.type) {
  12261. var u = c.arg,
  12262. h = u.value;
  12263. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12264. invoke("next", t, i, a);
  12265. }, function (t) {
  12266. invoke("throw", t, i, a);
  12267. }) : e.resolve(h).then(function (t) {
  12268. u.value = t, i(u);
  12269. }, function (t) {
  12270. return invoke("throw", t, i, a);
  12271. });
  12272. }
  12273. a(c.arg);
  12274. }
  12275. var r;
  12276. o(this, "_invoke", {
  12277. value: function value(t, n) {
  12278. function callInvokeWithMethodAndArg() {
  12279. return new e(function (e, r) {
  12280. invoke(t, n, e, r);
  12281. });
  12282. }
  12283. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12284. }
  12285. });
  12286. }
  12287. function makeInvokeMethod(e, r, n) {
  12288. var o = h;
  12289. return function (i, a) {
  12290. if (o === f) throw Error("Generator is already running");
  12291. if (o === s) {
  12292. if ("throw" === i) throw a;
  12293. return {
  12294. value: t,
  12295. done: !0
  12296. };
  12297. }
  12298. for (n.method = i, n.arg = a;;) {
  12299. var c = n.delegate;
  12300. if (c) {
  12301. var u = maybeInvokeDelegate(c, n);
  12302. if (u) {
  12303. if (u === y) continue;
  12304. return u;
  12305. }
  12306. }
  12307. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12308. if (o === h) throw o = s, n.arg;
  12309. n.dispatchException(n.arg);
  12310. } else "return" === n.method && n.abrupt("return", n.arg);
  12311. o = f;
  12312. var p = tryCatch(e, r, n);
  12313. if ("normal" === p.type) {
  12314. if (o = n.done ? s : l, p.arg === y) continue;
  12315. return {
  12316. value: p.arg,
  12317. done: n.done
  12318. };
  12319. }
  12320. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12321. }
  12322. };
  12323. }
  12324. function maybeInvokeDelegate(e, r) {
  12325. var n = r.method,
  12326. o = e.iterator[n];
  12327. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  12328. var i = tryCatch(o, e.iterator, r.arg);
  12329. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12330. var a = i.arg;
  12331. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  12332. }
  12333. function pushTryEntry(t) {
  12334. var e = {
  12335. tryLoc: t[0]
  12336. };
  12337. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12338. }
  12339. function resetTryEntry(t) {
  12340. var e = t.completion || {};
  12341. e.type = "normal", delete e.arg, t.completion = e;
  12342. }
  12343. function Context(t) {
  12344. this.tryEntries = [{
  12345. tryLoc: "root"
  12346. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12347. }
  12348. function values(e) {
  12349. if (e || "" === e) {
  12350. var r = e[a];
  12351. if (r) return r.call(e);
  12352. if ("function" == typeof e.next) return e;
  12353. if (!isNaN(e.length)) {
  12354. var o = -1,
  12355. i = function next() {
  12356. for (; ++o < e.length;) {
  12357. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12358. }
  12359. return next.value = t, next.done = !0, next;
  12360. };
  12361. return i.next = i;
  12362. }
  12363. }
  12364. throw new TypeError(_typeof(e) + " is not iterable");
  12365. }
  12366. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12367. value: GeneratorFunctionPrototype,
  12368. configurable: !0
  12369. }), o(GeneratorFunctionPrototype, "constructor", {
  12370. value: GeneratorFunction,
  12371. configurable: !0
  12372. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12373. var e = "function" == typeof t && t.constructor;
  12374. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12375. }, e.mark = function (t) {
  12376. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12377. }, e.awrap = function (t) {
  12378. return {
  12379. __await: t
  12380. };
  12381. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12382. return this;
  12383. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12384. void 0 === i && (i = Promise);
  12385. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12386. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12387. return t.done ? t.value : a.next();
  12388. });
  12389. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12390. return this;
  12391. }), define(g, "toString", function () {
  12392. return "[object Generator]";
  12393. }), e.keys = function (t) {
  12394. var e = Object(t),
  12395. r = [];
  12396. for (var n in e) {
  12397. r.push(n);
  12398. }
  12399. return r.reverse(), function next() {
  12400. for (; r.length;) {
  12401. var t = r.pop();
  12402. if (t in e) return next.value = t, next.done = !1, next;
  12403. }
  12404. return next.done = !0, next;
  12405. };
  12406. }, e.values = values, Context.prototype = {
  12407. constructor: Context,
  12408. reset: function reset(e) {
  12409. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  12410. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12411. }
  12412. },
  12413. stop: function stop() {
  12414. this.done = !0;
  12415. var t = this.tryEntries[0].completion;
  12416. if ("throw" === t.type) throw t.arg;
  12417. return this.rval;
  12418. },
  12419. dispatchException: function dispatchException(e) {
  12420. if (this.done) throw e;
  12421. var r = this;
  12422. function handle(n, o) {
  12423. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12424. }
  12425. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12426. var i = this.tryEntries[o],
  12427. a = i.completion;
  12428. if ("root" === i.tryLoc) return handle("end");
  12429. if (i.tryLoc <= this.prev) {
  12430. var c = n.call(i, "catchLoc"),
  12431. u = n.call(i, "finallyLoc");
  12432. if (c && u) {
  12433. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12434. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12435. } else if (c) {
  12436. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12437. } else {
  12438. if (!u) throw Error("try statement without catch or finally");
  12439. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12440. }
  12441. }
  12442. }
  12443. },
  12444. abrupt: function abrupt(t, e) {
  12445. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12446. var o = this.tryEntries[r];
  12447. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12448. var i = o;
  12449. break;
  12450. }
  12451. }
  12452. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12453. var a = i ? i.completion : {};
  12454. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12455. },
  12456. complete: function complete(t, e) {
  12457. if ("throw" === t.type) throw t.arg;
  12458. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  12459. },
  12460. finish: function finish(t) {
  12461. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12462. var r = this.tryEntries[e];
  12463. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12464. }
  12465. },
  12466. "catch": function _catch(t) {
  12467. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12468. var r = this.tryEntries[e];
  12469. if (r.tryLoc === t) {
  12470. var n = r.completion;
  12471. if ("throw" === n.type) {
  12472. var o = n.arg;
  12473. resetTryEntry(r);
  12474. }
  12475. return o;
  12476. }
  12477. }
  12478. throw Error("illegal catch attempt");
  12479. },
  12480. delegateYield: function delegateYield(e, r, n) {
  12481. return this.delegate = {
  12482. iterator: values(e),
  12483. resultName: r,
  12484. nextLoc: n
  12485. }, "next" === this.method && (this.arg = t), y;
  12486. }
  12487. }, e;
  12488. }
  12489. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12490. /***/ }),
  12491. /* 57 */
  12492. /*!*****************************************************************!*\
  12493. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12494. \*****************************************************************/
  12495. /*! no static exports found */
  12496. /***/ (function(module, exports) {
  12497. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12498. try {
  12499. var info = gen[key](arg);
  12500. var value = info.value;
  12501. } catch (error) {
  12502. reject(error);
  12503. return;
  12504. }
  12505. if (info.done) {
  12506. resolve(value);
  12507. } else {
  12508. Promise.resolve(value).then(_next, _throw);
  12509. }
  12510. }
  12511. function _asyncToGenerator(fn) {
  12512. return function () {
  12513. var self = this,
  12514. args = arguments;
  12515. return new Promise(function (resolve, reject) {
  12516. var gen = fn.apply(self, args);
  12517. function _next(value) {
  12518. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12519. }
  12520. function _throw(err) {
  12521. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12522. }
  12523. _next(undefined);
  12524. });
  12525. };
  12526. }
  12527. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12528. /***/ }),
  12529. /* 58 */
  12530. /*!***************************************************************************************!*\
  12531. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12532. \***************************************************************************************/
  12533. /*! no static exports found */
  12534. /***/ (function(module, exports, __webpack_require__) {
  12535. "use strict";
  12536. Object.defineProperty(exports, "__esModule", {
  12537. value: true
  12538. });
  12539. exports.default = void 0;
  12540. /**
  12541. * 求两个颜色之间的渐变值
  12542. * @param {string} startColor 开始的颜色
  12543. * @param {string} endColor 结束的颜色
  12544. * @param {number} step 颜色等分的份额
  12545. * */
  12546. function colorGradient() {
  12547. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12548. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12549. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12550. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12551. var startR = startRGB[0];
  12552. var startG = startRGB[1];
  12553. var startB = startRGB[2];
  12554. var endRGB = hexToRgb(endColor, false);
  12555. var endR = endRGB[0];
  12556. var endG = endRGB[1];
  12557. var endB = endRGB[2];
  12558. var sR = (endR - startR) / step; // 总差值
  12559. var sG = (endG - startG) / step;
  12560. var sB = (endB - startB) / step;
  12561. var colorArr = [];
  12562. for (var i = 0; i < step; i++) {
  12563. // 计算每一步的hex值
  12564. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12565. // 确保第一个颜色值为startColor的值
  12566. if (i === 0) hex = rgbToHex(startColor);
  12567. // 确保最后一个颜色值为endColor的值
  12568. if (i === step - 1) hex = rgbToHex(endColor);
  12569. colorArr.push(hex);
  12570. }
  12571. return colorArr;
  12572. }
  12573. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12574. function hexToRgb(sColor) {
  12575. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12576. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12577. sColor = String(sColor).toLowerCase();
  12578. if (sColor && reg.test(sColor)) {
  12579. if (sColor.length === 4) {
  12580. var sColorNew = '#';
  12581. for (var i = 1; i < 4; i += 1) {
  12582. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12583. }
  12584. sColor = sColorNew;
  12585. }
  12586. // 处理六位的颜色值
  12587. var sColorChange = [];
  12588. for (var _i = 1; _i < 7; _i += 2) {
  12589. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12590. }
  12591. if (!str) {
  12592. return sColorChange;
  12593. }
  12594. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12595. }
  12596. if (/^(rgb|RGB)/.test(sColor)) {
  12597. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12598. return arr.map(function (val) {
  12599. return Number(val);
  12600. });
  12601. }
  12602. return sColor;
  12603. }
  12604. // 将rgb表示方式转换为hex表示方式
  12605. function rgbToHex(rgb) {
  12606. var _this = rgb;
  12607. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12608. if (/^(rgb|RGB)/.test(_this)) {
  12609. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12610. var strHex = '#';
  12611. for (var i = 0; i < aColor.length; i++) {
  12612. var hex = Number(aColor[i]).toString(16);
  12613. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12614. if (hex === '0') {
  12615. hex += hex;
  12616. }
  12617. strHex += hex;
  12618. }
  12619. if (strHex.length !== 7) {
  12620. strHex = _this;
  12621. }
  12622. return strHex;
  12623. }
  12624. if (reg.test(_this)) {
  12625. var aNum = _this.replace(/#/, '').split('');
  12626. if (aNum.length === 6) {
  12627. return _this;
  12628. }
  12629. if (aNum.length === 3) {
  12630. var numHex = '#';
  12631. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12632. numHex += aNum[_i2] + aNum[_i2];
  12633. }
  12634. return numHex;
  12635. }
  12636. } else {
  12637. return _this;
  12638. }
  12639. }
  12640. /**
  12641. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12642. * sHex为传入的十六进制的色值
  12643. * alpha为rgba的透明度
  12644. */
  12645. function colorToRgba(color, alpha) {
  12646. color = rgbToHex(color);
  12647. // 十六进制颜色值的正则表达式
  12648. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12649. /* 16进制颜色转为RGB格式 */
  12650. var sColor = String(color).toLowerCase();
  12651. if (sColor && reg.test(sColor)) {
  12652. if (sColor.length === 4) {
  12653. var sColorNew = '#';
  12654. for (var i = 1; i < 4; i += 1) {
  12655. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12656. }
  12657. sColor = sColorNew;
  12658. }
  12659. // 处理六位的颜色值
  12660. var sColorChange = [];
  12661. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12662. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12663. }
  12664. // return sColorChange.join(',')
  12665. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12666. }
  12667. return sColor;
  12668. }
  12669. var _default = {
  12670. colorGradient: colorGradient,
  12671. hexToRgb: hexToRgb,
  12672. rgbToHex: rgbToHex,
  12673. colorToRgba: colorToRgba
  12674. };
  12675. exports.default = _default;
  12676. /***/ }),
  12677. /* 59 */
  12678. /*!******************************************************************************!*\
  12679. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/function/test.js ***!
  12680. \******************************************************************************/
  12681. /*! no static exports found */
  12682. /***/ (function(module, exports, __webpack_require__) {
  12683. "use strict";
  12684. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12685. Object.defineProperty(exports, "__esModule", {
  12686. value: true
  12687. });
  12688. exports.default = void 0;
  12689. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12690. /**
  12691. * 验证电子邮箱格式
  12692. */
  12693. function email(value) {
  12694. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12695. }
  12696. /**
  12697. * 验证手机格式
  12698. */
  12699. function mobile(value) {
  12700. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12701. }
  12702. /**
  12703. * 验证URL格式
  12704. */
  12705. function url(value) {
  12706. 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);
  12707. }
  12708. /**
  12709. * 验证日期格式
  12710. */
  12711. function date(value) {
  12712. if (!value) return false;
  12713. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12714. if (number(value)) value = +value;
  12715. return !/Invalid|NaN/.test(new Date(value).toString());
  12716. }
  12717. /**
  12718. * 验证ISO类型的日期格式
  12719. */
  12720. function dateISO(value) {
  12721. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12722. }
  12723. /**
  12724. * 验证十进制数字
  12725. */
  12726. function number(value) {
  12727. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12728. }
  12729. /**
  12730. * 验证字符串
  12731. */
  12732. function string(value) {
  12733. return typeof value === 'string';
  12734. }
  12735. /**
  12736. * 验证整数
  12737. */
  12738. function digits(value) {
  12739. return /^\d+$/.test(value);
  12740. }
  12741. /**
  12742. * 验证身份证号码
  12743. */
  12744. function idCard(value) {
  12745. 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);
  12746. }
  12747. /**
  12748. * 是否车牌号
  12749. */
  12750. function carNo(value) {
  12751. // 新能源车牌
  12752. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12753. // 旧车牌
  12754. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12755. if (value.length === 7) {
  12756. return creg.test(value);
  12757. }
  12758. if (value.length === 8) {
  12759. return xreg.test(value);
  12760. }
  12761. return false;
  12762. }
  12763. /**
  12764. * 金额,只允许2位小数
  12765. */
  12766. function amount(value) {
  12767. // 金额,只允许保留两位小数
  12768. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12769. }
  12770. /**
  12771. * 中文
  12772. */
  12773. function chinese(value) {
  12774. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12775. return reg.test(value);
  12776. }
  12777. /**
  12778. * 只能输入字母
  12779. */
  12780. function letter(value) {
  12781. return /^[a-zA-Z]*$/.test(value);
  12782. }
  12783. /**
  12784. * 只能是字母或者数字
  12785. */
  12786. function enOrNum(value) {
  12787. // 英文或者数字
  12788. var reg = /^[0-9a-zA-Z]*$/g;
  12789. return reg.test(value);
  12790. }
  12791. /**
  12792. * 验证是否包含某个值
  12793. */
  12794. function contains(value, param) {
  12795. return value.indexOf(param) >= 0;
  12796. }
  12797. /**
  12798. * 验证一个值范围[min, max]
  12799. */
  12800. function range(value, param) {
  12801. return value >= param[0] && value <= param[1];
  12802. }
  12803. /**
  12804. * 验证一个长度范围[min, max]
  12805. */
  12806. function rangeLength(value, param) {
  12807. return value.length >= param[0] && value.length <= param[1];
  12808. }
  12809. /**
  12810. * 是否固定电话
  12811. */
  12812. function landline(value) {
  12813. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12814. return reg.test(value);
  12815. }
  12816. /**
  12817. * 判断是否为空
  12818. */
  12819. function empty(value) {
  12820. switch ((0, _typeof2.default)(value)) {
  12821. case 'undefined':
  12822. return true;
  12823. case 'string':
  12824. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12825. break;
  12826. case 'boolean':
  12827. if (!value) return true;
  12828. break;
  12829. case 'number':
  12830. if (value === 0 || isNaN(value)) return true;
  12831. break;
  12832. case 'object':
  12833. if (value === null || value.length === 0) return true;
  12834. for (var i in value) {
  12835. return false;
  12836. }
  12837. return true;
  12838. }
  12839. return false;
  12840. }
  12841. /**
  12842. * 是否json字符串
  12843. */
  12844. function jsonString(value) {
  12845. if (typeof value === 'string') {
  12846. try {
  12847. var obj = JSON.parse(value);
  12848. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12849. return true;
  12850. }
  12851. return false;
  12852. } catch (e) {
  12853. return false;
  12854. }
  12855. }
  12856. return false;
  12857. }
  12858. /**
  12859. * 是否数组
  12860. */
  12861. function array(value) {
  12862. if (typeof Array.isArray === 'function') {
  12863. return Array.isArray(value);
  12864. }
  12865. return Object.prototype.toString.call(value) === '[object Array]';
  12866. }
  12867. /**
  12868. * 是否对象
  12869. */
  12870. function object(value) {
  12871. return Object.prototype.toString.call(value) === '[object Object]';
  12872. }
  12873. /**
  12874. * 是否短信验证码
  12875. */
  12876. function code(value) {
  12877. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12878. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12879. }
  12880. /**
  12881. * 是否函数方法
  12882. * @param {Object} value
  12883. */
  12884. function func(value) {
  12885. return typeof value === 'function';
  12886. }
  12887. /**
  12888. * 是否promise对象
  12889. * @param {Object} value
  12890. */
  12891. function promise(value) {
  12892. return object(value) && func(value.then) && func(value.catch);
  12893. }
  12894. /** 是否图片格式
  12895. * @param {Object} value
  12896. */
  12897. function image(value) {
  12898. var newValue = value.split('?')[0];
  12899. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12900. return IMAGE_REGEXP.test(newValue);
  12901. }
  12902. /**
  12903. * 是否视频格式
  12904. * @param {Object} value
  12905. */
  12906. function video(value) {
  12907. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12908. return VIDEO_REGEXP.test(value);
  12909. }
  12910. /**
  12911. * 是否为正则对象
  12912. * @param {Object}
  12913. * @return {Boolean}
  12914. */
  12915. function regExp(o) {
  12916. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12917. }
  12918. var _default = {
  12919. email: email,
  12920. mobile: mobile,
  12921. url: url,
  12922. date: date,
  12923. dateISO: dateISO,
  12924. number: number,
  12925. digits: digits,
  12926. idCard: idCard,
  12927. carNo: carNo,
  12928. amount: amount,
  12929. chinese: chinese,
  12930. letter: letter,
  12931. enOrNum: enOrNum,
  12932. contains: contains,
  12933. range: range,
  12934. rangeLength: rangeLength,
  12935. empty: empty,
  12936. isEmpty: empty,
  12937. jsonString: jsonString,
  12938. landline: landline,
  12939. object: object,
  12940. array: array,
  12941. code: code,
  12942. func: func,
  12943. promise: promise,
  12944. video: video,
  12945. image: image,
  12946. regExp: regExp,
  12947. string: string
  12948. };
  12949. exports.default = _default;
  12950. /***/ }),
  12951. /* 60 */
  12952. /*!**********************************************************************************!*\
  12953. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/function/debounce.js ***!
  12954. \**********************************************************************************/
  12955. /*! no static exports found */
  12956. /***/ (function(module, exports, __webpack_require__) {
  12957. "use strict";
  12958. Object.defineProperty(exports, "__esModule", {
  12959. value: true
  12960. });
  12961. exports.default = void 0;
  12962. var timeout = null;
  12963. /**
  12964. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12965. *
  12966. * @param {Function} func 要执行的回调函数
  12967. * @param {Number} wait 延时的时间
  12968. * @param {Boolean} immediate 是否立即执行
  12969. * @return null
  12970. */
  12971. function debounce(func) {
  12972. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  12973. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12974. // 清除定时器
  12975. if (timeout !== null) clearTimeout(timeout);
  12976. // 立即执行,此类情况一般用不到
  12977. if (immediate) {
  12978. var callNow = !timeout;
  12979. timeout = setTimeout(function () {
  12980. timeout = null;
  12981. }, wait);
  12982. if (callNow) typeof func === 'function' && func();
  12983. } else {
  12984. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12985. timeout = setTimeout(function () {
  12986. typeof func === 'function' && func();
  12987. }, wait);
  12988. }
  12989. }
  12990. var _default = debounce;
  12991. exports.default = _default;
  12992. /***/ }),
  12993. /* 61 */
  12994. /*!**********************************************************************************!*\
  12995. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/function/throttle.js ***!
  12996. \**********************************************************************************/
  12997. /*! no static exports found */
  12998. /***/ (function(module, exports, __webpack_require__) {
  12999. "use strict";
  13000. Object.defineProperty(exports, "__esModule", {
  13001. value: true
  13002. });
  13003. exports.default = void 0;
  13004. var timer;
  13005. var flag;
  13006. /**
  13007. * 节流原理:在一定时间内,只能触发一次
  13008. *
  13009. * @param {Function} func 要执行的回调函数
  13010. * @param {Number} wait 延时的时间
  13011. * @param {Boolean} immediate 是否立即执行
  13012. * @return null
  13013. */
  13014. function throttle(func) {
  13015. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13016. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13017. if (immediate) {
  13018. if (!flag) {
  13019. flag = true;
  13020. // 如果是立即执行,则在wait毫秒内开始时执行
  13021. typeof func === 'function' && func();
  13022. timer = setTimeout(function () {
  13023. flag = false;
  13024. }, wait);
  13025. }
  13026. } else if (!flag) {
  13027. flag = true;
  13028. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13029. timer = setTimeout(function () {
  13030. flag = false;
  13031. typeof func === 'function' && func();
  13032. }, wait);
  13033. }
  13034. }
  13035. var _default = throttle;
  13036. exports.default = _default;
  13037. /***/ }),
  13038. /* 62 */
  13039. /*!*******************************************************************************!*\
  13040. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/function/index.js ***!
  13041. \*******************************************************************************/
  13042. /*! no static exports found */
  13043. /***/ (function(module, exports, __webpack_require__) {
  13044. "use strict";
  13045. /* WEBPACK VAR INJECTION */(function(uni) {
  13046. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13047. Object.defineProperty(exports, "__esModule", {
  13048. value: true
  13049. });
  13050. exports.default = void 0;
  13051. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13052. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13053. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  13054. var _digit = __webpack_require__(/*! ./digit.js */ 63);
  13055. /**
  13056. * @description 如果value小于min,取min;如果value大于max,取max
  13057. * @param {number} min
  13058. * @param {number} max
  13059. * @param {number} value
  13060. */
  13061. function range() {
  13062. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13063. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13064. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13065. return Math.max(min, Math.min(max, Number(value)));
  13066. }
  13067. /**
  13068. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13069. * @param {number|string} value 用户传递值的px值
  13070. * @param {boolean} unit
  13071. * @returns {number|string}
  13072. */
  13073. function getPx(value) {
  13074. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13075. if (_test.default.number(value)) {
  13076. return unit ? "".concat(value, "px") : Number(value);
  13077. }
  13078. // 如果带有rpx,先取出其数值部分,再转为px值
  13079. if (/(rpx|upx)$/.test(value)) {
  13080. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13081. }
  13082. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13083. }
  13084. /**
  13085. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13086. * @param {number} value 堵塞时间 单位ms 毫秒
  13087. * @returns {Promise} 返回promise
  13088. */
  13089. function sleep() {
  13090. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13091. return new Promise(function (resolve) {
  13092. setTimeout(function () {
  13093. resolve();
  13094. }, value);
  13095. });
  13096. }
  13097. /**
  13098. * @description 运行期判断平台
  13099. * @returns {string} 返回所在平台(小写)
  13100. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13101. */
  13102. function os() {
  13103. return uni.getSystemInfoSync().platform.toLowerCase();
  13104. }
  13105. /**
  13106. * @description 获取系统信息同步接口
  13107. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13108. */
  13109. function sys() {
  13110. return uni.getSystemInfoSync();
  13111. }
  13112. /**
  13113. * @description 取一个区间数
  13114. * @param {Number} min 最小值
  13115. * @param {Number} max 最大值
  13116. */
  13117. function random(min, max) {
  13118. if (min >= 0 && max > 0 && max >= min) {
  13119. var gab = max - min + 1;
  13120. return Math.floor(Math.random() * gab + min);
  13121. }
  13122. return 0;
  13123. }
  13124. /**
  13125. * @param {Number} len uuid的长度
  13126. * @param {Boolean} firstU 将返回的首字母置为"u"
  13127. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13128. */
  13129. function guid() {
  13130. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13131. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13132. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13133. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13134. var uuid = [];
  13135. radix = radix || chars.length;
  13136. if (len) {
  13137. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13138. for (var i = 0; i < len; i++) {
  13139. uuid[i] = chars[0 | Math.random() * radix];
  13140. }
  13141. } else {
  13142. var r;
  13143. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13144. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13145. uuid[14] = '4';
  13146. for (var _i = 0; _i < 36; _i++) {
  13147. if (!uuid[_i]) {
  13148. r = 0 | Math.random() * 16;
  13149. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13150. }
  13151. }
  13152. }
  13153. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13154. if (firstU) {
  13155. uuid.shift();
  13156. return "u".concat(uuid.join(''));
  13157. }
  13158. return uuid.join('');
  13159. }
  13160. /**
  13161. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13162. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13163. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13164. 值(默认为undefined),就是查找最顶层的$parent
  13165. * @param {string|undefined} name 父组件的参数名
  13166. */
  13167. function $parent() {
  13168. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13169. var parent = this.$parent;
  13170. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13171. while (parent) {
  13172. // 父组件
  13173. if (parent.$options && parent.$options.name !== name) {
  13174. // 如果组件的name不相等,继续上一级寻找
  13175. parent = parent.$parent;
  13176. } else {
  13177. return parent;
  13178. }
  13179. }
  13180. return false;
  13181. }
  13182. /**
  13183. * @description 样式转换
  13184. * 对象转字符串,或者字符串转对象
  13185. * @param {object | string} customStyle 需要转换的目标
  13186. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13187. * @returns {object|string}
  13188. */
  13189. function addStyle(customStyle) {
  13190. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13191. // 字符串转字符串,对象转对象情形,直接返回
  13192. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13193. return customStyle;
  13194. }
  13195. // 字符串转对象
  13196. if (target === 'object') {
  13197. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13198. customStyle = trim(customStyle);
  13199. // 根据";"将字符串转为数组形式
  13200. var styleArray = customStyle.split(';');
  13201. var style = {};
  13202. // 历遍数组,拼接成对象
  13203. for (var i = 0; i < styleArray.length; i++) {
  13204. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13205. if (styleArray[i]) {
  13206. var item = styleArray[i].split(':');
  13207. style[trim(item[0])] = trim(item[1]);
  13208. }
  13209. }
  13210. return style;
  13211. }
  13212. // 这里为对象转字符串形式
  13213. var string = '';
  13214. for (var _i2 in customStyle) {
  13215. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13216. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13217. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13218. }
  13219. // 去除两端空格
  13220. return trim(string);
  13221. }
  13222. /**
  13223. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13224. * @param {string|number} value 需要添加单位的值
  13225. * @param {string} unit 添加的单位名 比如px
  13226. */
  13227. function addUnit() {
  13228. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13229. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13230. 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';
  13231. value = String(value);
  13232. // 用uView内置验证规则中的number判断是否为数值
  13233. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13234. }
  13235. /**
  13236. * @description 深度克隆
  13237. * @param {object} obj 需要深度克隆的对象
  13238. * @param cache 缓存
  13239. * @returns {*} 克隆后的对象或者原值(不是对象)
  13240. */
  13241. function deepClone(obj) {
  13242. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13243. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13244. if (cache.has(obj)) return cache.get(obj);
  13245. var clone;
  13246. if (obj instanceof Date) {
  13247. clone = new Date(obj.getTime());
  13248. } else if (obj instanceof RegExp) {
  13249. clone = new RegExp(obj);
  13250. } else if (obj instanceof Map) {
  13251. clone = new Map(Array.from(obj, function (_ref) {
  13252. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13253. key = _ref2[0],
  13254. value = _ref2[1];
  13255. return [key, deepClone(value, cache)];
  13256. }));
  13257. } else if (obj instanceof Set) {
  13258. clone = new Set(Array.from(obj, function (value) {
  13259. return deepClone(value, cache);
  13260. }));
  13261. } else if (Array.isArray(obj)) {
  13262. clone = obj.map(function (value) {
  13263. return deepClone(value, cache);
  13264. });
  13265. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13266. clone = Object.create(Object.getPrototypeOf(obj));
  13267. cache.set(obj, clone);
  13268. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13269. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13270. key = _Object$entries$_i[0],
  13271. value = _Object$entries$_i[1];
  13272. clone[key] = deepClone(value, cache);
  13273. }
  13274. } else {
  13275. clone = Object.assign({}, obj);
  13276. }
  13277. cache.set(obj, clone);
  13278. return clone;
  13279. }
  13280. /**
  13281. * @description JS对象深度合并
  13282. * @param {object} target 需要拷贝的对象
  13283. * @param {object} source 拷贝的来源对象
  13284. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13285. */
  13286. function deepMerge() {
  13287. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13288. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13289. target = deepClone(target);
  13290. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13291. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13292. for (var prop in source) {
  13293. if (!source.hasOwnProperty(prop)) continue;
  13294. var sourceValue = source[prop];
  13295. var targetValue = merged[prop];
  13296. if (sourceValue instanceof Date) {
  13297. merged[prop] = new Date(sourceValue);
  13298. } else if (sourceValue instanceof RegExp) {
  13299. merged[prop] = new RegExp(sourceValue);
  13300. } else if (sourceValue instanceof Map) {
  13301. merged[prop] = new Map(sourceValue);
  13302. } else if (sourceValue instanceof Set) {
  13303. merged[prop] = new Set(sourceValue);
  13304. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13305. merged[prop] = deepMerge(targetValue, sourceValue);
  13306. } else {
  13307. merged[prop] = sourceValue;
  13308. }
  13309. }
  13310. return merged;
  13311. }
  13312. /**
  13313. * @description error提示
  13314. * @param {*} err 错误内容
  13315. */
  13316. function error(err) {
  13317. // 开发环境才提示,生产环境不会提示
  13318. if (true) {
  13319. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13320. }
  13321. }
  13322. /**
  13323. * @description 打乱数组
  13324. * @param {array} array 需要打乱的数组
  13325. * @returns {array} 打乱后的数组
  13326. */
  13327. function randomArray() {
  13328. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13329. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13330. return array.sort(function () {
  13331. return Math.random() - 0.5;
  13332. });
  13333. }
  13334. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13335. // 所以这里做一个兼容polyfill的兼容处理
  13336. if (!String.prototype.padStart) {
  13337. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13338. String.prototype.padStart = function (maxLength) {
  13339. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13340. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13341. throw new TypeError('fillString must be String');
  13342. }
  13343. var str = this;
  13344. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13345. if (str.length >= maxLength) return String(str);
  13346. var fillLength = maxLength - str.length;
  13347. var times = Math.ceil(fillLength / fillString.length);
  13348. while (times >>= 1) {
  13349. fillString += fillString;
  13350. if (times === 1) {
  13351. fillString += fillString;
  13352. }
  13353. }
  13354. return fillString.slice(0, fillLength) + str;
  13355. };
  13356. }
  13357. /**
  13358. * @description 格式化时间
  13359. * @param {String|Number} dateTime 需要格式化的时间戳
  13360. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13361. * @returns {string} 返回格式化后的字符串
  13362. */
  13363. function timeFormat() {
  13364. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13365. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13366. var date;
  13367. // 若传入时间为假值,则取当前时间
  13368. if (!dateTime) {
  13369. date = new Date();
  13370. }
  13371. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13372. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13373. date = new Date(dateTime * 1000);
  13374. }
  13375. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13376. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13377. date = new Date(Number(dateTime));
  13378. }
  13379. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13380. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13381. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13382. date = new Date(dateTime.replace(/-/g, '/'));
  13383. }
  13384. // 其他都认为符合 RFC 2822 规范
  13385. else {
  13386. date = new Date(dateTime);
  13387. }
  13388. var timeSource = {
  13389. 'y': date.getFullYear().toString(),
  13390. // 年
  13391. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13392. // 月
  13393. 'd': date.getDate().toString().padStart(2, '0'),
  13394. // 日
  13395. 'h': date.getHours().toString().padStart(2, '0'),
  13396. // 时
  13397. 'M': date.getMinutes().toString().padStart(2, '0'),
  13398. // 分
  13399. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13400. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13401. };
  13402. for (var key in timeSource) {
  13403. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13404. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13405. ret = _ref4[0];
  13406. if (ret) {
  13407. // 年可能只需展示两位
  13408. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13409. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13410. }
  13411. }
  13412. return formatStr;
  13413. }
  13414. /**
  13415. * @description 时间戳转为多久之前
  13416. * @param {String|Number} timestamp 时间戳
  13417. * @param {String|Boolean} format
  13418. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13419. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13420. * @returns {string} 转化后的内容
  13421. */
  13422. function timeFrom() {
  13423. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13424. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13425. if (timestamp == null) timestamp = Number(new Date());
  13426. timestamp = parseInt(timestamp);
  13427. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13428. if (timestamp.toString().length == 10) timestamp *= 1000;
  13429. var timer = new Date().getTime() - timestamp;
  13430. timer = parseInt(timer / 1000);
  13431. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13432. var tips = '';
  13433. switch (true) {
  13434. case timer < 300:
  13435. tips = '刚刚';
  13436. break;
  13437. case timer >= 300 && timer < 3600:
  13438. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13439. break;
  13440. case timer >= 3600 && timer < 86400:
  13441. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13442. break;
  13443. case timer >= 86400 && timer < 2592000:
  13444. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13445. break;
  13446. default:
  13447. // 如果format为false,则无论什么时间戳,都显示xx之前
  13448. if (format === false) {
  13449. if (timer >= 2592000 && timer < 365 * 86400) {
  13450. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13451. } else {
  13452. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13453. }
  13454. } else {
  13455. tips = timeFormat(timestamp, format);
  13456. }
  13457. }
  13458. return tips;
  13459. }
  13460. /**
  13461. * @description 去除空格
  13462. * @param String str 需要去除空格的字符串
  13463. * @param String pos both(左右)|left|right|all 默认both
  13464. */
  13465. function trim(str) {
  13466. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13467. str = String(str);
  13468. if (pos == 'both') {
  13469. return str.replace(/^\s+|\s+$/g, '');
  13470. }
  13471. if (pos == 'left') {
  13472. return str.replace(/^\s*/, '');
  13473. }
  13474. if (pos == 'right') {
  13475. return str.replace(/(\s*$)/g, '');
  13476. }
  13477. if (pos == 'all') {
  13478. return str.replace(/\s+/g, '');
  13479. }
  13480. return str;
  13481. }
  13482. /**
  13483. * @description 对象转url参数
  13484. * @param {object} data,对象
  13485. * @param {Boolean} isPrefix,是否自动加上"?"
  13486. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13487. */
  13488. function queryParams() {
  13489. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13490. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13491. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13492. var prefix = isPrefix ? '?' : '';
  13493. var _result = [];
  13494. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13495. var _loop = function _loop(key) {
  13496. var value = data[key];
  13497. // 去掉为空的参数
  13498. if (['', undefined, null].indexOf(value) >= 0) {
  13499. return "continue";
  13500. }
  13501. // 如果值为数组,另行处理
  13502. if (value.constructor === Array) {
  13503. // e.g. {ids: [1, 2, 3]}
  13504. switch (arrayFormat) {
  13505. case 'indices':
  13506. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13507. for (var i = 0; i < value.length; i++) {
  13508. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13509. }
  13510. break;
  13511. case 'brackets':
  13512. // 结果: ids[]=1&ids[]=2&ids[]=3
  13513. value.forEach(function (_value) {
  13514. _result.push("".concat(key, "[]=").concat(_value));
  13515. });
  13516. break;
  13517. case 'repeat':
  13518. // 结果: ids=1&ids=2&ids=3
  13519. value.forEach(function (_value) {
  13520. _result.push("".concat(key, "=").concat(_value));
  13521. });
  13522. break;
  13523. case 'comma':
  13524. // 结果: ids=1,2,3
  13525. var commaStr = '';
  13526. value.forEach(function (_value) {
  13527. commaStr += (commaStr ? ',' : '') + _value;
  13528. });
  13529. _result.push("".concat(key, "=").concat(commaStr));
  13530. break;
  13531. default:
  13532. value.forEach(function (_value) {
  13533. _result.push("".concat(key, "[]=").concat(_value));
  13534. });
  13535. }
  13536. } else {
  13537. _result.push("".concat(key, "=").concat(value));
  13538. }
  13539. };
  13540. for (var key in data) {
  13541. var _ret = _loop(key);
  13542. if (_ret === "continue") continue;
  13543. }
  13544. return _result.length ? prefix + _result.join('&') : '';
  13545. }
  13546. /**
  13547. * 显示消息提示框
  13548. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13549. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13550. */
  13551. function toast(title) {
  13552. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13553. uni.showToast({
  13554. title: String(title),
  13555. icon: 'none',
  13556. duration: duration
  13557. });
  13558. }
  13559. /**
  13560. * @description 根据主题type值,获取对应的图标
  13561. * @param {String} type 主题名称,primary|info|error|warning|success
  13562. * @param {boolean} fill 是否使用fill填充实体的图标
  13563. */
  13564. function type2icon() {
  13565. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13566. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13567. // 如果非预置值,默认为success
  13568. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13569. var iconName = '';
  13570. // 目前(2019-12-12),info和primary使用同一个图标
  13571. switch (type) {
  13572. case 'primary':
  13573. iconName = 'info-circle';
  13574. break;
  13575. case 'info':
  13576. iconName = 'info-circle';
  13577. break;
  13578. case 'error':
  13579. iconName = 'close-circle';
  13580. break;
  13581. case 'warning':
  13582. iconName = 'error-circle';
  13583. break;
  13584. case 'success':
  13585. iconName = 'checkmark-circle';
  13586. break;
  13587. default:
  13588. iconName = 'checkmark-circle';
  13589. }
  13590. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13591. if (fill) iconName += '-fill';
  13592. return iconName;
  13593. }
  13594. /**
  13595. * @description 数字格式化
  13596. * @param {number|string} number 要格式化的数字
  13597. * @param {number} decimals 保留几位小数
  13598. * @param {string} decimalPoint 小数点符号
  13599. * @param {string} thousandsSeparator 千分位符号
  13600. * @returns {string} 格式化后的数字
  13601. */
  13602. function priceFormat(number) {
  13603. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13604. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13605. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13606. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13607. var n = !isFinite(+number) ? 0 : +number;
  13608. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13609. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13610. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13611. var s = '';
  13612. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13613. var re = /(-?\d+)(\d{3})/;
  13614. while (re.test(s[0])) {
  13615. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13616. }
  13617. if ((s[1] || '').length < prec) {
  13618. s[1] = s[1] || '';
  13619. s[1] += new Array(prec - s[1].length + 1).join('0');
  13620. }
  13621. return s.join(dec);
  13622. }
  13623. /**
  13624. * @description 获取duration值
  13625. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13626. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13627. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13628. * @param {boolean} unit 提示: 如果是false 默认返回number
  13629. * @return {string|number}
  13630. */
  13631. function getDuration(value) {
  13632. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13633. var valueNum = parseInt(value);
  13634. if (unit) {
  13635. if (/s$/.test(value)) return value;
  13636. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13637. }
  13638. if (/ms$/.test(value)) return valueNum;
  13639. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13640. return valueNum;
  13641. }
  13642. /**
  13643. * @description 日期的月或日补零操作
  13644. * @param {String} value 需要补零的值
  13645. */
  13646. function padZero(value) {
  13647. return "00".concat(value).slice(-2);
  13648. }
  13649. /**
  13650. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13651. * @param {*} instance
  13652. * @param {*} event
  13653. */
  13654. function formValidate(instance, event) {
  13655. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13656. var form = uni.$u.$parent.call(instance, 'u-form');
  13657. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13658. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13659. if (formItem && form) {
  13660. form.validateField(formItem.prop, function () {}, event);
  13661. }
  13662. }
  13663. /**
  13664. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13665. * @param {object} obj 对象
  13666. * @param {string} key 需要获取的属性字段
  13667. * @returns {*}
  13668. */
  13669. function getProperty(obj, key) {
  13670. if (!obj) {
  13671. return;
  13672. }
  13673. if (typeof key !== 'string' || key === '') {
  13674. return '';
  13675. }
  13676. if (key.indexOf('.') !== -1) {
  13677. var keys = key.split('.');
  13678. var firstObj = obj[keys[0]] || {};
  13679. for (var i = 1; i < keys.length; i++) {
  13680. if (firstObj) {
  13681. firstObj = firstObj[keys[i]];
  13682. }
  13683. }
  13684. return firstObj;
  13685. }
  13686. return obj[key];
  13687. }
  13688. /**
  13689. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13690. * @param {object} obj 对象
  13691. * @param {string} key 需要设置的属性
  13692. * @param {string} value 设置的值
  13693. */
  13694. function setProperty(obj, key, value) {
  13695. if (!obj) {
  13696. return;
  13697. }
  13698. // 递归赋值
  13699. var inFn = function inFn(_obj, keys, v) {
  13700. // 最后一个属性key
  13701. if (keys.length === 1) {
  13702. _obj[keys[0]] = v;
  13703. return;
  13704. }
  13705. // 0~length-1个key
  13706. while (keys.length > 1) {
  13707. var k = keys[0];
  13708. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13709. _obj[k] = {};
  13710. }
  13711. var _key = keys.shift();
  13712. // 自调用判断是否存在属性,不存在则自动创建对象
  13713. inFn(_obj[k], keys, v);
  13714. }
  13715. };
  13716. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13717. // 支持多层级赋值操作
  13718. var keys = key.split('.');
  13719. inFn(obj, keys, value);
  13720. } else {
  13721. obj[key] = value;
  13722. }
  13723. }
  13724. /**
  13725. * @description 获取当前页面路径
  13726. */
  13727. function page() {
  13728. var _pages$route, _pages;
  13729. var pages = getCurrentPages();
  13730. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13731. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13732. }
  13733. /**
  13734. * @description 获取当前路由栈实例数组
  13735. */
  13736. function pages() {
  13737. var pages = getCurrentPages();
  13738. return pages;
  13739. }
  13740. /**
  13741. * 获取页面历史栈指定层实例
  13742. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13743. */
  13744. function getHistoryPage() {
  13745. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13746. var pages = getCurrentPages();
  13747. var len = pages.length;
  13748. return pages[len - 1 + back];
  13749. }
  13750. /**
  13751. * @description 修改uView内置属性值
  13752. * @param {object} props 修改内置props属性
  13753. * @param {object} config 修改内置config属性
  13754. * @param {object} color 修改内置color属性
  13755. * @param {object} zIndex 修改内置zIndex属性
  13756. */
  13757. function setConfig(_ref5) {
  13758. var _ref5$props = _ref5.props,
  13759. props = _ref5$props === void 0 ? {} : _ref5$props,
  13760. _ref5$config = _ref5.config,
  13761. config = _ref5$config === void 0 ? {} : _ref5$config,
  13762. _ref5$color = _ref5.color,
  13763. color = _ref5$color === void 0 ? {} : _ref5$color,
  13764. _ref5$zIndex = _ref5.zIndex,
  13765. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13766. var deepMerge = uni.$u.deepMerge;
  13767. uni.$u.config = deepMerge(uni.$u.config, config);
  13768. uni.$u.props = deepMerge(uni.$u.props, props);
  13769. uni.$u.color = deepMerge(uni.$u.color, color);
  13770. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13771. }
  13772. var _default = {
  13773. range: range,
  13774. getPx: getPx,
  13775. sleep: sleep,
  13776. os: os,
  13777. sys: sys,
  13778. random: random,
  13779. guid: guid,
  13780. $parent: $parent,
  13781. addStyle: addStyle,
  13782. addUnit: addUnit,
  13783. deepClone: deepClone,
  13784. deepMerge: deepMerge,
  13785. error: error,
  13786. randomArray: randomArray,
  13787. timeFormat: timeFormat,
  13788. timeFrom: timeFrom,
  13789. trim: trim,
  13790. queryParams: queryParams,
  13791. toast: toast,
  13792. type2icon: type2icon,
  13793. priceFormat: priceFormat,
  13794. getDuration: getDuration,
  13795. padZero: padZero,
  13796. formValidate: formValidate,
  13797. getProperty: getProperty,
  13798. setProperty: setProperty,
  13799. page: page,
  13800. pages: pages,
  13801. getHistoryPage: getHistoryPage,
  13802. setConfig: setConfig
  13803. };
  13804. exports.default = _default;
  13805. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13806. /***/ }),
  13807. /* 63 */
  13808. /*!*******************************************************************************!*\
  13809. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/function/digit.js ***!
  13810. \*******************************************************************************/
  13811. /*! no static exports found */
  13812. /***/ (function(module, exports, __webpack_require__) {
  13813. "use strict";
  13814. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13815. Object.defineProperty(exports, "__esModule", {
  13816. value: true
  13817. });
  13818. exports.default = void 0;
  13819. exports.divide = divide;
  13820. exports.enableBoundaryChecking = enableBoundaryChecking;
  13821. exports.minus = minus;
  13822. exports.plus = plus;
  13823. exports.round = round;
  13824. exports.times = times;
  13825. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  13826. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13827. /**
  13828. * 把错误的数据转正
  13829. * @private
  13830. * @example strip(0.09999999999999998)=0.1
  13831. */
  13832. function strip(num) {
  13833. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13834. return +parseFloat(Number(num).toPrecision(precision));
  13835. }
  13836. /**
  13837. * Return digits length of a number
  13838. * @private
  13839. * @param {*number} num Input number
  13840. */
  13841. function digitLength(num) {
  13842. // Get digit length of e
  13843. var eSplit = num.toString().split(/[eE]/);
  13844. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13845. return len > 0 ? len : 0;
  13846. }
  13847. /**
  13848. * 把小数转成整数,如果是小数则放大成整数
  13849. * @private
  13850. * @param {*number} num 输入数
  13851. */
  13852. function float2Fixed(num) {
  13853. if (num.toString().indexOf('e') === -1) {
  13854. return Number(num.toString().replace('.', ''));
  13855. }
  13856. var dLen = digitLength(num);
  13857. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13858. }
  13859. /**
  13860. * 检测数字是否越界,如果越界给出提示
  13861. * @private
  13862. * @param {*number} num 输入数
  13863. */
  13864. function checkBoundary(num) {
  13865. if (_boundaryCheckingState) {
  13866. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13867. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13868. }
  13869. }
  13870. }
  13871. /**
  13872. * 把递归操作扁平迭代化
  13873. * @param {number[]} arr 要操作的数字数组
  13874. * @param {function} operation 迭代操作
  13875. * @private
  13876. */
  13877. function iteratorOperation(arr, operation) {
  13878. var _arr = (0, _toArray2.default)(arr),
  13879. num1 = _arr[0],
  13880. num2 = _arr[1],
  13881. others = _arr.slice(2);
  13882. var res = operation(num1, num2);
  13883. others.forEach(function (num) {
  13884. res = operation(res, num);
  13885. });
  13886. return res;
  13887. }
  13888. /**
  13889. * 高精度乘法
  13890. * @export
  13891. */
  13892. function times() {
  13893. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13894. nums[_key] = arguments[_key];
  13895. }
  13896. if (nums.length > 2) {
  13897. return iteratorOperation(nums, times);
  13898. }
  13899. var num1 = nums[0],
  13900. num2 = nums[1];
  13901. var num1Changed = float2Fixed(num1);
  13902. var num2Changed = float2Fixed(num2);
  13903. var baseNum = digitLength(num1) + digitLength(num2);
  13904. var leftValue = num1Changed * num2Changed;
  13905. checkBoundary(leftValue);
  13906. return leftValue / Math.pow(10, baseNum);
  13907. }
  13908. /**
  13909. * 高精度加法
  13910. * @export
  13911. */
  13912. function plus() {
  13913. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  13914. nums[_key2] = arguments[_key2];
  13915. }
  13916. if (nums.length > 2) {
  13917. return iteratorOperation(nums, plus);
  13918. }
  13919. var num1 = nums[0],
  13920. num2 = nums[1];
  13921. // 取最大的小数位
  13922. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13923. // 把小数都转为整数然后再计算
  13924. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13925. }
  13926. /**
  13927. * 高精度减法
  13928. * @export
  13929. */
  13930. function minus() {
  13931. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  13932. nums[_key3] = arguments[_key3];
  13933. }
  13934. if (nums.length > 2) {
  13935. return iteratorOperation(nums, minus);
  13936. }
  13937. var num1 = nums[0],
  13938. num2 = nums[1];
  13939. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13940. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13941. }
  13942. /**
  13943. * 高精度除法
  13944. * @export
  13945. */
  13946. function divide() {
  13947. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  13948. nums[_key4] = arguments[_key4];
  13949. }
  13950. if (nums.length > 2) {
  13951. return iteratorOperation(nums, divide);
  13952. }
  13953. var num1 = nums[0],
  13954. num2 = nums[1];
  13955. var num1Changed = float2Fixed(num1);
  13956. var num2Changed = float2Fixed(num2);
  13957. checkBoundary(num1Changed);
  13958. checkBoundary(num2Changed);
  13959. // 重要,这里必须用strip进行修正
  13960. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13961. }
  13962. /**
  13963. * 四舍五入
  13964. * @export
  13965. */
  13966. function round(num, ratio) {
  13967. var base = Math.pow(10, ratio);
  13968. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13969. if (num < 0 && result !== 0) {
  13970. result = times(result, -1);
  13971. }
  13972. // 位数不足则补0
  13973. return result;
  13974. }
  13975. /**
  13976. * 是否进行边界检查,默认开启
  13977. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13978. * @export
  13979. */
  13980. function enableBoundaryChecking() {
  13981. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  13982. _boundaryCheckingState = flag;
  13983. }
  13984. var _default = {
  13985. times: times,
  13986. plus: plus,
  13987. minus: minus,
  13988. divide: divide,
  13989. round: round,
  13990. enableBoundaryChecking: enableBoundaryChecking
  13991. };
  13992. exports.default = _default;
  13993. /***/ }),
  13994. /* 64 */
  13995. /*!********************************************************!*\
  13996. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  13997. \********************************************************/
  13998. /*! no static exports found */
  13999. /***/ (function(module, exports, __webpack_require__) {
  14000. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14001. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14002. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14003. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14004. function _toArray(arr) {
  14005. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14006. }
  14007. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14008. /***/ }),
  14009. /* 65 */
  14010. /*!******************************************************************************!*\
  14011. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/config.js ***!
  14012. \******************************************************************************/
  14013. /*! no static exports found */
  14014. /***/ (function(module, exports, __webpack_require__) {
  14015. "use strict";
  14016. Object.defineProperty(exports, "__esModule", {
  14017. value: true
  14018. });
  14019. exports.default = void 0;
  14020. // 此版本发布于2024-03-17
  14021. var version = '2.0.37';
  14022. // 开发环境才提示,生产环境不会提示
  14023. if (true) {
  14024. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14025. }
  14026. var _default = {
  14027. v: version,
  14028. version: version,
  14029. // 主题名称
  14030. type: ['primary', 'success', 'info', 'error', 'warning'],
  14031. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14032. color: {
  14033. 'u-primary': '#2979ff',
  14034. 'u-warning': '#ff9900',
  14035. 'u-success': '#19be6b',
  14036. 'u-error': '#fa3534',
  14037. 'u-info': '#909399',
  14038. 'u-main-color': '#303133',
  14039. 'u-content-color': '#606266',
  14040. 'u-tips-color': '#909399',
  14041. 'u-light-color': '#c0c4cc'
  14042. },
  14043. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14044. unit: 'px'
  14045. };
  14046. exports.default = _default;
  14047. /***/ }),
  14048. /* 66 */
  14049. /*!*****************************************************************************!*\
  14050. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props.js ***!
  14051. \*****************************************************************************/
  14052. /*! no static exports found */
  14053. /***/ (function(module, exports, __webpack_require__) {
  14054. "use strict";
  14055. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14056. Object.defineProperty(exports, "__esModule", {
  14057. value: true
  14058. });
  14059. exports.default = void 0;
  14060. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14061. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 65));
  14062. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 67));
  14063. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 68));
  14064. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 69));
  14065. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 70));
  14066. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 71));
  14067. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 72));
  14068. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 73));
  14069. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 74));
  14070. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 75));
  14071. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 76));
  14072. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 77));
  14073. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 78));
  14074. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 79));
  14075. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 80));
  14076. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 81));
  14077. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 82));
  14078. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 83));
  14079. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 84));
  14080. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 85));
  14081. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 86));
  14082. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 87));
  14083. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 88));
  14084. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 89));
  14085. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 90));
  14086. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 91));
  14087. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 92));
  14088. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 93));
  14089. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 94));
  14090. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 95));
  14091. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 96));
  14092. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 97));
  14093. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 98));
  14094. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 99));
  14095. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 100));
  14096. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 101));
  14097. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 102));
  14098. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 103));
  14099. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 104));
  14100. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 105));
  14101. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 106));
  14102. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 107));
  14103. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 108));
  14104. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 109));
  14105. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 110));
  14106. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 111));
  14107. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 112));
  14108. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 113));
  14109. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 115));
  14110. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 116));
  14111. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 117));
  14112. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 118));
  14113. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 119));
  14114. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 120));
  14115. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 121));
  14116. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 122));
  14117. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 123));
  14118. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 124));
  14119. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 125));
  14120. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 126));
  14121. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 127));
  14122. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 128));
  14123. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 129));
  14124. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 130));
  14125. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 131));
  14126. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 132));
  14127. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 133));
  14128. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 134));
  14129. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 135));
  14130. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 136));
  14131. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 137));
  14132. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 138));
  14133. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 139));
  14134. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 140));
  14135. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 141));
  14136. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 142));
  14137. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 143));
  14138. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 144));
  14139. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 145));
  14140. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 146));
  14141. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 147));
  14142. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 148));
  14143. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 149));
  14144. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 150));
  14145. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 151));
  14146. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 152));
  14147. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 153));
  14148. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 154));
  14149. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 155));
  14150. 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; }
  14151. 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; }
  14152. var color = _config.default.color;
  14153. 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);
  14154. exports.default = _default;
  14155. /***/ }),
  14156. /* 67 */
  14157. /*!*****************************************************************************************!*\
  14158. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14159. \*****************************************************************************************/
  14160. /*! no static exports found */
  14161. /***/ (function(module, exports, __webpack_require__) {
  14162. "use strict";
  14163. Object.defineProperty(exports, "__esModule", {
  14164. value: true
  14165. });
  14166. exports.default = void 0;
  14167. /*
  14168. * @Author : LQ
  14169. * @Description :
  14170. * @version : 1.0
  14171. * @Date : 2021-08-20 16:44:21
  14172. * @LastAuthor : LQ
  14173. * @lastTime : 2021-08-20 16:44:35
  14174. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14175. */
  14176. var _default = {
  14177. // action-sheet组件
  14178. actionSheet: {
  14179. show: false,
  14180. title: '',
  14181. description: '',
  14182. actions: function actions() {
  14183. return [];
  14184. },
  14185. index: '',
  14186. cancelText: '',
  14187. closeOnClickAction: true,
  14188. safeAreaInsetBottom: true,
  14189. openType: '',
  14190. closeOnClickOverlay: true,
  14191. round: 0
  14192. }
  14193. };
  14194. exports.default = _default;
  14195. /***/ }),
  14196. /* 68 */
  14197. /*!***********************************************************************************!*\
  14198. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/album.js ***!
  14199. \***********************************************************************************/
  14200. /*! no static exports found */
  14201. /***/ (function(module, exports, __webpack_require__) {
  14202. "use strict";
  14203. Object.defineProperty(exports, "__esModule", {
  14204. value: true
  14205. });
  14206. exports.default = void 0;
  14207. /*
  14208. * @Author : LQ
  14209. * @Description :
  14210. * @version : 1.0
  14211. * @Date : 2021-08-20 16:44:21
  14212. * @LastAuthor : LQ
  14213. * @lastTime : 2021-08-20 16:47:24
  14214. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14215. */
  14216. var _default = {
  14217. // album 组件
  14218. album: {
  14219. urls: function urls() {
  14220. return [];
  14221. },
  14222. keyName: '',
  14223. singleSize: 180,
  14224. multipleSize: 70,
  14225. space: 6,
  14226. singleMode: 'scaleToFill',
  14227. multipleMode: 'aspectFill',
  14228. maxCount: 9,
  14229. previewFullImage: true,
  14230. rowCount: 3,
  14231. showMore: true
  14232. }
  14233. };
  14234. exports.default = _default;
  14235. /***/ }),
  14236. /* 69 */
  14237. /*!***********************************************************************************!*\
  14238. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14239. \***********************************************************************************/
  14240. /*! no static exports found */
  14241. /***/ (function(module, exports, __webpack_require__) {
  14242. "use strict";
  14243. Object.defineProperty(exports, "__esModule", {
  14244. value: true
  14245. });
  14246. exports.default = void 0;
  14247. /*
  14248. * @Author : LQ
  14249. * @Description :
  14250. * @version : 1.0
  14251. * @Date : 2021-08-20 16:44:21
  14252. * @LastAuthor : LQ
  14253. * @lastTime : 2021-08-20 16:48:53
  14254. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14255. */
  14256. var _default = {
  14257. // alert警告组件
  14258. alert: {
  14259. title: '',
  14260. type: 'warning',
  14261. description: '',
  14262. closable: false,
  14263. showIcon: false,
  14264. effect: 'light',
  14265. center: false,
  14266. fontSize: 14
  14267. }
  14268. };
  14269. exports.default = _default;
  14270. /***/ }),
  14271. /* 70 */
  14272. /*!************************************************************************************!*\
  14273. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14274. \************************************************************************************/
  14275. /*! no static exports found */
  14276. /***/ (function(module, exports, __webpack_require__) {
  14277. "use strict";
  14278. Object.defineProperty(exports, "__esModule", {
  14279. value: true
  14280. });
  14281. exports.default = void 0;
  14282. /*
  14283. * @Author : LQ
  14284. * @Description :
  14285. * @version : 1.0
  14286. * @Date : 2021-08-20 16:44:21
  14287. * @LastAuthor : LQ
  14288. * @lastTime : 2021-08-20 16:49:22
  14289. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14290. */
  14291. var _default = {
  14292. // avatar 组件
  14293. avatar: {
  14294. src: '',
  14295. shape: 'circle',
  14296. size: 40,
  14297. mode: 'scaleToFill',
  14298. text: '',
  14299. bgColor: '#c0c4cc',
  14300. color: '#ffffff',
  14301. fontSize: 18,
  14302. icon: '',
  14303. mpAvatar: false,
  14304. randomBgColor: false,
  14305. defaultUrl: '',
  14306. colorIndex: '',
  14307. name: ''
  14308. }
  14309. };
  14310. exports.default = _default;
  14311. /***/ }),
  14312. /* 71 */
  14313. /*!*****************************************************************************************!*\
  14314. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14315. \*****************************************************************************************/
  14316. /*! no static exports found */
  14317. /***/ (function(module, exports, __webpack_require__) {
  14318. "use strict";
  14319. Object.defineProperty(exports, "__esModule", {
  14320. value: true
  14321. });
  14322. exports.default = void 0;
  14323. /*
  14324. * @Author : LQ
  14325. * @Description :
  14326. * @version : 1.0
  14327. * @Date : 2021-08-20 16:44:21
  14328. * @LastAuthor : LQ
  14329. * @lastTime : 2021-08-20 16:49:55
  14330. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14331. */
  14332. var _default = {
  14333. // avatarGroup 组件
  14334. avatarGroup: {
  14335. urls: function urls() {
  14336. return [];
  14337. },
  14338. maxCount: 5,
  14339. shape: 'circle',
  14340. mode: 'scaleToFill',
  14341. showMore: true,
  14342. size: 40,
  14343. keyName: '',
  14344. gap: 0.5,
  14345. extraValue: 0
  14346. }
  14347. };
  14348. exports.default = _default;
  14349. /***/ }),
  14350. /* 72 */
  14351. /*!*************************************************************************************!*\
  14352. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  14353. \*************************************************************************************/
  14354. /*! no static exports found */
  14355. /***/ (function(module, exports, __webpack_require__) {
  14356. "use strict";
  14357. Object.defineProperty(exports, "__esModule", {
  14358. value: true
  14359. });
  14360. exports.default = void 0;
  14361. /*
  14362. * @Author : LQ
  14363. * @Description :
  14364. * @version : 1.0
  14365. * @Date : 2021-08-20 16:44:21
  14366. * @LastAuthor : LQ
  14367. * @lastTime : 2021-08-20 16:50:18
  14368. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14369. */
  14370. var _default = {
  14371. // backtop组件
  14372. backtop: {
  14373. mode: 'circle',
  14374. icon: 'arrow-upward',
  14375. text: '',
  14376. duration: 100,
  14377. scrollTop: 0,
  14378. top: 400,
  14379. bottom: 100,
  14380. right: 20,
  14381. zIndex: 9,
  14382. iconStyle: function iconStyle() {
  14383. return {
  14384. color: '#909399',
  14385. fontSize: '19px'
  14386. };
  14387. }
  14388. }
  14389. };
  14390. exports.default = _default;
  14391. /***/ }),
  14392. /* 73 */
  14393. /*!***********************************************************************************!*\
  14394. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/badge.js ***!
  14395. \***********************************************************************************/
  14396. /*! no static exports found */
  14397. /***/ (function(module, exports, __webpack_require__) {
  14398. "use strict";
  14399. Object.defineProperty(exports, "__esModule", {
  14400. value: true
  14401. });
  14402. exports.default = void 0;
  14403. /*
  14404. * @Author : LQ
  14405. * @Description :
  14406. * @version : 1.0
  14407. * @Date : 2021-08-20 16:44:21
  14408. * @LastAuthor : LQ
  14409. * @lastTime : 2021-08-23 19:51:50
  14410. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14411. */
  14412. var _default = {
  14413. // 徽标数组件
  14414. badge: {
  14415. isDot: false,
  14416. value: '',
  14417. show: true,
  14418. max: 999,
  14419. type: 'error',
  14420. showZero: false,
  14421. bgColor: null,
  14422. color: null,
  14423. shape: 'circle',
  14424. numberType: 'overflow',
  14425. offset: function offset() {
  14426. return [];
  14427. },
  14428. inverted: false,
  14429. absolute: false
  14430. }
  14431. };
  14432. exports.default = _default;
  14433. /***/ }),
  14434. /* 74 */
  14435. /*!************************************************************************************!*\
  14436. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/button.js ***!
  14437. \************************************************************************************/
  14438. /*! no static exports found */
  14439. /***/ (function(module, exports, __webpack_require__) {
  14440. "use strict";
  14441. Object.defineProperty(exports, "__esModule", {
  14442. value: true
  14443. });
  14444. exports.default = void 0;
  14445. /*
  14446. * @Author : LQ
  14447. * @Description :
  14448. * @version : 1.0
  14449. * @Date : 2021-08-20 16:44:21
  14450. * @LastAuthor : LQ
  14451. * @lastTime : 2021-08-20 16:51:27
  14452. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14453. */
  14454. var _default = {
  14455. // button组件
  14456. button: {
  14457. hairline: false,
  14458. type: 'info',
  14459. size: 'normal',
  14460. shape: 'square',
  14461. plain: false,
  14462. disabled: false,
  14463. loading: false,
  14464. loadingText: '',
  14465. loadingMode: 'spinner',
  14466. loadingSize: 15,
  14467. openType: '',
  14468. formType: '',
  14469. appParameter: '',
  14470. hoverStopPropagation: true,
  14471. lang: 'en',
  14472. sessionFrom: '',
  14473. sendMessageTitle: '',
  14474. sendMessagePath: '',
  14475. sendMessageImg: '',
  14476. showMessageCard: false,
  14477. dataName: '',
  14478. throttleTime: 0,
  14479. hoverStartTime: 0,
  14480. hoverStayTime: 200,
  14481. text: '',
  14482. icon: '',
  14483. iconColor: '',
  14484. color: ''
  14485. }
  14486. };
  14487. exports.default = _default;
  14488. /***/ }),
  14489. /* 75 */
  14490. /*!**************************************************************************************!*\
  14491. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  14492. \**************************************************************************************/
  14493. /*! no static exports found */
  14494. /***/ (function(module, exports, __webpack_require__) {
  14495. "use strict";
  14496. Object.defineProperty(exports, "__esModule", {
  14497. value: true
  14498. });
  14499. exports.default = void 0;
  14500. /*
  14501. * @Author : LQ
  14502. * @Description :
  14503. * @version : 1.0
  14504. * @Date : 2021-08-20 16:44:21
  14505. * @LastAuthor : LQ
  14506. * @lastTime : 2021-08-20 16:52:43
  14507. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14508. */
  14509. var _default = {
  14510. // calendar 组件
  14511. calendar: {
  14512. title: '日期选择',
  14513. showTitle: true,
  14514. showSubtitle: true,
  14515. mode: 'single',
  14516. startText: '开始',
  14517. endText: '结束',
  14518. customList: function customList() {
  14519. return [];
  14520. },
  14521. color: '#3c9cff',
  14522. minDate: 0,
  14523. maxDate: 0,
  14524. defaultDate: null,
  14525. maxCount: Number.MAX_SAFE_INTEGER,
  14526. // Infinity
  14527. rowHeight: 56,
  14528. formatter: null,
  14529. showLunar: false,
  14530. showMark: true,
  14531. confirmText: '确定',
  14532. confirmDisabledText: '确定',
  14533. show: false,
  14534. closeOnClickOverlay: false,
  14535. readonly: false,
  14536. showConfirm: true,
  14537. maxRange: Number.MAX_SAFE_INTEGER,
  14538. // Infinity
  14539. rangePrompt: '',
  14540. showRangePrompt: true,
  14541. allowSameDay: false,
  14542. round: 0,
  14543. monthNum: 3
  14544. }
  14545. };
  14546. exports.default = _default;
  14547. /***/ }),
  14548. /* 76 */
  14549. /*!*****************************************************************************************!*\
  14550. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14551. \*****************************************************************************************/
  14552. /*! no static exports found */
  14553. /***/ (function(module, exports, __webpack_require__) {
  14554. "use strict";
  14555. Object.defineProperty(exports, "__esModule", {
  14556. value: true
  14557. });
  14558. exports.default = void 0;
  14559. /*
  14560. * @Author : LQ
  14561. * @Description :
  14562. * @version : 1.0
  14563. * @Date : 2021-08-20 16:44:21
  14564. * @LastAuthor : LQ
  14565. * @lastTime : 2021-08-20 16:53:20
  14566. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14567. */
  14568. var _default = {
  14569. // 车牌号键盘
  14570. carKeyboard: {
  14571. random: false
  14572. }
  14573. };
  14574. exports.default = _default;
  14575. /***/ }),
  14576. /* 77 */
  14577. /*!**********************************************************************************!*\
  14578. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14579. \**********************************************************************************/
  14580. /*! no static exports found */
  14581. /***/ (function(module, exports, __webpack_require__) {
  14582. "use strict";
  14583. Object.defineProperty(exports, "__esModule", {
  14584. value: true
  14585. });
  14586. exports.default = void 0;
  14587. /*
  14588. * @Author : LQ
  14589. * @Description :
  14590. * @version : 1.0
  14591. * @Date : 2021-08-20 16:44:21
  14592. * @LastAuthor : LQ
  14593. * @lastTime : 2021-08-23 20:53:09
  14594. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14595. */
  14596. var _default = {
  14597. // cell组件的props
  14598. cell: {
  14599. customClass: '',
  14600. title: '',
  14601. label: '',
  14602. value: '',
  14603. icon: '',
  14604. disabled: false,
  14605. border: true,
  14606. center: false,
  14607. url: '',
  14608. linkType: 'navigateTo',
  14609. clickable: false,
  14610. isLink: false,
  14611. required: false,
  14612. arrowDirection: '',
  14613. iconStyle: {},
  14614. rightIconStyle: {},
  14615. rightIcon: 'arrow-right',
  14616. titleStyle: {},
  14617. size: '',
  14618. stop: true,
  14619. name: ''
  14620. }
  14621. };
  14622. exports.default = _default;
  14623. /***/ }),
  14624. /* 78 */
  14625. /*!***************************************************************************************!*\
  14626. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14627. \***************************************************************************************/
  14628. /*! no static exports found */
  14629. /***/ (function(module, exports, __webpack_require__) {
  14630. "use strict";
  14631. Object.defineProperty(exports, "__esModule", {
  14632. value: true
  14633. });
  14634. exports.default = void 0;
  14635. /*
  14636. * @Author : LQ
  14637. * @Description :
  14638. * @version : 1.0
  14639. * @Date : 2021-08-20 16:44:21
  14640. * @LastAuthor : LQ
  14641. * @lastTime : 2021-08-20 16:54:16
  14642. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14643. */
  14644. var _default = {
  14645. // cell-group组件的props
  14646. cellGroup: {
  14647. title: '',
  14648. border: true,
  14649. customStyle: {}
  14650. }
  14651. };
  14652. exports.default = _default;
  14653. /***/ }),
  14654. /* 79 */
  14655. /*!**************************************************************************************!*\
  14656. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  14657. \**************************************************************************************/
  14658. /*! no static exports found */
  14659. /***/ (function(module, exports, __webpack_require__) {
  14660. "use strict";
  14661. Object.defineProperty(exports, "__esModule", {
  14662. value: true
  14663. });
  14664. exports.default = void 0;
  14665. /*
  14666. * @Author : LQ
  14667. * @Description :
  14668. * @version : 1.0
  14669. * @Date : 2021-08-20 16:44:21
  14670. * @LastAuthor : LQ
  14671. * @lastTime : 2021-08-23 21:06:59
  14672. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14673. */
  14674. var _default = {
  14675. // checkbox组件
  14676. checkbox: {
  14677. name: '',
  14678. shape: '',
  14679. size: '',
  14680. checkbox: false,
  14681. disabled: '',
  14682. activeColor: '',
  14683. inactiveColor: '',
  14684. iconSize: '',
  14685. iconColor: '',
  14686. label: '',
  14687. labelSize: '',
  14688. labelColor: '',
  14689. labelDisabled: ''
  14690. }
  14691. };
  14692. exports.default = _default;
  14693. /***/ }),
  14694. /* 80 */
  14695. /*!*******************************************************************************************!*\
  14696. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14697. \*******************************************************************************************/
  14698. /*! no static exports found */
  14699. /***/ (function(module, exports, __webpack_require__) {
  14700. "use strict";
  14701. Object.defineProperty(exports, "__esModule", {
  14702. value: true
  14703. });
  14704. exports.default = void 0;
  14705. /*
  14706. * @Author : LQ
  14707. * @Description :
  14708. * @version : 1.0
  14709. * @Date : 2021-08-20 16:44:21
  14710. * @LastAuthor : LQ
  14711. * @lastTime : 2021-08-20 16:54:47
  14712. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14713. */
  14714. var _default = {
  14715. // checkbox-group组件
  14716. checkboxGroup: {
  14717. name: '',
  14718. value: function value() {
  14719. return [];
  14720. },
  14721. shape: 'square',
  14722. disabled: false,
  14723. activeColor: '#2979ff',
  14724. inactiveColor: '#c8c9cc',
  14725. size: 18,
  14726. placement: 'row',
  14727. labelSize: 14,
  14728. labelColor: '#303133',
  14729. labelDisabled: false,
  14730. iconColor: '#ffffff',
  14731. iconSize: 12,
  14732. iconPlacement: 'left',
  14733. borderBottom: false
  14734. }
  14735. };
  14736. exports.default = _default;
  14737. /***/ }),
  14738. /* 81 */
  14739. /*!********************************************************************************************!*\
  14740. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14741. \********************************************************************************************/
  14742. /*! no static exports found */
  14743. /***/ (function(module, exports, __webpack_require__) {
  14744. "use strict";
  14745. Object.defineProperty(exports, "__esModule", {
  14746. value: true
  14747. });
  14748. exports.default = void 0;
  14749. /*
  14750. * @Author : LQ
  14751. * @Description :
  14752. * @version : 1.0
  14753. * @Date : 2021-08-20 16:44:21
  14754. * @LastAuthor : LQ
  14755. * @lastTime : 2021-08-20 16:55:02
  14756. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14757. */
  14758. var _default = {
  14759. // circleProgress 组件
  14760. circleProgress: {
  14761. percentage: 30
  14762. }
  14763. };
  14764. exports.default = _default;
  14765. /***/ }),
  14766. /* 82 */
  14767. /*!**********************************************************************************!*\
  14768. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/code.js ***!
  14769. \**********************************************************************************/
  14770. /*! no static exports found */
  14771. /***/ (function(module, exports, __webpack_require__) {
  14772. "use strict";
  14773. Object.defineProperty(exports, "__esModule", {
  14774. value: true
  14775. });
  14776. exports.default = void 0;
  14777. /*
  14778. * @Author : LQ
  14779. * @Description :
  14780. * @version : 1.0
  14781. * @Date : 2021-08-20 16:44:21
  14782. * @LastAuthor : LQ
  14783. * @lastTime : 2021-08-20 16:55:27
  14784. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14785. */
  14786. var _default = {
  14787. // code 组件
  14788. code: {
  14789. seconds: 60,
  14790. startText: '获取验证码',
  14791. changeText: 'X秒重新获取',
  14792. endText: '重新获取',
  14793. keepRunning: false,
  14794. uniqueKey: ''
  14795. }
  14796. };
  14797. exports.default = _default;
  14798. /***/ }),
  14799. /* 83 */
  14800. /*!***************************************************************************************!*\
  14801. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  14802. \***************************************************************************************/
  14803. /*! no static exports found */
  14804. /***/ (function(module, exports, __webpack_require__) {
  14805. "use strict";
  14806. Object.defineProperty(exports, "__esModule", {
  14807. value: true
  14808. });
  14809. exports.default = void 0;
  14810. /*
  14811. * @Author : LQ
  14812. * @Description :
  14813. * @version : 1.0
  14814. * @Date : 2021-08-20 16:44:21
  14815. * @LastAuthor : LQ
  14816. * @lastTime : 2021-08-20 16:55:58
  14817. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14818. */
  14819. var _default = {
  14820. // codeInput 组件
  14821. codeInput: {
  14822. adjustPosition: true,
  14823. maxlength: 6,
  14824. dot: false,
  14825. mode: 'box',
  14826. hairline: false,
  14827. space: 10,
  14828. value: '',
  14829. focus: false,
  14830. bold: false,
  14831. color: '#606266',
  14832. fontSize: 18,
  14833. size: 35,
  14834. disabledKeyboard: false,
  14835. borderColor: '#c9cacc',
  14836. disabledDot: true
  14837. }
  14838. };
  14839. exports.default = _default;
  14840. /***/ }),
  14841. /* 84 */
  14842. /*!*********************************************************************************!*\
  14843. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/col.js ***!
  14844. \*********************************************************************************/
  14845. /*! no static exports found */
  14846. /***/ (function(module, exports, __webpack_require__) {
  14847. "use strict";
  14848. Object.defineProperty(exports, "__esModule", {
  14849. value: true
  14850. });
  14851. exports.default = void 0;
  14852. /*
  14853. * @Author : LQ
  14854. * @Description :
  14855. * @version : 1.0
  14856. * @Date : 2021-08-20 16:44:21
  14857. * @LastAuthor : LQ
  14858. * @lastTime : 2021-08-20 16:56:12
  14859. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14860. */
  14861. var _default = {
  14862. // col 组件
  14863. col: {
  14864. span: 12,
  14865. offset: 0,
  14866. justify: 'start',
  14867. align: 'stretch',
  14868. textAlign: 'left'
  14869. }
  14870. };
  14871. exports.default = _default;
  14872. /***/ }),
  14873. /* 85 */
  14874. /*!**************************************************************************************!*\
  14875. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  14876. \**************************************************************************************/
  14877. /*! no static exports found */
  14878. /***/ (function(module, exports, __webpack_require__) {
  14879. "use strict";
  14880. Object.defineProperty(exports, "__esModule", {
  14881. value: true
  14882. });
  14883. exports.default = void 0;
  14884. /*
  14885. * @Author : LQ
  14886. * @Description :
  14887. * @version : 1.0
  14888. * @Date : 2021-08-20 16:44:21
  14889. * @LastAuthor : LQ
  14890. * @lastTime : 2021-08-20 16:56:30
  14891. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14892. */
  14893. var _default = {
  14894. // collapse 组件
  14895. collapse: {
  14896. value: null,
  14897. accordion: false,
  14898. border: true
  14899. }
  14900. };
  14901. exports.default = _default;
  14902. /***/ }),
  14903. /* 86 */
  14904. /*!******************************************************************************************!*\
  14905. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  14906. \******************************************************************************************/
  14907. /*! no static exports found */
  14908. /***/ (function(module, exports, __webpack_require__) {
  14909. "use strict";
  14910. Object.defineProperty(exports, "__esModule", {
  14911. value: true
  14912. });
  14913. exports.default = void 0;
  14914. /*
  14915. * @Author : LQ
  14916. * @Description :
  14917. * @version : 1.0
  14918. * @Date : 2021-08-20 16:44:21
  14919. * @LastAuthor : LQ
  14920. * @lastTime : 2021-08-20 16:56:42
  14921. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  14922. */
  14923. var _default = {
  14924. // collapseItem 组件
  14925. collapseItem: {
  14926. title: '',
  14927. value: '',
  14928. label: '',
  14929. disabled: false,
  14930. isLink: true,
  14931. clickable: true,
  14932. border: true,
  14933. align: 'left',
  14934. name: '',
  14935. icon: '',
  14936. duration: 300
  14937. }
  14938. };
  14939. exports.default = _default;
  14940. /***/ }),
  14941. /* 87 */
  14942. /*!******************************************************************************************!*\
  14943. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  14944. \******************************************************************************************/
  14945. /*! no static exports found */
  14946. /***/ (function(module, exports, __webpack_require__) {
  14947. "use strict";
  14948. Object.defineProperty(exports, "__esModule", {
  14949. value: true
  14950. });
  14951. exports.default = void 0;
  14952. /*
  14953. * @Author : LQ
  14954. * @Description :
  14955. * @version : 1.0
  14956. * @Date : 2021-08-20 16:44:21
  14957. * @LastAuthor : LQ
  14958. * @lastTime : 2021-08-20 16:57:16
  14959. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14960. */
  14961. var _default = {
  14962. // columnNotice 组件
  14963. columnNotice: {
  14964. text: '',
  14965. icon: 'volume',
  14966. mode: '',
  14967. color: '#f9ae3d',
  14968. bgColor: '#fdf6ec',
  14969. fontSize: 14,
  14970. speed: 80,
  14971. step: false,
  14972. duration: 1500,
  14973. disableTouch: true
  14974. }
  14975. };
  14976. exports.default = _default;
  14977. /***/ }),
  14978. /* 88 */
  14979. /*!***************************************************************************************!*\
  14980. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  14981. \***************************************************************************************/
  14982. /*! no static exports found */
  14983. /***/ (function(module, exports, __webpack_require__) {
  14984. "use strict";
  14985. Object.defineProperty(exports, "__esModule", {
  14986. value: true
  14987. });
  14988. exports.default = void 0;
  14989. /*
  14990. * @Author : LQ
  14991. * @Description :
  14992. * @version : 1.0
  14993. * @Date : 2021-08-20 16:44:21
  14994. * @LastAuthor : LQ
  14995. * @lastTime : 2021-08-20 17:11:29
  14996. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  14997. */
  14998. var _default = {
  14999. // u-count-down 计时器组件
  15000. countDown: {
  15001. time: 0,
  15002. format: 'HH:mm:ss',
  15003. autoStart: true,
  15004. millisecond: false
  15005. }
  15006. };
  15007. exports.default = _default;
  15008. /***/ }),
  15009. /* 89 */
  15010. /*!*************************************************************************************!*\
  15011. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15012. \*************************************************************************************/
  15013. /*! no static exports found */
  15014. /***/ (function(module, exports, __webpack_require__) {
  15015. "use strict";
  15016. Object.defineProperty(exports, "__esModule", {
  15017. value: true
  15018. });
  15019. exports.default = void 0;
  15020. /*
  15021. * @Author : LQ
  15022. * @Description :
  15023. * @version : 1.0
  15024. * @Date : 2021-08-20 16:44:21
  15025. * @LastAuthor : LQ
  15026. * @lastTime : 2021-08-20 16:57:32
  15027. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15028. */
  15029. var _default = {
  15030. // countTo 组件
  15031. countTo: {
  15032. startVal: 0,
  15033. endVal: 0,
  15034. duration: 2000,
  15035. autoplay: true,
  15036. decimals: 0,
  15037. useEasing: true,
  15038. decimal: '.',
  15039. color: '#606266',
  15040. fontSize: 22,
  15041. bold: false,
  15042. separator: ''
  15043. }
  15044. };
  15045. exports.default = _default;
  15046. /***/ }),
  15047. /* 90 */
  15048. /*!********************************************************************************************!*\
  15049. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15050. \********************************************************************************************/
  15051. /*! no static exports found */
  15052. /***/ (function(module, exports, __webpack_require__) {
  15053. "use strict";
  15054. Object.defineProperty(exports, "__esModule", {
  15055. value: true
  15056. });
  15057. exports.default = void 0;
  15058. /*
  15059. * @Author : LQ
  15060. * @Description :
  15061. * @version : 1.0
  15062. * @Date : 2021-08-20 16:44:21
  15063. * @LastAuthor : LQ
  15064. * @lastTime : 2021-08-20 16:57:48
  15065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15066. */
  15067. var _default = {
  15068. // datetimePicker 组件
  15069. datetimePicker: {
  15070. show: false,
  15071. showToolbar: true,
  15072. value: '',
  15073. title: '',
  15074. mode: 'datetime',
  15075. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15076. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15077. minHour: 0,
  15078. maxHour: 23,
  15079. minMinute: 0,
  15080. maxMinute: 59,
  15081. filter: null,
  15082. formatter: null,
  15083. loading: false,
  15084. itemHeight: 44,
  15085. cancelText: '取消',
  15086. confirmText: '确认',
  15087. cancelColor: '#909193',
  15088. confirmColor: '#3c9cff',
  15089. visibleItemCount: 5,
  15090. closeOnClickOverlay: false,
  15091. defaultIndex: function defaultIndex() {
  15092. return [];
  15093. }
  15094. }
  15095. };
  15096. exports.default = _default;
  15097. /***/ }),
  15098. /* 91 */
  15099. /*!*************************************************************************************!*\
  15100. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15101. \*************************************************************************************/
  15102. /*! no static exports found */
  15103. /***/ (function(module, exports, __webpack_require__) {
  15104. "use strict";
  15105. Object.defineProperty(exports, "__esModule", {
  15106. value: true
  15107. });
  15108. exports.default = void 0;
  15109. /*
  15110. * @Author : LQ
  15111. * @Description :
  15112. * @version : 1.0
  15113. * @Date : 2021-08-20 16:44:21
  15114. * @LastAuthor : LQ
  15115. * @lastTime : 2021-08-20 16:58:03
  15116. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15117. */
  15118. var _default = {
  15119. // divider组件
  15120. divider: {
  15121. dashed: false,
  15122. hairline: true,
  15123. dot: false,
  15124. textPosition: 'center',
  15125. text: '',
  15126. textSize: 14,
  15127. textColor: '#909399',
  15128. lineColor: '#dcdfe6'
  15129. }
  15130. };
  15131. exports.default = _default;
  15132. /***/ }),
  15133. /* 92 */
  15134. /*!***********************************************************************************!*\
  15135. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15136. \***********************************************************************************/
  15137. /*! no static exports found */
  15138. /***/ (function(module, exports, __webpack_require__) {
  15139. "use strict";
  15140. Object.defineProperty(exports, "__esModule", {
  15141. value: true
  15142. });
  15143. exports.default = void 0;
  15144. /*
  15145. * @Author : LQ
  15146. * @Description :
  15147. * @version : 1.0
  15148. * @Date : 2021-08-20 16:44:21
  15149. * @LastAuthor : LQ
  15150. * @lastTime : 2021-08-20 17:03:27
  15151. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15152. */
  15153. var _default = {
  15154. // empty组件
  15155. empty: {
  15156. icon: '',
  15157. text: '',
  15158. textColor: '#c0c4cc',
  15159. textSize: 14,
  15160. iconColor: '#c0c4cc',
  15161. iconSize: 90,
  15162. mode: 'data',
  15163. width: 160,
  15164. height: 160,
  15165. show: true,
  15166. marginTop: 0
  15167. }
  15168. };
  15169. exports.default = _default;
  15170. /***/ }),
  15171. /* 93 */
  15172. /*!**********************************************************************************!*\
  15173. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/form.js ***!
  15174. \**********************************************************************************/
  15175. /*! no static exports found */
  15176. /***/ (function(module, exports, __webpack_require__) {
  15177. "use strict";
  15178. Object.defineProperty(exports, "__esModule", {
  15179. value: true
  15180. });
  15181. exports.default = void 0;
  15182. /*
  15183. * @Author : LQ
  15184. * @Description :
  15185. * @version : 1.0
  15186. * @Date : 2021-08-20 16:44:21
  15187. * @LastAuthor : LQ
  15188. * @lastTime : 2021-08-20 17:03:49
  15189. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15190. */
  15191. var _default = {
  15192. // form 组件
  15193. form: {
  15194. model: function model() {
  15195. return {};
  15196. },
  15197. rules: function rules() {
  15198. return {};
  15199. },
  15200. errorType: 'message',
  15201. borderBottom: true,
  15202. labelPosition: 'left',
  15203. labelWidth: 45,
  15204. labelAlign: 'left',
  15205. labelStyle: function labelStyle() {
  15206. return {};
  15207. }
  15208. }
  15209. };
  15210. exports.default = _default;
  15211. /***/ }),
  15212. /* 94 */
  15213. /*!**************************************************************************************!*\
  15214. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15215. \**************************************************************************************/
  15216. /*! no static exports found */
  15217. /***/ (function(module, exports, __webpack_require__) {
  15218. "use strict";
  15219. Object.defineProperty(exports, "__esModule", {
  15220. value: true
  15221. });
  15222. exports.default = void 0;
  15223. /*
  15224. * @Author : LQ
  15225. * @Description :
  15226. * @version : 1.0
  15227. * @Date : 2021-08-20 16:44:21
  15228. * @LastAuthor : LQ
  15229. * @lastTime : 2021-08-20 17:04:32
  15230. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15231. */
  15232. var _default = {
  15233. // formItem 组件
  15234. formItem: {
  15235. label: '',
  15236. prop: '',
  15237. borderBottom: '',
  15238. labelPosition: '',
  15239. labelWidth: '',
  15240. rightIcon: '',
  15241. leftIcon: '',
  15242. required: false,
  15243. leftIconStyle: ''
  15244. }
  15245. };
  15246. exports.default = _default;
  15247. /***/ }),
  15248. /* 95 */
  15249. /*!*********************************************************************************!*\
  15250. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15251. \*********************************************************************************/
  15252. /*! no static exports found */
  15253. /***/ (function(module, exports, __webpack_require__) {
  15254. "use strict";
  15255. Object.defineProperty(exports, "__esModule", {
  15256. value: true
  15257. });
  15258. exports.default = void 0;
  15259. /*
  15260. * @Author : LQ
  15261. * @Description :
  15262. * @version : 1.0
  15263. * @Date : 2021-08-20 16:44:21
  15264. * @LastAuthor : LQ
  15265. * @lastTime : 2021-08-20 17:05:25
  15266. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15267. */
  15268. var _default = {
  15269. // gap组件
  15270. gap: {
  15271. bgColor: 'transparent',
  15272. height: 20,
  15273. marginTop: 0,
  15274. marginBottom: 0,
  15275. customStyle: {}
  15276. }
  15277. };
  15278. exports.default = _default;
  15279. /***/ }),
  15280. /* 96 */
  15281. /*!**********************************************************************************!*\
  15282. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15283. \**********************************************************************************/
  15284. /*! no static exports found */
  15285. /***/ (function(module, exports, __webpack_require__) {
  15286. "use strict";
  15287. Object.defineProperty(exports, "__esModule", {
  15288. value: true
  15289. });
  15290. exports.default = void 0;
  15291. /*
  15292. * @Author : LQ
  15293. * @Description :
  15294. * @version : 1.0
  15295. * @Date : 2021-08-20 16:44:21
  15296. * @LastAuthor : LQ
  15297. * @lastTime : 2021-08-20 17:05:57
  15298. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15299. */
  15300. var _default = {
  15301. // grid组件
  15302. grid: {
  15303. col: 3,
  15304. border: false,
  15305. align: 'left'
  15306. }
  15307. };
  15308. exports.default = _default;
  15309. /***/ }),
  15310. /* 97 */
  15311. /*!**************************************************************************************!*\
  15312. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15313. \**************************************************************************************/
  15314. /*! no static exports found */
  15315. /***/ (function(module, exports, __webpack_require__) {
  15316. "use strict";
  15317. Object.defineProperty(exports, "__esModule", {
  15318. value: true
  15319. });
  15320. exports.default = void 0;
  15321. /*
  15322. * @Author : LQ
  15323. * @Description :
  15324. * @version : 1.0
  15325. * @Date : 2021-08-20 16:44:21
  15326. * @LastAuthor : LQ
  15327. * @lastTime : 2021-08-20 17:06:13
  15328. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15329. */
  15330. var _default = {
  15331. // grid-item组件
  15332. gridItem: {
  15333. name: null,
  15334. bgColor: 'transparent'
  15335. }
  15336. };
  15337. exports.default = _default;
  15338. /***/ }),
  15339. /* 98 */
  15340. /*!**********************************************************************************!*\
  15341. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15342. \**********************************************************************************/
  15343. /*! no static exports found */
  15344. /***/ (function(module, exports, __webpack_require__) {
  15345. "use strict";
  15346. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15347. Object.defineProperty(exports, "__esModule", {
  15348. value: true
  15349. });
  15350. exports.default = void 0;
  15351. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15352. /*
  15353. * @Author : LQ
  15354. * @Description :
  15355. * @version : 1.0
  15356. * @Date : 2021-08-20 16:44:21
  15357. * @LastAuthor : LQ
  15358. * @lastTime : 2021-08-20 18:00:14
  15359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15360. */
  15361. var color = _config.default.color;
  15362. var _default = {
  15363. // icon组件
  15364. icon: {
  15365. name: '',
  15366. color: color['u-content-color'],
  15367. size: '16px',
  15368. bold: false,
  15369. index: '',
  15370. hoverClass: '',
  15371. customPrefix: 'uicon',
  15372. label: '',
  15373. labelPos: 'right',
  15374. labelSize: '15px',
  15375. labelColor: color['u-content-color'],
  15376. space: '3px',
  15377. imgMode: '',
  15378. width: '',
  15379. height: '',
  15380. top: 0,
  15381. stop: false
  15382. }
  15383. };
  15384. exports.default = _default;
  15385. /***/ }),
  15386. /* 99 */
  15387. /*!***********************************************************************************!*\
  15388. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/image.js ***!
  15389. \***********************************************************************************/
  15390. /*! no static exports found */
  15391. /***/ (function(module, exports, __webpack_require__) {
  15392. "use strict";
  15393. Object.defineProperty(exports, "__esModule", {
  15394. value: true
  15395. });
  15396. exports.default = void 0;
  15397. /*
  15398. * @Author : LQ
  15399. * @Description :
  15400. * @version : 1.0
  15401. * @Date : 2021-08-20 16:44:21
  15402. * @LastAuthor : LQ
  15403. * @lastTime : 2021-08-20 17:01:51
  15404. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15405. */
  15406. var _default = {
  15407. // image组件
  15408. image: {
  15409. src: '',
  15410. mode: 'aspectFill',
  15411. width: '300',
  15412. height: '225',
  15413. shape: 'square',
  15414. radius: 0,
  15415. lazyLoad: true,
  15416. showMenuByLongpress: true,
  15417. loadingIcon: 'photo',
  15418. errorIcon: 'error-circle',
  15419. showLoading: true,
  15420. showError: true,
  15421. fade: true,
  15422. webp: false,
  15423. duration: 500,
  15424. bgColor: '#f3f4f6'
  15425. }
  15426. };
  15427. exports.default = _default;
  15428. /***/ }),
  15429. /* 100 */
  15430. /*!*****************************************************************************************!*\
  15431. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15432. \*****************************************************************************************/
  15433. /*! no static exports found */
  15434. /***/ (function(module, exports, __webpack_require__) {
  15435. "use strict";
  15436. Object.defineProperty(exports, "__esModule", {
  15437. value: true
  15438. });
  15439. exports.default = void 0;
  15440. /*
  15441. * @Author : LQ
  15442. * @Description :
  15443. * @version : 1.0
  15444. * @Date : 2021-08-20 16:44:21
  15445. * @LastAuthor : LQ
  15446. * @lastTime : 2021-08-20 17:13:15
  15447. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15448. */
  15449. var _default = {
  15450. // indexAnchor 组件
  15451. indexAnchor: {
  15452. text: '',
  15453. color: '#606266',
  15454. size: 14,
  15455. bgColor: '#dedede',
  15456. height: 32
  15457. }
  15458. };
  15459. exports.default = _default;
  15460. /***/ }),
  15461. /* 101 */
  15462. /*!***************************************************************************************!*\
  15463. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15464. \***************************************************************************************/
  15465. /*! no static exports found */
  15466. /***/ (function(module, exports, __webpack_require__) {
  15467. "use strict";
  15468. Object.defineProperty(exports, "__esModule", {
  15469. value: true
  15470. });
  15471. exports.default = void 0;
  15472. /*
  15473. * @Author : LQ
  15474. * @Description :
  15475. * @version : 1.0
  15476. * @Date : 2021-08-20 16:44:21
  15477. * @LastAuthor : LQ
  15478. * @lastTime : 2021-08-20 17:13:35
  15479. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15480. */
  15481. var _default = {
  15482. // indexList 组件
  15483. indexList: {
  15484. inactiveColor: '#606266',
  15485. activeColor: '#5677fc',
  15486. indexList: function indexList() {
  15487. return [];
  15488. },
  15489. sticky: true,
  15490. customNavHeight: 0
  15491. }
  15492. };
  15493. exports.default = _default;
  15494. /***/ }),
  15495. /* 102 */
  15496. /*!***********************************************************************************!*\
  15497. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/input.js ***!
  15498. \***********************************************************************************/
  15499. /*! no static exports found */
  15500. /***/ (function(module, exports, __webpack_require__) {
  15501. "use strict";
  15502. Object.defineProperty(exports, "__esModule", {
  15503. value: true
  15504. });
  15505. exports.default = void 0;
  15506. /*
  15507. * @Author : LQ
  15508. * @Description :
  15509. * @version : 1.0
  15510. * @Date : 2021-08-20 16:44:21
  15511. * @LastAuthor : LQ
  15512. * @lastTime : 2021-08-20 17:13:55
  15513. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15514. */
  15515. var _default = {
  15516. // index 组件
  15517. input: {
  15518. value: '',
  15519. type: 'text',
  15520. fixed: false,
  15521. disabled: false,
  15522. disabledColor: '#f5f7fa',
  15523. clearable: false,
  15524. password: false,
  15525. maxlength: -1,
  15526. placeholder: null,
  15527. placeholderClass: 'input-placeholder',
  15528. placeholderStyle: 'color: #c0c4cc',
  15529. showWordLimit: false,
  15530. confirmType: 'done',
  15531. confirmHold: false,
  15532. holdKeyboard: false,
  15533. focus: false,
  15534. autoBlur: false,
  15535. disableDefaultPadding: false,
  15536. cursor: -1,
  15537. cursorSpacing: 30,
  15538. selectionStart: -1,
  15539. selectionEnd: -1,
  15540. adjustPosition: true,
  15541. inputAlign: 'left',
  15542. fontSize: '15px',
  15543. color: '#303133',
  15544. prefixIcon: '',
  15545. prefixIconStyle: '',
  15546. suffixIcon: '',
  15547. suffixIconStyle: '',
  15548. border: 'surround',
  15549. readonly: false,
  15550. shape: 'square',
  15551. formatter: null
  15552. }
  15553. };
  15554. exports.default = _default;
  15555. /***/ }),
  15556. /* 103 */
  15557. /*!**************************************************************************************!*\
  15558. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15559. \**************************************************************************************/
  15560. /*! no static exports found */
  15561. /***/ (function(module, exports, __webpack_require__) {
  15562. "use strict";
  15563. Object.defineProperty(exports, "__esModule", {
  15564. value: true
  15565. });
  15566. exports.default = void 0;
  15567. /*
  15568. * @Author : LQ
  15569. * @Description :
  15570. * @version : 1.0
  15571. * @Date : 2021-08-20 16:44:21
  15572. * @LastAuthor : LQ
  15573. * @lastTime : 2021-08-20 17:07:49
  15574. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15575. */
  15576. var _default = {
  15577. // 键盘组件
  15578. keyboard: {
  15579. mode: 'number',
  15580. dotDisabled: false,
  15581. tooltip: true,
  15582. showTips: true,
  15583. tips: '',
  15584. showCancel: true,
  15585. showConfirm: true,
  15586. random: false,
  15587. safeAreaInsetBottom: true,
  15588. closeOnClickOverlay: true,
  15589. show: false,
  15590. overlay: true,
  15591. zIndex: 10075,
  15592. cancelText: '取消',
  15593. confirmText: '确定',
  15594. autoChange: false
  15595. }
  15596. };
  15597. exports.default = _default;
  15598. /***/ }),
  15599. /* 104 */
  15600. /*!**********************************************************************************!*\
  15601. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/line.js ***!
  15602. \**********************************************************************************/
  15603. /*! no static exports found */
  15604. /***/ (function(module, exports, __webpack_require__) {
  15605. "use strict";
  15606. Object.defineProperty(exports, "__esModule", {
  15607. value: true
  15608. });
  15609. exports.default = void 0;
  15610. /*
  15611. * @Author : LQ
  15612. * @Description :
  15613. * @version : 1.0
  15614. * @Date : 2021-08-20 16:44:21
  15615. * @LastAuthor : LQ
  15616. * @lastTime : 2021-08-20 17:04:49
  15617. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15618. */
  15619. var _default = {
  15620. // line组件
  15621. line: {
  15622. color: '#d6d7d9',
  15623. length: '100%',
  15624. direction: 'row',
  15625. hairline: true,
  15626. margin: 0,
  15627. dashed: false
  15628. }
  15629. };
  15630. exports.default = _default;
  15631. /***/ }),
  15632. /* 105 */
  15633. /*!******************************************************************************************!*\
  15634. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15635. \******************************************************************************************/
  15636. /*! no static exports found */
  15637. /***/ (function(module, exports, __webpack_require__) {
  15638. "use strict";
  15639. Object.defineProperty(exports, "__esModule", {
  15640. value: true
  15641. });
  15642. exports.default = void 0;
  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 17:14:11
  15650. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15651. */
  15652. var _default = {
  15653. // lineProgress 组件
  15654. lineProgress: {
  15655. activeColor: '#19be6b',
  15656. inactiveColor: '#ececec',
  15657. percentage: 0,
  15658. showText: true,
  15659. height: 12
  15660. }
  15661. };
  15662. exports.default = _default;
  15663. /***/ }),
  15664. /* 106 */
  15665. /*!**********************************************************************************!*\
  15666. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/link.js ***!
  15667. \**********************************************************************************/
  15668. /*! no static exports found */
  15669. /***/ (function(module, exports, __webpack_require__) {
  15670. "use strict";
  15671. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15672. Object.defineProperty(exports, "__esModule", {
  15673. value: true
  15674. });
  15675. exports.default = void 0;
  15676. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15677. /*
  15678. * @Author : LQ
  15679. * @Description :
  15680. * @version : 1.0
  15681. * @Date : 2021-08-20 16:44:21
  15682. * @LastAuthor : LQ
  15683. * @lastTime : 2021-08-20 17:45:36
  15684. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15685. */
  15686. var color = _config.default.color;
  15687. var _default = {
  15688. // link超链接组件props参数
  15689. link: {
  15690. color: color['u-primary'],
  15691. fontSize: 15,
  15692. underLine: false,
  15693. href: '',
  15694. mpTips: '链接已复制,请在浏览器打开',
  15695. lineColor: '',
  15696. text: ''
  15697. }
  15698. };
  15699. exports.default = _default;
  15700. /***/ }),
  15701. /* 107 */
  15702. /*!**********************************************************************************!*\
  15703. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/list.js ***!
  15704. \**********************************************************************************/
  15705. /*! no static exports found */
  15706. /***/ (function(module, exports, __webpack_require__) {
  15707. "use strict";
  15708. Object.defineProperty(exports, "__esModule", {
  15709. value: true
  15710. });
  15711. exports.default = void 0;
  15712. /*
  15713. * @Author : LQ
  15714. * @Description :
  15715. * @version : 1.0
  15716. * @Date : 2021-08-20 16:44:21
  15717. * @LastAuthor : LQ
  15718. * @lastTime : 2021-08-20 17:14:53
  15719. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15720. */
  15721. var _default = {
  15722. // list 组件
  15723. list: {
  15724. showScrollbar: false,
  15725. lowerThreshold: 50,
  15726. upperThreshold: 0,
  15727. scrollTop: 0,
  15728. offsetAccuracy: 10,
  15729. enableFlex: false,
  15730. pagingEnabled: false,
  15731. scrollable: true,
  15732. scrollIntoView: '',
  15733. scrollWithAnimation: false,
  15734. enableBackToTop: false,
  15735. height: 0,
  15736. width: 0,
  15737. preLoadScreen: 1
  15738. }
  15739. };
  15740. exports.default = _default;
  15741. /***/ }),
  15742. /* 108 */
  15743. /*!**************************************************************************************!*\
  15744. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  15745. \**************************************************************************************/
  15746. /*! no static exports found */
  15747. /***/ (function(module, exports, __webpack_require__) {
  15748. "use strict";
  15749. Object.defineProperty(exports, "__esModule", {
  15750. value: true
  15751. });
  15752. exports.default = void 0;
  15753. /*
  15754. * @Author : LQ
  15755. * @Description :
  15756. * @version : 1.0
  15757. * @Date : 2021-08-20 16:44:21
  15758. * @LastAuthor : LQ
  15759. * @lastTime : 2021-08-20 17:15:40
  15760. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15761. */
  15762. var _default = {
  15763. // listItem 组件
  15764. listItem: {
  15765. anchor: ''
  15766. }
  15767. };
  15768. exports.default = _default;
  15769. /***/ }),
  15770. /* 109 */
  15771. /*!*****************************************************************************************!*\
  15772. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15773. \*****************************************************************************************/
  15774. /*! no static exports found */
  15775. /***/ (function(module, exports, __webpack_require__) {
  15776. "use strict";
  15777. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15778. Object.defineProperty(exports, "__esModule", {
  15779. value: true
  15780. });
  15781. exports.default = void 0;
  15782. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15783. /*
  15784. * @Author : LQ
  15785. * @Description :
  15786. * @version : 1.0
  15787. * @Date : 2021-08-20 16:44:21
  15788. * @LastAuthor : LQ
  15789. * @lastTime : 2021-08-20 17:45:47
  15790. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15791. */
  15792. var color = _config.default.color;
  15793. var _default = {
  15794. // loading-icon加载中图标组件
  15795. loadingIcon: {
  15796. show: true,
  15797. color: color['u-tips-color'],
  15798. textColor: color['u-tips-color'],
  15799. vertical: false,
  15800. mode: 'spinner',
  15801. size: 24,
  15802. textSize: 15,
  15803. text: '',
  15804. timingFunction: 'ease-in-out',
  15805. duration: 1200,
  15806. inactiveColor: ''
  15807. }
  15808. };
  15809. exports.default = _default;
  15810. /***/ }),
  15811. /* 110 */
  15812. /*!*****************************************************************************************!*\
  15813. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15814. \*****************************************************************************************/
  15815. /*! no static exports found */
  15816. /***/ (function(module, exports, __webpack_require__) {
  15817. "use strict";
  15818. Object.defineProperty(exports, "__esModule", {
  15819. value: true
  15820. });
  15821. exports.default = void 0;
  15822. /*
  15823. * @Author : LQ
  15824. * @Description :
  15825. * @version : 1.0
  15826. * @Date : 2021-08-20 16:44:21
  15827. * @LastAuthor : LQ
  15828. * @lastTime : 2021-08-20 17:00:23
  15829. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15830. */
  15831. var _default = {
  15832. // loading-page组件
  15833. loadingPage: {
  15834. loadingText: '正在加载',
  15835. image: '',
  15836. loadingMode: 'circle',
  15837. loading: false,
  15838. bgColor: '#ffffff',
  15839. color: '#C8C8C8',
  15840. fontSize: 19,
  15841. iconSize: 28,
  15842. loadingColor: '#C8C8C8'
  15843. }
  15844. };
  15845. exports.default = _default;
  15846. /***/ }),
  15847. /* 111 */
  15848. /*!**************************************************************************************!*\
  15849. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/loadmore.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:15:26
  15865. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15866. */
  15867. var _default = {
  15868. // loadmore 组件
  15869. loadmore: {
  15870. status: 'loadmore',
  15871. bgColor: 'transparent',
  15872. icon: true,
  15873. fontSize: 14,
  15874. iconSize: 17,
  15875. color: '#606266',
  15876. loadingIcon: 'spinner',
  15877. loadmoreText: '加载更多',
  15878. loadingText: '正在加载...',
  15879. nomoreText: '没有更多了',
  15880. isDot: false,
  15881. iconColor: '#b7b7b7',
  15882. marginTop: 10,
  15883. marginBottom: 10,
  15884. height: 'auto',
  15885. line: false,
  15886. lineColor: '#E6E8EB',
  15887. dashed: false
  15888. }
  15889. };
  15890. exports.default = _default;
  15891. /***/ }),
  15892. /* 112 */
  15893. /*!***********************************************************************************!*\
  15894. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/modal.js ***!
  15895. \***********************************************************************************/
  15896. /*! no static exports found */
  15897. /***/ (function(module, exports, __webpack_require__) {
  15898. "use strict";
  15899. Object.defineProperty(exports, "__esModule", {
  15900. value: true
  15901. });
  15902. exports.default = void 0;
  15903. /*
  15904. * @Author : LQ
  15905. * @Description :
  15906. * @version : 1.0
  15907. * @Date : 2021-08-20 16:44:21
  15908. * @LastAuthor : LQ
  15909. * @lastTime : 2021-08-20 17:15:59
  15910. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15911. */
  15912. var _default = {
  15913. // modal 组件
  15914. modal: {
  15915. show: false,
  15916. title: '',
  15917. content: '',
  15918. confirmText: '确认',
  15919. cancelText: '取消',
  15920. showConfirmButton: true,
  15921. showCancelButton: false,
  15922. confirmColor: '#2979ff',
  15923. cancelColor: '#606266',
  15924. buttonReverse: false,
  15925. zoom: true,
  15926. asyncClose: false,
  15927. closeOnClickOverlay: false,
  15928. negativeTop: 0,
  15929. width: '650rpx',
  15930. confirmButtonShape: '',
  15931. duration: 400
  15932. }
  15933. };
  15934. exports.default = _default;
  15935. /***/ }),
  15936. /* 113 */
  15937. /*!************************************************************************************!*\
  15938. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  15939. \************************************************************************************/
  15940. /*! no static exports found */
  15941. /***/ (function(module, exports, __webpack_require__) {
  15942. "use strict";
  15943. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15944. Object.defineProperty(exports, "__esModule", {
  15945. value: true
  15946. });
  15947. exports.default = void 0;
  15948. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 114));
  15949. /*
  15950. * @Author : LQ
  15951. * @Description :
  15952. * @version : 1.0
  15953. * @Date : 2021-08-20 16:44:21
  15954. * @LastAuthor : LQ
  15955. * @lastTime : 2021-08-20 17:16:18
  15956. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  15957. */
  15958. var _default = {
  15959. // navbar 组件
  15960. navbar: {
  15961. safeAreaInsetTop: true,
  15962. placeholder: false,
  15963. fixed: true,
  15964. border: false,
  15965. leftIcon: 'arrow-left',
  15966. leftText: '',
  15967. rightText: '',
  15968. rightIcon: '',
  15969. title: '',
  15970. bgColor: '#ffffff',
  15971. titleWidth: '400rpx',
  15972. height: '44px',
  15973. leftIconSize: 20,
  15974. leftIconColor: _color.default.mainColor,
  15975. autoBack: false,
  15976. titleStyle: ''
  15977. }
  15978. };
  15979. exports.default = _default;
  15980. /***/ }),
  15981. /* 114 */
  15982. /*!*****************************************************************************!*\
  15983. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/color.js ***!
  15984. \*****************************************************************************/
  15985. /*! no static exports found */
  15986. /***/ (function(module, exports, __webpack_require__) {
  15987. "use strict";
  15988. Object.defineProperty(exports, "__esModule", {
  15989. value: true
  15990. });
  15991. exports.default = void 0;
  15992. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  15993. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  15994. var color = {
  15995. primary: '#3c9cff',
  15996. info: '#909399',
  15997. default: '#909399',
  15998. warning: '#f9ae3d',
  15999. error: '#f56c6c',
  16000. success: '#5ac725',
  16001. mainColor: '#303133',
  16002. contentColor: '#606266',
  16003. tipsColor: '#909399',
  16004. lightColor: '#c0c4cc',
  16005. borderColor: '#e4e7ed'
  16006. };
  16007. var _default = color;
  16008. exports.default = _default;
  16009. /***/ }),
  16010. /* 115 */
  16011. /*!***************************************************************************************!*\
  16012. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16013. \***************************************************************************************/
  16014. /*! no static exports found */
  16015. /***/ (function(module, exports, __webpack_require__) {
  16016. "use strict";
  16017. Object.defineProperty(exports, "__esModule", {
  16018. value: true
  16019. });
  16020. exports.default = void 0;
  16021. /*
  16022. * @Author : LQ
  16023. * @Description :
  16024. * @version : 1.0
  16025. * @Date : 2021-08-20 16:44:21
  16026. * @LastAuthor : LQ
  16027. * @lastTime : 2021-08-20 17:16:39
  16028. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16029. */
  16030. var _default = {
  16031. // noNetwork
  16032. noNetwork: {
  16033. tips: '哎呀,网络信号丢失',
  16034. zIndex: '',
  16035. 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'
  16036. }
  16037. };
  16038. exports.default = _default;
  16039. /***/ }),
  16040. /* 116 */
  16041. /*!***************************************************************************************!*\
  16042. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16043. \***************************************************************************************/
  16044. /*! no static exports found */
  16045. /***/ (function(module, exports, __webpack_require__) {
  16046. "use strict";
  16047. Object.defineProperty(exports, "__esModule", {
  16048. value: true
  16049. });
  16050. exports.default = void 0;
  16051. /*
  16052. * @Author : LQ
  16053. * @Description :
  16054. * @version : 1.0
  16055. * @Date : 2021-08-20 16:44:21
  16056. * @LastAuthor : LQ
  16057. * @lastTime : 2021-08-20 17:17:13
  16058. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16059. */
  16060. var _default = {
  16061. // noticeBar
  16062. noticeBar: {
  16063. text: function text() {
  16064. return [];
  16065. },
  16066. direction: 'row',
  16067. step: false,
  16068. icon: 'volume',
  16069. mode: '',
  16070. color: '#f9ae3d',
  16071. bgColor: '#fdf6ec',
  16072. speed: 80,
  16073. fontSize: 14,
  16074. duration: 2000,
  16075. disableTouch: true,
  16076. url: '',
  16077. linkType: 'navigateTo'
  16078. }
  16079. };
  16080. exports.default = _default;
  16081. /***/ }),
  16082. /* 117 */
  16083. /*!************************************************************************************!*\
  16084. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16085. \************************************************************************************/
  16086. /*! no static exports found */
  16087. /***/ (function(module, exports, __webpack_require__) {
  16088. "use strict";
  16089. Object.defineProperty(exports, "__esModule", {
  16090. value: true
  16091. });
  16092. exports.default = void 0;
  16093. /*
  16094. * @Author : LQ
  16095. * @Description :
  16096. * @version : 1.0
  16097. * @Date : 2021-08-20 16:44:21
  16098. * @LastAuthor : LQ
  16099. * @lastTime : 2021-08-20 17:10:21
  16100. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16101. */
  16102. var _default = {
  16103. // notify组件
  16104. notify: {
  16105. top: 0,
  16106. type: 'primary',
  16107. color: '#ffffff',
  16108. bgColor: '',
  16109. message: '',
  16110. duration: 3000,
  16111. fontSize: 15,
  16112. safeAreaInsetTop: false
  16113. }
  16114. };
  16115. exports.default = _default;
  16116. /***/ }),
  16117. /* 118 */
  16118. /*!***************************************************************************************!*\
  16119. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16120. \***************************************************************************************/
  16121. /*! no static exports found */
  16122. /***/ (function(module, exports, __webpack_require__) {
  16123. "use strict";
  16124. Object.defineProperty(exports, "__esModule", {
  16125. value: true
  16126. });
  16127. exports.default = void 0;
  16128. /*
  16129. * @Author : LQ
  16130. * @Description :
  16131. * @version : 1.0
  16132. * @Date : 2021-08-20 16:44:21
  16133. * @LastAuthor : LQ
  16134. * @lastTime : 2021-08-20 17:11:46
  16135. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16136. */
  16137. var _default = {
  16138. // 步进器组件
  16139. numberBox: {
  16140. name: '',
  16141. value: 0,
  16142. min: 1,
  16143. max: Number.MAX_SAFE_INTEGER,
  16144. step: 1,
  16145. integer: false,
  16146. disabled: false,
  16147. disabledInput: false,
  16148. asyncChange: false,
  16149. inputWidth: 35,
  16150. showMinus: true,
  16151. showPlus: true,
  16152. decimalLength: null,
  16153. longPress: true,
  16154. color: '#323233',
  16155. buttonSize: 30,
  16156. bgColor: '#EBECEE',
  16157. cursorSpacing: 100,
  16158. disableMinus: false,
  16159. disablePlus: false,
  16160. iconStyle: ''
  16161. }
  16162. };
  16163. exports.default = _default;
  16164. /***/ }),
  16165. /* 119 */
  16166. /*!********************************************************************************************!*\
  16167. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16168. \********************************************************************************************/
  16169. /*! no static exports found */
  16170. /***/ (function(module, exports, __webpack_require__) {
  16171. "use strict";
  16172. Object.defineProperty(exports, "__esModule", {
  16173. value: true
  16174. });
  16175. exports.default = void 0;
  16176. /*
  16177. * @Author : LQ
  16178. * @Description :
  16179. * @version : 1.0
  16180. * @Date : 2021-08-20 16:44:21
  16181. * @LastAuthor : LQ
  16182. * @lastTime : 2021-08-20 17:08:05
  16183. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16184. */
  16185. var _default = {
  16186. // 数字键盘
  16187. numberKeyboard: {
  16188. mode: 'number',
  16189. dotDisabled: false,
  16190. random: false
  16191. }
  16192. };
  16193. exports.default = _default;
  16194. /***/ }),
  16195. /* 120 */
  16196. /*!*************************************************************************************!*\
  16197. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16198. \*************************************************************************************/
  16199. /*! no static exports found */
  16200. /***/ (function(module, exports, __webpack_require__) {
  16201. "use strict";
  16202. Object.defineProperty(exports, "__esModule", {
  16203. value: true
  16204. });
  16205. exports.default = void 0;
  16206. /*
  16207. * @Author : LQ
  16208. * @Description :
  16209. * @version : 1.0
  16210. * @Date : 2021-08-20 16:44:21
  16211. * @LastAuthor : LQ
  16212. * @lastTime : 2021-08-20 17:06:50
  16213. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16214. */
  16215. var _default = {
  16216. // overlay组件
  16217. overlay: {
  16218. show: false,
  16219. zIndex: 10070,
  16220. duration: 300,
  16221. opacity: 0.5
  16222. }
  16223. };
  16224. exports.default = _default;
  16225. /***/ }),
  16226. /* 121 */
  16227. /*!***********************************************************************************!*\
  16228. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16229. \***********************************************************************************/
  16230. /*! no static exports found */
  16231. /***/ (function(module, exports, __webpack_require__) {
  16232. "use strict";
  16233. Object.defineProperty(exports, "__esModule", {
  16234. value: true
  16235. });
  16236. exports.default = void 0;
  16237. /*
  16238. * @Author : LQ
  16239. * @Description :
  16240. * @version : 1.0
  16241. * @Date : 2021-08-20 16:44:21
  16242. * @LastAuthor : LQ
  16243. * @lastTime : 2021-08-20 17:17:33
  16244. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16245. */
  16246. var _default = {
  16247. // parse
  16248. parse: {
  16249. copyLink: true,
  16250. errorImg: '',
  16251. lazyLoad: false,
  16252. loadingImg: '',
  16253. pauseVideo: true,
  16254. previewImg: true,
  16255. setTitle: true,
  16256. showImgMenu: true
  16257. }
  16258. };
  16259. exports.default = _default;
  16260. /***/ }),
  16261. /* 122 */
  16262. /*!************************************************************************************!*\
  16263. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16264. \************************************************************************************/
  16265. /*! no static exports found */
  16266. /***/ (function(module, exports, __webpack_require__) {
  16267. "use strict";
  16268. Object.defineProperty(exports, "__esModule", {
  16269. value: true
  16270. });
  16271. exports.default = void 0;
  16272. /*
  16273. * @Author : LQ
  16274. * @Description :
  16275. * @version : 1.0
  16276. * @Date : 2021-08-20 16:44:21
  16277. * @LastAuthor : LQ
  16278. * @lastTime : 2021-08-20 17:18:20
  16279. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16280. */
  16281. var _default = {
  16282. // picker
  16283. picker: {
  16284. show: false,
  16285. showToolbar: true,
  16286. title: '',
  16287. columns: function columns() {
  16288. return [];
  16289. },
  16290. loading: false,
  16291. itemHeight: 44,
  16292. cancelText: '取消',
  16293. confirmText: '确定',
  16294. cancelColor: '#909193',
  16295. confirmColor: '#3c9cff',
  16296. visibleItemCount: 5,
  16297. keyName: 'text',
  16298. closeOnClickOverlay: false,
  16299. defaultIndex: function defaultIndex() {
  16300. return [];
  16301. },
  16302. immediateChange: false
  16303. }
  16304. };
  16305. exports.default = _default;
  16306. /***/ }),
  16307. /* 123 */
  16308. /*!***********************************************************************************!*\
  16309. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16310. \***********************************************************************************/
  16311. /*! no static exports found */
  16312. /***/ (function(module, exports, __webpack_require__) {
  16313. "use strict";
  16314. Object.defineProperty(exports, "__esModule", {
  16315. value: true
  16316. });
  16317. exports.default = void 0;
  16318. /*
  16319. * @Author : LQ
  16320. * @Description :
  16321. * @version : 1.0
  16322. * @Date : 2021-08-20 16:44:21
  16323. * @LastAuthor : LQ
  16324. * @lastTime : 2021-08-20 17:06:33
  16325. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16326. */
  16327. var _default = {
  16328. // popup组件
  16329. popup: {
  16330. show: false,
  16331. overlay: true,
  16332. mode: 'bottom',
  16333. duration: 300,
  16334. closeable: false,
  16335. overlayStyle: function overlayStyle() {},
  16336. closeOnClickOverlay: true,
  16337. zIndex: 10075,
  16338. safeAreaInsetBottom: true,
  16339. safeAreaInsetTop: false,
  16340. closeIconPos: 'top-right',
  16341. round: 0,
  16342. zoom: true,
  16343. bgColor: '',
  16344. overlayOpacity: 0.5
  16345. }
  16346. };
  16347. exports.default = _default;
  16348. /***/ }),
  16349. /* 124 */
  16350. /*!***********************************************************************************!*\
  16351. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16352. \***********************************************************************************/
  16353. /*! no static exports found */
  16354. /***/ (function(module, exports, __webpack_require__) {
  16355. "use strict";
  16356. Object.defineProperty(exports, "__esModule", {
  16357. value: true
  16358. });
  16359. exports.default = void 0;
  16360. /*
  16361. * @Author : LQ
  16362. * @Description :
  16363. * @version : 1.0
  16364. * @Date : 2021-08-20 16:44:21
  16365. * @LastAuthor : LQ
  16366. * @lastTime : 2021-08-20 17:02:34
  16367. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16368. */
  16369. var _default = {
  16370. // radio组件
  16371. radio: {
  16372. name: '',
  16373. shape: '',
  16374. disabled: '',
  16375. labelDisabled: '',
  16376. activeColor: '',
  16377. inactiveColor: '',
  16378. iconSize: '',
  16379. labelSize: '',
  16380. label: '',
  16381. labelColor: '',
  16382. size: '',
  16383. iconColor: '',
  16384. placement: ''
  16385. }
  16386. };
  16387. exports.default = _default;
  16388. /***/ }),
  16389. /* 125 */
  16390. /*!****************************************************************************************!*\
  16391. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16392. \****************************************************************************************/
  16393. /*! no static exports found */
  16394. /***/ (function(module, exports, __webpack_require__) {
  16395. "use strict";
  16396. Object.defineProperty(exports, "__esModule", {
  16397. value: true
  16398. });
  16399. exports.default = void 0;
  16400. /*
  16401. * @Author : LQ
  16402. * @Description :
  16403. * @version : 1.0
  16404. * @Date : 2021-08-20 16:44:21
  16405. * @LastAuthor : LQ
  16406. * @lastTime : 2021-08-20 17:03:12
  16407. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16408. */
  16409. var _default = {
  16410. // radio-group组件
  16411. radioGroup: {
  16412. value: '',
  16413. disabled: false,
  16414. shape: 'circle',
  16415. activeColor: '#2979ff',
  16416. inactiveColor: '#c8c9cc',
  16417. name: '',
  16418. size: 18,
  16419. placement: 'row',
  16420. label: '',
  16421. labelColor: '#303133',
  16422. labelSize: 14,
  16423. labelDisabled: false,
  16424. iconColor: '#ffffff',
  16425. iconSize: 12,
  16426. borderBottom: false,
  16427. iconPlacement: 'left'
  16428. }
  16429. };
  16430. exports.default = _default;
  16431. /***/ }),
  16432. /* 126 */
  16433. /*!**********************************************************************************!*\
  16434. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16435. \**********************************************************************************/
  16436. /*! no static exports found */
  16437. /***/ (function(module, exports, __webpack_require__) {
  16438. "use strict";
  16439. Object.defineProperty(exports, "__esModule", {
  16440. value: true
  16441. });
  16442. exports.default = void 0;
  16443. /*
  16444. * @Author : LQ
  16445. * @Description :
  16446. * @version : 1.0
  16447. * @Date : 2021-08-20 16:44:21
  16448. * @LastAuthor : LQ
  16449. * @lastTime : 2021-08-20 17:05:09
  16450. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16451. */
  16452. var _default = {
  16453. // rate组件
  16454. rate: {
  16455. value: 1,
  16456. count: 5,
  16457. disabled: false,
  16458. size: 18,
  16459. inactiveColor: '#b2b2b2',
  16460. activeColor: '#FA3534',
  16461. gutter: 4,
  16462. minCount: 1,
  16463. allowHalf: false,
  16464. activeIcon: 'star-fill',
  16465. inactiveIcon: 'star',
  16466. touchable: true
  16467. }
  16468. };
  16469. exports.default = _default;
  16470. /***/ }),
  16471. /* 127 */
  16472. /*!**************************************************************************************!*\
  16473. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16474. \**************************************************************************************/
  16475. /*! no static exports found */
  16476. /***/ (function(module, exports, __webpack_require__) {
  16477. "use strict";
  16478. Object.defineProperty(exports, "__esModule", {
  16479. value: true
  16480. });
  16481. exports.default = void 0;
  16482. /*
  16483. * @Author : LQ
  16484. * @Description :
  16485. * @version : 1.0
  16486. * @Date : 2021-08-20 16:44:21
  16487. * @LastAuthor : LQ
  16488. * @lastTime : 2021-08-20 17:18:41
  16489. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16490. */
  16491. var _default = {
  16492. // readMore
  16493. readMore: {
  16494. showHeight: 400,
  16495. toggle: false,
  16496. closeText: '展开阅读全文',
  16497. openText: '收起',
  16498. color: '#2979ff',
  16499. fontSize: 14,
  16500. textIndent: '2em',
  16501. name: ''
  16502. }
  16503. };
  16504. exports.default = _default;
  16505. /***/ }),
  16506. /* 128 */
  16507. /*!*********************************************************************************!*\
  16508. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/row.js ***!
  16509. \*********************************************************************************/
  16510. /*! no static exports found */
  16511. /***/ (function(module, exports, __webpack_require__) {
  16512. "use strict";
  16513. Object.defineProperty(exports, "__esModule", {
  16514. value: true
  16515. });
  16516. exports.default = void 0;
  16517. /*
  16518. * @Author : LQ
  16519. * @Description :
  16520. * @version : 1.0
  16521. * @Date : 2021-08-20 16:44:21
  16522. * @LastAuthor : LQ
  16523. * @lastTime : 2021-08-20 17:18:58
  16524. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16525. */
  16526. var _default = {
  16527. // row
  16528. row: {
  16529. gutter: 0,
  16530. justify: 'start',
  16531. align: 'center'
  16532. }
  16533. };
  16534. exports.default = _default;
  16535. /***/ }),
  16536. /* 129 */
  16537. /*!***************************************************************************************!*\
  16538. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16539. \***************************************************************************************/
  16540. /*! no static exports found */
  16541. /***/ (function(module, exports, __webpack_require__) {
  16542. "use strict";
  16543. Object.defineProperty(exports, "__esModule", {
  16544. value: true
  16545. });
  16546. exports.default = void 0;
  16547. /*
  16548. * @Author : LQ
  16549. * @Description :
  16550. * @version : 1.0
  16551. * @Date : 2021-08-20 16:44:21
  16552. * @LastAuthor : LQ
  16553. * @lastTime : 2021-08-20 17:19:13
  16554. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16555. */
  16556. var _default = {
  16557. // rowNotice
  16558. rowNotice: {
  16559. text: '',
  16560. icon: 'volume',
  16561. mode: '',
  16562. color: '#f9ae3d',
  16563. bgColor: '#fdf6ec',
  16564. fontSize: 14,
  16565. speed: 80
  16566. }
  16567. };
  16568. exports.default = _default;
  16569. /***/ }),
  16570. /* 130 */
  16571. /*!****************************************************************************************!*\
  16572. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16573. \****************************************************************************************/
  16574. /*! no static exports found */
  16575. /***/ (function(module, exports, __webpack_require__) {
  16576. "use strict";
  16577. Object.defineProperty(exports, "__esModule", {
  16578. value: true
  16579. });
  16580. exports.default = void 0;
  16581. /*
  16582. * @Author : LQ
  16583. * @Description :
  16584. * @version : 1.0
  16585. * @Date : 2021-08-20 16:44:21
  16586. * @LastAuthor : LQ
  16587. * @lastTime : 2021-08-20 17:19:28
  16588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16589. */
  16590. var _default = {
  16591. // scrollList
  16592. scrollList: {
  16593. indicatorWidth: 50,
  16594. indicatorBarWidth: 20,
  16595. indicator: true,
  16596. indicatorColor: '#f2f2f2',
  16597. indicatorActiveColor: '#3c9cff',
  16598. indicatorStyle: ''
  16599. }
  16600. };
  16601. exports.default = _default;
  16602. /***/ }),
  16603. /* 131 */
  16604. /*!************************************************************************************!*\
  16605. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/search.js ***!
  16606. \************************************************************************************/
  16607. /*! no static exports found */
  16608. /***/ (function(module, exports, __webpack_require__) {
  16609. "use strict";
  16610. Object.defineProperty(exports, "__esModule", {
  16611. value: true
  16612. });
  16613. exports.default = void 0;
  16614. /*
  16615. * @Author : LQ
  16616. * @Description :
  16617. * @version : 1.0
  16618. * @Date : 2021-08-20 16:44:21
  16619. * @LastAuthor : LQ
  16620. * @lastTime : 2021-08-20 17:19:45
  16621. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16622. */
  16623. var _default = {
  16624. // search
  16625. search: {
  16626. shape: 'round',
  16627. bgColor: '#f2f2f2',
  16628. placeholder: '请输入关键字',
  16629. clearabled: true,
  16630. focus: false,
  16631. showAction: true,
  16632. actionStyle: function actionStyle() {
  16633. return {};
  16634. },
  16635. actionText: '搜索',
  16636. inputAlign: 'left',
  16637. inputStyle: function inputStyle() {
  16638. return {};
  16639. },
  16640. disabled: false,
  16641. borderColor: 'transparent',
  16642. searchIconColor: '#909399',
  16643. searchIconSize: 22,
  16644. color: '#606266',
  16645. placeholderColor: '#909399',
  16646. searchIcon: 'search',
  16647. margin: '0',
  16648. animation: false,
  16649. value: '',
  16650. maxlength: '-1',
  16651. height: 32,
  16652. label: null
  16653. }
  16654. };
  16655. exports.default = _default;
  16656. /***/ }),
  16657. /* 132 */
  16658. /*!*************************************************************************************!*\
  16659. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/section.js ***!
  16660. \*************************************************************************************/
  16661. /*! no static exports found */
  16662. /***/ (function(module, exports, __webpack_require__) {
  16663. "use strict";
  16664. Object.defineProperty(exports, "__esModule", {
  16665. value: true
  16666. });
  16667. exports.default = void 0;
  16668. /*
  16669. * @Author : LQ
  16670. * @Description :
  16671. * @version : 1.0
  16672. * @Date : 2021-08-20 16:44:21
  16673. * @LastAuthor : LQ
  16674. * @lastTime : 2021-08-20 17:07:33
  16675. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16676. */
  16677. var _default = {
  16678. // u-section组件
  16679. section: {
  16680. title: '',
  16681. subTitle: '更多',
  16682. right: true,
  16683. fontSize: 15,
  16684. bold: true,
  16685. color: '#303133',
  16686. subColor: '#909399',
  16687. showLine: true,
  16688. lineColor: '',
  16689. arrow: true
  16690. }
  16691. };
  16692. exports.default = _default;
  16693. /***/ }),
  16694. /* 133 */
  16695. /*!**************************************************************************************!*\
  16696. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  16697. \**************************************************************************************/
  16698. /*! no static exports found */
  16699. /***/ (function(module, exports, __webpack_require__) {
  16700. "use strict";
  16701. Object.defineProperty(exports, "__esModule", {
  16702. value: true
  16703. });
  16704. exports.default = void 0;
  16705. /*
  16706. * @Author : LQ
  16707. * @Description :
  16708. * @version : 1.0
  16709. * @Date : 2021-08-20 16:44:21
  16710. * @LastAuthor : LQ
  16711. * @lastTime : 2021-08-20 17:20:14
  16712. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16713. */
  16714. var _default = {
  16715. // skeleton
  16716. skeleton: {
  16717. loading: true,
  16718. animate: true,
  16719. rows: 0,
  16720. rowsWidth: '100%',
  16721. rowsHeight: 18,
  16722. title: true,
  16723. titleWidth: '50%',
  16724. titleHeight: 18,
  16725. avatar: false,
  16726. avatarSize: 32,
  16727. avatarShape: 'circle'
  16728. }
  16729. };
  16730. exports.default = _default;
  16731. /***/ }),
  16732. /* 134 */
  16733. /*!************************************************************************************!*\
  16734. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/slider.js ***!
  16735. \************************************************************************************/
  16736. /*! no static exports found */
  16737. /***/ (function(module, exports, __webpack_require__) {
  16738. "use strict";
  16739. Object.defineProperty(exports, "__esModule", {
  16740. value: true
  16741. });
  16742. exports.default = void 0;
  16743. /*
  16744. * @Author : LQ
  16745. * @Description :
  16746. * @version : 1.0
  16747. * @Date : 2021-08-20 16:44:21
  16748. * @LastAuthor : LQ
  16749. * @lastTime : 2021-08-20 17:08:25
  16750. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16751. */
  16752. var _default = {
  16753. // slider组件
  16754. slider: {
  16755. value: 0,
  16756. blockSize: 18,
  16757. min: 0,
  16758. max: 100,
  16759. step: 1,
  16760. activeColor: '#2979ff',
  16761. inactiveColor: '#c0c4cc',
  16762. blockColor: '#ffffff',
  16763. showValue: false,
  16764. disabled: false,
  16765. blockStyle: function blockStyle() {}
  16766. }
  16767. };
  16768. exports.default = _default;
  16769. /***/ }),
  16770. /* 135 */
  16771. /*!***************************************************************************************!*\
  16772. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  16773. \***************************************************************************************/
  16774. /*! no static exports found */
  16775. /***/ (function(module, exports, __webpack_require__) {
  16776. "use strict";
  16777. Object.defineProperty(exports, "__esModule", {
  16778. value: true
  16779. });
  16780. exports.default = void 0;
  16781. /*
  16782. * @Author : LQ
  16783. * @Description :
  16784. * @version : 1.0
  16785. * @Date : 2021-08-20 16:44:21
  16786. * @LastAuthor : LQ
  16787. * @lastTime : 2021-08-20 17:20:39
  16788. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16789. */
  16790. var _default = {
  16791. // statusBar
  16792. statusBar: {
  16793. bgColor: 'transparent'
  16794. }
  16795. };
  16796. exports.default = _default;
  16797. /***/ }),
  16798. /* 136 */
  16799. /*!***********************************************************************************!*\
  16800. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/steps.js ***!
  16801. \***********************************************************************************/
  16802. /*! no static exports found */
  16803. /***/ (function(module, exports, __webpack_require__) {
  16804. "use strict";
  16805. Object.defineProperty(exports, "__esModule", {
  16806. value: true
  16807. });
  16808. exports.default = void 0;
  16809. /*
  16810. * @Author : LQ
  16811. * @Description :
  16812. * @version : 1.0
  16813. * @Date : 2021-08-20 16:44:21
  16814. * @LastAuthor : LQ
  16815. * @lastTime : 2021-08-20 17:12:37
  16816. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16817. */
  16818. var _default = {
  16819. // steps组件
  16820. steps: {
  16821. direction: 'row',
  16822. current: 0,
  16823. activeColor: '#3c9cff',
  16824. inactiveColor: '#969799',
  16825. activeIcon: '',
  16826. inactiveIcon: '',
  16827. dot: false
  16828. }
  16829. };
  16830. exports.default = _default;
  16831. /***/ }),
  16832. /* 137 */
  16833. /*!***************************************************************************************!*\
  16834. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16835. \***************************************************************************************/
  16836. /*! no static exports found */
  16837. /***/ (function(module, exports, __webpack_require__) {
  16838. "use strict";
  16839. Object.defineProperty(exports, "__esModule", {
  16840. value: true
  16841. });
  16842. exports.default = void 0;
  16843. /*
  16844. * @Author : LQ
  16845. * @Description :
  16846. * @version : 1.0
  16847. * @Date : 2021-08-20 16:44:21
  16848. * @LastAuthor : LQ
  16849. * @lastTime : 2021-08-20 17:12:55
  16850. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16851. */
  16852. var _default = {
  16853. // steps-item组件
  16854. stepsItem: {
  16855. title: '',
  16856. desc: '',
  16857. iconSize: 17,
  16858. error: false
  16859. }
  16860. };
  16861. exports.default = _default;
  16862. /***/ }),
  16863. /* 138 */
  16864. /*!************************************************************************************!*\
  16865. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  16866. \************************************************************************************/
  16867. /*! no static exports found */
  16868. /***/ (function(module, exports, __webpack_require__) {
  16869. "use strict";
  16870. Object.defineProperty(exports, "__esModule", {
  16871. value: true
  16872. });
  16873. exports.default = void 0;
  16874. /*
  16875. * @Author : LQ
  16876. * @Description :
  16877. * @version : 1.0
  16878. * @Date : 2021-08-20 16:44:21
  16879. * @LastAuthor : LQ
  16880. * @lastTime : 2021-08-20 17:01:30
  16881. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16882. */
  16883. var _default = {
  16884. // sticky组件
  16885. sticky: {
  16886. offsetTop: 0,
  16887. customNavHeight: 0,
  16888. disabled: false,
  16889. bgColor: 'transparent',
  16890. zIndex: '',
  16891. index: ''
  16892. }
  16893. };
  16894. exports.default = _default;
  16895. /***/ }),
  16896. /* 139 */
  16897. /*!****************************************************************************************!*\
  16898. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  16899. \****************************************************************************************/
  16900. /*! no static exports found */
  16901. /***/ (function(module, exports, __webpack_require__) {
  16902. "use strict";
  16903. Object.defineProperty(exports, "__esModule", {
  16904. value: true
  16905. });
  16906. exports.default = void 0;
  16907. /*
  16908. * @Author : LQ
  16909. * @Description :
  16910. * @version : 1.0
  16911. * @Date : 2021-08-20 16:44:21
  16912. * @LastAuthor : LQ
  16913. * @lastTime : 2021-08-20 17:12:20
  16914. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16915. */
  16916. var _default = {
  16917. // subsection组件
  16918. subsection: {
  16919. list: [],
  16920. current: 0,
  16921. activeColor: '#3c9cff',
  16922. inactiveColor: '#303133',
  16923. mode: 'button',
  16924. fontSize: 12,
  16925. bold: true,
  16926. bgColor: '#eeeeef',
  16927. keyName: 'name'
  16928. }
  16929. };
  16930. exports.default = _default;
  16931. /***/ }),
  16932. /* 140 */
  16933. /*!*****************************************************************************************!*\
  16934. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  16935. \*****************************************************************************************/
  16936. /*! no static exports found */
  16937. /***/ (function(module, exports, __webpack_require__) {
  16938. "use strict";
  16939. Object.defineProperty(exports, "__esModule", {
  16940. value: true
  16941. });
  16942. exports.default = void 0;
  16943. /*
  16944. * @Author : LQ
  16945. * @Description :
  16946. * @version : 1.0
  16947. * @Date : 2021-08-20 16:44:21
  16948. * @LastAuthor : LQ
  16949. * @lastTime : 2021-08-20 17:00:42
  16950. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16951. */
  16952. var _default = {
  16953. // swipe-action组件
  16954. swipeAction: {
  16955. autoClose: true
  16956. }
  16957. };
  16958. exports.default = _default;
  16959. /***/ }),
  16960. /* 141 */
  16961. /*!*********************************************************************************************!*\
  16962. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  16963. \*********************************************************************************************/
  16964. /*! no static exports found */
  16965. /***/ (function(module, exports, __webpack_require__) {
  16966. "use strict";
  16967. Object.defineProperty(exports, "__esModule", {
  16968. value: true
  16969. });
  16970. exports.default = void 0;
  16971. /*
  16972. * @Author : LQ
  16973. * @Description :
  16974. * @version : 1.0
  16975. * @Date : 2021-08-20 16:44:21
  16976. * @LastAuthor : LQ
  16977. * @lastTime : 2021-08-20 17:01:13
  16978. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16979. */
  16980. var _default = {
  16981. // swipeActionItem 组件
  16982. swipeActionItem: {
  16983. show: false,
  16984. name: '',
  16985. disabled: false,
  16986. threshold: 20,
  16987. autoClose: true,
  16988. options: [],
  16989. duration: 300
  16990. }
  16991. };
  16992. exports.default = _default;
  16993. /***/ }),
  16994. /* 142 */
  16995. /*!************************************************************************************!*\
  16996. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  16997. \************************************************************************************/
  16998. /*! no static exports found */
  16999. /***/ (function(module, exports, __webpack_require__) {
  17000. "use strict";
  17001. Object.defineProperty(exports, "__esModule", {
  17002. value: true
  17003. });
  17004. exports.default = void 0;
  17005. /*
  17006. * @Author : LQ
  17007. * @Description :
  17008. * @version : 1.0
  17009. * @Date : 2021-08-20 16:44:21
  17010. * @LastAuthor : LQ
  17011. * @lastTime : 2021-08-20 17:21:38
  17012. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17013. */
  17014. var _default = {
  17015. // swiper 组件
  17016. swiper: {
  17017. list: function list() {
  17018. return [];
  17019. },
  17020. indicator: false,
  17021. indicatorActiveColor: '#FFFFFF',
  17022. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17023. indicatorStyle: '',
  17024. indicatorMode: 'line',
  17025. autoplay: true,
  17026. current: 0,
  17027. currentItemId: '',
  17028. interval: 3000,
  17029. duration: 300,
  17030. circular: false,
  17031. previousMargin: 0,
  17032. nextMargin: 0,
  17033. acceleration: false,
  17034. displayMultipleItems: 1,
  17035. easingFunction: 'default',
  17036. keyName: 'url',
  17037. imgMode: 'aspectFill',
  17038. height: 130,
  17039. bgColor: '#f3f4f6',
  17040. radius: 4,
  17041. loading: false,
  17042. showTitle: false
  17043. }
  17044. };
  17045. exports.default = _default;
  17046. /***/ }),
  17047. /* 143 */
  17048. /*!**********************************************************************************************!*\
  17049. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17050. \**********************************************************************************************/
  17051. /*! no static exports found */
  17052. /***/ (function(module, exports, __webpack_require__) {
  17053. "use strict";
  17054. Object.defineProperty(exports, "__esModule", {
  17055. value: true
  17056. });
  17057. exports.default = void 0;
  17058. /*
  17059. * @Author : LQ
  17060. * @Description :
  17061. * @version : 1.0
  17062. * @Date : 2021-08-20 16:44:21
  17063. * @LastAuthor : LQ
  17064. * @lastTime : 2021-08-20 17:22:07
  17065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17066. */
  17067. var _default = {
  17068. // swiperIndicator 组件
  17069. swiperIndicator: {
  17070. length: 0,
  17071. current: 0,
  17072. indicatorActiveColor: '',
  17073. indicatorInactiveColor: '',
  17074. indicatorMode: 'line'
  17075. }
  17076. };
  17077. exports.default = _default;
  17078. /***/ }),
  17079. /* 144 */
  17080. /*!************************************************************************************!*\
  17081. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17082. \************************************************************************************/
  17083. /*! no static exports found */
  17084. /***/ (function(module, exports, __webpack_require__) {
  17085. "use strict";
  17086. Object.defineProperty(exports, "__esModule", {
  17087. value: true
  17088. });
  17089. exports.default = void 0;
  17090. /*
  17091. * @Author : LQ
  17092. * @Description :
  17093. * @version : 1.0
  17094. * @Date : 2021-08-20 16:44:21
  17095. * @LastAuthor : LQ
  17096. * @lastTime : 2021-08-20 17:22:24
  17097. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17098. */
  17099. var _default = {
  17100. // switch
  17101. switch: {
  17102. loading: false,
  17103. disabled: false,
  17104. size: 25,
  17105. activeColor: '#2979ff',
  17106. inactiveColor: '#ffffff',
  17107. value: false,
  17108. activeValue: true,
  17109. inactiveValue: false,
  17110. asyncChange: false,
  17111. space: 0
  17112. }
  17113. };
  17114. exports.default = _default;
  17115. /***/ }),
  17116. /* 145 */
  17117. /*!************************************************************************************!*\
  17118. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17119. \************************************************************************************/
  17120. /*! no static exports found */
  17121. /***/ (function(module, exports, __webpack_require__) {
  17122. "use strict";
  17123. Object.defineProperty(exports, "__esModule", {
  17124. value: true
  17125. });
  17126. exports.default = void 0;
  17127. /*
  17128. * @Author : LQ
  17129. * @Description :
  17130. * @version : 1.0
  17131. * @Date : 2021-08-20 16:44:21
  17132. * @LastAuthor : LQ
  17133. * @lastTime : 2021-08-20 17:22:40
  17134. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17135. */
  17136. var _default = {
  17137. // tabbar
  17138. tabbar: {
  17139. value: null,
  17140. safeAreaInsetBottom: true,
  17141. border: true,
  17142. zIndex: 1,
  17143. activeColor: '#1989fa',
  17144. inactiveColor: '#7d7e80',
  17145. fixed: true,
  17146. placeholder: true
  17147. }
  17148. };
  17149. exports.default = _default;
  17150. /***/ }),
  17151. /* 146 */
  17152. /*!****************************************************************************************!*\
  17153. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17154. \****************************************************************************************/
  17155. /*! no static exports found */
  17156. /***/ (function(module, exports, __webpack_require__) {
  17157. "use strict";
  17158. Object.defineProperty(exports, "__esModule", {
  17159. value: true
  17160. });
  17161. exports.default = void 0;
  17162. /*
  17163. * @Author : LQ
  17164. * @Description :
  17165. * @version : 1.0
  17166. * @Date : 2021-08-20 16:44:21
  17167. * @LastAuthor : LQ
  17168. * @lastTime : 2021-08-20 17:22:55
  17169. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17170. */
  17171. var _default = {
  17172. //
  17173. tabbarItem: {
  17174. name: null,
  17175. icon: '',
  17176. badge: null,
  17177. dot: false,
  17178. text: '',
  17179. badgeStyle: 'top: 6px;right:2px;'
  17180. }
  17181. };
  17182. exports.default = _default;
  17183. /***/ }),
  17184. /* 147 */
  17185. /*!**********************************************************************************!*\
  17186. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17187. \**********************************************************************************/
  17188. /*! no static exports found */
  17189. /***/ (function(module, exports, __webpack_require__) {
  17190. "use strict";
  17191. Object.defineProperty(exports, "__esModule", {
  17192. value: true
  17193. });
  17194. exports.default = void 0;
  17195. /*
  17196. * @Author : LQ
  17197. * @Description :
  17198. * @version : 1.0
  17199. * @Date : 2021-08-20 16:44:21
  17200. * @LastAuthor : LQ
  17201. * @lastTime : 2021-08-20 17:23:14
  17202. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17203. */
  17204. var _default = {
  17205. //
  17206. tabs: {
  17207. duration: 300,
  17208. list: function list() {
  17209. return [];
  17210. },
  17211. lineColor: '#3c9cff',
  17212. activeStyle: function activeStyle() {
  17213. return {
  17214. color: '#303133'
  17215. };
  17216. },
  17217. inactiveStyle: function inactiveStyle() {
  17218. return {
  17219. color: '#606266'
  17220. };
  17221. },
  17222. lineWidth: 20,
  17223. lineHeight: 3,
  17224. lineBgSize: 'cover',
  17225. itemStyle: function itemStyle() {
  17226. return {
  17227. height: '44px'
  17228. };
  17229. },
  17230. scrollable: true,
  17231. current: 0,
  17232. keyName: 'name'
  17233. }
  17234. };
  17235. exports.default = _default;
  17236. /***/ }),
  17237. /* 148 */
  17238. /*!*********************************************************************************!*\
  17239. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17240. \*********************************************************************************/
  17241. /*! no static exports found */
  17242. /***/ (function(module, exports, __webpack_require__) {
  17243. "use strict";
  17244. Object.defineProperty(exports, "__esModule", {
  17245. value: true
  17246. });
  17247. exports.default = void 0;
  17248. /*
  17249. * @Author : LQ
  17250. * @Description :
  17251. * @version : 1.0
  17252. * @Date : 2021-08-20 16:44:21
  17253. * @LastAuthor : LQ
  17254. * @lastTime : 2021-08-20 17:23:37
  17255. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17256. */
  17257. var _default = {
  17258. // tag 组件
  17259. tag: {
  17260. type: 'primary',
  17261. disabled: false,
  17262. size: 'medium',
  17263. shape: 'square',
  17264. text: '',
  17265. bgColor: '',
  17266. color: '',
  17267. borderColor: '',
  17268. closeColor: '#C6C7CB',
  17269. name: '',
  17270. plainFill: false,
  17271. plain: false,
  17272. closable: false,
  17273. show: true,
  17274. icon: ''
  17275. }
  17276. };
  17277. exports.default = _default;
  17278. /***/ }),
  17279. /* 149 */
  17280. /*!**********************************************************************************!*\
  17281. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/text.js ***!
  17282. \**********************************************************************************/
  17283. /*! no static exports found */
  17284. /***/ (function(module, exports, __webpack_require__) {
  17285. "use strict";
  17286. Object.defineProperty(exports, "__esModule", {
  17287. value: true
  17288. });
  17289. exports.default = void 0;
  17290. /*
  17291. * @Author : LQ
  17292. * @Description :
  17293. * @version : 1.0
  17294. * @Date : 2021-08-20 16:44:21
  17295. * @LastAuthor : LQ
  17296. * @lastTime : 2021-08-20 17:23:58
  17297. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17298. */
  17299. var _default = {
  17300. // text 组件
  17301. text: {
  17302. type: '',
  17303. show: true,
  17304. text: '',
  17305. prefixIcon: '',
  17306. suffixIcon: '',
  17307. mode: '',
  17308. href: '',
  17309. format: '',
  17310. call: false,
  17311. openType: '',
  17312. bold: false,
  17313. block: false,
  17314. lines: '',
  17315. color: '#303133',
  17316. size: 15,
  17317. iconStyle: function iconStyle() {
  17318. return {
  17319. fontSize: '15px'
  17320. };
  17321. },
  17322. decoration: 'none',
  17323. margin: 0,
  17324. lineHeight: '',
  17325. align: 'left',
  17326. wordWrap: 'normal'
  17327. }
  17328. };
  17329. exports.default = _default;
  17330. /***/ }),
  17331. /* 150 */
  17332. /*!**************************************************************************************!*\
  17333. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17334. \**************************************************************************************/
  17335. /*! no static exports found */
  17336. /***/ (function(module, exports, __webpack_require__) {
  17337. "use strict";
  17338. Object.defineProperty(exports, "__esModule", {
  17339. value: true
  17340. });
  17341. exports.default = void 0;
  17342. /*
  17343. * @Author : LQ
  17344. * @Description :
  17345. * @version : 1.0
  17346. * @Date : 2021-08-20 16:44:21
  17347. * @LastAuthor : LQ
  17348. * @lastTime : 2021-08-20 17:24:32
  17349. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17350. */
  17351. var _default = {
  17352. // textarea 组件
  17353. textarea: {
  17354. value: '',
  17355. placeholder: '',
  17356. placeholderClass: 'textarea-placeholder',
  17357. placeholderStyle: 'color: #c0c4cc',
  17358. height: 70,
  17359. confirmType: 'done',
  17360. disabled: false,
  17361. count: false,
  17362. focus: false,
  17363. autoHeight: false,
  17364. fixed: false,
  17365. cursorSpacing: 0,
  17366. cursor: '',
  17367. showConfirmBar: true,
  17368. selectionStart: -1,
  17369. selectionEnd: -1,
  17370. adjustPosition: true,
  17371. disableDefaultPadding: false,
  17372. holdKeyboard: false,
  17373. maxlength: 140,
  17374. border: 'surround',
  17375. formatter: null
  17376. }
  17377. };
  17378. exports.default = _default;
  17379. /***/ }),
  17380. /* 151 */
  17381. /*!***********************************************************************************!*\
  17382. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17383. \***********************************************************************************/
  17384. /*! no static exports found */
  17385. /***/ (function(module, exports, __webpack_require__) {
  17386. "use strict";
  17387. Object.defineProperty(exports, "__esModule", {
  17388. value: true
  17389. });
  17390. exports.default = void 0;
  17391. /*
  17392. * @Author : LQ
  17393. * @Description :
  17394. * @version : 1.0
  17395. * @Date : 2021-08-20 16:44:21
  17396. * @LastAuthor : LQ
  17397. * @lastTime : 2021-08-20 17:07:07
  17398. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17399. */
  17400. var _default = {
  17401. // toast组件
  17402. toast: {
  17403. zIndex: 10090,
  17404. loading: false,
  17405. text: '',
  17406. icon: '',
  17407. type: '',
  17408. loadingMode: '',
  17409. show: '',
  17410. overlay: false,
  17411. position: 'center',
  17412. params: function params() {},
  17413. duration: 2000,
  17414. isTab: false,
  17415. url: '',
  17416. callback: null,
  17417. back: false
  17418. }
  17419. };
  17420. exports.default = _default;
  17421. /***/ }),
  17422. /* 152 */
  17423. /*!*************************************************************************************!*\
  17424. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17425. \*************************************************************************************/
  17426. /*! no static exports found */
  17427. /***/ (function(module, exports, __webpack_require__) {
  17428. "use strict";
  17429. Object.defineProperty(exports, "__esModule", {
  17430. value: true
  17431. });
  17432. exports.default = void 0;
  17433. /*
  17434. * @Author : LQ
  17435. * @Description :
  17436. * @version : 1.0
  17437. * @Date : 2021-08-20 16:44:21
  17438. * @LastAuthor : LQ
  17439. * @lastTime : 2021-08-20 17:24:55
  17440. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17441. */
  17442. var _default = {
  17443. // toolbar 组件
  17444. toolbar: {
  17445. show: true,
  17446. cancelText: '取消',
  17447. confirmText: '确认',
  17448. cancelColor: '#909193',
  17449. confirmColor: '#3c9cff',
  17450. title: ''
  17451. }
  17452. };
  17453. exports.default = _default;
  17454. /***/ }),
  17455. /* 153 */
  17456. /*!*************************************************************************************!*\
  17457. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17458. \*************************************************************************************/
  17459. /*! no static exports found */
  17460. /***/ (function(module, exports, __webpack_require__) {
  17461. "use strict";
  17462. Object.defineProperty(exports, "__esModule", {
  17463. value: true
  17464. });
  17465. exports.default = void 0;
  17466. /*
  17467. * @Author : LQ
  17468. * @Description :
  17469. * @version : 1.0
  17470. * @Date : 2021-08-20 16:44:21
  17471. * @LastAuthor : LQ
  17472. * @lastTime : 2021-08-20 17:25:14
  17473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17474. */
  17475. var _default = {
  17476. // tooltip 组件
  17477. tooltip: {
  17478. text: '',
  17479. copyText: '',
  17480. size: 14,
  17481. color: '#606266',
  17482. bgColor: 'transparent',
  17483. direction: 'top',
  17484. zIndex: 10071,
  17485. showCopy: true,
  17486. buttons: function buttons() {
  17487. return [];
  17488. },
  17489. overlay: true,
  17490. showToast: true
  17491. }
  17492. };
  17493. exports.default = _default;
  17494. /***/ }),
  17495. /* 154 */
  17496. /*!****************************************************************************************!*\
  17497. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17498. \****************************************************************************************/
  17499. /*! no static exports found */
  17500. /***/ (function(module, exports, __webpack_require__) {
  17501. "use strict";
  17502. Object.defineProperty(exports, "__esModule", {
  17503. value: true
  17504. });
  17505. exports.default = void 0;
  17506. /*
  17507. * @Author : LQ
  17508. * @Description :
  17509. * @version : 1.0
  17510. * @Date : 2021-08-20 16:44:21
  17511. * @LastAuthor : LQ
  17512. * @lastTime : 2021-08-20 16:59:00
  17513. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17514. */
  17515. var _default = {
  17516. // transition动画组件的props
  17517. transition: {
  17518. show: false,
  17519. mode: 'fade',
  17520. duration: '300',
  17521. timingFunction: 'ease-out'
  17522. }
  17523. };
  17524. exports.default = _default;
  17525. /***/ }),
  17526. /* 155 */
  17527. /*!************************************************************************************!*\
  17528. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17529. \************************************************************************************/
  17530. /*! no static exports found */
  17531. /***/ (function(module, exports, __webpack_require__) {
  17532. "use strict";
  17533. Object.defineProperty(exports, "__esModule", {
  17534. value: true
  17535. });
  17536. exports.default = void 0;
  17537. /*
  17538. * @Author : LQ
  17539. * @Description :
  17540. * @version : 1.0
  17541. * @Date : 2021-08-20 16:44:21
  17542. * @LastAuthor : LQ
  17543. * @lastTime : 2021-08-20 17:09:50
  17544. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17545. */
  17546. var _default = {
  17547. // upload组件
  17548. upload: {
  17549. accept: 'image',
  17550. capture: function capture() {
  17551. return ['album', 'camera'];
  17552. },
  17553. compressed: true,
  17554. camera: 'back',
  17555. maxDuration: 60,
  17556. uploadIcon: 'camera-fill',
  17557. uploadIconColor: '#D3D4D6',
  17558. useBeforeRead: false,
  17559. previewFullImage: true,
  17560. maxCount: 52,
  17561. disabled: false,
  17562. imageMode: 'aspectFill',
  17563. name: '',
  17564. sizeType: function sizeType() {
  17565. return ['original', 'compressed'];
  17566. },
  17567. multiple: false,
  17568. deletable: true,
  17569. maxSize: Number.MAX_VALUE,
  17570. fileList: function fileList() {
  17571. return [];
  17572. },
  17573. uploadText: '',
  17574. width: 80,
  17575. height: 80,
  17576. previewImage: true
  17577. }
  17578. };
  17579. exports.default = _default;
  17580. /***/ }),
  17581. /* 156 */
  17582. /*!******************************************************************************!*\
  17583. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17584. \******************************************************************************/
  17585. /*! no static exports found */
  17586. /***/ (function(module, exports, __webpack_require__) {
  17587. "use strict";
  17588. Object.defineProperty(exports, "__esModule", {
  17589. value: true
  17590. });
  17591. exports.default = void 0;
  17592. // uniapp在H5中各API的z-index值如下:
  17593. /**
  17594. * actionsheet: 999
  17595. * modal: 999
  17596. * navigate: 998
  17597. * tabbar: 998
  17598. * toast: 999
  17599. */
  17600. var _default = {
  17601. toast: 10090,
  17602. noNetwork: 10080,
  17603. // popup包含popup,actionsheet,keyboard,picker的值
  17604. popup: 10075,
  17605. mask: 10070,
  17606. navbar: 980,
  17607. topTips: 975,
  17608. sticky: 970,
  17609. indexListSticky: 965
  17610. };
  17611. exports.default = _default;
  17612. /***/ }),
  17613. /* 157 */
  17614. /*!**********************************************************************************!*\
  17615. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/libs/function/platform.js ***!
  17616. \**********************************************************************************/
  17617. /*! no static exports found */
  17618. /***/ (function(module, exports, __webpack_require__) {
  17619. "use strict";
  17620. Object.defineProperty(exports, "__esModule", {
  17621. value: true
  17622. });
  17623. exports.default = void 0;
  17624. /**
  17625. * 注意:
  17626. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17627. * module.exports = {
  17628. * transpileDependencies: ['uview-v2']
  17629. * }
  17630. */
  17631. var platform = 'none';
  17632. platform = 'vue2';
  17633. platform = 'weixin';
  17634. platform = 'mp';
  17635. var _default = platform;
  17636. exports.default = _default;
  17637. /***/ }),
  17638. /* 158 */
  17639. /*!************************************************************!*\
  17640. !*** E:/hbuildweepspace/sacanPay/uni.promisify.adaptor.js ***!
  17641. \************************************************************/
  17642. /*! no static exports found */
  17643. /***/ (function(module, exports, __webpack_require__) {
  17644. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17645. uni.addInterceptor({
  17646. returnValue: function returnValue(res) {
  17647. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  17648. return res;
  17649. }
  17650. return new Promise(function (resolve, reject) {
  17651. res.then(function (res) {
  17652. if (!res) return resolve(res);
  17653. return res[0] ? reject(res[0]) : resolve(res[1]);
  17654. });
  17655. });
  17656. }
  17657. });
  17658. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17659. /***/ }),
  17660. /* 159 */,
  17661. /* 160 */,
  17662. /* 161 */,
  17663. /* 162 */,
  17664. /* 163 */,
  17665. /* 164 */,
  17666. /* 165 */
  17667. /*!*************************************************!*\
  17668. !*** E:/hbuildweepspace/sacanPay/app.config.js ***!
  17669. \*************************************************/
  17670. /*! no static exports found */
  17671. /***/ (function(module, exports, __webpack_require__) {
  17672. "use strict";
  17673. Object.defineProperty(exports, "__esModule", {
  17674. value: true
  17675. });
  17676. exports.requestConfig = void 0;
  17677. /**
  17678. * 网络请求相关的全局配置
  17679. */
  17680. var requestConfig = {
  17681. // BaseUrl: 'https://app.sxdirectpurchase.com/api/',
  17682. /**接口请求地址 */
  17683. BaseUrl: 'http://192.168.3.98:9001/api/',
  17684. /**授权回调地址 */
  17685. redirect_uri: "http%3A%2F%2Fne.sxdirectpurchase.com%2F%23%2Fpages%2Findex%2Fpay",
  17686. /**公众号信息 */
  17687. appID: "wxad190b75af42ac7e",
  17688. appsecret: "934a264458f4de42c5ccbe611d212587",
  17689. /**返还多少钱红包 */
  17690. pay: 10
  17691. };
  17692. exports.requestConfig = requestConfig;
  17693. /***/ }),
  17694. /* 166 */,
  17695. /* 167 */,
  17696. /* 168 */,
  17697. /* 169 */,
  17698. /* 170 */,
  17699. /* 171 */,
  17700. /* 172 */,
  17701. /* 173 */,
  17702. /* 174 */
  17703. /*!***************************************************************!*\
  17704. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/index.js ***!
  17705. \***************************************************************/
  17706. /*! no static exports found */
  17707. /***/ (function(module, exports, __webpack_require__) {
  17708. "use strict";
  17709. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17710. Object.defineProperty(exports, "__esModule", {
  17711. value: true
  17712. });
  17713. exports.all = exports.VERSION = exports.HttpStatusCode = exports.CanceledError = exports.CancelToken = exports.Cancel = exports.AxiosHeaders = exports.AxiosError = exports.Axios = void 0;
  17714. Object.defineProperty(exports, "default", {
  17715. enumerable: true,
  17716. get: function get() {
  17717. return _axios.default;
  17718. }
  17719. });
  17720. exports.toFormData = exports.spread = exports.mergeConfig = exports.isCancel = exports.isAxiosError = exports.getAdapter = exports.formToJSON = void 0;
  17721. var _axios = _interopRequireDefault(__webpack_require__(/*! ./lib/axios.js */ 175));
  17722. // This module is intended to unwrap Axios default export as named.
  17723. // Keep top-level export same with static properties
  17724. // so that it can keep same with es module or cjs
  17725. var Axios = _axios.default.Axios,
  17726. AxiosError = _axios.default.AxiosError,
  17727. CanceledError = _axios.default.CanceledError,
  17728. isCancel = _axios.default.isCancel,
  17729. CancelToken = _axios.default.CancelToken,
  17730. VERSION = _axios.default.VERSION,
  17731. all = _axios.default.all,
  17732. Cancel = _axios.default.Cancel,
  17733. isAxiosError = _axios.default.isAxiosError,
  17734. spread = _axios.default.spread,
  17735. toFormData = _axios.default.toFormData,
  17736. AxiosHeaders = _axios.default.AxiosHeaders,
  17737. HttpStatusCode = _axios.default.HttpStatusCode,
  17738. formToJSON = _axios.default.formToJSON,
  17739. getAdapter = _axios.default.getAdapter,
  17740. mergeConfig = _axios.default.mergeConfig;
  17741. exports.mergeConfig = mergeConfig;
  17742. exports.getAdapter = getAdapter;
  17743. exports.formToJSON = formToJSON;
  17744. exports.HttpStatusCode = HttpStatusCode;
  17745. exports.AxiosHeaders = AxiosHeaders;
  17746. exports.toFormData = toFormData;
  17747. exports.spread = spread;
  17748. exports.isAxiosError = isAxiosError;
  17749. exports.Cancel = Cancel;
  17750. exports.all = all;
  17751. exports.VERSION = VERSION;
  17752. exports.CancelToken = CancelToken;
  17753. exports.isCancel = isCancel;
  17754. exports.CanceledError = CanceledError;
  17755. exports.AxiosError = AxiosError;
  17756. exports.Axios = Axios;
  17757. /***/ }),
  17758. /* 175 */
  17759. /*!*******************************************************************!*\
  17760. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/axios.js ***!
  17761. \*******************************************************************/
  17762. /*! no static exports found */
  17763. /***/ (function(module, exports, __webpack_require__) {
  17764. "use strict";
  17765. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17766. Object.defineProperty(exports, "__esModule", {
  17767. value: true
  17768. });
  17769. exports.default = void 0;
  17770. var _utils = _interopRequireDefault(__webpack_require__(/*! ./utils.js */ 176));
  17771. var _bind = _interopRequireDefault(__webpack_require__(/*! ./helpers/bind.js */ 179));
  17772. var _Axios = _interopRequireDefault(__webpack_require__(/*! ./core/Axios.js */ 180));
  17773. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./core/mergeConfig.js */ 216));
  17774. var _index = _interopRequireDefault(__webpack_require__(/*! ./defaults/index.js */ 189));
  17775. var _formDataToJSON = _interopRequireDefault(__webpack_require__(/*! ./helpers/formDataToJSON.js */ 198));
  17776. var _CanceledError = _interopRequireDefault(__webpack_require__(/*! ./cancel/CanceledError.js */ 202));
  17777. var _CancelToken = _interopRequireDefault(__webpack_require__(/*! ./cancel/CancelToken.js */ 227));
  17778. var _isCancel = _interopRequireDefault(__webpack_require__(/*! ./cancel/isCancel.js */ 201));
  17779. var _data = __webpack_require__(/*! ./env/data.js */ 226);
  17780. var _toFormData = _interopRequireDefault(__webpack_require__(/*! ./helpers/toFormData.js */ 183));
  17781. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ./core/AxiosError.js */ 184));
  17782. var _spread = _interopRequireDefault(__webpack_require__(/*! ./helpers/spread.js */ 228));
  17783. var _isAxiosError = _interopRequireDefault(__webpack_require__(/*! ./helpers/isAxiosError.js */ 229));
  17784. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ./core/AxiosHeaders.js */ 199));
  17785. var _adapters = _interopRequireDefault(__webpack_require__(/*! ./adapters/adapters.js */ 203));
  17786. var _HttpStatusCode = _interopRequireDefault(__webpack_require__(/*! ./helpers/HttpStatusCode.js */ 230));
  17787. /**
  17788. * Create an instance of Axios
  17789. *
  17790. * @param {Object} defaultConfig The default config for the instance
  17791. *
  17792. * @returns {Axios} A new instance of Axios
  17793. */
  17794. function createInstance(defaultConfig) {
  17795. var context = new _Axios.default(defaultConfig);
  17796. var instance = (0, _bind.default)(_Axios.default.prototype.request, context);
  17797. // Copy axios.prototype to instance
  17798. _utils.default.extend(instance, _Axios.default.prototype, context, {
  17799. allOwnKeys: true
  17800. });
  17801. // Copy context to instance
  17802. _utils.default.extend(instance, context, null, {
  17803. allOwnKeys: true
  17804. });
  17805. // Factory for creating new instances
  17806. instance.create = function create(instanceConfig) {
  17807. return createInstance((0, _mergeConfig.default)(defaultConfig, instanceConfig));
  17808. };
  17809. return instance;
  17810. }
  17811. // Create the default instance to be exported
  17812. var axios = createInstance(_index.default);
  17813. // Expose Axios class to allow class inheritance
  17814. axios.Axios = _Axios.default;
  17815. // Expose Cancel & CancelToken
  17816. axios.CanceledError = _CanceledError.default;
  17817. axios.CancelToken = _CancelToken.default;
  17818. axios.isCancel = _isCancel.default;
  17819. axios.VERSION = _data.VERSION;
  17820. axios.toFormData = _toFormData.default;
  17821. // Expose AxiosError class
  17822. axios.AxiosError = _AxiosError.default;
  17823. // alias for CanceledError for backward compatibility
  17824. axios.Cancel = axios.CanceledError;
  17825. // Expose all/spread
  17826. axios.all = function all(promises) {
  17827. return Promise.all(promises);
  17828. };
  17829. axios.spread = _spread.default;
  17830. // Expose isAxiosError
  17831. axios.isAxiosError = _isAxiosError.default;
  17832. // Expose mergeConfig
  17833. axios.mergeConfig = _mergeConfig.default;
  17834. axios.AxiosHeaders = _AxiosHeaders.default;
  17835. axios.formToJSON = function (thing) {
  17836. return (0, _formDataToJSON.default)(_utils.default.isHTMLForm(thing) ? new FormData(thing) : thing);
  17837. };
  17838. axios.getAdapter = _adapters.default.getAdapter;
  17839. axios.HttpStatusCode = _HttpStatusCode.default;
  17840. axios.default = axios;
  17841. // this module should only have a default export
  17842. var _default = axios;
  17843. exports.default = _default;
  17844. /***/ }),
  17845. /* 176 */
  17846. /*!*******************************************************************!*\
  17847. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/utils.js ***!
  17848. \*******************************************************************/
  17849. /*! no static exports found */
  17850. /***/ (function(module, exports, __webpack_require__) {
  17851. "use strict";
  17852. /* WEBPACK VAR INJECTION */(function(global, process) {
  17853. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17854. Object.defineProperty(exports, "__esModule", {
  17855. value: true
  17856. });
  17857. exports.default = void 0;
  17858. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  17859. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  17860. var _bind = _interopRequireDefault(__webpack_require__(/*! ./helpers/bind.js */ 179));
  17861. // utils is a library of generic helper functions non-specific to axios
  17862. var toString = Object.prototype.toString;
  17863. var getPrototypeOf = Object.getPrototypeOf;
  17864. var kindOf = function (cache) {
  17865. return function (thing) {
  17866. var str = toString.call(thing);
  17867. return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
  17868. };
  17869. }(Object.create(null));
  17870. var kindOfTest = function kindOfTest(type) {
  17871. type = type.toLowerCase();
  17872. return function (thing) {
  17873. return kindOf(thing) === type;
  17874. };
  17875. };
  17876. var typeOfTest = function typeOfTest(type) {
  17877. return function (thing) {
  17878. return (0, _typeof2.default)(thing) === type;
  17879. };
  17880. };
  17881. /**
  17882. * Determine if a value is an Array
  17883. *
  17884. * @param {Object} val The value to test
  17885. *
  17886. * @returns {boolean} True if value is an Array, otherwise false
  17887. */
  17888. var isArray = Array.isArray;
  17889. /**
  17890. * Determine if a value is undefined
  17891. *
  17892. * @param {*} val The value to test
  17893. *
  17894. * @returns {boolean} True if the value is undefined, otherwise false
  17895. */
  17896. var isUndefined = typeOfTest('undefined');
  17897. /**
  17898. * Determine if a value is a Buffer
  17899. *
  17900. * @param {*} val The value to test
  17901. *
  17902. * @returns {boolean} True if value is a Buffer, otherwise false
  17903. */
  17904. function isBuffer(val) {
  17905. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
  17906. }
  17907. /**
  17908. * Determine if a value is an ArrayBuffer
  17909. *
  17910. * @param {*} val The value to test
  17911. *
  17912. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  17913. */
  17914. var isArrayBuffer = kindOfTest('ArrayBuffer');
  17915. /**
  17916. * Determine if a value is a view on an ArrayBuffer
  17917. *
  17918. * @param {*} val The value to test
  17919. *
  17920. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  17921. */
  17922. function isArrayBufferView(val) {
  17923. var result;
  17924. if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
  17925. result = ArrayBuffer.isView(val);
  17926. } else {
  17927. result = val && val.buffer && isArrayBuffer(val.buffer);
  17928. }
  17929. return result;
  17930. }
  17931. /**
  17932. * Determine if a value is a String
  17933. *
  17934. * @param {*} val The value to test
  17935. *
  17936. * @returns {boolean} True if value is a String, otherwise false
  17937. */
  17938. var isString = typeOfTest('string');
  17939. /**
  17940. * Determine if a value is a Function
  17941. *
  17942. * @param {*} val The value to test
  17943. * @returns {boolean} True if value is a Function, otherwise false
  17944. */
  17945. var isFunction = typeOfTest('function');
  17946. /**
  17947. * Determine if a value is a Number
  17948. *
  17949. * @param {*} val The value to test
  17950. *
  17951. * @returns {boolean} True if value is a Number, otherwise false
  17952. */
  17953. var isNumber = typeOfTest('number');
  17954. /**
  17955. * Determine if a value is an Object
  17956. *
  17957. * @param {*} thing The value to test
  17958. *
  17959. * @returns {boolean} True if value is an Object, otherwise false
  17960. */
  17961. var isObject = function isObject(thing) {
  17962. return thing !== null && (0, _typeof2.default)(thing) === 'object';
  17963. };
  17964. /**
  17965. * Determine if a value is a Boolean
  17966. *
  17967. * @param {*} thing The value to test
  17968. * @returns {boolean} True if value is a Boolean, otherwise false
  17969. */
  17970. var isBoolean = function isBoolean(thing) {
  17971. return thing === true || thing === false;
  17972. };
  17973. /**
  17974. * Determine if a value is a plain Object
  17975. *
  17976. * @param {*} val The value to test
  17977. *
  17978. * @returns {boolean} True if value is a plain Object, otherwise false
  17979. */
  17980. var isPlainObject = function isPlainObject(val) {
  17981. if (kindOf(val) !== 'object') {
  17982. return false;
  17983. }
  17984. var prototype = getPrototypeOf(val);
  17985. return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
  17986. };
  17987. /**
  17988. * Determine if a value is a Date
  17989. *
  17990. * @param {*} val The value to test
  17991. *
  17992. * @returns {boolean} True if value is a Date, otherwise false
  17993. */
  17994. var isDate = kindOfTest('Date');
  17995. /**
  17996. * Determine if a value is a File
  17997. *
  17998. * @param {*} val The value to test
  17999. *
  18000. * @returns {boolean} True if value is a File, otherwise false
  18001. */
  18002. var isFile = kindOfTest('File');
  18003. /**
  18004. * Determine if a value is a Blob
  18005. *
  18006. * @param {*} val The value to test
  18007. *
  18008. * @returns {boolean} True if value is a Blob, otherwise false
  18009. */
  18010. var isBlob = kindOfTest('Blob');
  18011. /**
  18012. * Determine if a value is a FileList
  18013. *
  18014. * @param {*} val The value to test
  18015. *
  18016. * @returns {boolean} True if value is a File, otherwise false
  18017. */
  18018. var isFileList = kindOfTest('FileList');
  18019. /**
  18020. * Determine if a value is a Stream
  18021. *
  18022. * @param {*} val The value to test
  18023. *
  18024. * @returns {boolean} True if value is a Stream, otherwise false
  18025. */
  18026. var isStream = function isStream(val) {
  18027. return isObject(val) && isFunction(val.pipe);
  18028. };
  18029. /**
  18030. * Determine if a value is a FormData
  18031. *
  18032. * @param {*} thing The value to test
  18033. *
  18034. * @returns {boolean} True if value is an FormData, otherwise false
  18035. */
  18036. var isFormData = function isFormData(thing) {
  18037. var kind;
  18038. return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' ||
  18039. // detect form-data instance
  18040. kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]'));
  18041. };
  18042. /**
  18043. * Determine if a value is a URLSearchParams object
  18044. *
  18045. * @param {*} val The value to test
  18046. *
  18047. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  18048. */
  18049. var isURLSearchParams = kindOfTest('URLSearchParams');
  18050. var _map = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest),
  18051. _map2 = (0, _slicedToArray2.default)(_map, 4),
  18052. isReadableStream = _map2[0],
  18053. isRequest = _map2[1],
  18054. isResponse = _map2[2],
  18055. isHeaders = _map2[3];
  18056. /**
  18057. * Trim excess whitespace off the beginning and end of a string
  18058. *
  18059. * @param {String} str The String to trim
  18060. *
  18061. * @returns {String} The String freed of excess whitespace
  18062. */
  18063. var trim = function trim(str) {
  18064. return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
  18065. };
  18066. /**
  18067. * Iterate over an Array or an Object invoking a function for each item.
  18068. *
  18069. * If `obj` is an Array callback will be called passing
  18070. * the value, index, and complete array for each item.
  18071. *
  18072. * If 'obj' is an Object callback will be called passing
  18073. * the value, key, and complete object for each property.
  18074. *
  18075. * @param {Object|Array} obj The object to iterate
  18076. * @param {Function} fn The callback to invoke for each item
  18077. *
  18078. * @param {Boolean} [allOwnKeys = false]
  18079. * @returns {any}
  18080. */
  18081. function forEach(obj, fn) {
  18082. var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
  18083. _ref$allOwnKeys = _ref.allOwnKeys,
  18084. allOwnKeys = _ref$allOwnKeys === void 0 ? false : _ref$allOwnKeys;
  18085. // Don't bother if no value provided
  18086. if (obj === null || typeof obj === 'undefined') {
  18087. return;
  18088. }
  18089. var i;
  18090. var l;
  18091. // Force an array if not already something iterable
  18092. if ((0, _typeof2.default)(obj) !== 'object') {
  18093. /*eslint no-param-reassign:0*/
  18094. obj = [obj];
  18095. }
  18096. if (isArray(obj)) {
  18097. // Iterate over array values
  18098. for (i = 0, l = obj.length; i < l; i++) {
  18099. fn.call(null, obj[i], i, obj);
  18100. }
  18101. } else {
  18102. // Iterate over object keys
  18103. var keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
  18104. var len = keys.length;
  18105. var key;
  18106. for (i = 0; i < len; i++) {
  18107. key = keys[i];
  18108. fn.call(null, obj[key], key, obj);
  18109. }
  18110. }
  18111. }
  18112. function findKey(obj, key) {
  18113. key = key.toLowerCase();
  18114. var keys = Object.keys(obj);
  18115. var i = keys.length;
  18116. var _key;
  18117. while (i-- > 0) {
  18118. _key = keys[i];
  18119. if (key === _key.toLowerCase()) {
  18120. return _key;
  18121. }
  18122. }
  18123. return null;
  18124. }
  18125. var _global = function () {
  18126. /*eslint no-undef:0*/
  18127. if (typeof globalThis !== "undefined") return globalThis;
  18128. return typeof self !== "undefined" ? self : typeof window !== 'undefined' ? window : global;
  18129. }();
  18130. var isContextDefined = function isContextDefined(context) {
  18131. return !isUndefined(context) && context !== _global;
  18132. };
  18133. /**
  18134. * Accepts varargs expecting each argument to be an object, then
  18135. * immutably merges the properties of each object and returns result.
  18136. *
  18137. * When multiple objects contain the same key the later object in
  18138. * the arguments list will take precedence.
  18139. *
  18140. * Example:
  18141. *
  18142. * ```js
  18143. * var result = merge({foo: 123}, {foo: 456});
  18144. * console.log(result.foo); // outputs 456
  18145. * ```
  18146. *
  18147. * @param {Object} obj1 Object to merge
  18148. *
  18149. * @returns {Object} Result of all merge properties
  18150. */
  18151. function merge( /* obj1, obj2, obj3, ... */
  18152. ) {
  18153. var _ref2 = isContextDefined(this) && this || {},
  18154. caseless = _ref2.caseless;
  18155. var result = {};
  18156. var assignValue = function assignValue(val, key) {
  18157. var targetKey = caseless && findKey(result, key) || key;
  18158. if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
  18159. result[targetKey] = merge(result[targetKey], val);
  18160. } else if (isPlainObject(val)) {
  18161. result[targetKey] = merge({}, val);
  18162. } else if (isArray(val)) {
  18163. result[targetKey] = val.slice();
  18164. } else {
  18165. result[targetKey] = val;
  18166. }
  18167. };
  18168. for (var i = 0, l = arguments.length; i < l; i++) {
  18169. arguments[i] && forEach(arguments[i], assignValue);
  18170. }
  18171. return result;
  18172. }
  18173. /**
  18174. * Extends object a by mutably adding to it the properties of object b.
  18175. *
  18176. * @param {Object} a The object to be extended
  18177. * @param {Object} b The object to copy properties from
  18178. * @param {Object} thisArg The object to bind function to
  18179. *
  18180. * @param {Boolean} [allOwnKeys]
  18181. * @returns {Object} The resulting value of object a
  18182. */
  18183. var extend = function extend(a, b, thisArg) {
  18184. var _ref3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
  18185. allOwnKeys = _ref3.allOwnKeys;
  18186. forEach(b, function (val, key) {
  18187. if (thisArg && isFunction(val)) {
  18188. a[key] = (0, _bind.default)(val, thisArg);
  18189. } else {
  18190. a[key] = val;
  18191. }
  18192. }, {
  18193. allOwnKeys: allOwnKeys
  18194. });
  18195. return a;
  18196. };
  18197. /**
  18198. * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
  18199. *
  18200. * @param {string} content with BOM
  18201. *
  18202. * @returns {string} content value without BOM
  18203. */
  18204. var stripBOM = function stripBOM(content) {
  18205. if (content.charCodeAt(0) === 0xFEFF) {
  18206. content = content.slice(1);
  18207. }
  18208. return content;
  18209. };
  18210. /**
  18211. * Inherit the prototype methods from one constructor into another
  18212. * @param {function} constructor
  18213. * @param {function} superConstructor
  18214. * @param {object} [props]
  18215. * @param {object} [descriptors]
  18216. *
  18217. * @returns {void}
  18218. */
  18219. var inherits = function inherits(constructor, superConstructor, props, descriptors) {
  18220. constructor.prototype = Object.create(superConstructor.prototype, descriptors);
  18221. constructor.prototype.constructor = constructor;
  18222. Object.defineProperty(constructor, 'super', {
  18223. value: superConstructor.prototype
  18224. });
  18225. props && Object.assign(constructor.prototype, props);
  18226. };
  18227. /**
  18228. * Resolve object with deep prototype chain to a flat object
  18229. * @param {Object} sourceObj source object
  18230. * @param {Object} [destObj]
  18231. * @param {Function|Boolean} [filter]
  18232. * @param {Function} [propFilter]
  18233. *
  18234. * @returns {Object}
  18235. */
  18236. var toFlatObject = function toFlatObject(sourceObj, destObj, filter, propFilter) {
  18237. var props;
  18238. var i;
  18239. var prop;
  18240. var merged = {};
  18241. destObj = destObj || {};
  18242. // eslint-disable-next-line no-eq-null,eqeqeq
  18243. if (sourceObj == null) return destObj;
  18244. do {
  18245. props = Object.getOwnPropertyNames(sourceObj);
  18246. i = props.length;
  18247. while (i-- > 0) {
  18248. prop = props[i];
  18249. if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
  18250. destObj[prop] = sourceObj[prop];
  18251. merged[prop] = true;
  18252. }
  18253. }
  18254. sourceObj = filter !== false && getPrototypeOf(sourceObj);
  18255. } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
  18256. return destObj;
  18257. };
  18258. /**
  18259. * Determines whether a string ends with the characters of a specified string
  18260. *
  18261. * @param {String} str
  18262. * @param {String} searchString
  18263. * @param {Number} [position= 0]
  18264. *
  18265. * @returns {boolean}
  18266. */
  18267. var endsWith = function endsWith(str, searchString, position) {
  18268. str = String(str);
  18269. if (position === undefined || position > str.length) {
  18270. position = str.length;
  18271. }
  18272. position -= searchString.length;
  18273. var lastIndex = str.indexOf(searchString, position);
  18274. return lastIndex !== -1 && lastIndex === position;
  18275. };
  18276. /**
  18277. * Returns new array from array like object or null if failed
  18278. *
  18279. * @param {*} [thing]
  18280. *
  18281. * @returns {?Array}
  18282. */
  18283. var toArray = function toArray(thing) {
  18284. if (!thing) return null;
  18285. if (isArray(thing)) return thing;
  18286. var i = thing.length;
  18287. if (!isNumber(i)) return null;
  18288. var arr = new Array(i);
  18289. while (i-- > 0) {
  18290. arr[i] = thing[i];
  18291. }
  18292. return arr;
  18293. };
  18294. /**
  18295. * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
  18296. * thing passed in is an instance of Uint8Array
  18297. *
  18298. * @param {TypedArray}
  18299. *
  18300. * @returns {Array}
  18301. */
  18302. // eslint-disable-next-line func-names
  18303. var isTypedArray = function (TypedArray) {
  18304. // eslint-disable-next-line func-names
  18305. return function (thing) {
  18306. return TypedArray && thing instanceof TypedArray;
  18307. };
  18308. }(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
  18309. /**
  18310. * For each entry in the object, call the function with the key and value.
  18311. *
  18312. * @param {Object<any, any>} obj - The object to iterate over.
  18313. * @param {Function} fn - The function to call for each entry.
  18314. *
  18315. * @returns {void}
  18316. */
  18317. var forEachEntry = function forEachEntry(obj, fn) {
  18318. var generator = obj && obj[Symbol.iterator];
  18319. var iterator = generator.call(obj);
  18320. var result;
  18321. while ((result = iterator.next()) && !result.done) {
  18322. var pair = result.value;
  18323. fn.call(obj, pair[0], pair[1]);
  18324. }
  18325. };
  18326. /**
  18327. * It takes a regular expression and a string, and returns an array of all the matches
  18328. *
  18329. * @param {string} regExp - The regular expression to match against.
  18330. * @param {string} str - The string to search.
  18331. *
  18332. * @returns {Array<boolean>}
  18333. */
  18334. var matchAll = function matchAll(regExp, str) {
  18335. var matches;
  18336. var arr = [];
  18337. while ((matches = regExp.exec(str)) !== null) {
  18338. arr.push(matches);
  18339. }
  18340. return arr;
  18341. };
  18342. /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
  18343. var isHTMLForm = kindOfTest('HTMLFormElement');
  18344. var toCamelCase = function toCamelCase(str) {
  18345. return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
  18346. return p1.toUpperCase() + p2;
  18347. });
  18348. };
  18349. /* Creating a function that will check if an object has a property. */
  18350. var hasOwnProperty = function (_ref4) {
  18351. var hasOwnProperty = _ref4.hasOwnProperty;
  18352. return function (obj, prop) {
  18353. return hasOwnProperty.call(obj, prop);
  18354. };
  18355. }(Object.prototype);
  18356. /**
  18357. * Determine if a value is a RegExp object
  18358. *
  18359. * @param {*} val The value to test
  18360. *
  18361. * @returns {boolean} True if value is a RegExp object, otherwise false
  18362. */
  18363. var isRegExp = kindOfTest('RegExp');
  18364. var reduceDescriptors = function reduceDescriptors(obj, reducer) {
  18365. var descriptors = Object.getOwnPropertyDescriptors(obj);
  18366. var reducedDescriptors = {};
  18367. forEach(descriptors, function (descriptor, name) {
  18368. var ret;
  18369. if ((ret = reducer(descriptor, name, obj)) !== false) {
  18370. reducedDescriptors[name] = ret || descriptor;
  18371. }
  18372. });
  18373. Object.defineProperties(obj, reducedDescriptors);
  18374. };
  18375. /**
  18376. * Makes all methods read-only
  18377. * @param {Object} obj
  18378. */
  18379. var freezeMethods = function freezeMethods(obj) {
  18380. reduceDescriptors(obj, function (descriptor, name) {
  18381. // skip restricted props in strict mode
  18382. if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
  18383. return false;
  18384. }
  18385. var value = obj[name];
  18386. if (!isFunction(value)) return;
  18387. descriptor.enumerable = false;
  18388. if ('writable' in descriptor) {
  18389. descriptor.writable = false;
  18390. return;
  18391. }
  18392. if (!descriptor.set) {
  18393. descriptor.set = function () {
  18394. throw Error('Can not rewrite read-only method \'' + name + '\'');
  18395. };
  18396. }
  18397. });
  18398. };
  18399. var toObjectSet = function toObjectSet(arrayOrString, delimiter) {
  18400. var obj = {};
  18401. var define = function define(arr) {
  18402. arr.forEach(function (value) {
  18403. obj[value] = true;
  18404. });
  18405. };
  18406. isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
  18407. return obj;
  18408. };
  18409. var noop = function noop() {};
  18410. var toFiniteNumber = function toFiniteNumber(value, defaultValue) {
  18411. return value != null && Number.isFinite(value = +value) ? value : defaultValue;
  18412. };
  18413. /**
  18414. * If the thing is a FormData object, return true, otherwise return false.
  18415. *
  18416. * @param {unknown} thing - The thing to check.
  18417. *
  18418. * @returns {boolean}
  18419. */
  18420. function isSpecCompliantForm(thing) {
  18421. return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
  18422. }
  18423. var toJSONObject = function toJSONObject(obj) {
  18424. var stack = new Array(10);
  18425. var visit = function visit(source, i) {
  18426. if (isObject(source)) {
  18427. if (stack.indexOf(source) >= 0) {
  18428. return;
  18429. }
  18430. if (!('toJSON' in source)) {
  18431. stack[i] = source;
  18432. var target = isArray(source) ? [] : {};
  18433. forEach(source, function (value, key) {
  18434. var reducedValue = visit(value, i + 1);
  18435. !isUndefined(reducedValue) && (target[key] = reducedValue);
  18436. });
  18437. stack[i] = undefined;
  18438. return target;
  18439. }
  18440. }
  18441. return source;
  18442. };
  18443. return visit(obj, 0);
  18444. };
  18445. var isAsyncFn = kindOfTest('AsyncFunction');
  18446. var isThenable = function isThenable(thing) {
  18447. return thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
  18448. };
  18449. // original code
  18450. // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
  18451. var _setImmediate = function (setImmediateSupported, postMessageSupported) {
  18452. if (setImmediateSupported) {
  18453. return setImmediate;
  18454. }
  18455. return postMessageSupported ? function (token, callbacks) {
  18456. _global.addEventListener("message", function (_ref5) {
  18457. var source = _ref5.source,
  18458. data = _ref5.data;
  18459. if (source === _global && data === token) {
  18460. callbacks.length && callbacks.shift()();
  18461. }
  18462. }, false);
  18463. return function (cb) {
  18464. callbacks.push(cb);
  18465. _global.postMessage(token, "*");
  18466. };
  18467. }("axios@".concat(Math.random()), []) : function (cb) {
  18468. return setTimeout(cb);
  18469. };
  18470. }(typeof setImmediate === 'function', isFunction(_global.postMessage));
  18471. var asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global) : typeof process !== 'undefined' && process.nextTick || _setImmediate;
  18472. // *********************
  18473. var _default = {
  18474. isArray: isArray,
  18475. isArrayBuffer: isArrayBuffer,
  18476. isBuffer: isBuffer,
  18477. isFormData: isFormData,
  18478. isArrayBufferView: isArrayBufferView,
  18479. isString: isString,
  18480. isNumber: isNumber,
  18481. isBoolean: isBoolean,
  18482. isObject: isObject,
  18483. isPlainObject: isPlainObject,
  18484. isReadableStream: isReadableStream,
  18485. isRequest: isRequest,
  18486. isResponse: isResponse,
  18487. isHeaders: isHeaders,
  18488. isUndefined: isUndefined,
  18489. isDate: isDate,
  18490. isFile: isFile,
  18491. isBlob: isBlob,
  18492. isRegExp: isRegExp,
  18493. isFunction: isFunction,
  18494. isStream: isStream,
  18495. isURLSearchParams: isURLSearchParams,
  18496. isTypedArray: isTypedArray,
  18497. isFileList: isFileList,
  18498. forEach: forEach,
  18499. merge: merge,
  18500. extend: extend,
  18501. trim: trim,
  18502. stripBOM: stripBOM,
  18503. inherits: inherits,
  18504. toFlatObject: toFlatObject,
  18505. kindOf: kindOf,
  18506. kindOfTest: kindOfTest,
  18507. endsWith: endsWith,
  18508. toArray: toArray,
  18509. forEachEntry: forEachEntry,
  18510. matchAll: matchAll,
  18511. isHTMLForm: isHTMLForm,
  18512. hasOwnProperty: hasOwnProperty,
  18513. hasOwnProp: hasOwnProperty,
  18514. // an alias to avoid ESLint no-prototype-builtins detection
  18515. reduceDescriptors: reduceDescriptors,
  18516. freezeMethods: freezeMethods,
  18517. toObjectSet: toObjectSet,
  18518. toCamelCase: toCamelCase,
  18519. noop: noop,
  18520. toFiniteNumber: toFiniteNumber,
  18521. findKey: findKey,
  18522. global: _global,
  18523. isContextDefined: isContextDefined,
  18524. isSpecCompliantForm: isSpecCompliantForm,
  18525. toJSONObject: toJSONObject,
  18526. isAsyncFn: isAsyncFn,
  18527. isThenable: isThenable,
  18528. setImmediate: _setImmediate,
  18529. asap: asap
  18530. };
  18531. exports.default = _default;
  18532. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/global.js */ 3), __webpack_require__(/*! ./../../../../../HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 177)))
  18533. /***/ }),
  18534. /* 177 */
  18535. /*!********************************************************!*\
  18536. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  18537. \********************************************************/
  18538. /*! no static exports found */
  18539. /***/ (function(module, exports, __webpack_require__) {
  18540. exports.nextTick = function nextTick(fn) {
  18541. var args = Array.prototype.slice.call(arguments);
  18542. args.shift();
  18543. setTimeout(function () {
  18544. fn.apply(null, args);
  18545. }, 0);
  18546. };
  18547. exports.platform = exports.arch =
  18548. exports.execPath = exports.title = 'browser';
  18549. exports.pid = 1;
  18550. exports.browser = true;
  18551. exports.env = {};
  18552. exports.argv = [];
  18553. exports.binding = function (name) {
  18554. throw new Error('No such module. (Possibly not yet loaded)')
  18555. };
  18556. (function () {
  18557. var cwd = '/';
  18558. var path;
  18559. exports.cwd = function () { return cwd };
  18560. exports.chdir = function (dir) {
  18561. if (!path) path = __webpack_require__(/*! path */ 178);
  18562. cwd = path.resolve(dir, cwd);
  18563. };
  18564. })();
  18565. exports.exit = exports.kill =
  18566. exports.umask = exports.dlopen =
  18567. exports.uptime = exports.memoryUsage =
  18568. exports.uvCounters = function() {};
  18569. exports.features = {};
  18570. /***/ }),
  18571. /* 178 */
  18572. /*!***********************************************!*\
  18573. !*** ./node_modules/path-browserify/index.js ***!
  18574. \***********************************************/
  18575. /*! no static exports found */
  18576. /***/ (function(module, exports, __webpack_require__) {
  18577. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  18578. // backported and transplited with Babel, with backwards-compat fixes
  18579. // Copyright Joyent, Inc. and other Node contributors.
  18580. //
  18581. // Permission is hereby granted, free of charge, to any person obtaining a
  18582. // copy of this software and associated documentation files (the
  18583. // "Software"), to deal in the Software without restriction, including
  18584. // without limitation the rights to use, copy, modify, merge, publish,
  18585. // distribute, sublicense, and/or sell copies of the Software, and to permit
  18586. // persons to whom the Software is furnished to do so, subject to the
  18587. // following conditions:
  18588. //
  18589. // The above copyright notice and this permission notice shall be included
  18590. // in all copies or substantial portions of the Software.
  18591. //
  18592. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18593. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  18594. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  18595. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  18596. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  18597. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  18598. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  18599. // resolves . and .. elements in a path array with directory names there
  18600. // must be no slashes, empty elements, or device names (c:\) in the array
  18601. // (so also no leading and trailing slashes - it does not distinguish
  18602. // relative and absolute paths)
  18603. function normalizeArray(parts, allowAboveRoot) {
  18604. // if the path tries to go above the root, `up` ends up > 0
  18605. var up = 0;
  18606. for (var i = parts.length - 1; i >= 0; i--) {
  18607. var last = parts[i];
  18608. if (last === '.') {
  18609. parts.splice(i, 1);
  18610. } else if (last === '..') {
  18611. parts.splice(i, 1);
  18612. up++;
  18613. } else if (up) {
  18614. parts.splice(i, 1);
  18615. up--;
  18616. }
  18617. }
  18618. // if the path is allowed to go above the root, restore leading ..s
  18619. if (allowAboveRoot) {
  18620. for (; up--; up) {
  18621. parts.unshift('..');
  18622. }
  18623. }
  18624. return parts;
  18625. }
  18626. // path.resolve([from ...], to)
  18627. // posix version
  18628. exports.resolve = function() {
  18629. var resolvedPath = '',
  18630. resolvedAbsolute = false;
  18631. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  18632. var path = (i >= 0) ? arguments[i] : process.cwd();
  18633. // Skip empty and invalid entries
  18634. if (typeof path !== 'string') {
  18635. throw new TypeError('Arguments to path.resolve must be strings');
  18636. } else if (!path) {
  18637. continue;
  18638. }
  18639. resolvedPath = path + '/' + resolvedPath;
  18640. resolvedAbsolute = path.charAt(0) === '/';
  18641. }
  18642. // At this point the path should be resolved to a full absolute path, but
  18643. // handle relative paths to be safe (might happen when process.cwd() fails)
  18644. // Normalize the path
  18645. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  18646. return !!p;
  18647. }), !resolvedAbsolute).join('/');
  18648. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  18649. };
  18650. // path.normalize(path)
  18651. // posix version
  18652. exports.normalize = function(path) {
  18653. var isAbsolute = exports.isAbsolute(path),
  18654. trailingSlash = substr(path, -1) === '/';
  18655. // Normalize the path
  18656. path = normalizeArray(filter(path.split('/'), function(p) {
  18657. return !!p;
  18658. }), !isAbsolute).join('/');
  18659. if (!path && !isAbsolute) {
  18660. path = '.';
  18661. }
  18662. if (path && trailingSlash) {
  18663. path += '/';
  18664. }
  18665. return (isAbsolute ? '/' : '') + path;
  18666. };
  18667. // posix version
  18668. exports.isAbsolute = function(path) {
  18669. return path.charAt(0) === '/';
  18670. };
  18671. // posix version
  18672. exports.join = function() {
  18673. var paths = Array.prototype.slice.call(arguments, 0);
  18674. return exports.normalize(filter(paths, function(p, index) {
  18675. if (typeof p !== 'string') {
  18676. throw new TypeError('Arguments to path.join must be strings');
  18677. }
  18678. return p;
  18679. }).join('/'));
  18680. };
  18681. // path.relative(from, to)
  18682. // posix version
  18683. exports.relative = function(from, to) {
  18684. from = exports.resolve(from).substr(1);
  18685. to = exports.resolve(to).substr(1);
  18686. function trim(arr) {
  18687. var start = 0;
  18688. for (; start < arr.length; start++) {
  18689. if (arr[start] !== '') break;
  18690. }
  18691. var end = arr.length - 1;
  18692. for (; end >= 0; end--) {
  18693. if (arr[end] !== '') break;
  18694. }
  18695. if (start > end) return [];
  18696. return arr.slice(start, end - start + 1);
  18697. }
  18698. var fromParts = trim(from.split('/'));
  18699. var toParts = trim(to.split('/'));
  18700. var length = Math.min(fromParts.length, toParts.length);
  18701. var samePartsLength = length;
  18702. for (var i = 0; i < length; i++) {
  18703. if (fromParts[i] !== toParts[i]) {
  18704. samePartsLength = i;
  18705. break;
  18706. }
  18707. }
  18708. var outputParts = [];
  18709. for (var i = samePartsLength; i < fromParts.length; i++) {
  18710. outputParts.push('..');
  18711. }
  18712. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  18713. return outputParts.join('/');
  18714. };
  18715. exports.sep = '/';
  18716. exports.delimiter = ':';
  18717. exports.dirname = function (path) {
  18718. if (typeof path !== 'string') path = path + '';
  18719. if (path.length === 0) return '.';
  18720. var code = path.charCodeAt(0);
  18721. var hasRoot = code === 47 /*/*/;
  18722. var end = -1;
  18723. var matchedSlash = true;
  18724. for (var i = path.length - 1; i >= 1; --i) {
  18725. code = path.charCodeAt(i);
  18726. if (code === 47 /*/*/) {
  18727. if (!matchedSlash) {
  18728. end = i;
  18729. break;
  18730. }
  18731. } else {
  18732. // We saw the first non-path separator
  18733. matchedSlash = false;
  18734. }
  18735. }
  18736. if (end === -1) return hasRoot ? '/' : '.';
  18737. if (hasRoot && end === 1) {
  18738. // return '//';
  18739. // Backwards-compat fix:
  18740. return '/';
  18741. }
  18742. return path.slice(0, end);
  18743. };
  18744. function basename(path) {
  18745. if (typeof path !== 'string') path = path + '';
  18746. var start = 0;
  18747. var end = -1;
  18748. var matchedSlash = true;
  18749. var i;
  18750. for (i = path.length - 1; i >= 0; --i) {
  18751. if (path.charCodeAt(i) === 47 /*/*/) {
  18752. // If we reached a path separator that was not part of a set of path
  18753. // separators at the end of the string, stop now
  18754. if (!matchedSlash) {
  18755. start = i + 1;
  18756. break;
  18757. }
  18758. } else if (end === -1) {
  18759. // We saw the first non-path separator, mark this as the end of our
  18760. // path component
  18761. matchedSlash = false;
  18762. end = i + 1;
  18763. }
  18764. }
  18765. if (end === -1) return '';
  18766. return path.slice(start, end);
  18767. }
  18768. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  18769. // in new Node.js versions, so only basename() above is backported here
  18770. exports.basename = function (path, ext) {
  18771. var f = basename(path);
  18772. if (ext && f.substr(-1 * ext.length) === ext) {
  18773. f = f.substr(0, f.length - ext.length);
  18774. }
  18775. return f;
  18776. };
  18777. exports.extname = function (path) {
  18778. if (typeof path !== 'string') path = path + '';
  18779. var startDot = -1;
  18780. var startPart = 0;
  18781. var end = -1;
  18782. var matchedSlash = true;
  18783. // Track the state of characters (if any) we see before our first dot and
  18784. // after any path separator we find
  18785. var preDotState = 0;
  18786. for (var i = path.length - 1; i >= 0; --i) {
  18787. var code = path.charCodeAt(i);
  18788. if (code === 47 /*/*/) {
  18789. // If we reached a path separator that was not part of a set of path
  18790. // separators at the end of the string, stop now
  18791. if (!matchedSlash) {
  18792. startPart = i + 1;
  18793. break;
  18794. }
  18795. continue;
  18796. }
  18797. if (end === -1) {
  18798. // We saw the first non-path separator, mark this as the end of our
  18799. // extension
  18800. matchedSlash = false;
  18801. end = i + 1;
  18802. }
  18803. if (code === 46 /*.*/) {
  18804. // If this is our first dot, mark it as the start of our extension
  18805. if (startDot === -1)
  18806. startDot = i;
  18807. else if (preDotState !== 1)
  18808. preDotState = 1;
  18809. } else if (startDot !== -1) {
  18810. // We saw a non-dot and non-path separator before our dot, so we should
  18811. // have a good chance at having a non-empty extension
  18812. preDotState = -1;
  18813. }
  18814. }
  18815. if (startDot === -1 || end === -1 ||
  18816. // We saw a non-dot character immediately before the dot
  18817. preDotState === 0 ||
  18818. // The (right-most) trimmed path component is exactly '..'
  18819. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  18820. return '';
  18821. }
  18822. return path.slice(startDot, end);
  18823. };
  18824. function filter (xs, f) {
  18825. if (xs.filter) return xs.filter(f);
  18826. var res = [];
  18827. for (var i = 0; i < xs.length; i++) {
  18828. if (f(xs[i], i, xs)) res.push(xs[i]);
  18829. }
  18830. return res;
  18831. }
  18832. // String.prototype.substr - negative index don't work in IE8
  18833. var substr = 'ab'.substr(-1) === 'b'
  18834. ? function (str, start, len) { return str.substr(start, len) }
  18835. : function (str, start, len) {
  18836. if (start < 0) start = str.length + start;
  18837. return str.substr(start, len);
  18838. }
  18839. ;
  18840. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 177)))
  18841. /***/ }),
  18842. /* 179 */
  18843. /*!**************************************************************************!*\
  18844. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/bind.js ***!
  18845. \**************************************************************************/
  18846. /*! no static exports found */
  18847. /***/ (function(module, exports, __webpack_require__) {
  18848. "use strict";
  18849. Object.defineProperty(exports, "__esModule", {
  18850. value: true
  18851. });
  18852. exports.default = bind;
  18853. function bind(fn, thisArg) {
  18854. return function wrap() {
  18855. return fn.apply(thisArg, arguments);
  18856. };
  18857. }
  18858. /***/ }),
  18859. /* 180 */
  18860. /*!************************************************************************!*\
  18861. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/Axios.js ***!
  18862. \************************************************************************/
  18863. /*! no static exports found */
  18864. /***/ (function(module, exports, __webpack_require__) {
  18865. "use strict";
  18866. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18867. Object.defineProperty(exports, "__esModule", {
  18868. value: true
  18869. });
  18870. exports.default = void 0;
  18871. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  18872. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  18873. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  18874. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  18875. var _utils = _interopRequireDefault(__webpack_require__(/*! ./../utils.js */ 176));
  18876. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL.js */ 181));
  18877. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager.js */ 186));
  18878. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest.js */ 187));
  18879. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig.js */ 216));
  18880. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ./buildFullPath.js */ 213));
  18881. var _validator = _interopRequireDefault(__webpack_require__(/*! ../helpers/validator.js */ 225));
  18882. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ./AxiosHeaders.js */ 199));
  18883. var validators = _validator.default.validators;
  18884. /**
  18885. * Create a new instance of Axios
  18886. *
  18887. * @param {Object} instanceConfig The default config for the instance
  18888. *
  18889. * @return {Axios} A new instance of Axios
  18890. */
  18891. var Axios = /*#__PURE__*/function () {
  18892. function Axios(instanceConfig) {
  18893. (0, _classCallCheck2.default)(this, Axios);
  18894. this.defaults = instanceConfig;
  18895. this.interceptors = {
  18896. request: new _InterceptorManager.default(),
  18897. response: new _InterceptorManager.default()
  18898. };
  18899. }
  18900. /**
  18901. * Dispatch a request
  18902. *
  18903. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  18904. * @param {?Object} config
  18905. *
  18906. * @returns {Promise} The Promise to be fulfilled
  18907. */
  18908. (0, _createClass2.default)(Axios, [{
  18909. key: "request",
  18910. value: function () {
  18911. var _request2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(configOrUrl, config) {
  18912. var dummy, stack;
  18913. return _regenerator.default.wrap(function _callee$(_context) {
  18914. while (1) {
  18915. switch (_context.prev = _context.next) {
  18916. case 0:
  18917. _context.prev = 0;
  18918. _context.next = 3;
  18919. return this._request(configOrUrl, config);
  18920. case 3:
  18921. return _context.abrupt("return", _context.sent);
  18922. case 6:
  18923. _context.prev = 6;
  18924. _context.t0 = _context["catch"](0);
  18925. if (_context.t0 instanceof Error) {
  18926. dummy = {};
  18927. Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
  18928. // slice off the Error: ... line
  18929. stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
  18930. try {
  18931. if (!_context.t0.stack) {
  18932. _context.t0.stack = stack;
  18933. // match without the 2 top stack lines
  18934. } else if (stack && !String(_context.t0.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
  18935. _context.t0.stack += '\n' + stack;
  18936. }
  18937. } catch (e) {
  18938. // ignore the case where "stack" is an un-writable property
  18939. }
  18940. }
  18941. throw _context.t0;
  18942. case 10:
  18943. case "end":
  18944. return _context.stop();
  18945. }
  18946. }
  18947. }, _callee, this, [[0, 6]]);
  18948. }));
  18949. function request(_x, _x2) {
  18950. return _request2.apply(this, arguments);
  18951. }
  18952. return request;
  18953. }()
  18954. }, {
  18955. key: "_request",
  18956. value: function _request(configOrUrl, config) {
  18957. /*eslint no-param-reassign:0*/
  18958. // Allow for axios('example/url'[, config]) a la fetch API
  18959. if (typeof configOrUrl === 'string') {
  18960. config = config || {};
  18961. config.url = configOrUrl;
  18962. } else {
  18963. config = configOrUrl || {};
  18964. }
  18965. config = (0, _mergeConfig.default)(this.defaults, config);
  18966. var _config = config,
  18967. transitional = _config.transitional,
  18968. paramsSerializer = _config.paramsSerializer,
  18969. headers = _config.headers;
  18970. if (transitional !== undefined) {
  18971. _validator.default.assertOptions(transitional, {
  18972. silentJSONParsing: validators.transitional(validators.boolean),
  18973. forcedJSONParsing: validators.transitional(validators.boolean),
  18974. clarifyTimeoutError: validators.transitional(validators.boolean)
  18975. }, false);
  18976. }
  18977. if (paramsSerializer != null) {
  18978. if (_utils.default.isFunction(paramsSerializer)) {
  18979. config.paramsSerializer = {
  18980. serialize: paramsSerializer
  18981. };
  18982. } else {
  18983. _validator.default.assertOptions(paramsSerializer, {
  18984. encode: validators.function,
  18985. serialize: validators.function
  18986. }, true);
  18987. }
  18988. }
  18989. // Set config.allowAbsoluteUrls
  18990. if (config.allowAbsoluteUrls !== undefined) {
  18991. // do nothing
  18992. } else if (this.defaults.allowAbsoluteUrls !== undefined) {
  18993. config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
  18994. } else {
  18995. config.allowAbsoluteUrls = true;
  18996. }
  18997. _validator.default.assertOptions(config, {
  18998. baseUrl: validators.spelling('baseURL'),
  18999. withXsrfToken: validators.spelling('withXSRFToken')
  19000. }, true);
  19001. // Set config.method
  19002. config.method = (config.method || this.defaults.method || 'get').toLowerCase();
  19003. // Flatten headers
  19004. var contextHeaders = headers && _utils.default.merge(headers.common, headers[config.method]);
  19005. headers && _utils.default.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function (method) {
  19006. delete headers[method];
  19007. });
  19008. config.headers = _AxiosHeaders.default.concat(contextHeaders, headers);
  19009. // filter out skipped interceptors
  19010. var requestInterceptorChain = [];
  19011. var synchronousRequestInterceptors = true;
  19012. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  19013. if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
  19014. return;
  19015. }
  19016. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  19017. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  19018. });
  19019. var responseInterceptorChain = [];
  19020. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  19021. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  19022. });
  19023. var promise;
  19024. var i = 0;
  19025. var len;
  19026. if (!synchronousRequestInterceptors) {
  19027. var chain = [_dispatchRequest.default.bind(this), undefined];
  19028. chain.unshift.apply(chain, requestInterceptorChain);
  19029. chain.push.apply(chain, responseInterceptorChain);
  19030. len = chain.length;
  19031. promise = Promise.resolve(config);
  19032. while (i < len) {
  19033. promise = promise.then(chain[i++], chain[i++]);
  19034. }
  19035. return promise;
  19036. }
  19037. len = requestInterceptorChain.length;
  19038. var newConfig = config;
  19039. i = 0;
  19040. while (i < len) {
  19041. var onFulfilled = requestInterceptorChain[i++];
  19042. var onRejected = requestInterceptorChain[i++];
  19043. try {
  19044. newConfig = onFulfilled(newConfig);
  19045. } catch (error) {
  19046. onRejected.call(this, error);
  19047. break;
  19048. }
  19049. }
  19050. try {
  19051. promise = _dispatchRequest.default.call(this, newConfig);
  19052. } catch (error) {
  19053. return Promise.reject(error);
  19054. }
  19055. i = 0;
  19056. len = responseInterceptorChain.length;
  19057. while (i < len) {
  19058. promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
  19059. }
  19060. return promise;
  19061. }
  19062. }, {
  19063. key: "getUri",
  19064. value: function getUri(config) {
  19065. config = (0, _mergeConfig.default)(this.defaults, config);
  19066. var fullPath = (0, _buildFullPath.default)(config.baseURL, config.url, config.allowAbsoluteUrls);
  19067. return (0, _buildURL.default)(fullPath, config.params, config.paramsSerializer);
  19068. }
  19069. }]);
  19070. return Axios;
  19071. }(); // Provide aliases for supported request methods
  19072. _utils.default.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  19073. /*eslint func-names:0*/
  19074. Axios.prototype[method] = function (url, config) {
  19075. return this.request((0, _mergeConfig.default)(config || {}, {
  19076. method: method,
  19077. url: url,
  19078. data: (config || {}).data
  19079. }));
  19080. };
  19081. });
  19082. _utils.default.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  19083. /*eslint func-names:0*/
  19084. function generateHTTPMethod(isForm) {
  19085. return function httpMethod(url, data, config) {
  19086. return this.request((0, _mergeConfig.default)(config || {}, {
  19087. method: method,
  19088. headers: isForm ? {
  19089. 'Content-Type': 'multipart/form-data'
  19090. } : {},
  19091. url: url,
  19092. data: data
  19093. }));
  19094. };
  19095. }
  19096. Axios.prototype[method] = generateHTTPMethod();
  19097. Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
  19098. });
  19099. var _default = Axios;
  19100. exports.default = _default;
  19101. /***/ }),
  19102. /* 181 */
  19103. /*!******************************************************************************!*\
  19104. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/buildURL.js ***!
  19105. \******************************************************************************/
  19106. /*! no static exports found */
  19107. /***/ (function(module, exports, __webpack_require__) {
  19108. "use strict";
  19109. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19110. Object.defineProperty(exports, "__esModule", {
  19111. value: true
  19112. });
  19113. exports.default = buildURL;
  19114. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  19115. var _AxiosURLSearchParams = _interopRequireDefault(__webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ 182));
  19116. /**
  19117. * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
  19118. * URI encoded counterparts
  19119. *
  19120. * @param {string} val The value to be encoded.
  19121. *
  19122. * @returns {string} The encoded value.
  19123. */
  19124. function encode(val) {
  19125. return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  19126. }
  19127. /**
  19128. * Build a URL by appending params to the end
  19129. *
  19130. * @param {string} url The base of the url (e.g., http://www.google.com)
  19131. * @param {object} [params] The params to be appended
  19132. * @param {?(object|Function)} options
  19133. *
  19134. * @returns {string} The formatted url
  19135. */
  19136. function buildURL(url, params, options) {
  19137. /*eslint no-param-reassign:0*/
  19138. if (!params) {
  19139. return url;
  19140. }
  19141. var _encode = options && options.encode || encode;
  19142. if (_utils.default.isFunction(options)) {
  19143. options = {
  19144. serialize: options
  19145. };
  19146. }
  19147. var serializeFn = options && options.serialize;
  19148. var serializedParams;
  19149. if (serializeFn) {
  19150. serializedParams = serializeFn(params, options);
  19151. } else {
  19152. serializedParams = _utils.default.isURLSearchParams(params) ? params.toString() : new _AxiosURLSearchParams.default(params, options).toString(_encode);
  19153. }
  19154. if (serializedParams) {
  19155. var hashmarkIndex = url.indexOf("#");
  19156. if (hashmarkIndex !== -1) {
  19157. url = url.slice(0, hashmarkIndex);
  19158. }
  19159. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  19160. }
  19161. return url;
  19162. }
  19163. /***/ }),
  19164. /* 182 */
  19165. /*!******************************************************************************************!*\
  19166. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***!
  19167. \******************************************************************************************/
  19168. /*! no static exports found */
  19169. /***/ (function(module, exports, __webpack_require__) {
  19170. "use strict";
  19171. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19172. Object.defineProperty(exports, "__esModule", {
  19173. value: true
  19174. });
  19175. exports.default = void 0;
  19176. var _toFormData = _interopRequireDefault(__webpack_require__(/*! ./toFormData.js */ 183));
  19177. /**
  19178. * It encodes a string by replacing all characters that are not in the unreserved set with
  19179. * their percent-encoded equivalents
  19180. *
  19181. * @param {string} str - The string to encode.
  19182. *
  19183. * @returns {string} The encoded string.
  19184. */
  19185. function encode(str) {
  19186. var charMap = {
  19187. '!': '%21',
  19188. "'": '%27',
  19189. '(': '%28',
  19190. ')': '%29',
  19191. '~': '%7E',
  19192. '%20': '+',
  19193. '%00': '\x00'
  19194. };
  19195. return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
  19196. return charMap[match];
  19197. });
  19198. }
  19199. /**
  19200. * It takes a params object and converts it to a FormData object
  19201. *
  19202. * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
  19203. * @param {Object<string, any>} options - The options object passed to the Axios constructor.
  19204. *
  19205. * @returns {void}
  19206. */
  19207. function AxiosURLSearchParams(params, options) {
  19208. this._pairs = [];
  19209. params && (0, _toFormData.default)(params, this, options);
  19210. }
  19211. var prototype = AxiosURLSearchParams.prototype;
  19212. prototype.append = function append(name, value) {
  19213. this._pairs.push([name, value]);
  19214. };
  19215. prototype.toString = function toString(encoder) {
  19216. var _encode = encoder ? function (value) {
  19217. return encoder.call(this, value, encode);
  19218. } : encode;
  19219. return this._pairs.map(function each(pair) {
  19220. return _encode(pair[0]) + '=' + _encode(pair[1]);
  19221. }, '').join('&');
  19222. };
  19223. var _default = AxiosURLSearchParams;
  19224. exports.default = _default;
  19225. /***/ }),
  19226. /* 183 */
  19227. /*!********************************************************************************!*\
  19228. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/toFormData.js ***!
  19229. \********************************************************************************/
  19230. /*! no static exports found */
  19231. /***/ (function(module, exports, __webpack_require__) {
  19232. "use strict";
  19233. /* WEBPACK VAR INJECTION */(function(Buffer) {
  19234. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19235. Object.defineProperty(exports, "__esModule", {
  19236. value: true
  19237. });
  19238. exports.default = void 0;
  19239. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  19240. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  19241. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  19242. var _FormData = _interopRequireDefault(__webpack_require__(/*! ../platform/node/classes/FormData.js */ 185));
  19243. // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
  19244. /**
  19245. * Determines if the given thing is a array or js object.
  19246. *
  19247. * @param {string} thing - The object or array to be visited.
  19248. *
  19249. * @returns {boolean}
  19250. */
  19251. function isVisitable(thing) {
  19252. return _utils.default.isPlainObject(thing) || _utils.default.isArray(thing);
  19253. }
  19254. /**
  19255. * It removes the brackets from the end of a string
  19256. *
  19257. * @param {string} key - The key of the parameter.
  19258. *
  19259. * @returns {string} the key without the brackets.
  19260. */
  19261. function removeBrackets(key) {
  19262. return _utils.default.endsWith(key, '[]') ? key.slice(0, -2) : key;
  19263. }
  19264. /**
  19265. * It takes a path, a key, and a boolean, and returns a string
  19266. *
  19267. * @param {string} path - The path to the current key.
  19268. * @param {string} key - The key of the current object being iterated over.
  19269. * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
  19270. *
  19271. * @returns {string} The path to the current key.
  19272. */
  19273. function renderKey(path, key, dots) {
  19274. if (!path) return key;
  19275. return path.concat(key).map(function each(token, i) {
  19276. // eslint-disable-next-line no-param-reassign
  19277. token = removeBrackets(token);
  19278. return !dots && i ? '[' + token + ']' : token;
  19279. }).join(dots ? '.' : '');
  19280. }
  19281. /**
  19282. * If the array is an array and none of its elements are visitable, then it's a flat array.
  19283. *
  19284. * @param {Array<any>} arr - The array to check
  19285. *
  19286. * @returns {boolean}
  19287. */
  19288. function isFlatArray(arr) {
  19289. return _utils.default.isArray(arr) && !arr.some(isVisitable);
  19290. }
  19291. var predicates = _utils.default.toFlatObject(_utils.default, {}, null, function filter(prop) {
  19292. return /^is[A-Z]/.test(prop);
  19293. });
  19294. /**
  19295. * Convert a data object to FormData
  19296. *
  19297. * @param {Object} obj
  19298. * @param {?Object} [formData]
  19299. * @param {?Object} [options]
  19300. * @param {Function} [options.visitor]
  19301. * @param {Boolean} [options.metaTokens = true]
  19302. * @param {Boolean} [options.dots = false]
  19303. * @param {?Boolean} [options.indexes = false]
  19304. *
  19305. * @returns {Object}
  19306. **/
  19307. /**
  19308. * It converts an object into a FormData object
  19309. *
  19310. * @param {Object<any, any>} obj - The object to convert to form data.
  19311. * @param {string} formData - The FormData object to append to.
  19312. * @param {Object<string, any>} options
  19313. *
  19314. * @returns
  19315. */
  19316. function toFormData(obj, formData, options) {
  19317. if (!_utils.default.isObject(obj)) {
  19318. throw new TypeError('target must be an object');
  19319. }
  19320. // eslint-disable-next-line no-param-reassign
  19321. formData = formData || new (_FormData.default || FormData)();
  19322. // eslint-disable-next-line no-param-reassign
  19323. options = _utils.default.toFlatObject(options, {
  19324. metaTokens: true,
  19325. dots: false,
  19326. indexes: false
  19327. }, false, function defined(option, source) {
  19328. // eslint-disable-next-line no-eq-null,eqeqeq
  19329. return !_utils.default.isUndefined(source[option]);
  19330. });
  19331. var metaTokens = options.metaTokens;
  19332. // eslint-disable-next-line no-use-before-define
  19333. var visitor = options.visitor || defaultVisitor;
  19334. var dots = options.dots;
  19335. var indexes = options.indexes;
  19336. var _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
  19337. var useBlob = _Blob && _utils.default.isSpecCompliantForm(formData);
  19338. if (!_utils.default.isFunction(visitor)) {
  19339. throw new TypeError('visitor must be a function');
  19340. }
  19341. function convertValue(value) {
  19342. if (value === null) return '';
  19343. if (_utils.default.isDate(value)) {
  19344. return value.toISOString();
  19345. }
  19346. if (!useBlob && _utils.default.isBlob(value)) {
  19347. throw new _AxiosError.default('Blob is not supported. Use a Buffer instead.');
  19348. }
  19349. if (_utils.default.isArrayBuffer(value) || _utils.default.isTypedArray(value)) {
  19350. return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
  19351. }
  19352. return value;
  19353. }
  19354. /**
  19355. * Default visitor.
  19356. *
  19357. * @param {*} value
  19358. * @param {String|Number} key
  19359. * @param {Array<String|Number>} path
  19360. * @this {FormData}
  19361. *
  19362. * @returns {boolean} return true to visit the each prop of the value recursively
  19363. */
  19364. function defaultVisitor(value, key, path) {
  19365. var arr = value;
  19366. if (value && !path && (0, _typeof2.default)(value) === 'object') {
  19367. if (_utils.default.endsWith(key, '{}')) {
  19368. // eslint-disable-next-line no-param-reassign
  19369. key = metaTokens ? key : key.slice(0, -2);
  19370. // eslint-disable-next-line no-param-reassign
  19371. value = JSON.stringify(value);
  19372. } else if (_utils.default.isArray(value) && isFlatArray(value) || (_utils.default.isFileList(value) || _utils.default.endsWith(key, '[]')) && (arr = _utils.default.toArray(value))) {
  19373. // eslint-disable-next-line no-param-reassign
  19374. key = removeBrackets(key);
  19375. arr.forEach(function each(el, index) {
  19376. !(_utils.default.isUndefined(el) || el === null) && formData.append(
  19377. // eslint-disable-next-line no-nested-ternary
  19378. indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + '[]', convertValue(el));
  19379. });
  19380. return false;
  19381. }
  19382. }
  19383. if (isVisitable(value)) {
  19384. return true;
  19385. }
  19386. formData.append(renderKey(path, key, dots), convertValue(value));
  19387. return false;
  19388. }
  19389. var stack = [];
  19390. var exposedHelpers = Object.assign(predicates, {
  19391. defaultVisitor: defaultVisitor,
  19392. convertValue: convertValue,
  19393. isVisitable: isVisitable
  19394. });
  19395. function build(value, path) {
  19396. if (_utils.default.isUndefined(value)) return;
  19397. if (stack.indexOf(value) !== -1) {
  19398. throw Error('Circular reference detected in ' + path.join('.'));
  19399. }
  19400. stack.push(value);
  19401. _utils.default.forEach(value, function each(el, key) {
  19402. var result = !(_utils.default.isUndefined(el) || el === null) && visitor.call(formData, el, _utils.default.isString(key) ? key.trim() : key, path, exposedHelpers);
  19403. if (result === true) {
  19404. build(el, path ? path.concat(key) : [key]);
  19405. }
  19406. });
  19407. stack.pop();
  19408. }
  19409. if (!_utils.default.isObject(obj)) {
  19410. throw new TypeError('data must be an object');
  19411. }
  19412. build(obj);
  19413. return formData;
  19414. }
  19415. var _default = toFormData;
  19416. exports.default = _default;
  19417. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 50).Buffer))
  19418. /***/ }),
  19419. /* 184 */
  19420. /*!*****************************************************************************!*\
  19421. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/AxiosError.js ***!
  19422. \*****************************************************************************/
  19423. /*! no static exports found */
  19424. /***/ (function(module, exports, __webpack_require__) {
  19425. "use strict";
  19426. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19427. Object.defineProperty(exports, "__esModule", {
  19428. value: true
  19429. });
  19430. exports.default = void 0;
  19431. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  19432. /**
  19433. * Create an Error with the specified message, config, error code, request and response.
  19434. *
  19435. * @param {string} message The error message.
  19436. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  19437. * @param {Object} [config] The config.
  19438. * @param {Object} [request] The request.
  19439. * @param {Object} [response] The response.
  19440. *
  19441. * @returns {Error} The created error.
  19442. */
  19443. function AxiosError(message, code, config, request, response) {
  19444. Error.call(this);
  19445. if (Error.captureStackTrace) {
  19446. Error.captureStackTrace(this, this.constructor);
  19447. } else {
  19448. this.stack = new Error().stack;
  19449. }
  19450. this.message = message;
  19451. this.name = 'AxiosError';
  19452. code && (this.code = code);
  19453. config && (this.config = config);
  19454. request && (this.request = request);
  19455. if (response) {
  19456. this.response = response;
  19457. this.status = response.status ? response.status : null;
  19458. }
  19459. }
  19460. _utils.default.inherits(AxiosError, Error, {
  19461. toJSON: function toJSON() {
  19462. return {
  19463. // Standard
  19464. message: this.message,
  19465. name: this.name,
  19466. // Microsoft
  19467. description: this.description,
  19468. number: this.number,
  19469. // Mozilla
  19470. fileName: this.fileName,
  19471. lineNumber: this.lineNumber,
  19472. columnNumber: this.columnNumber,
  19473. stack: this.stack,
  19474. // Axios
  19475. config: _utils.default.toJSONObject(this.config),
  19476. code: this.code,
  19477. status: this.status
  19478. };
  19479. }
  19480. });
  19481. var prototype = AxiosError.prototype;
  19482. var descriptors = {};
  19483. ['ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL'
  19484. // eslint-disable-next-line func-names
  19485. ].forEach(function (code) {
  19486. descriptors[code] = {
  19487. value: code
  19488. };
  19489. });
  19490. Object.defineProperties(AxiosError, descriptors);
  19491. Object.defineProperty(prototype, 'isAxiosError', {
  19492. value: true
  19493. });
  19494. // eslint-disable-next-line func-names
  19495. AxiosError.from = function (error, code, config, request, response, customProps) {
  19496. var axiosError = Object.create(prototype);
  19497. _utils.default.toFlatObject(error, axiosError, function filter(obj) {
  19498. return obj !== Error.prototype;
  19499. }, function (prop) {
  19500. return prop !== 'isAxiosError';
  19501. });
  19502. AxiosError.call(axiosError, error.message, code, config, request, response);
  19503. axiosError.cause = error;
  19504. axiosError.name = error.name;
  19505. customProps && Object.assign(axiosError, customProps);
  19506. return axiosError;
  19507. };
  19508. var _default = AxiosError;
  19509. exports.default = _default;
  19510. /***/ }),
  19511. /* 185 */
  19512. /*!**************************************************************************!*\
  19513. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/null.js ***!
  19514. \**************************************************************************/
  19515. /*! no static exports found */
  19516. /***/ (function(module, exports, __webpack_require__) {
  19517. "use strict";
  19518. Object.defineProperty(exports, "__esModule", {
  19519. value: true
  19520. });
  19521. exports.default = void 0;
  19522. // eslint-disable-next-line strict
  19523. var _default = null;
  19524. exports.default = _default;
  19525. /***/ }),
  19526. /* 186 */
  19527. /*!*************************************************************************************!*\
  19528. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/InterceptorManager.js ***!
  19529. \*************************************************************************************/
  19530. /*! no static exports found */
  19531. /***/ (function(module, exports, __webpack_require__) {
  19532. "use strict";
  19533. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19534. Object.defineProperty(exports, "__esModule", {
  19535. value: true
  19536. });
  19537. exports.default = void 0;
  19538. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  19539. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  19540. var _utils = _interopRequireDefault(__webpack_require__(/*! ./../utils.js */ 176));
  19541. var InterceptorManager = /*#__PURE__*/function () {
  19542. function InterceptorManager() {
  19543. (0, _classCallCheck2.default)(this, InterceptorManager);
  19544. this.handlers = [];
  19545. }
  19546. /**
  19547. * Add a new interceptor to the stack
  19548. *
  19549. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  19550. * @param {Function} rejected The function to handle `reject` for a `Promise`
  19551. *
  19552. * @return {Number} An ID used to remove interceptor later
  19553. */
  19554. (0, _createClass2.default)(InterceptorManager, [{
  19555. key: "use",
  19556. value: function use(fulfilled, rejected, options) {
  19557. this.handlers.push({
  19558. fulfilled: fulfilled,
  19559. rejected: rejected,
  19560. synchronous: options ? options.synchronous : false,
  19561. runWhen: options ? options.runWhen : null
  19562. });
  19563. return this.handlers.length - 1;
  19564. }
  19565. /**
  19566. * Remove an interceptor from the stack
  19567. *
  19568. * @param {Number} id The ID that was returned by `use`
  19569. *
  19570. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  19571. */
  19572. }, {
  19573. key: "eject",
  19574. value: function eject(id) {
  19575. if (this.handlers[id]) {
  19576. this.handlers[id] = null;
  19577. }
  19578. }
  19579. /**
  19580. * Clear all interceptors from the stack
  19581. *
  19582. * @returns {void}
  19583. */
  19584. }, {
  19585. key: "clear",
  19586. value: function clear() {
  19587. if (this.handlers) {
  19588. this.handlers = [];
  19589. }
  19590. }
  19591. /**
  19592. * Iterate over all the registered interceptors
  19593. *
  19594. * This method is particularly useful for skipping over any
  19595. * interceptors that may have become `null` calling `eject`.
  19596. *
  19597. * @param {Function} fn The function to call for each interceptor
  19598. *
  19599. * @returns {void}
  19600. */
  19601. }, {
  19602. key: "forEach",
  19603. value: function forEach(fn) {
  19604. _utils.default.forEach(this.handlers, function forEachHandler(h) {
  19605. if (h !== null) {
  19606. fn(h);
  19607. }
  19608. });
  19609. }
  19610. }]);
  19611. return InterceptorManager;
  19612. }();
  19613. var _default = InterceptorManager;
  19614. exports.default = _default;
  19615. /***/ }),
  19616. /* 187 */
  19617. /*!**********************************************************************************!*\
  19618. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/dispatchRequest.js ***!
  19619. \**********************************************************************************/
  19620. /*! no static exports found */
  19621. /***/ (function(module, exports, __webpack_require__) {
  19622. "use strict";
  19623. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19624. Object.defineProperty(exports, "__esModule", {
  19625. value: true
  19626. });
  19627. exports.default = dispatchRequest;
  19628. var _transformData = _interopRequireDefault(__webpack_require__(/*! ./transformData.js */ 188));
  19629. var _isCancel = _interopRequireDefault(__webpack_require__(/*! ../cancel/isCancel.js */ 201));
  19630. var _index = _interopRequireDefault(__webpack_require__(/*! ../defaults/index.js */ 189));
  19631. var _CanceledError = _interopRequireDefault(__webpack_require__(/*! ../cancel/CanceledError.js */ 202));
  19632. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosHeaders.js */ 199));
  19633. var _adapters = _interopRequireDefault(__webpack_require__(/*! ../adapters/adapters.js */ 203));
  19634. /**
  19635. * Throws a `CanceledError` if cancellation has been requested.
  19636. *
  19637. * @param {Object} config The config that is to be used for the request
  19638. *
  19639. * @returns {void}
  19640. */
  19641. function throwIfCancellationRequested(config) {
  19642. if (config.cancelToken) {
  19643. config.cancelToken.throwIfRequested();
  19644. }
  19645. if (config.signal && config.signal.aborted) {
  19646. throw new _CanceledError.default(null, config);
  19647. }
  19648. }
  19649. /**
  19650. * Dispatch a request to the server using the configured adapter.
  19651. *
  19652. * @param {object} config The config that is to be used for the request
  19653. *
  19654. * @returns {Promise} The Promise to be fulfilled
  19655. */
  19656. function dispatchRequest(config) {
  19657. throwIfCancellationRequested(config);
  19658. config.headers = _AxiosHeaders.default.from(config.headers);
  19659. // Transform request data
  19660. config.data = _transformData.default.call(config, config.transformRequest);
  19661. if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
  19662. config.headers.setContentType('application/x-www-form-urlencoded', false);
  19663. }
  19664. var adapter = _adapters.default.getAdapter(config.adapter || _index.default.adapter);
  19665. return adapter(config).then(function onAdapterResolution(response) {
  19666. throwIfCancellationRequested(config);
  19667. // Transform response data
  19668. response.data = _transformData.default.call(config, config.transformResponse, response);
  19669. response.headers = _AxiosHeaders.default.from(response.headers);
  19670. return response;
  19671. }, function onAdapterRejection(reason) {
  19672. if (!(0, _isCancel.default)(reason)) {
  19673. throwIfCancellationRequested(config);
  19674. // Transform response data
  19675. if (reason && reason.response) {
  19676. reason.response.data = _transformData.default.call(config, config.transformResponse, reason.response);
  19677. reason.response.headers = _AxiosHeaders.default.from(reason.response.headers);
  19678. }
  19679. }
  19680. return Promise.reject(reason);
  19681. });
  19682. }
  19683. /***/ }),
  19684. /* 188 */
  19685. /*!********************************************************************************!*\
  19686. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/transformData.js ***!
  19687. \********************************************************************************/
  19688. /*! no static exports found */
  19689. /***/ (function(module, exports, __webpack_require__) {
  19690. "use strict";
  19691. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19692. Object.defineProperty(exports, "__esModule", {
  19693. value: true
  19694. });
  19695. exports.default = transformData;
  19696. var _utils = _interopRequireDefault(__webpack_require__(/*! ./../utils.js */ 176));
  19697. var _index = _interopRequireDefault(__webpack_require__(/*! ../defaults/index.js */ 189));
  19698. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosHeaders.js */ 199));
  19699. /**
  19700. * Transform the data for a request or a response
  19701. *
  19702. * @param {Array|Function} fns A single function or Array of functions
  19703. * @param {?Object} response The response object
  19704. *
  19705. * @returns {*} The resulting transformed data
  19706. */
  19707. function transformData(fns, response) {
  19708. var config = this || _index.default;
  19709. var context = response || config;
  19710. var headers = _AxiosHeaders.default.from(context.headers);
  19711. var data = context.data;
  19712. _utils.default.forEach(fns, function transform(fn) {
  19713. data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
  19714. });
  19715. headers.normalize();
  19716. return data;
  19717. }
  19718. /***/ }),
  19719. /* 189 */
  19720. /*!****************************************************************************!*\
  19721. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/defaults/index.js ***!
  19722. \****************************************************************************/
  19723. /*! no static exports found */
  19724. /***/ (function(module, exports, __webpack_require__) {
  19725. "use strict";
  19726. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19727. Object.defineProperty(exports, "__esModule", {
  19728. value: true
  19729. });
  19730. exports.default = void 0;
  19731. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  19732. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  19733. var _transitional = _interopRequireDefault(__webpack_require__(/*! ./transitional.js */ 190));
  19734. var _toFormData = _interopRequireDefault(__webpack_require__(/*! ../helpers/toFormData.js */ 183));
  19735. var _toURLEncodedForm = _interopRequireDefault(__webpack_require__(/*! ../helpers/toURLEncodedForm.js */ 191));
  19736. var _index = _interopRequireDefault(__webpack_require__(/*! ../platform/index.js */ 192));
  19737. var _formDataToJSON = _interopRequireDefault(__webpack_require__(/*! ../helpers/formDataToJSON.js */ 198));
  19738. /**
  19739. * It takes a string, tries to parse it, and if it fails, it returns the stringified version
  19740. * of the input
  19741. *
  19742. * @param {any} rawValue - The value to be stringified.
  19743. * @param {Function} parser - A function that parses a string into a JavaScript object.
  19744. * @param {Function} encoder - A function that takes a value and returns a string.
  19745. *
  19746. * @returns {string} A stringified version of the rawValue.
  19747. */
  19748. function stringifySafely(rawValue, parser, encoder) {
  19749. if (_utils.default.isString(rawValue)) {
  19750. try {
  19751. (parser || JSON.parse)(rawValue);
  19752. return _utils.default.trim(rawValue);
  19753. } catch (e) {
  19754. if (e.name !== 'SyntaxError') {
  19755. throw e;
  19756. }
  19757. }
  19758. }
  19759. return (encoder || JSON.stringify)(rawValue);
  19760. }
  19761. var defaults = {
  19762. transitional: _transitional.default,
  19763. adapter: ['xhr', 'http', 'fetch'],
  19764. transformRequest: [function transformRequest(data, headers) {
  19765. var contentType = headers.getContentType() || '';
  19766. var hasJSONContentType = contentType.indexOf('application/json') > -1;
  19767. var isObjectPayload = _utils.default.isObject(data);
  19768. if (isObjectPayload && _utils.default.isHTMLForm(data)) {
  19769. data = new FormData(data);
  19770. }
  19771. var isFormData = _utils.default.isFormData(data);
  19772. if (isFormData) {
  19773. return hasJSONContentType ? JSON.stringify((0, _formDataToJSON.default)(data)) : data;
  19774. }
  19775. if (_utils.default.isArrayBuffer(data) || _utils.default.isBuffer(data) || _utils.default.isStream(data) || _utils.default.isFile(data) || _utils.default.isBlob(data) || _utils.default.isReadableStream(data)) {
  19776. return data;
  19777. }
  19778. if (_utils.default.isArrayBufferView(data)) {
  19779. return data.buffer;
  19780. }
  19781. if (_utils.default.isURLSearchParams(data)) {
  19782. headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
  19783. return data.toString();
  19784. }
  19785. var isFileList;
  19786. if (isObjectPayload) {
  19787. if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
  19788. return (0, _toURLEncodedForm.default)(data, this.formSerializer).toString();
  19789. }
  19790. if ((isFileList = _utils.default.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
  19791. var _FormData = this.env && this.env.FormData;
  19792. return (0, _toFormData.default)(isFileList ? {
  19793. 'files[]': data
  19794. } : data, _FormData && new _FormData(), this.formSerializer);
  19795. }
  19796. }
  19797. if (isObjectPayload || hasJSONContentType) {
  19798. headers.setContentType('application/json', false);
  19799. return stringifySafely(data);
  19800. }
  19801. return data;
  19802. }],
  19803. transformResponse: [function transformResponse(data) {
  19804. var transitional = this.transitional || defaults.transitional;
  19805. var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
  19806. var JSONRequested = this.responseType === 'json';
  19807. if (_utils.default.isResponse(data) || _utils.default.isReadableStream(data)) {
  19808. return data;
  19809. }
  19810. if (data && _utils.default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
  19811. var silentJSONParsing = transitional && transitional.silentJSONParsing;
  19812. var strictJSONParsing = !silentJSONParsing && JSONRequested;
  19813. try {
  19814. return JSON.parse(data);
  19815. } catch (e) {
  19816. if (strictJSONParsing) {
  19817. if (e.name === 'SyntaxError') {
  19818. throw _AxiosError.default.from(e, _AxiosError.default.ERR_BAD_RESPONSE, this, null, this.response);
  19819. }
  19820. throw e;
  19821. }
  19822. }
  19823. }
  19824. return data;
  19825. }],
  19826. /**
  19827. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  19828. * timeout is not created.
  19829. */
  19830. timeout: 0,
  19831. xsrfCookieName: 'XSRF-TOKEN',
  19832. xsrfHeaderName: 'X-XSRF-TOKEN',
  19833. maxContentLength: -1,
  19834. maxBodyLength: -1,
  19835. env: {
  19836. FormData: _index.default.classes.FormData,
  19837. Blob: _index.default.classes.Blob
  19838. },
  19839. validateStatus: function validateStatus(status) {
  19840. return status >= 200 && status < 300;
  19841. },
  19842. headers: {
  19843. common: {
  19844. 'Accept': 'application/json, text/plain, */*',
  19845. 'Content-Type': undefined
  19846. }
  19847. }
  19848. };
  19849. _utils.default.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], function (method) {
  19850. defaults.headers[method] = {};
  19851. });
  19852. var _default = defaults;
  19853. exports.default = _default;
  19854. /***/ }),
  19855. /* 190 */
  19856. /*!***********************************************************************************!*\
  19857. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/defaults/transitional.js ***!
  19858. \***********************************************************************************/
  19859. /*! no static exports found */
  19860. /***/ (function(module, exports, __webpack_require__) {
  19861. "use strict";
  19862. Object.defineProperty(exports, "__esModule", {
  19863. value: true
  19864. });
  19865. exports.default = void 0;
  19866. var _default = {
  19867. silentJSONParsing: true,
  19868. forcedJSONParsing: true,
  19869. clarifyTimeoutError: false
  19870. };
  19871. exports.default = _default;
  19872. /***/ }),
  19873. /* 191 */
  19874. /*!**************************************************************************************!*\
  19875. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/toURLEncodedForm.js ***!
  19876. \**************************************************************************************/
  19877. /*! no static exports found */
  19878. /***/ (function(module, exports, __webpack_require__) {
  19879. "use strict";
  19880. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19881. Object.defineProperty(exports, "__esModule", {
  19882. value: true
  19883. });
  19884. exports.default = toURLEncodedForm;
  19885. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  19886. var _toFormData = _interopRequireDefault(__webpack_require__(/*! ./toFormData.js */ 183));
  19887. var _index = _interopRequireDefault(__webpack_require__(/*! ../platform/index.js */ 192));
  19888. function toURLEncodedForm(data, options) {
  19889. return (0, _toFormData.default)(data, new _index.default.classes.URLSearchParams(), Object.assign({
  19890. visitor: function visitor(value, key, path, helpers) {
  19891. if (_index.default.isNode && _utils.default.isBuffer(value)) {
  19892. this.append(key, value.toString('base64'));
  19893. return false;
  19894. }
  19895. return helpers.defaultVisitor.apply(this, arguments);
  19896. }
  19897. }, options));
  19898. }
  19899. /***/ }),
  19900. /* 192 */
  19901. /*!****************************************************************************!*\
  19902. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/platform/index.js ***!
  19903. \****************************************************************************/
  19904. /*! no static exports found */
  19905. /***/ (function(module, exports, __webpack_require__) {
  19906. "use strict";
  19907. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19908. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19909. Object.defineProperty(exports, "__esModule", {
  19910. value: true
  19911. });
  19912. exports.default = void 0;
  19913. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19914. var _index = _interopRequireDefault(__webpack_require__(/*! ./node/index.js */ 193));
  19915. var utils = _interopRequireWildcard(__webpack_require__(/*! ./common/utils.js */ 197));
  19916. 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); }
  19917. 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; }
  19918. 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; }
  19919. 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; }
  19920. var _default = _objectSpread(_objectSpread({}, utils), _index.default);
  19921. exports.default = _default;
  19922. /***/ }),
  19923. /* 193 */
  19924. /*!************************************************************************************!*\
  19925. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/platform/browser/index.js ***!
  19926. \************************************************************************************/
  19927. /*! no static exports found */
  19928. /***/ (function(module, exports, __webpack_require__) {
  19929. "use strict";
  19930. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19931. Object.defineProperty(exports, "__esModule", {
  19932. value: true
  19933. });
  19934. exports.default = void 0;
  19935. var _URLSearchParams = _interopRequireDefault(__webpack_require__(/*! ./classes/URLSearchParams.js */ 194));
  19936. var _FormData = _interopRequireDefault(__webpack_require__(/*! ./classes/FormData.js */ 195));
  19937. var _Blob = _interopRequireDefault(__webpack_require__(/*! ./classes/Blob.js */ 196));
  19938. var _default = {
  19939. isBrowser: true,
  19940. classes: {
  19941. URLSearchParams: _URLSearchParams.default,
  19942. FormData: _FormData.default,
  19943. Blob: _Blob.default
  19944. },
  19945. protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
  19946. };
  19947. exports.default = _default;
  19948. /***/ }),
  19949. /* 194 */
  19950. /*!******************************************************************************************************!*\
  19951. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***!
  19952. \******************************************************************************************************/
  19953. /*! no static exports found */
  19954. /***/ (function(module, exports, __webpack_require__) {
  19955. "use strict";
  19956. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19957. Object.defineProperty(exports, "__esModule", {
  19958. value: true
  19959. });
  19960. exports.default = void 0;
  19961. var _AxiosURLSearchParams = _interopRequireDefault(__webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ 182));
  19962. var _default = typeof URLSearchParams !== 'undefined' ? URLSearchParams : _AxiosURLSearchParams.default;
  19963. exports.default = _default;
  19964. /***/ }),
  19965. /* 195 */
  19966. /*!***********************************************************************************************!*\
  19967. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/platform/browser/classes/FormData.js ***!
  19968. \***********************************************************************************************/
  19969. /*! no static exports found */
  19970. /***/ (function(module, exports, __webpack_require__) {
  19971. "use strict";
  19972. Object.defineProperty(exports, "__esModule", {
  19973. value: true
  19974. });
  19975. exports.default = void 0;
  19976. var _default = typeof FormData !== 'undefined' ? FormData : null;
  19977. exports.default = _default;
  19978. /***/ }),
  19979. /* 196 */
  19980. /*!*******************************************************************************************!*\
  19981. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/platform/browser/classes/Blob.js ***!
  19982. \*******************************************************************************************/
  19983. /*! no static exports found */
  19984. /***/ (function(module, exports, __webpack_require__) {
  19985. "use strict";
  19986. Object.defineProperty(exports, "__esModule", {
  19987. value: true
  19988. });
  19989. exports.default = void 0;
  19990. var _default = typeof Blob !== 'undefined' ? Blob : null;
  19991. exports.default = _default;
  19992. /***/ }),
  19993. /* 197 */
  19994. /*!***********************************************************************************!*\
  19995. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/platform/common/utils.js ***!
  19996. \***********************************************************************************/
  19997. /*! no static exports found */
  19998. /***/ (function(module, exports, __webpack_require__) {
  19999. "use strict";
  20000. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20001. Object.defineProperty(exports, "__esModule", {
  20002. value: true
  20003. });
  20004. exports.origin = exports.navigator = exports.hasStandardBrowserWebWorkerEnv = exports.hasStandardBrowserEnv = exports.hasBrowserEnv = void 0;
  20005. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  20006. var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
  20007. exports.hasBrowserEnv = hasBrowserEnv;
  20008. var _navigator = (typeof navigator === "undefined" ? "undefined" : (0, _typeof2.default)(navigator)) === 'object' && navigator || undefined;
  20009. /**
  20010. * Determine if we're running in a standard browser environment
  20011. *
  20012. * This allows axios to run in a web worker, and react-native.
  20013. * Both environments support XMLHttpRequest, but not fully standard globals.
  20014. *
  20015. * web workers:
  20016. * typeof window -> undefined
  20017. * typeof document -> undefined
  20018. *
  20019. * react-native:
  20020. * navigator.product -> 'ReactNative'
  20021. * nativescript
  20022. * navigator.product -> 'NativeScript' or 'NS'
  20023. *
  20024. * @returns {boolean}
  20025. */
  20026. exports.navigator = _navigator;
  20027. var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
  20028. /**
  20029. * Determine if we're running in a standard browser webWorker environment
  20030. *
  20031. * Although the `isStandardBrowserEnv` method indicates that
  20032. * `allows axios to run in a web worker`, the WebWorker will still be
  20033. * filtered out due to its judgment standard
  20034. * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
  20035. * This leads to a problem when axios post `FormData` in webWorker
  20036. */
  20037. exports.hasStandardBrowserEnv = hasStandardBrowserEnv;
  20038. var hasStandardBrowserWebWorkerEnv = function () {
  20039. return typeof WorkerGlobalScope !== 'undefined' &&
  20040. // eslint-disable-next-line no-undef
  20041. self instanceof WorkerGlobalScope && typeof self.importScripts === 'function';
  20042. }();
  20043. exports.hasStandardBrowserWebWorkerEnv = hasStandardBrowserWebWorkerEnv;
  20044. var origin = hasBrowserEnv && window.location.href || 'http://localhost';
  20045. exports.origin = origin;
  20046. /***/ }),
  20047. /* 198 */
  20048. /*!************************************************************************************!*\
  20049. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/formDataToJSON.js ***!
  20050. \************************************************************************************/
  20051. /*! no static exports found */
  20052. /***/ (function(module, exports, __webpack_require__) {
  20053. "use strict";
  20054. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20055. Object.defineProperty(exports, "__esModule", {
  20056. value: true
  20057. });
  20058. exports.default = void 0;
  20059. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  20060. /**
  20061. * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
  20062. *
  20063. * @param {string} name - The name of the property to get.
  20064. *
  20065. * @returns An array of strings.
  20066. */
  20067. function parsePropPath(name) {
  20068. // foo[x][y][z]
  20069. // foo.x.y.z
  20070. // foo-x-y-z
  20071. // foo x y z
  20072. return _utils.default.matchAll(/\w+|\[(\w*)]/g, name).map(function (match) {
  20073. return match[0] === '[]' ? '' : match[1] || match[0];
  20074. });
  20075. }
  20076. /**
  20077. * Convert an array to an object.
  20078. *
  20079. * @param {Array<any>} arr - The array to convert to an object.
  20080. *
  20081. * @returns An object with the same keys and values as the array.
  20082. */
  20083. function arrayToObject(arr) {
  20084. var obj = {};
  20085. var keys = Object.keys(arr);
  20086. var i;
  20087. var len = keys.length;
  20088. var key;
  20089. for (i = 0; i < len; i++) {
  20090. key = keys[i];
  20091. obj[key] = arr[key];
  20092. }
  20093. return obj;
  20094. }
  20095. /**
  20096. * It takes a FormData object and returns a JavaScript object
  20097. *
  20098. * @param {string} formData The FormData object to convert to JSON.
  20099. *
  20100. * @returns {Object<string, any> | null} The converted object.
  20101. */
  20102. function formDataToJSON(formData) {
  20103. function buildPath(path, value, target, index) {
  20104. var name = path[index++];
  20105. if (name === '__proto__') return true;
  20106. var isNumericKey = Number.isFinite(+name);
  20107. var isLast = index >= path.length;
  20108. name = !name && _utils.default.isArray(target) ? target.length : name;
  20109. if (isLast) {
  20110. if (_utils.default.hasOwnProp(target, name)) {
  20111. target[name] = [target[name], value];
  20112. } else {
  20113. target[name] = value;
  20114. }
  20115. return !isNumericKey;
  20116. }
  20117. if (!target[name] || !_utils.default.isObject(target[name])) {
  20118. target[name] = [];
  20119. }
  20120. var result = buildPath(path, value, target[name], index);
  20121. if (result && _utils.default.isArray(target[name])) {
  20122. target[name] = arrayToObject(target[name]);
  20123. }
  20124. return !isNumericKey;
  20125. }
  20126. if (_utils.default.isFormData(formData) && _utils.default.isFunction(formData.entries)) {
  20127. var obj = {};
  20128. _utils.default.forEachEntry(formData, function (name, value) {
  20129. buildPath(parsePropPath(name), value, obj, 0);
  20130. });
  20131. return obj;
  20132. }
  20133. return null;
  20134. }
  20135. var _default = formDataToJSON;
  20136. exports.default = _default;
  20137. /***/ }),
  20138. /* 199 */
  20139. /*!*******************************************************************************!*\
  20140. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/AxiosHeaders.js ***!
  20141. \*******************************************************************************/
  20142. /*! no static exports found */
  20143. /***/ (function(module, exports, __webpack_require__) {
  20144. "use strict";
  20145. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20146. Object.defineProperty(exports, "__esModule", {
  20147. value: true
  20148. });
  20149. exports.default = void 0;
  20150. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  20151. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  20152. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  20153. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  20154. var _parseHeaders = _interopRequireDefault(__webpack_require__(/*! ../helpers/parseHeaders.js */ 200));
  20155. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  20156. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  20157. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  20158. var $internals = Symbol('internals');
  20159. function normalizeHeader(header) {
  20160. return header && String(header).trim().toLowerCase();
  20161. }
  20162. function normalizeValue(value) {
  20163. if (value === false || value == null) {
  20164. return value;
  20165. }
  20166. return _utils.default.isArray(value) ? value.map(normalizeValue) : String(value);
  20167. }
  20168. function parseTokens(str) {
  20169. var tokens = Object.create(null);
  20170. var tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  20171. var match;
  20172. while (match = tokensRE.exec(str)) {
  20173. tokens[match[1]] = match[2];
  20174. }
  20175. return tokens;
  20176. }
  20177. var isValidHeaderName = function isValidHeaderName(str) {
  20178. return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
  20179. };
  20180. function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
  20181. if (_utils.default.isFunction(filter)) {
  20182. return filter.call(this, value, header);
  20183. }
  20184. if (isHeaderNameFilter) {
  20185. value = header;
  20186. }
  20187. if (!_utils.default.isString(value)) return;
  20188. if (_utils.default.isString(filter)) {
  20189. return value.indexOf(filter) !== -1;
  20190. }
  20191. if (_utils.default.isRegExp(filter)) {
  20192. return filter.test(value);
  20193. }
  20194. }
  20195. function formatHeader(header) {
  20196. return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function (w, char, str) {
  20197. return char.toUpperCase() + str;
  20198. });
  20199. }
  20200. function buildAccessors(obj, header) {
  20201. var accessorName = _utils.default.toCamelCase(' ' + header);
  20202. ['get', 'set', 'has'].forEach(function (methodName) {
  20203. Object.defineProperty(obj, methodName + accessorName, {
  20204. value: function value(arg1, arg2, arg3) {
  20205. return this[methodName].call(this, header, arg1, arg2, arg3);
  20206. },
  20207. configurable: true
  20208. });
  20209. });
  20210. }
  20211. var AxiosHeaders = /*#__PURE__*/function (_Symbol$iterator, _Symbol$toStringTag) {
  20212. function AxiosHeaders(headers) {
  20213. (0, _classCallCheck2.default)(this, AxiosHeaders);
  20214. headers && this.set(headers);
  20215. }
  20216. (0, _createClass2.default)(AxiosHeaders, [{
  20217. key: "set",
  20218. value: function set(header, valueOrRewrite, rewrite) {
  20219. var self = this;
  20220. function setHeader(_value, _header, _rewrite) {
  20221. var lHeader = normalizeHeader(_header);
  20222. if (!lHeader) {
  20223. throw new Error('header name must be a non-empty string');
  20224. }
  20225. var key = _utils.default.findKey(self, lHeader);
  20226. if (!key || self[key] === undefined || _rewrite === true || _rewrite === undefined && self[key] !== false) {
  20227. self[key || _header] = normalizeValue(_value);
  20228. }
  20229. }
  20230. var setHeaders = function setHeaders(headers, _rewrite) {
  20231. return _utils.default.forEach(headers, function (_value, _header) {
  20232. return setHeader(_value, _header, _rewrite);
  20233. });
  20234. };
  20235. if (_utils.default.isPlainObject(header) || header instanceof this.constructor) {
  20236. setHeaders(header, valueOrRewrite);
  20237. } else if (_utils.default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
  20238. setHeaders((0, _parseHeaders.default)(header), valueOrRewrite);
  20239. } else if (_utils.default.isHeaders(header)) {
  20240. var _iterator = _createForOfIteratorHelper(header.entries()),
  20241. _step;
  20242. try {
  20243. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  20244. var _step$value = (0, _slicedToArray2.default)(_step.value, 2),
  20245. key = _step$value[0],
  20246. value = _step$value[1];
  20247. setHeader(value, key, rewrite);
  20248. }
  20249. } catch (err) {
  20250. _iterator.e(err);
  20251. } finally {
  20252. _iterator.f();
  20253. }
  20254. } else {
  20255. header != null && setHeader(valueOrRewrite, header, rewrite);
  20256. }
  20257. return this;
  20258. }
  20259. }, {
  20260. key: "get",
  20261. value: function get(header, parser) {
  20262. header = normalizeHeader(header);
  20263. if (header) {
  20264. var key = _utils.default.findKey(this, header);
  20265. if (key) {
  20266. var value = this[key];
  20267. if (!parser) {
  20268. return value;
  20269. }
  20270. if (parser === true) {
  20271. return parseTokens(value);
  20272. }
  20273. if (_utils.default.isFunction(parser)) {
  20274. return parser.call(this, value, key);
  20275. }
  20276. if (_utils.default.isRegExp(parser)) {
  20277. return parser.exec(value);
  20278. }
  20279. throw new TypeError('parser must be boolean|regexp|function');
  20280. }
  20281. }
  20282. }
  20283. }, {
  20284. key: "has",
  20285. value: function has(header, matcher) {
  20286. header = normalizeHeader(header);
  20287. if (header) {
  20288. var key = _utils.default.findKey(this, header);
  20289. return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
  20290. }
  20291. return false;
  20292. }
  20293. }, {
  20294. key: "delete",
  20295. value: function _delete(header, matcher) {
  20296. var self = this;
  20297. var deleted = false;
  20298. function deleteHeader(_header) {
  20299. _header = normalizeHeader(_header);
  20300. if (_header) {
  20301. var key = _utils.default.findKey(self, _header);
  20302. if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
  20303. delete self[key];
  20304. deleted = true;
  20305. }
  20306. }
  20307. }
  20308. if (_utils.default.isArray(header)) {
  20309. header.forEach(deleteHeader);
  20310. } else {
  20311. deleteHeader(header);
  20312. }
  20313. return deleted;
  20314. }
  20315. }, {
  20316. key: "clear",
  20317. value: function clear(matcher) {
  20318. var keys = Object.keys(this);
  20319. var i = keys.length;
  20320. var deleted = false;
  20321. while (i--) {
  20322. var key = keys[i];
  20323. if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
  20324. delete this[key];
  20325. deleted = true;
  20326. }
  20327. }
  20328. return deleted;
  20329. }
  20330. }, {
  20331. key: "normalize",
  20332. value: function normalize(format) {
  20333. var self = this;
  20334. var headers = {};
  20335. _utils.default.forEach(this, function (value, header) {
  20336. var key = _utils.default.findKey(headers, header);
  20337. if (key) {
  20338. self[key] = normalizeValue(value);
  20339. delete self[header];
  20340. return;
  20341. }
  20342. var normalized = format ? formatHeader(header) : String(header).trim();
  20343. if (normalized !== header) {
  20344. delete self[header];
  20345. }
  20346. self[normalized] = normalizeValue(value);
  20347. headers[normalized] = true;
  20348. });
  20349. return this;
  20350. }
  20351. }, {
  20352. key: "concat",
  20353. value: function concat() {
  20354. var _this$constructor;
  20355. for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) {
  20356. targets[_key] = arguments[_key];
  20357. }
  20358. return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(targets));
  20359. }
  20360. }, {
  20361. key: "toJSON",
  20362. value: function toJSON(asStrings) {
  20363. var obj = Object.create(null);
  20364. _utils.default.forEach(this, function (value, header) {
  20365. value != null && value !== false && (obj[header] = asStrings && _utils.default.isArray(value) ? value.join(', ') : value);
  20366. });
  20367. return obj;
  20368. }
  20369. }, {
  20370. key: _Symbol$iterator,
  20371. value: function value() {
  20372. return Object.entries(this.toJSON())[Symbol.iterator]();
  20373. }
  20374. }, {
  20375. key: "toString",
  20376. value: function toString() {
  20377. return Object.entries(this.toJSON()).map(function (_ref) {
  20378. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  20379. header = _ref2[0],
  20380. value = _ref2[1];
  20381. return header + ': ' + value;
  20382. }).join('\n');
  20383. }
  20384. }, {
  20385. key: _Symbol$toStringTag,
  20386. get: function get() {
  20387. return 'AxiosHeaders';
  20388. }
  20389. }], [{
  20390. key: "from",
  20391. value: function from(thing) {
  20392. return thing instanceof this ? thing : new this(thing);
  20393. }
  20394. }, {
  20395. key: "concat",
  20396. value: function concat(first) {
  20397. var computed = new this(first);
  20398. for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  20399. targets[_key2 - 1] = arguments[_key2];
  20400. }
  20401. targets.forEach(function (target) {
  20402. return computed.set(target);
  20403. });
  20404. return computed;
  20405. }
  20406. }, {
  20407. key: "accessor",
  20408. value: function accessor(header) {
  20409. var internals = this[$internals] = this[$internals] = {
  20410. accessors: {}
  20411. };
  20412. var accessors = internals.accessors;
  20413. var prototype = this.prototype;
  20414. function defineAccessor(_header) {
  20415. var lHeader = normalizeHeader(_header);
  20416. if (!accessors[lHeader]) {
  20417. buildAccessors(prototype, _header);
  20418. accessors[lHeader] = true;
  20419. }
  20420. }
  20421. _utils.default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
  20422. return this;
  20423. }
  20424. }]);
  20425. return AxiosHeaders;
  20426. }(Symbol.iterator, Symbol.toStringTag);
  20427. AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
  20428. // reserved names hotfix
  20429. _utils.default.reduceDescriptors(AxiosHeaders.prototype, function (_ref3, key) {
  20430. var value = _ref3.value;
  20431. var mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
  20432. return {
  20433. get: function get() {
  20434. return value;
  20435. },
  20436. set: function set(headerValue) {
  20437. this[mapped] = headerValue;
  20438. }
  20439. };
  20440. });
  20441. _utils.default.freezeMethods(AxiosHeaders);
  20442. var _default = AxiosHeaders;
  20443. exports.default = _default;
  20444. /***/ }),
  20445. /* 200 */
  20446. /*!**********************************************************************************!*\
  20447. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/parseHeaders.js ***!
  20448. \**********************************************************************************/
  20449. /*! no static exports found */
  20450. /***/ (function(module, exports, __webpack_require__) {
  20451. "use strict";
  20452. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20453. Object.defineProperty(exports, "__esModule", {
  20454. value: true
  20455. });
  20456. exports.default = void 0;
  20457. var _utils = _interopRequireDefault(__webpack_require__(/*! ./../utils.js */ 176));
  20458. // RawAxiosHeaders whose duplicates are ignored by node
  20459. // c.f. https://nodejs.org/api/http.html#http_message_headers
  20460. var ignoreDuplicateOf = _utils.default.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']);
  20461. /**
  20462. * Parse headers into an object
  20463. *
  20464. * ```
  20465. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  20466. * Content-Type: application/json
  20467. * Connection: keep-alive
  20468. * Transfer-Encoding: chunked
  20469. * ```
  20470. *
  20471. * @param {String} rawHeaders Headers needing to be parsed
  20472. *
  20473. * @returns {Object} Headers parsed into an object
  20474. */
  20475. var _default = function _default(rawHeaders) {
  20476. var parsed = {};
  20477. var key;
  20478. var val;
  20479. var i;
  20480. rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
  20481. i = line.indexOf(':');
  20482. key = line.substring(0, i).trim().toLowerCase();
  20483. val = line.substring(i + 1).trim();
  20484. if (!key || parsed[key] && ignoreDuplicateOf[key]) {
  20485. return;
  20486. }
  20487. if (key === 'set-cookie') {
  20488. if (parsed[key]) {
  20489. parsed[key].push(val);
  20490. } else {
  20491. parsed[key] = [val];
  20492. }
  20493. } else {
  20494. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  20495. }
  20496. });
  20497. return parsed;
  20498. };
  20499. exports.default = _default;
  20500. /***/ }),
  20501. /* 201 */
  20502. /*!*****************************************************************************!*\
  20503. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/cancel/isCancel.js ***!
  20504. \*****************************************************************************/
  20505. /*! no static exports found */
  20506. /***/ (function(module, exports, __webpack_require__) {
  20507. "use strict";
  20508. Object.defineProperty(exports, "__esModule", {
  20509. value: true
  20510. });
  20511. exports.default = isCancel;
  20512. function isCancel(value) {
  20513. return !!(value && value.__CANCEL__);
  20514. }
  20515. /***/ }),
  20516. /* 202 */
  20517. /*!**********************************************************************************!*\
  20518. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/cancel/CanceledError.js ***!
  20519. \**********************************************************************************/
  20520. /*! no static exports found */
  20521. /***/ (function(module, exports, __webpack_require__) {
  20522. "use strict";
  20523. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20524. Object.defineProperty(exports, "__esModule", {
  20525. value: true
  20526. });
  20527. exports.default = void 0;
  20528. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  20529. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  20530. /**
  20531. * A `CanceledError` is an object that is thrown when an operation is canceled.
  20532. *
  20533. * @param {string=} message The message.
  20534. * @param {Object=} config The config.
  20535. * @param {Object=} request The request.
  20536. *
  20537. * @returns {CanceledError} The created error.
  20538. */
  20539. function CanceledError(message, config, request) {
  20540. // eslint-disable-next-line no-eq-null,eqeqeq
  20541. _AxiosError.default.call(this, message == null ? 'canceled' : message, _AxiosError.default.ERR_CANCELED, config, request);
  20542. this.name = 'CanceledError';
  20543. }
  20544. _utils.default.inherits(CanceledError, _AxiosError.default, {
  20545. __CANCEL__: true
  20546. });
  20547. var _default = CanceledError;
  20548. exports.default = _default;
  20549. /***/ }),
  20550. /* 203 */
  20551. /*!*******************************************************************************!*\
  20552. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/adapters/adapters.js ***!
  20553. \*******************************************************************************/
  20554. /*! no static exports found */
  20555. /***/ (function(module, exports, __webpack_require__) {
  20556. "use strict";
  20557. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20558. Object.defineProperty(exports, "__esModule", {
  20559. value: true
  20560. });
  20561. exports.default = void 0;
  20562. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  20563. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  20564. var _http = _interopRequireDefault(__webpack_require__(/*! ./http.js */ 185));
  20565. var _xhr = _interopRequireDefault(__webpack_require__(/*! ./xhr.js */ 204));
  20566. var _fetch = _interopRequireDefault(__webpack_require__(/*! ./fetch.js */ 217));
  20567. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  20568. var knownAdapters = {
  20569. http: _http.default,
  20570. xhr: _xhr.default,
  20571. fetch: _fetch.default
  20572. };
  20573. _utils.default.forEach(knownAdapters, function (fn, value) {
  20574. if (fn) {
  20575. try {
  20576. Object.defineProperty(fn, 'name', {
  20577. value: value
  20578. });
  20579. } catch (e) {
  20580. // eslint-disable-next-line no-empty
  20581. }
  20582. Object.defineProperty(fn, 'adapterName', {
  20583. value: value
  20584. });
  20585. }
  20586. });
  20587. var renderReason = function renderReason(reason) {
  20588. return "- ".concat(reason);
  20589. };
  20590. var isResolvedHandle = function isResolvedHandle(adapter) {
  20591. return _utils.default.isFunction(adapter) || adapter === null || adapter === false;
  20592. };
  20593. var _default = {
  20594. getAdapter: function getAdapter(adapters) {
  20595. adapters = _utils.default.isArray(adapters) ? adapters : [adapters];
  20596. var _adapters = adapters,
  20597. length = _adapters.length;
  20598. var nameOrAdapter;
  20599. var adapter;
  20600. var rejectedReasons = {};
  20601. for (var i = 0; i < length; i++) {
  20602. nameOrAdapter = adapters[i];
  20603. var id = void 0;
  20604. adapter = nameOrAdapter;
  20605. if (!isResolvedHandle(nameOrAdapter)) {
  20606. adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
  20607. if (adapter === undefined) {
  20608. throw new _AxiosError.default("Unknown adapter '".concat(id, "'"));
  20609. }
  20610. }
  20611. if (adapter) {
  20612. break;
  20613. }
  20614. rejectedReasons[id || '#' + i] = adapter;
  20615. }
  20616. if (!adapter) {
  20617. var reasons = Object.entries(rejectedReasons).map(function (_ref) {
  20618. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  20619. id = _ref2[0],
  20620. state = _ref2[1];
  20621. return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build');
  20622. });
  20623. var s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
  20624. throw new _AxiosError.default("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
  20625. }
  20626. return adapter;
  20627. },
  20628. adapters: knownAdapters
  20629. };
  20630. exports.default = _default;
  20631. /***/ }),
  20632. /* 204 */
  20633. /*!**************************************************************************!*\
  20634. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/adapters/xhr.js ***!
  20635. \**************************************************************************/
  20636. /*! no static exports found */
  20637. /***/ (function(module, exports, __webpack_require__) {
  20638. "use strict";
  20639. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20640. Object.defineProperty(exports, "__esModule", {
  20641. value: true
  20642. });
  20643. exports.default = void 0;
  20644. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  20645. var _utils = _interopRequireDefault(__webpack_require__(/*! ./../utils.js */ 176));
  20646. var _settle = _interopRequireDefault(__webpack_require__(/*! ./../core/settle.js */ 205));
  20647. var _transitional = _interopRequireDefault(__webpack_require__(/*! ../defaults/transitional.js */ 190));
  20648. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  20649. var _CanceledError = _interopRequireDefault(__webpack_require__(/*! ../cancel/CanceledError.js */ 202));
  20650. var _parseProtocol = _interopRequireDefault(__webpack_require__(/*! ../helpers/parseProtocol.js */ 206));
  20651. var _index = _interopRequireDefault(__webpack_require__(/*! ../platform/index.js */ 192));
  20652. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosHeaders.js */ 199));
  20653. var _progressEventReducer5 = __webpack_require__(/*! ../helpers/progressEventReducer.js */ 207);
  20654. var _resolveConfig = _interopRequireDefault(__webpack_require__(/*! ../helpers/resolveConfig.js */ 210));
  20655. var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
  20656. var _default = isXHRAdapterSupported && function (config) {
  20657. return new Promise(function dispatchXhrRequest(resolve, reject) {
  20658. var _config = (0, _resolveConfig.default)(config);
  20659. var requestData = _config.data;
  20660. var requestHeaders = _AxiosHeaders.default.from(_config.headers).normalize();
  20661. var responseType = _config.responseType,
  20662. onUploadProgress = _config.onUploadProgress,
  20663. onDownloadProgress = _config.onDownloadProgress;
  20664. var onCanceled;
  20665. var uploadThrottled, downloadThrottled;
  20666. var flushUpload, flushDownload;
  20667. function done() {
  20668. flushUpload && flushUpload(); // flush events
  20669. flushDownload && flushDownload(); // flush events
  20670. _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
  20671. _config.signal && _config.signal.removeEventListener('abort', onCanceled);
  20672. }
  20673. var request = new XMLHttpRequest();
  20674. request.open(_config.method.toUpperCase(), _config.url, true);
  20675. // Set the request timeout in MS
  20676. request.timeout = _config.timeout;
  20677. function onloadend() {
  20678. if (!request) {
  20679. return;
  20680. }
  20681. // Prepare the response
  20682. var responseHeaders = _AxiosHeaders.default.from('getAllResponseHeaders' in request && request.getAllResponseHeaders());
  20683. var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response;
  20684. var response = {
  20685. data: responseData,
  20686. status: request.status,
  20687. statusText: request.statusText,
  20688. headers: responseHeaders,
  20689. config: config,
  20690. request: request
  20691. };
  20692. (0, _settle.default)(function _resolve(value) {
  20693. resolve(value);
  20694. done();
  20695. }, function _reject(err) {
  20696. reject(err);
  20697. done();
  20698. }, response);
  20699. // Clean up request
  20700. request = null;
  20701. }
  20702. if ('onloadend' in request) {
  20703. // Use onloadend if available
  20704. request.onloadend = onloadend;
  20705. } else {
  20706. // Listen for ready state to emulate onloadend
  20707. request.onreadystatechange = function handleLoad() {
  20708. if (!request || request.readyState !== 4) {
  20709. return;
  20710. }
  20711. // The request errored out and we didn't get a response, this will be
  20712. // handled by onerror instead
  20713. // With one exception: request that using file: protocol, most browsers
  20714. // will return status as 0 even though it's a successful request
  20715. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  20716. return;
  20717. }
  20718. // readystate handler is calling before onerror or ontimeout handlers,
  20719. // so we should call onloadend on the next 'tick'
  20720. setTimeout(onloadend);
  20721. };
  20722. }
  20723. // Handle browser request cancellation (as opposed to a manual cancellation)
  20724. request.onabort = function handleAbort() {
  20725. if (!request) {
  20726. return;
  20727. }
  20728. reject(new _AxiosError.default('Request aborted', _AxiosError.default.ECONNABORTED, config, request));
  20729. // Clean up request
  20730. request = null;
  20731. };
  20732. // Handle low level network errors
  20733. request.onerror = function handleError() {
  20734. // Real errors are hidden from us by the browser
  20735. // onerror should only fire if it's a network error
  20736. reject(new _AxiosError.default('Network Error', _AxiosError.default.ERR_NETWORK, config, request));
  20737. // Clean up request
  20738. request = null;
  20739. };
  20740. // Handle timeout
  20741. request.ontimeout = function handleTimeout() {
  20742. var timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
  20743. var transitional = _config.transitional || _transitional.default;
  20744. if (_config.timeoutErrorMessage) {
  20745. timeoutErrorMessage = _config.timeoutErrorMessage;
  20746. }
  20747. reject(new _AxiosError.default(timeoutErrorMessage, transitional.clarifyTimeoutError ? _AxiosError.default.ETIMEDOUT : _AxiosError.default.ECONNABORTED, config, request));
  20748. // Clean up request
  20749. request = null;
  20750. };
  20751. // Remove Content-Type if data is undefined
  20752. requestData === undefined && requestHeaders.setContentType(null);
  20753. // Add headers to the request
  20754. if ('setRequestHeader' in request) {
  20755. _utils.default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
  20756. request.setRequestHeader(key, val);
  20757. });
  20758. }
  20759. // Add withCredentials to request if needed
  20760. if (!_utils.default.isUndefined(_config.withCredentials)) {
  20761. request.withCredentials = !!_config.withCredentials;
  20762. }
  20763. // Add responseType to request if needed
  20764. if (responseType && responseType !== 'json') {
  20765. request.responseType = _config.responseType;
  20766. }
  20767. // Handle progress if needed
  20768. if (onDownloadProgress) {
  20769. var _progressEventReducer = (0, _progressEventReducer5.progressEventReducer)(onDownloadProgress, true);
  20770. var _progressEventReducer2 = (0, _slicedToArray2.default)(_progressEventReducer, 2);
  20771. downloadThrottled = _progressEventReducer2[0];
  20772. flushDownload = _progressEventReducer2[1];
  20773. request.addEventListener('progress', downloadThrottled);
  20774. }
  20775. // Not all browsers support upload events
  20776. if (onUploadProgress && request.upload) {
  20777. var _progressEventReducer3 = (0, _progressEventReducer5.progressEventReducer)(onUploadProgress);
  20778. var _progressEventReducer4 = (0, _slicedToArray2.default)(_progressEventReducer3, 2);
  20779. uploadThrottled = _progressEventReducer4[0];
  20780. flushUpload = _progressEventReducer4[1];
  20781. request.upload.addEventListener('progress', uploadThrottled);
  20782. request.upload.addEventListener('loadend', flushUpload);
  20783. }
  20784. if (_config.cancelToken || _config.signal) {
  20785. // Handle cancellation
  20786. // eslint-disable-next-line func-names
  20787. onCanceled = function onCanceled(cancel) {
  20788. if (!request) {
  20789. return;
  20790. }
  20791. reject(!cancel || cancel.type ? new _CanceledError.default(null, config, request) : cancel);
  20792. request.abort();
  20793. request = null;
  20794. };
  20795. _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
  20796. if (_config.signal) {
  20797. _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
  20798. }
  20799. }
  20800. var protocol = (0, _parseProtocol.default)(_config.url);
  20801. if (protocol && _index.default.protocols.indexOf(protocol) === -1) {
  20802. reject(new _AxiosError.default('Unsupported protocol ' + protocol + ':', _AxiosError.default.ERR_BAD_REQUEST, config));
  20803. return;
  20804. }
  20805. // Send the request
  20806. request.send(requestData || null);
  20807. });
  20808. };
  20809. exports.default = _default;
  20810. /***/ }),
  20811. /* 205 */
  20812. /*!*************************************************************************!*\
  20813. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/settle.js ***!
  20814. \*************************************************************************/
  20815. /*! no static exports found */
  20816. /***/ (function(module, exports, __webpack_require__) {
  20817. "use strict";
  20818. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20819. Object.defineProperty(exports, "__esModule", {
  20820. value: true
  20821. });
  20822. exports.default = settle;
  20823. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ./AxiosError.js */ 184));
  20824. /**
  20825. * Resolve or reject a Promise based on response status.
  20826. *
  20827. * @param {Function} resolve A function that resolves the promise.
  20828. * @param {Function} reject A function that rejects the promise.
  20829. * @param {object} response The response.
  20830. *
  20831. * @returns {object} The response.
  20832. */
  20833. function settle(resolve, reject, response) {
  20834. var validateStatus = response.config.validateStatus;
  20835. if (!response.status || !validateStatus || validateStatus(response.status)) {
  20836. resolve(response);
  20837. } else {
  20838. reject(new _AxiosError.default('Request failed with status code ' + response.status, [_AxiosError.default.ERR_BAD_REQUEST, _AxiosError.default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
  20839. }
  20840. }
  20841. /***/ }),
  20842. /* 206 */
  20843. /*!***********************************************************************************!*\
  20844. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/parseProtocol.js ***!
  20845. \***********************************************************************************/
  20846. /*! no static exports found */
  20847. /***/ (function(module, exports, __webpack_require__) {
  20848. "use strict";
  20849. Object.defineProperty(exports, "__esModule", {
  20850. value: true
  20851. });
  20852. exports.default = parseProtocol;
  20853. function parseProtocol(url) {
  20854. var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
  20855. return match && match[1] || '';
  20856. }
  20857. /***/ }),
  20858. /* 207 */
  20859. /*!******************************************************************************************!*\
  20860. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/progressEventReducer.js ***!
  20861. \******************************************************************************************/
  20862. /*! no static exports found */
  20863. /***/ (function(module, exports, __webpack_require__) {
  20864. "use strict";
  20865. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20866. Object.defineProperty(exports, "__esModule", {
  20867. value: true
  20868. });
  20869. exports.progressEventReducer = exports.progressEventDecorator = exports.asyncDecorator = void 0;
  20870. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20871. var _speedometer2 = _interopRequireDefault(__webpack_require__(/*! ./speedometer.js */ 208));
  20872. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./throttle.js */ 209));
  20873. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  20874. var progressEventReducer = function progressEventReducer(listener, isDownloadStream) {
  20875. var freq = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
  20876. var bytesNotified = 0;
  20877. var _speedometer = (0, _speedometer2.default)(50, 250);
  20878. return (0, _throttle.default)(function (e) {
  20879. var loaded = e.loaded;
  20880. var total = e.lengthComputable ? e.total : undefined;
  20881. var progressBytes = loaded - bytesNotified;
  20882. var rate = _speedometer(progressBytes);
  20883. var inRange = loaded <= total;
  20884. bytesNotified = loaded;
  20885. var data = (0, _defineProperty2.default)({
  20886. loaded: loaded,
  20887. total: total,
  20888. progress: total ? loaded / total : undefined,
  20889. bytes: progressBytes,
  20890. rate: rate ? rate : undefined,
  20891. estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
  20892. event: e,
  20893. lengthComputable: total != null
  20894. }, isDownloadStream ? 'download' : 'upload', true);
  20895. listener(data);
  20896. }, freq);
  20897. };
  20898. exports.progressEventReducer = progressEventReducer;
  20899. var progressEventDecorator = function progressEventDecorator(total, throttled) {
  20900. var lengthComputable = total != null;
  20901. return [function (loaded) {
  20902. return throttled[0]({
  20903. lengthComputable: lengthComputable,
  20904. total: total,
  20905. loaded: loaded
  20906. });
  20907. }, throttled[1]];
  20908. };
  20909. exports.progressEventDecorator = progressEventDecorator;
  20910. var asyncDecorator = function asyncDecorator(fn) {
  20911. return function () {
  20912. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  20913. args[_key] = arguments[_key];
  20914. }
  20915. return _utils.default.asap(function () {
  20916. return fn.apply(void 0, args);
  20917. });
  20918. };
  20919. };
  20920. exports.asyncDecorator = asyncDecorator;
  20921. /***/ }),
  20922. /* 208 */
  20923. /*!*********************************************************************************!*\
  20924. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/speedometer.js ***!
  20925. \*********************************************************************************/
  20926. /*! no static exports found */
  20927. /***/ (function(module, exports, __webpack_require__) {
  20928. "use strict";
  20929. /**
  20930. * Calculate data maxRate
  20931. * @param {Number} [samplesCount= 10]
  20932. * @param {Number} [min= 1000]
  20933. * @returns {Function}
  20934. */
  20935. Object.defineProperty(exports, "__esModule", {
  20936. value: true
  20937. });
  20938. exports.default = void 0;
  20939. function speedometer(samplesCount, min) {
  20940. samplesCount = samplesCount || 10;
  20941. var bytes = new Array(samplesCount);
  20942. var timestamps = new Array(samplesCount);
  20943. var head = 0;
  20944. var tail = 0;
  20945. var firstSampleTS;
  20946. min = min !== undefined ? min : 1000;
  20947. return function push(chunkLength) {
  20948. var now = Date.now();
  20949. var startedAt = timestamps[tail];
  20950. if (!firstSampleTS) {
  20951. firstSampleTS = now;
  20952. }
  20953. bytes[head] = chunkLength;
  20954. timestamps[head] = now;
  20955. var i = tail;
  20956. var bytesCount = 0;
  20957. while (i !== head) {
  20958. bytesCount += bytes[i++];
  20959. i = i % samplesCount;
  20960. }
  20961. head = (head + 1) % samplesCount;
  20962. if (head === tail) {
  20963. tail = (tail + 1) % samplesCount;
  20964. }
  20965. if (now - firstSampleTS < min) {
  20966. return;
  20967. }
  20968. var passed = startedAt && now - startedAt;
  20969. return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
  20970. };
  20971. }
  20972. var _default = speedometer;
  20973. exports.default = _default;
  20974. /***/ }),
  20975. /* 209 */
  20976. /*!******************************************************************************!*\
  20977. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/throttle.js ***!
  20978. \******************************************************************************/
  20979. /*! no static exports found */
  20980. /***/ (function(module, exports, __webpack_require__) {
  20981. "use strict";
  20982. Object.defineProperty(exports, "__esModule", {
  20983. value: true
  20984. });
  20985. exports.default = void 0;
  20986. /**
  20987. * Throttle decorator
  20988. * @param {Function} fn
  20989. * @param {Number} freq
  20990. * @return {Function}
  20991. */
  20992. function throttle(fn, freq) {
  20993. var timestamp = 0;
  20994. var threshold = 1000 / freq;
  20995. var lastArgs;
  20996. var timer;
  20997. var invoke = function invoke(args) {
  20998. var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Date.now();
  20999. timestamp = now;
  21000. lastArgs = null;
  21001. if (timer) {
  21002. clearTimeout(timer);
  21003. timer = null;
  21004. }
  21005. fn.apply(null, args);
  21006. };
  21007. var throttled = function throttled() {
  21008. var now = Date.now();
  21009. var passed = now - timestamp;
  21010. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  21011. args[_key] = arguments[_key];
  21012. }
  21013. if (passed >= threshold) {
  21014. invoke(args, now);
  21015. } else {
  21016. lastArgs = args;
  21017. if (!timer) {
  21018. timer = setTimeout(function () {
  21019. timer = null;
  21020. invoke(lastArgs);
  21021. }, threshold - passed);
  21022. }
  21023. }
  21024. };
  21025. var flush = function flush() {
  21026. return lastArgs && invoke(lastArgs);
  21027. };
  21028. return [throttled, flush];
  21029. }
  21030. var _default = throttle;
  21031. exports.default = _default;
  21032. /***/ }),
  21033. /* 210 */
  21034. /*!***********************************************************************************!*\
  21035. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/resolveConfig.js ***!
  21036. \***********************************************************************************/
  21037. /*! no static exports found */
  21038. /***/ (function(module, exports, __webpack_require__) {
  21039. "use strict";
  21040. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21041. Object.defineProperty(exports, "__esModule", {
  21042. value: true
  21043. });
  21044. exports.default = void 0;
  21045. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  21046. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  21047. var _index = _interopRequireDefault(__webpack_require__(/*! ../platform/index.js */ 192));
  21048. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  21049. var _isURLSameOrigin = _interopRequireDefault(__webpack_require__(/*! ./isURLSameOrigin.js */ 211));
  21050. var _cookies = _interopRequireDefault(__webpack_require__(/*! ./cookies.js */ 212));
  21051. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath.js */ 213));
  21052. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ../core/mergeConfig.js */ 216));
  21053. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosHeaders.js */ 199));
  21054. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ./buildURL.js */ 181));
  21055. var _default = function _default(config) {
  21056. var newConfig = (0, _mergeConfig.default)({}, config);
  21057. var data = newConfig.data,
  21058. withXSRFToken = newConfig.withXSRFToken,
  21059. xsrfHeaderName = newConfig.xsrfHeaderName,
  21060. xsrfCookieName = newConfig.xsrfCookieName,
  21061. headers = newConfig.headers,
  21062. auth = newConfig.auth;
  21063. newConfig.headers = headers = _AxiosHeaders.default.from(headers);
  21064. newConfig.url = (0, _buildURL.default)((0, _buildFullPath.default)(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
  21065. // HTTP basic authentication
  21066. if (auth) {
  21067. headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
  21068. }
  21069. var contentType;
  21070. if (_utils.default.isFormData(data)) {
  21071. if (_index.default.hasStandardBrowserEnv || _index.default.hasStandardBrowserWebWorkerEnv) {
  21072. headers.setContentType(undefined); // Let the browser set it
  21073. } else if ((contentType = headers.getContentType()) !== false) {
  21074. // fix semicolon duplication issue for ReactNative FormData implementation
  21075. var _ref = contentType ? contentType.split(';').map(function (token) {
  21076. return token.trim();
  21077. }).filter(Boolean) : [],
  21078. _ref2 = (0, _toArray2.default)(_ref),
  21079. type = _ref2[0],
  21080. tokens = _ref2.slice(1);
  21081. headers.setContentType([type || 'multipart/form-data'].concat((0, _toConsumableArray2.default)(tokens)).join('; '));
  21082. }
  21083. }
  21084. // Add xsrf header
  21085. // This is only done if running in a standard browser environment.
  21086. // Specifically not if we're in a web worker, or react-native.
  21087. if (_index.default.hasStandardBrowserEnv) {
  21088. withXSRFToken && _utils.default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
  21089. if (withXSRFToken || withXSRFToken !== false && (0, _isURLSameOrigin.default)(newConfig.url)) {
  21090. // Add xsrf header
  21091. var xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies.default.read(xsrfCookieName);
  21092. if (xsrfValue) {
  21093. headers.set(xsrfHeaderName, xsrfValue);
  21094. }
  21095. }
  21096. }
  21097. return newConfig;
  21098. };
  21099. exports.default = _default;
  21100. /***/ }),
  21101. /* 211 */
  21102. /*!*************************************************************************************!*\
  21103. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
  21104. \*************************************************************************************/
  21105. /*! no static exports found */
  21106. /***/ (function(module, exports, __webpack_require__) {
  21107. "use strict";
  21108. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21109. Object.defineProperty(exports, "__esModule", {
  21110. value: true
  21111. });
  21112. exports.default = void 0;
  21113. var _index = _interopRequireDefault(__webpack_require__(/*! ../platform/index.js */ 192));
  21114. var _default = _index.default.hasStandardBrowserEnv ? function (origin, isMSIE) {
  21115. return function (url) {
  21116. url = new URL(url, _index.default.origin);
  21117. return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
  21118. };
  21119. }(new URL(_index.default.origin), _index.default.navigator && /(msie|trident)/i.test(_index.default.navigator.userAgent)) : function () {
  21120. return true;
  21121. };
  21122. exports.default = _default;
  21123. /***/ }),
  21124. /* 212 */
  21125. /*!*****************************************************************************!*\
  21126. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/cookies.js ***!
  21127. \*****************************************************************************/
  21128. /*! no static exports found */
  21129. /***/ (function(module, exports, __webpack_require__) {
  21130. "use strict";
  21131. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21132. Object.defineProperty(exports, "__esModule", {
  21133. value: true
  21134. });
  21135. exports.default = void 0;
  21136. var _utils = _interopRequireDefault(__webpack_require__(/*! ./../utils.js */ 176));
  21137. var _index = _interopRequireDefault(__webpack_require__(/*! ../platform/index.js */ 192));
  21138. var _default = _index.default.hasStandardBrowserEnv ?
  21139. // Standard browser envs support document.cookie
  21140. {
  21141. write: function write(name, value, expires, path, domain, secure) {
  21142. var cookie = [name + '=' + encodeURIComponent(value)];
  21143. _utils.default.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
  21144. _utils.default.isString(path) && cookie.push('path=' + path);
  21145. _utils.default.isString(domain) && cookie.push('domain=' + domain);
  21146. secure === true && cookie.push('secure');
  21147. document.cookie = cookie.join('; ');
  21148. },
  21149. read: function read(name) {
  21150. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  21151. return match ? decodeURIComponent(match[3]) : null;
  21152. },
  21153. remove: function remove(name) {
  21154. this.write(name, '', Date.now() - 86400000);
  21155. }
  21156. } :
  21157. // Non-standard browser env (web workers, react-native) lack needed support.
  21158. {
  21159. write: function write() {},
  21160. read: function read() {
  21161. return null;
  21162. },
  21163. remove: function remove() {}
  21164. };
  21165. exports.default = _default;
  21166. /***/ }),
  21167. /* 213 */
  21168. /*!********************************************************************************!*\
  21169. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/buildFullPath.js ***!
  21170. \********************************************************************************/
  21171. /*! no static exports found */
  21172. /***/ (function(module, exports, __webpack_require__) {
  21173. "use strict";
  21174. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21175. Object.defineProperty(exports, "__esModule", {
  21176. value: true
  21177. });
  21178. exports.default = buildFullPath;
  21179. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL.js */ 214));
  21180. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs.js */ 215));
  21181. /**
  21182. * Creates a new URL by combining the baseURL with the requestedURL,
  21183. * only when the requestedURL is not already an absolute URL.
  21184. * If the requestURL is absolute, this function returns the requestedURL untouched.
  21185. *
  21186. * @param {string} baseURL The base URL
  21187. * @param {string} requestedURL Absolute or relative URL to combine
  21188. *
  21189. * @returns {string} The combined full path
  21190. */
  21191. function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
  21192. var isRelativeUrl = !(0, _isAbsoluteURL.default)(requestedURL);
  21193. if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
  21194. return (0, _combineURLs.default)(baseURL, requestedURL);
  21195. }
  21196. return requestedURL;
  21197. }
  21198. /***/ }),
  21199. /* 214 */
  21200. /*!***********************************************************************************!*\
  21201. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
  21202. \***********************************************************************************/
  21203. /*! no static exports found */
  21204. /***/ (function(module, exports, __webpack_require__) {
  21205. "use strict";
  21206. /**
  21207. * Determines whether the specified URL is absolute
  21208. *
  21209. * @param {string} url The URL to test
  21210. *
  21211. * @returns {boolean} True if the specified URL is absolute, otherwise false
  21212. */
  21213. Object.defineProperty(exports, "__esModule", {
  21214. value: true
  21215. });
  21216. exports.default = isAbsoluteURL;
  21217. function isAbsoluteURL(url) {
  21218. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  21219. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  21220. // by any combination of letters, digits, plus, period, or hyphen.
  21221. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  21222. }
  21223. /***/ }),
  21224. /* 215 */
  21225. /*!*********************************************************************************!*\
  21226. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/combineURLs.js ***!
  21227. \*********************************************************************************/
  21228. /*! no static exports found */
  21229. /***/ (function(module, exports, __webpack_require__) {
  21230. "use strict";
  21231. /**
  21232. * Creates a new URL by combining the specified URLs
  21233. *
  21234. * @param {string} baseURL The base URL
  21235. * @param {string} relativeURL The relative URL
  21236. *
  21237. * @returns {string} The combined URL
  21238. */
  21239. Object.defineProperty(exports, "__esModule", {
  21240. value: true
  21241. });
  21242. exports.default = combineURLs;
  21243. function combineURLs(baseURL, relativeURL) {
  21244. return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
  21245. }
  21246. /***/ }),
  21247. /* 216 */
  21248. /*!******************************************************************************!*\
  21249. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/core/mergeConfig.js ***!
  21250. \******************************************************************************/
  21251. /*! no static exports found */
  21252. /***/ (function(module, exports, __webpack_require__) {
  21253. "use strict";
  21254. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21255. Object.defineProperty(exports, "__esModule", {
  21256. value: true
  21257. });
  21258. exports.default = mergeConfig;
  21259. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  21260. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  21261. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ./AxiosHeaders.js */ 199));
  21262. 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; }
  21263. 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; }
  21264. var headersToObject = function headersToObject(thing) {
  21265. return thing instanceof _AxiosHeaders.default ? _objectSpread({}, thing) : thing;
  21266. };
  21267. /**
  21268. * Config-specific merge-function which creates a new config-object
  21269. * by merging two configuration objects together.
  21270. *
  21271. * @param {Object} config1
  21272. * @param {Object} config2
  21273. *
  21274. * @returns {Object} New object resulting from merging config2 to config1
  21275. */
  21276. function mergeConfig(config1, config2) {
  21277. // eslint-disable-next-line no-param-reassign
  21278. config2 = config2 || {};
  21279. var config = {};
  21280. function getMergedValue(target, source, prop, caseless) {
  21281. if (_utils.default.isPlainObject(target) && _utils.default.isPlainObject(source)) {
  21282. return _utils.default.merge.call({
  21283. caseless: caseless
  21284. }, target, source);
  21285. } else if (_utils.default.isPlainObject(source)) {
  21286. return _utils.default.merge({}, source);
  21287. } else if (_utils.default.isArray(source)) {
  21288. return source.slice();
  21289. }
  21290. return source;
  21291. }
  21292. // eslint-disable-next-line consistent-return
  21293. function mergeDeepProperties(a, b, prop, caseless) {
  21294. if (!_utils.default.isUndefined(b)) {
  21295. return getMergedValue(a, b, prop, caseless);
  21296. } else if (!_utils.default.isUndefined(a)) {
  21297. return getMergedValue(undefined, a, prop, caseless);
  21298. }
  21299. }
  21300. // eslint-disable-next-line consistent-return
  21301. function valueFromConfig2(a, b) {
  21302. if (!_utils.default.isUndefined(b)) {
  21303. return getMergedValue(undefined, b);
  21304. }
  21305. }
  21306. // eslint-disable-next-line consistent-return
  21307. function defaultToConfig2(a, b) {
  21308. if (!_utils.default.isUndefined(b)) {
  21309. return getMergedValue(undefined, b);
  21310. } else if (!_utils.default.isUndefined(a)) {
  21311. return getMergedValue(undefined, a);
  21312. }
  21313. }
  21314. // eslint-disable-next-line consistent-return
  21315. function mergeDirectKeys(a, b, prop) {
  21316. if (prop in config2) {
  21317. return getMergedValue(a, b);
  21318. } else if (prop in config1) {
  21319. return getMergedValue(undefined, a);
  21320. }
  21321. }
  21322. var mergeMap = {
  21323. url: valueFromConfig2,
  21324. method: valueFromConfig2,
  21325. data: valueFromConfig2,
  21326. baseURL: defaultToConfig2,
  21327. transformRequest: defaultToConfig2,
  21328. transformResponse: defaultToConfig2,
  21329. paramsSerializer: defaultToConfig2,
  21330. timeout: defaultToConfig2,
  21331. timeoutMessage: defaultToConfig2,
  21332. withCredentials: defaultToConfig2,
  21333. withXSRFToken: defaultToConfig2,
  21334. adapter: defaultToConfig2,
  21335. responseType: defaultToConfig2,
  21336. xsrfCookieName: defaultToConfig2,
  21337. xsrfHeaderName: defaultToConfig2,
  21338. onUploadProgress: defaultToConfig2,
  21339. onDownloadProgress: defaultToConfig2,
  21340. decompress: defaultToConfig2,
  21341. maxContentLength: defaultToConfig2,
  21342. maxBodyLength: defaultToConfig2,
  21343. beforeRedirect: defaultToConfig2,
  21344. transport: defaultToConfig2,
  21345. httpAgent: defaultToConfig2,
  21346. httpsAgent: defaultToConfig2,
  21347. cancelToken: defaultToConfig2,
  21348. socketPath: defaultToConfig2,
  21349. responseEncoding: defaultToConfig2,
  21350. validateStatus: mergeDirectKeys,
  21351. headers: function headers(a, b, prop) {
  21352. return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
  21353. }
  21354. };
  21355. _utils.default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
  21356. var merge = mergeMap[prop] || mergeDeepProperties;
  21357. var configValue = merge(config1[prop], config2[prop], prop);
  21358. _utils.default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
  21359. });
  21360. return config;
  21361. }
  21362. /***/ }),
  21363. /* 217 */
  21364. /*!****************************************************************************!*\
  21365. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/adapters/fetch.js ***!
  21366. \****************************************************************************/
  21367. /*! no static exports found */
  21368. /***/ (function(module, exports, __webpack_require__) {
  21369. "use strict";
  21370. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21371. Object.defineProperty(exports, "__esModule", {
  21372. value: true
  21373. });
  21374. exports.default = void 0;
  21375. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  21376. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  21377. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  21378. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  21379. var _index = _interopRequireDefault(__webpack_require__(/*! ../platform/index.js */ 192));
  21380. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  21381. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  21382. var _composeSignals = _interopRequireDefault(__webpack_require__(/*! ../helpers/composeSignals.js */ 218));
  21383. var _trackStream = __webpack_require__(/*! ../helpers/trackStream.js */ 219);
  21384. var _AxiosHeaders = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosHeaders.js */ 199));
  21385. var _progressEventReducer = __webpack_require__(/*! ../helpers/progressEventReducer.js */ 207);
  21386. var _resolveConfig2 = _interopRequireDefault(__webpack_require__(/*! ../helpers/resolveConfig.js */ 210));
  21387. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle.js */ 205));
  21388. 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; }
  21389. 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; }
  21390. var isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
  21391. var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
  21392. // used only inside the fetch adapter
  21393. var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {
  21394. return function (str) {
  21395. return encoder.encode(str);
  21396. };
  21397. }(new TextEncoder()) : /*#__PURE__*/function () {
  21398. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(str) {
  21399. return _regenerator.default.wrap(function _callee$(_context) {
  21400. while (1) {
  21401. switch (_context.prev = _context.next) {
  21402. case 0:
  21403. _context.t0 = Uint8Array;
  21404. _context.next = 3;
  21405. return new Response(str).arrayBuffer();
  21406. case 3:
  21407. _context.t1 = _context.sent;
  21408. return _context.abrupt("return", new _context.t0(_context.t1));
  21409. case 5:
  21410. case "end":
  21411. return _context.stop();
  21412. }
  21413. }
  21414. }, _callee);
  21415. }));
  21416. return function (_x) {
  21417. return _ref.apply(this, arguments);
  21418. };
  21419. }());
  21420. var test = function test(fn) {
  21421. try {
  21422. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  21423. args[_key - 1] = arguments[_key];
  21424. }
  21425. return !!fn.apply(void 0, args);
  21426. } catch (e) {
  21427. return false;
  21428. }
  21429. };
  21430. var supportsRequestStream = isReadableStreamSupported && test(function () {
  21431. var duplexAccessed = false;
  21432. var hasContentType = new Request(_index.default.origin, {
  21433. body: new ReadableStream(),
  21434. method: 'POST',
  21435. get duplex() {
  21436. duplexAccessed = true;
  21437. return 'half';
  21438. }
  21439. }).headers.has('Content-Type');
  21440. return duplexAccessed && !hasContentType;
  21441. });
  21442. var DEFAULT_CHUNK_SIZE = 64 * 1024;
  21443. var supportsResponseStream = isReadableStreamSupported && test(function () {
  21444. return _utils.default.isReadableStream(new Response('').body);
  21445. });
  21446. var resolvers = {
  21447. stream: supportsResponseStream && function (res) {
  21448. return res.body;
  21449. }
  21450. };
  21451. isFetchSupported && function (res) {
  21452. ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(function (type) {
  21453. !resolvers[type] && (resolvers[type] = _utils.default.isFunction(res[type]) ? function (res) {
  21454. return res[type]();
  21455. } : function (_, config) {
  21456. throw new _AxiosError.default("Response type '".concat(type, "' is not supported"), _AxiosError.default.ERR_NOT_SUPPORT, config);
  21457. });
  21458. });
  21459. }(new Response());
  21460. var getBodyLength = /*#__PURE__*/function () {
  21461. var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(body) {
  21462. var _request;
  21463. return _regenerator.default.wrap(function _callee2$(_context2) {
  21464. while (1) {
  21465. switch (_context2.prev = _context2.next) {
  21466. case 0:
  21467. if (!(body == null)) {
  21468. _context2.next = 2;
  21469. break;
  21470. }
  21471. return _context2.abrupt("return", 0);
  21472. case 2:
  21473. if (!_utils.default.isBlob(body)) {
  21474. _context2.next = 4;
  21475. break;
  21476. }
  21477. return _context2.abrupt("return", body.size);
  21478. case 4:
  21479. if (!_utils.default.isSpecCompliantForm(body)) {
  21480. _context2.next = 9;
  21481. break;
  21482. }
  21483. _request = new Request(_index.default.origin, {
  21484. method: 'POST',
  21485. body: body
  21486. });
  21487. _context2.next = 8;
  21488. return _request.arrayBuffer();
  21489. case 8:
  21490. return _context2.abrupt("return", _context2.sent.byteLength);
  21491. case 9:
  21492. if (!(_utils.default.isArrayBufferView(body) || _utils.default.isArrayBuffer(body))) {
  21493. _context2.next = 11;
  21494. break;
  21495. }
  21496. return _context2.abrupt("return", body.byteLength);
  21497. case 11:
  21498. if (_utils.default.isURLSearchParams(body)) {
  21499. body = body + '';
  21500. }
  21501. if (!_utils.default.isString(body)) {
  21502. _context2.next = 16;
  21503. break;
  21504. }
  21505. _context2.next = 15;
  21506. return encodeText(body);
  21507. case 15:
  21508. return _context2.abrupt("return", _context2.sent.byteLength);
  21509. case 16:
  21510. case "end":
  21511. return _context2.stop();
  21512. }
  21513. }
  21514. }, _callee2);
  21515. }));
  21516. return function getBodyLength(_x2) {
  21517. return _ref2.apply(this, arguments);
  21518. };
  21519. }();
  21520. var resolveBodyLength = /*#__PURE__*/function () {
  21521. var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(headers, body) {
  21522. var length;
  21523. return _regenerator.default.wrap(function _callee3$(_context3) {
  21524. while (1) {
  21525. switch (_context3.prev = _context3.next) {
  21526. case 0:
  21527. length = _utils.default.toFiniteNumber(headers.getContentLength());
  21528. return _context3.abrupt("return", length == null ? getBodyLength(body) : length);
  21529. case 2:
  21530. case "end":
  21531. return _context3.stop();
  21532. }
  21533. }
  21534. }, _callee3);
  21535. }));
  21536. return function resolveBodyLength(_x3, _x4) {
  21537. return _ref3.apply(this, arguments);
  21538. };
  21539. }();
  21540. var _default = isFetchSupported && /*#__PURE__*/function () {
  21541. var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(config) {
  21542. var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, response, isStreamResponse, options, responseContentLength, _ref5, _ref6, _onProgress, _flush, responseData;
  21543. return _regenerator.default.wrap(function _callee4$(_context4) {
  21544. while (1) {
  21545. switch (_context4.prev = _context4.next) {
  21546. case 0:
  21547. _resolveConfig = (0, _resolveConfig2.default)(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
  21548. responseType = responseType ? (responseType + '').toLowerCase() : 'text';
  21549. composedSignal = (0, _composeSignals.default)([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
  21550. unsubscribe = composedSignal && composedSignal.unsubscribe && function () {
  21551. composedSignal.unsubscribe();
  21552. };
  21553. _context4.prev = 4;
  21554. _context4.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';
  21555. if (!_context4.t0) {
  21556. _context4.next = 11;
  21557. break;
  21558. }
  21559. _context4.next = 9;
  21560. return resolveBodyLength(headers, data);
  21561. case 9:
  21562. _context4.t1 = requestContentLength = _context4.sent;
  21563. _context4.t0 = _context4.t1 !== 0;
  21564. case 11:
  21565. if (!_context4.t0) {
  21566. _context4.next = 15;
  21567. break;
  21568. }
  21569. _request = new Request(url, {
  21570. method: 'POST',
  21571. body: data,
  21572. duplex: "half"
  21573. });
  21574. if (_utils.default.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
  21575. headers.setContentType(contentTypeHeader);
  21576. }
  21577. if (_request.body) {
  21578. _progressEventDecorat = (0, _progressEventReducer.progressEventDecorator)(requestContentLength, (0, _progressEventReducer.progressEventReducer)((0, _progressEventReducer.asyncDecorator)(onUploadProgress))), _progressEventDecorat2 = (0, _slicedToArray2.default)(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
  21579. data = (0, _trackStream.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
  21580. }
  21581. case 15:
  21582. if (!_utils.default.isString(withCredentials)) {
  21583. withCredentials = withCredentials ? 'include' : 'omit';
  21584. }
  21585. // Cloudflare Workers throws when credentials are defined
  21586. // see https://github.com/cloudflare/workerd/issues/902
  21587. isCredentialsSupported = "credentials" in Request.prototype;
  21588. request = new Request(url, _objectSpread(_objectSpread({}, fetchOptions), {}, {
  21589. signal: composedSignal,
  21590. method: method.toUpperCase(),
  21591. headers: headers.normalize().toJSON(),
  21592. body: data,
  21593. duplex: "half",
  21594. credentials: isCredentialsSupported ? withCredentials : undefined
  21595. }));
  21596. _context4.next = 20;
  21597. return fetch(request);
  21598. case 20:
  21599. response = _context4.sent;
  21600. isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
  21601. if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
  21602. options = {};
  21603. ['status', 'statusText', 'headers'].forEach(function (prop) {
  21604. options[prop] = response[prop];
  21605. });
  21606. responseContentLength = _utils.default.toFiniteNumber(response.headers.get('content-length'));
  21607. _ref5 = onDownloadProgress && (0, _progressEventReducer.progressEventDecorator)(responseContentLength, (0, _progressEventReducer.progressEventReducer)((0, _progressEventReducer.asyncDecorator)(onDownloadProgress), true)) || [], _ref6 = (0, _slicedToArray2.default)(_ref5, 2), _onProgress = _ref6[0], _flush = _ref6[1];
  21608. response = new Response((0, _trackStream.trackStream)(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
  21609. _flush && _flush();
  21610. unsubscribe && unsubscribe();
  21611. }), options);
  21612. }
  21613. responseType = responseType || 'text';
  21614. _context4.next = 26;
  21615. return resolvers[_utils.default.findKey(resolvers, responseType) || 'text'](response, config);
  21616. case 26:
  21617. responseData = _context4.sent;
  21618. !isStreamResponse && unsubscribe && unsubscribe();
  21619. _context4.next = 30;
  21620. return new Promise(function (resolve, reject) {
  21621. (0, _settle.default)(resolve, reject, {
  21622. data: responseData,
  21623. headers: _AxiosHeaders.default.from(response.headers),
  21624. status: response.status,
  21625. statusText: response.statusText,
  21626. config: config,
  21627. request: request
  21628. });
  21629. });
  21630. case 30:
  21631. return _context4.abrupt("return", _context4.sent);
  21632. case 33:
  21633. _context4.prev = 33;
  21634. _context4.t2 = _context4["catch"](4);
  21635. unsubscribe && unsubscribe();
  21636. if (!(_context4.t2 && _context4.t2.name === 'TypeError' && /fetch/i.test(_context4.t2.message))) {
  21637. _context4.next = 38;
  21638. break;
  21639. }
  21640. throw Object.assign(new _AxiosError.default('Network Error', _AxiosError.default.ERR_NETWORK, config, request), {
  21641. cause: _context4.t2.cause || _context4.t2
  21642. });
  21643. case 38:
  21644. throw _AxiosError.default.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
  21645. case 39:
  21646. case "end":
  21647. return _context4.stop();
  21648. }
  21649. }
  21650. }, _callee4, null, [[4, 33]]);
  21651. }));
  21652. return function (_x5) {
  21653. return _ref4.apply(this, arguments);
  21654. };
  21655. }();
  21656. exports.default = _default;
  21657. /***/ }),
  21658. /* 218 */
  21659. /*!************************************************************************************!*\
  21660. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/composeSignals.js ***!
  21661. \************************************************************************************/
  21662. /*! no static exports found */
  21663. /***/ (function(module, exports, __webpack_require__) {
  21664. "use strict";
  21665. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21666. Object.defineProperty(exports, "__esModule", {
  21667. value: true
  21668. });
  21669. exports.default = void 0;
  21670. var _CanceledError = _interopRequireDefault(__webpack_require__(/*! ../cancel/CanceledError.js */ 202));
  21671. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  21672. var _utils = _interopRequireDefault(__webpack_require__(/*! ../utils.js */ 176));
  21673. var composeSignals = function composeSignals(signals, timeout) {
  21674. var _signals = signals = signals ? signals.filter(Boolean) : [],
  21675. length = _signals.length;
  21676. if (timeout || length) {
  21677. var controller = new AbortController();
  21678. var aborted;
  21679. var onabort = function onabort(reason) {
  21680. if (!aborted) {
  21681. aborted = true;
  21682. unsubscribe();
  21683. var err = reason instanceof Error ? reason : this.reason;
  21684. controller.abort(err instanceof _AxiosError.default ? err : new _CanceledError.default(err instanceof Error ? err.message : err));
  21685. }
  21686. };
  21687. var timer = timeout && setTimeout(function () {
  21688. timer = null;
  21689. onabort(new _AxiosError.default("timeout ".concat(timeout, " of ms exceeded"), _AxiosError.default.ETIMEDOUT));
  21690. }, timeout);
  21691. var unsubscribe = function unsubscribe() {
  21692. if (signals) {
  21693. timer && clearTimeout(timer);
  21694. timer = null;
  21695. signals.forEach(function (signal) {
  21696. signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
  21697. });
  21698. signals = null;
  21699. }
  21700. };
  21701. signals.forEach(function (signal) {
  21702. return signal.addEventListener('abort', onabort);
  21703. });
  21704. var signal = controller.signal;
  21705. signal.unsubscribe = function () {
  21706. return _utils.default.asap(unsubscribe);
  21707. };
  21708. return signal;
  21709. }
  21710. };
  21711. var _default = composeSignals;
  21712. exports.default = _default;
  21713. /***/ }),
  21714. /* 219 */
  21715. /*!*********************************************************************************!*\
  21716. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/trackStream.js ***!
  21717. \*********************************************************************************/
  21718. /*! no static exports found */
  21719. /***/ (function(module, exports, __webpack_require__) {
  21720. "use strict";
  21721. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21722. Object.defineProperty(exports, "__esModule", {
  21723. value: true
  21724. });
  21725. exports.trackStream = exports.streamChunk = exports.readBytes = void 0;
  21726. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  21727. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  21728. var _wrapAsyncGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapAsyncGenerator */ 220));
  21729. var _awaitAsyncGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/awaitAsyncGenerator */ 223));
  21730. var _asyncGeneratorDelegate2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncGeneratorDelegate */ 224));
  21731. function _asyncIterator(iterable) { var method, async, sync, retry = 2; for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) { if (async && null != (method = iterable[async])) return method.call(iterable); if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable)); async = "@@asyncIterator", sync = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
  21732. function AsyncFromSyncIterator(s) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var done = r.done; return Promise.resolve(r.value).then(function (value) { return { value: value, done: done }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { this.s = s, this.n = s.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(value) { var ret = this.s.return; return void 0 === ret ? Promise.resolve({ value: value, done: !0 }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); }, throw: function _throw(value) { var thr = this.s.return; return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(s); }
  21733. var streamChunk = /*#__PURE__*/_regenerator.default.mark(function streamChunk(chunk, chunkSize) {
  21734. var len, pos, end;
  21735. return _regenerator.default.wrap(function streamChunk$(_context) {
  21736. while (1) {
  21737. switch (_context.prev = _context.next) {
  21738. case 0:
  21739. len = chunk.byteLength;
  21740. if (!(!chunkSize || len < chunkSize)) {
  21741. _context.next = 5;
  21742. break;
  21743. }
  21744. _context.next = 4;
  21745. return chunk;
  21746. case 4:
  21747. return _context.abrupt("return");
  21748. case 5:
  21749. pos = 0;
  21750. case 6:
  21751. if (!(pos < len)) {
  21752. _context.next = 13;
  21753. break;
  21754. }
  21755. end = pos + chunkSize;
  21756. _context.next = 10;
  21757. return chunk.slice(pos, end);
  21758. case 10:
  21759. pos = end;
  21760. _context.next = 6;
  21761. break;
  21762. case 13:
  21763. case "end":
  21764. return _context.stop();
  21765. }
  21766. }
  21767. }, streamChunk);
  21768. });
  21769. exports.streamChunk = streamChunk;
  21770. var readBytes = /*#__PURE__*/function () {
  21771. var _ref = (0, _wrapAsyncGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(iterable, chunkSize) {
  21772. var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk;
  21773. return _regenerator.default.wrap(function _callee$(_context2) {
  21774. while (1) {
  21775. switch (_context2.prev = _context2.next) {
  21776. case 0:
  21777. _iteratorAbruptCompletion = false;
  21778. _didIteratorError = false;
  21779. _context2.prev = 2;
  21780. _iterator = _asyncIterator(readStream(iterable));
  21781. case 4:
  21782. _context2.next = 6;
  21783. return (0, _awaitAsyncGenerator2.default)(_iterator.next());
  21784. case 6:
  21785. if (!(_iteratorAbruptCompletion = !(_step = _context2.sent).done)) {
  21786. _context2.next = 12;
  21787. break;
  21788. }
  21789. chunk = _step.value;
  21790. return _context2.delegateYield((0, _asyncGeneratorDelegate2.default)(_asyncIterator(streamChunk(chunk, chunkSize)), _awaitAsyncGenerator2.default), "t0", 9);
  21791. case 9:
  21792. _iteratorAbruptCompletion = false;
  21793. _context2.next = 4;
  21794. break;
  21795. case 12:
  21796. _context2.next = 18;
  21797. break;
  21798. case 14:
  21799. _context2.prev = 14;
  21800. _context2.t1 = _context2["catch"](2);
  21801. _didIteratorError = true;
  21802. _iteratorError = _context2.t1;
  21803. case 18:
  21804. _context2.prev = 18;
  21805. _context2.prev = 19;
  21806. if (!(_iteratorAbruptCompletion && _iterator.return != null)) {
  21807. _context2.next = 23;
  21808. break;
  21809. }
  21810. _context2.next = 23;
  21811. return (0, _awaitAsyncGenerator2.default)(_iterator.return());
  21812. case 23:
  21813. _context2.prev = 23;
  21814. if (!_didIteratorError) {
  21815. _context2.next = 26;
  21816. break;
  21817. }
  21818. throw _iteratorError;
  21819. case 26:
  21820. return _context2.finish(23);
  21821. case 27:
  21822. return _context2.finish(18);
  21823. case 28:
  21824. case "end":
  21825. return _context2.stop();
  21826. }
  21827. }
  21828. }, _callee, null, [[2, 14, 18, 28], [19,, 23, 27]]);
  21829. }));
  21830. return function readBytes(_x, _x2) {
  21831. return _ref.apply(this, arguments);
  21832. };
  21833. }();
  21834. exports.readBytes = readBytes;
  21835. var readStream = /*#__PURE__*/function () {
  21836. var _ref2 = (0, _wrapAsyncGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(stream) {
  21837. var reader, _yield$_awaitAsyncGen, done, value;
  21838. return _regenerator.default.wrap(function _callee2$(_context3) {
  21839. while (1) {
  21840. switch (_context3.prev = _context3.next) {
  21841. case 0:
  21842. if (!stream[Symbol.asyncIterator]) {
  21843. _context3.next = 3;
  21844. break;
  21845. }
  21846. return _context3.delegateYield((0, _asyncGeneratorDelegate2.default)(_asyncIterator(stream), _awaitAsyncGenerator2.default), "t0", 2);
  21847. case 2:
  21848. return _context3.abrupt("return");
  21849. case 3:
  21850. reader = stream.getReader();
  21851. _context3.prev = 4;
  21852. case 5:
  21853. _context3.next = 7;
  21854. return (0, _awaitAsyncGenerator2.default)(reader.read());
  21855. case 7:
  21856. _yield$_awaitAsyncGen = _context3.sent;
  21857. done = _yield$_awaitAsyncGen.done;
  21858. value = _yield$_awaitAsyncGen.value;
  21859. if (!done) {
  21860. _context3.next = 12;
  21861. break;
  21862. }
  21863. return _context3.abrupt("break", 16);
  21864. case 12:
  21865. _context3.next = 14;
  21866. return value;
  21867. case 14:
  21868. _context3.next = 5;
  21869. break;
  21870. case 16:
  21871. _context3.prev = 16;
  21872. _context3.next = 19;
  21873. return (0, _awaitAsyncGenerator2.default)(reader.cancel());
  21874. case 19:
  21875. return _context3.finish(16);
  21876. case 20:
  21877. case "end":
  21878. return _context3.stop();
  21879. }
  21880. }
  21881. }, _callee2, null, [[4,, 16, 20]]);
  21882. }));
  21883. return function readStream(_x3) {
  21884. return _ref2.apply(this, arguments);
  21885. };
  21886. }();
  21887. var trackStream = function trackStream(stream, chunkSize, onProgress, onFinish) {
  21888. var iterator = readBytes(stream, chunkSize);
  21889. var bytes = 0;
  21890. var done;
  21891. var _onFinish = function _onFinish(e) {
  21892. if (!done) {
  21893. done = true;
  21894. onFinish && onFinish(e);
  21895. }
  21896. };
  21897. return new ReadableStream({
  21898. pull: function pull(controller) {
  21899. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  21900. var _yield$iterator$next, _done, value, len, loadedBytes;
  21901. return _regenerator.default.wrap(function _callee3$(_context4) {
  21902. while (1) {
  21903. switch (_context4.prev = _context4.next) {
  21904. case 0:
  21905. _context4.prev = 0;
  21906. _context4.next = 3;
  21907. return iterator.next();
  21908. case 3:
  21909. _yield$iterator$next = _context4.sent;
  21910. _done = _yield$iterator$next.done;
  21911. value = _yield$iterator$next.value;
  21912. if (!_done) {
  21913. _context4.next = 10;
  21914. break;
  21915. }
  21916. _onFinish();
  21917. controller.close();
  21918. return _context4.abrupt("return");
  21919. case 10:
  21920. len = value.byteLength;
  21921. if (onProgress) {
  21922. loadedBytes = bytes += len;
  21923. onProgress(loadedBytes);
  21924. }
  21925. controller.enqueue(new Uint8Array(value));
  21926. _context4.next = 19;
  21927. break;
  21928. case 15:
  21929. _context4.prev = 15;
  21930. _context4.t0 = _context4["catch"](0);
  21931. _onFinish(_context4.t0);
  21932. throw _context4.t0;
  21933. case 19:
  21934. case "end":
  21935. return _context4.stop();
  21936. }
  21937. }
  21938. }, _callee3, null, [[0, 15]]);
  21939. }))();
  21940. },
  21941. cancel: function cancel(reason) {
  21942. _onFinish(reason);
  21943. return iterator.return();
  21944. }
  21945. }, {
  21946. highWaterMark: 2
  21947. });
  21948. };
  21949. exports.trackStream = trackStream;
  21950. /***/ }),
  21951. /* 220 */
  21952. /*!*******************************************************************!*\
  21953. !*** ./node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js ***!
  21954. \*******************************************************************/
  21955. /*! no static exports found */
  21956. /***/ (function(module, exports, __webpack_require__) {
  21957. var AsyncGenerator = __webpack_require__(/*! ./AsyncGenerator.js */ 221);
  21958. function _wrapAsyncGenerator(fn) {
  21959. return function () {
  21960. return new AsyncGenerator(fn.apply(this, arguments));
  21961. };
  21962. }
  21963. module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21964. /***/ }),
  21965. /* 221 */
  21966. /*!***************************************************************!*\
  21967. !*** ./node_modules/@babel/runtime/helpers/AsyncGenerator.js ***!
  21968. \***************************************************************/
  21969. /*! no static exports found */
  21970. /***/ (function(module, exports, __webpack_require__) {
  21971. var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ 222);
  21972. function AsyncGenerator(e) {
  21973. var r, t;
  21974. function resume(r, t) {
  21975. try {
  21976. var n = e[r](t),
  21977. o = n.value,
  21978. u = o instanceof OverloadYield;
  21979. Promise.resolve(u ? o.v : o).then(function (t) {
  21980. if (u) {
  21981. var i = "return" === r ? "return" : "next";
  21982. if (!o.k || t.done) return resume(i, t);
  21983. t = e[i](t).value;
  21984. }
  21985. settle(n.done ? "return" : "normal", t);
  21986. }, function (e) {
  21987. resume("throw", e);
  21988. });
  21989. } catch (e) {
  21990. settle("throw", e);
  21991. }
  21992. }
  21993. function settle(e, n) {
  21994. switch (e) {
  21995. case "return":
  21996. r.resolve({
  21997. value: n,
  21998. done: !0
  21999. });
  22000. break;
  22001. case "throw":
  22002. r.reject(n);
  22003. break;
  22004. default:
  22005. r.resolve({
  22006. value: n,
  22007. done: !1
  22008. });
  22009. }
  22010. (r = r.next) ? resume(r.key, r.arg) : t = null;
  22011. }
  22012. this._invoke = function (e, n) {
  22013. return new Promise(function (o, u) {
  22014. var i = {
  22015. key: e,
  22016. arg: n,
  22017. resolve: o,
  22018. reject: u,
  22019. next: null
  22020. };
  22021. t ? t = t.next = i : (r = t = i, resume(e, n));
  22022. });
  22023. }, "function" != typeof e["return"] && (this["return"] = void 0);
  22024. }
  22025. AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
  22026. return this;
  22027. }, AsyncGenerator.prototype.next = function (e) {
  22028. return this._invoke("next", e);
  22029. }, AsyncGenerator.prototype["throw"] = function (e) {
  22030. return this._invoke("throw", e);
  22031. }, AsyncGenerator.prototype["return"] = function (e) {
  22032. return this._invoke("return", e);
  22033. };
  22034. module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22035. /***/ }),
  22036. /* 222 */
  22037. /*!**************************************************************!*\
  22038. !*** ./node_modules/@babel/runtime/helpers/OverloadYield.js ***!
  22039. \**************************************************************/
  22040. /*! no static exports found */
  22041. /***/ (function(module, exports) {
  22042. function _OverloadYield(t, e) {
  22043. this.v = t, this.k = e;
  22044. }
  22045. module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22046. /***/ }),
  22047. /* 223 */
  22048. /*!********************************************************************!*\
  22049. !*** ./node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js ***!
  22050. \********************************************************************/
  22051. /*! no static exports found */
  22052. /***/ (function(module, exports, __webpack_require__) {
  22053. var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ 222);
  22054. function _awaitAsyncGenerator(e) {
  22055. return new OverloadYield(e, 0);
  22056. }
  22057. module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22058. /***/ }),
  22059. /* 224 */
  22060. /*!***********************************************************************!*\
  22061. !*** ./node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js ***!
  22062. \***********************************************************************/
  22063. /*! no static exports found */
  22064. /***/ (function(module, exports, __webpack_require__) {
  22065. var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ 222);
  22066. function _asyncGeneratorDelegate(t) {
  22067. var e = {},
  22068. n = !1;
  22069. function pump(e, r) {
  22070. return n = !0, r = new Promise(function (n) {
  22071. n(t[e](r));
  22072. }), {
  22073. done: !1,
  22074. value: new OverloadYield(r, 1)
  22075. };
  22076. }
  22077. return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () {
  22078. return this;
  22079. }, e.next = function (t) {
  22080. return n ? (n = !1, t) : pump("next", t);
  22081. }, "function" == typeof t["throw"] && (e["throw"] = function (t) {
  22082. if (n) throw n = !1, t;
  22083. return pump("throw", t);
  22084. }), "function" == typeof t["return"] && (e["return"] = function (t) {
  22085. return n ? (n = !1, t) : pump("return", t);
  22086. }), e;
  22087. }
  22088. module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22089. /***/ }),
  22090. /* 225 */
  22091. /*!*******************************************************************************!*\
  22092. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/validator.js ***!
  22093. \*******************************************************************************/
  22094. /*! no static exports found */
  22095. /***/ (function(module, exports, __webpack_require__) {
  22096. "use strict";
  22097. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22098. Object.defineProperty(exports, "__esModule", {
  22099. value: true
  22100. });
  22101. exports.default = void 0;
  22102. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  22103. var _data = __webpack_require__(/*! ../env/data.js */ 226);
  22104. var _AxiosError = _interopRequireDefault(__webpack_require__(/*! ../core/AxiosError.js */ 184));
  22105. var validators = {};
  22106. // eslint-disable-next-line func-names
  22107. ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {
  22108. validators[type] = function validator(thing) {
  22109. return (0, _typeof2.default)(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  22110. };
  22111. });
  22112. var deprecatedWarnings = {};
  22113. /**
  22114. * Transitional option validator
  22115. *
  22116. * @param {function|boolean?} validator - set to false if the transitional option has been removed
  22117. * @param {string?} version - deprecated version / removed since version
  22118. * @param {string?} message - some message with additional info
  22119. *
  22120. * @returns {function}
  22121. */
  22122. validators.transitional = function transitional(validator, version, message) {
  22123. function formatMessage(opt, desc) {
  22124. return '[Axios v' + _data.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  22125. }
  22126. // eslint-disable-next-line func-names
  22127. return function (value, opt, opts) {
  22128. if (validator === false) {
  22129. throw new _AxiosError.default(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), _AxiosError.default.ERR_DEPRECATED);
  22130. }
  22131. if (version && !deprecatedWarnings[opt]) {
  22132. deprecatedWarnings[opt] = true;
  22133. // eslint-disable-next-line no-console
  22134. console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
  22135. }
  22136. return validator ? validator(value, opt, opts) : true;
  22137. };
  22138. };
  22139. validators.spelling = function spelling(correctSpelling) {
  22140. return function (value, opt) {
  22141. // eslint-disable-next-line no-console
  22142. console.warn("".concat(opt, " is likely a misspelling of ").concat(correctSpelling));
  22143. return true;
  22144. };
  22145. };
  22146. /**
  22147. * Assert object's properties type
  22148. *
  22149. * @param {object} options
  22150. * @param {object} schema
  22151. * @param {boolean?} allowUnknown
  22152. *
  22153. * @returns {object}
  22154. */
  22155. function assertOptions(options, schema, allowUnknown) {
  22156. if ((0, _typeof2.default)(options) !== 'object') {
  22157. throw new _AxiosError.default('options must be an object', _AxiosError.default.ERR_BAD_OPTION_VALUE);
  22158. }
  22159. var keys = Object.keys(options);
  22160. var i = keys.length;
  22161. while (i-- > 0) {
  22162. var opt = keys[i];
  22163. var validator = schema[opt];
  22164. if (validator) {
  22165. var value = options[opt];
  22166. var result = value === undefined || validator(value, opt, options);
  22167. if (result !== true) {
  22168. throw new _AxiosError.default('option ' + opt + ' must be ' + result, _AxiosError.default.ERR_BAD_OPTION_VALUE);
  22169. }
  22170. continue;
  22171. }
  22172. if (allowUnknown !== true) {
  22173. throw new _AxiosError.default('Unknown option ' + opt, _AxiosError.default.ERR_BAD_OPTION);
  22174. }
  22175. }
  22176. }
  22177. var _default = {
  22178. assertOptions: assertOptions,
  22179. validators: validators
  22180. };
  22181. exports.default = _default;
  22182. /***/ }),
  22183. /* 226 */
  22184. /*!**********************************************************************!*\
  22185. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/env/data.js ***!
  22186. \**********************************************************************/
  22187. /*! no static exports found */
  22188. /***/ (function(module, exports, __webpack_require__) {
  22189. "use strict";
  22190. Object.defineProperty(exports, "__esModule", {
  22191. value: true
  22192. });
  22193. exports.VERSION = void 0;
  22194. var VERSION = "1.8.3";
  22195. exports.VERSION = VERSION;
  22196. /***/ }),
  22197. /* 227 */
  22198. /*!********************************************************************************!*\
  22199. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/cancel/CancelToken.js ***!
  22200. \********************************************************************************/
  22201. /*! no static exports found */
  22202. /***/ (function(module, exports, __webpack_require__) {
  22203. "use strict";
  22204. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22205. Object.defineProperty(exports, "__esModule", {
  22206. value: true
  22207. });
  22208. exports.default = void 0;
  22209. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  22210. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  22211. var _CanceledError = _interopRequireDefault(__webpack_require__(/*! ./CanceledError.js */ 202));
  22212. /**
  22213. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  22214. *
  22215. * @param {Function} executor The executor function.
  22216. *
  22217. * @returns {CancelToken}
  22218. */
  22219. var CancelToken = /*#__PURE__*/function () {
  22220. function CancelToken(executor) {
  22221. (0, _classCallCheck2.default)(this, CancelToken);
  22222. if (typeof executor !== 'function') {
  22223. throw new TypeError('executor must be a function.');
  22224. }
  22225. var resolvePromise;
  22226. this.promise = new Promise(function promiseExecutor(resolve) {
  22227. resolvePromise = resolve;
  22228. });
  22229. var token = this;
  22230. // eslint-disable-next-line func-names
  22231. this.promise.then(function (cancel) {
  22232. if (!token._listeners) return;
  22233. var i = token._listeners.length;
  22234. while (i-- > 0) {
  22235. token._listeners[i](cancel);
  22236. }
  22237. token._listeners = null;
  22238. });
  22239. // eslint-disable-next-line func-names
  22240. this.promise.then = function (onfulfilled) {
  22241. var _resolve;
  22242. // eslint-disable-next-line func-names
  22243. var promise = new Promise(function (resolve) {
  22244. token.subscribe(resolve);
  22245. _resolve = resolve;
  22246. }).then(onfulfilled);
  22247. promise.cancel = function reject() {
  22248. token.unsubscribe(_resolve);
  22249. };
  22250. return promise;
  22251. };
  22252. executor(function cancel(message, config, request) {
  22253. if (token.reason) {
  22254. // Cancellation has already been requested
  22255. return;
  22256. }
  22257. token.reason = new _CanceledError.default(message, config, request);
  22258. resolvePromise(token.reason);
  22259. });
  22260. }
  22261. /**
  22262. * Throws a `CanceledError` if cancellation has been requested.
  22263. */
  22264. (0, _createClass2.default)(CancelToken, [{
  22265. key: "throwIfRequested",
  22266. value: function throwIfRequested() {
  22267. if (this.reason) {
  22268. throw this.reason;
  22269. }
  22270. }
  22271. /**
  22272. * Subscribe to the cancel signal
  22273. */
  22274. }, {
  22275. key: "subscribe",
  22276. value: function subscribe(listener) {
  22277. if (this.reason) {
  22278. listener(this.reason);
  22279. return;
  22280. }
  22281. if (this._listeners) {
  22282. this._listeners.push(listener);
  22283. } else {
  22284. this._listeners = [listener];
  22285. }
  22286. }
  22287. /**
  22288. * Unsubscribe from the cancel signal
  22289. */
  22290. }, {
  22291. key: "unsubscribe",
  22292. value: function unsubscribe(listener) {
  22293. if (!this._listeners) {
  22294. return;
  22295. }
  22296. var index = this._listeners.indexOf(listener);
  22297. if (index !== -1) {
  22298. this._listeners.splice(index, 1);
  22299. }
  22300. }
  22301. }, {
  22302. key: "toAbortSignal",
  22303. value: function toAbortSignal() {
  22304. var _this = this;
  22305. var controller = new AbortController();
  22306. var abort = function abort(err) {
  22307. controller.abort(err);
  22308. };
  22309. this.subscribe(abort);
  22310. controller.signal.unsubscribe = function () {
  22311. return _this.unsubscribe(abort);
  22312. };
  22313. return controller.signal;
  22314. }
  22315. /**
  22316. * Returns an object that contains a new `CancelToken` and a function that, when called,
  22317. * cancels the `CancelToken`.
  22318. */
  22319. }], [{
  22320. key: "source",
  22321. value: function source() {
  22322. var cancel;
  22323. var token = new CancelToken(function executor(c) {
  22324. cancel = c;
  22325. });
  22326. return {
  22327. token: token,
  22328. cancel: cancel
  22329. };
  22330. }
  22331. }]);
  22332. return CancelToken;
  22333. }();
  22334. var _default = CancelToken;
  22335. exports.default = _default;
  22336. /***/ }),
  22337. /* 228 */
  22338. /*!****************************************************************************!*\
  22339. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/spread.js ***!
  22340. \****************************************************************************/
  22341. /*! no static exports found */
  22342. /***/ (function(module, exports, __webpack_require__) {
  22343. "use strict";
  22344. /**
  22345. * Syntactic sugar for invoking a function and expanding an array for arguments.
  22346. *
  22347. * Common use case would be to use `Function.prototype.apply`.
  22348. *
  22349. * ```js
  22350. * function f(x, y, z) {}
  22351. * var args = [1, 2, 3];
  22352. * f.apply(null, args);
  22353. * ```
  22354. *
  22355. * With `spread` this example can be re-written.
  22356. *
  22357. * ```js
  22358. * spread(function(x, y, z) {})([1, 2, 3]);
  22359. * ```
  22360. *
  22361. * @param {Function} callback
  22362. *
  22363. * @returns {Function}
  22364. */
  22365. Object.defineProperty(exports, "__esModule", {
  22366. value: true
  22367. });
  22368. exports.default = spread;
  22369. function spread(callback) {
  22370. return function wrap(arr) {
  22371. return callback.apply(null, arr);
  22372. };
  22373. }
  22374. /***/ }),
  22375. /* 229 */
  22376. /*!**********************************************************************************!*\
  22377. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/isAxiosError.js ***!
  22378. \**********************************************************************************/
  22379. /*! no static exports found */
  22380. /***/ (function(module, exports, __webpack_require__) {
  22381. "use strict";
  22382. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22383. Object.defineProperty(exports, "__esModule", {
  22384. value: true
  22385. });
  22386. exports.default = isAxiosError;
  22387. var _utils = _interopRequireDefault(__webpack_require__(/*! ./../utils.js */ 176));
  22388. /**
  22389. * Determines whether the payload is an error thrown by Axios
  22390. *
  22391. * @param {*} payload The value to test
  22392. *
  22393. * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
  22394. */
  22395. function isAxiosError(payload) {
  22396. return _utils.default.isObject(payload) && payload.isAxiosError === true;
  22397. }
  22398. /***/ }),
  22399. /* 230 */
  22400. /*!************************************************************************************!*\
  22401. !*** E:/hbuildweepspace/sacanPay/node_modules/axios/lib/helpers/HttpStatusCode.js ***!
  22402. \************************************************************************************/
  22403. /*! no static exports found */
  22404. /***/ (function(module, exports, __webpack_require__) {
  22405. "use strict";
  22406. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22407. Object.defineProperty(exports, "__esModule", {
  22408. value: true
  22409. });
  22410. exports.default = void 0;
  22411. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  22412. var HttpStatusCode = {
  22413. Continue: 100,
  22414. SwitchingProtocols: 101,
  22415. Processing: 102,
  22416. EarlyHints: 103,
  22417. Ok: 200,
  22418. Created: 201,
  22419. Accepted: 202,
  22420. NonAuthoritativeInformation: 203,
  22421. NoContent: 204,
  22422. ResetContent: 205,
  22423. PartialContent: 206,
  22424. MultiStatus: 207,
  22425. AlreadyReported: 208,
  22426. ImUsed: 226,
  22427. MultipleChoices: 300,
  22428. MovedPermanently: 301,
  22429. Found: 302,
  22430. SeeOther: 303,
  22431. NotModified: 304,
  22432. UseProxy: 305,
  22433. Unused: 306,
  22434. TemporaryRedirect: 307,
  22435. PermanentRedirect: 308,
  22436. BadRequest: 400,
  22437. Unauthorized: 401,
  22438. PaymentRequired: 402,
  22439. Forbidden: 403,
  22440. NotFound: 404,
  22441. MethodNotAllowed: 405,
  22442. NotAcceptable: 406,
  22443. ProxyAuthenticationRequired: 407,
  22444. RequestTimeout: 408,
  22445. Conflict: 409,
  22446. Gone: 410,
  22447. LengthRequired: 411,
  22448. PreconditionFailed: 412,
  22449. PayloadTooLarge: 413,
  22450. UriTooLong: 414,
  22451. UnsupportedMediaType: 415,
  22452. RangeNotSatisfiable: 416,
  22453. ExpectationFailed: 417,
  22454. ImATeapot: 418,
  22455. MisdirectedRequest: 421,
  22456. UnprocessableEntity: 422,
  22457. Locked: 423,
  22458. FailedDependency: 424,
  22459. TooEarly: 425,
  22460. UpgradeRequired: 426,
  22461. PreconditionRequired: 428,
  22462. TooManyRequests: 429,
  22463. RequestHeaderFieldsTooLarge: 431,
  22464. UnavailableForLegalReasons: 451,
  22465. InternalServerError: 500,
  22466. NotImplemented: 501,
  22467. BadGateway: 502,
  22468. ServiceUnavailable: 503,
  22469. GatewayTimeout: 504,
  22470. HttpVersionNotSupported: 505,
  22471. VariantAlsoNegotiates: 506,
  22472. InsufficientStorage: 507,
  22473. LoopDetected: 508,
  22474. NotExtended: 510,
  22475. NetworkAuthenticationRequired: 511
  22476. };
  22477. Object.entries(HttpStatusCode).forEach(function (_ref) {
  22478. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  22479. key = _ref2[0],
  22480. value = _ref2[1];
  22481. HttpStatusCode[value] = key;
  22482. });
  22483. var _default = HttpStatusCode;
  22484. exports.default = _default;
  22485. /***/ }),
  22486. /* 231 */,
  22487. /* 232 */,
  22488. /* 233 */,
  22489. /* 234 */,
  22490. /* 235 */,
  22491. /* 236 */,
  22492. /* 237 */,
  22493. /* 238 */,
  22494. /* 239 */,
  22495. /* 240 */,
  22496. /* 241 */,
  22497. /* 242 */,
  22498. /* 243 */,
  22499. /* 244 */,
  22500. /* 245 */,
  22501. /* 246 */
  22502. /*!******************************************************************************************!*\
  22503. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/components/u-radio-group/props.js ***!
  22504. \******************************************************************************************/
  22505. /*! no static exports found */
  22506. /***/ (function(module, exports, __webpack_require__) {
  22507. "use strict";
  22508. /* WEBPACK VAR INJECTION */(function(uni) {
  22509. Object.defineProperty(exports, "__esModule", {
  22510. value: true
  22511. });
  22512. exports.default = void 0;
  22513. var _default = {
  22514. props: {
  22515. // 绑定的值
  22516. value: {
  22517. type: [String, Number, Boolean],
  22518. default: uni.$u.props.radioGroup.value
  22519. },
  22520. // 是否禁用全部radio
  22521. disabled: {
  22522. type: Boolean,
  22523. default: uni.$u.props.radioGroup.disabled
  22524. },
  22525. // 形状,circle-圆形,square-方形
  22526. shape: {
  22527. type: String,
  22528. default: uni.$u.props.radioGroup.shape
  22529. },
  22530. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  22531. activeColor: {
  22532. type: String,
  22533. default: uni.$u.props.radioGroup.activeColor
  22534. },
  22535. // 未选中的颜色
  22536. inactiveColor: {
  22537. type: String,
  22538. default: uni.$u.props.radioGroup.inactiveColor
  22539. },
  22540. // 标识符
  22541. name: {
  22542. type: String,
  22543. default: uni.$u.props.radioGroup.name
  22544. },
  22545. // 整个组件的尺寸,默认px
  22546. size: {
  22547. type: [String, Number],
  22548. default: uni.$u.props.radioGroup.size
  22549. },
  22550. // 布局方式,row-横向,column-纵向
  22551. placement: {
  22552. type: String,
  22553. default: uni.$u.props.radioGroup.placement
  22554. },
  22555. // label的文本
  22556. label: {
  22557. type: [String],
  22558. default: uni.$u.props.radioGroup.label
  22559. },
  22560. // label的颜色 (默认 '#303133' )
  22561. labelColor: {
  22562. type: [String],
  22563. default: uni.$u.props.radioGroup.labelColor
  22564. },
  22565. // label的字体大小,px单位
  22566. labelSize: {
  22567. type: [String, Number],
  22568. default: uni.$u.props.radioGroup.labelSize
  22569. },
  22570. // 是否禁止点击文本操作checkbox(默认 false )
  22571. labelDisabled: {
  22572. type: Boolean,
  22573. default: uni.$u.props.radioGroup.labelDisabled
  22574. },
  22575. // 图标颜色
  22576. iconColor: {
  22577. type: String,
  22578. default: uni.$u.props.radioGroup.iconColor
  22579. },
  22580. // 图标的大小,单位px
  22581. iconSize: {
  22582. type: [String, Number],
  22583. default: uni.$u.props.radioGroup.iconSize
  22584. },
  22585. // 竖向配列时,是否显示下划线
  22586. borderBottom: {
  22587. type: Boolean,
  22588. default: uni.$u.props.radioGroup.borderBottom
  22589. },
  22590. // 图标与文字的对齐方式
  22591. iconPlacement: {
  22592. type: String,
  22593. default: uni.$u.props.radio.iconPlacement
  22594. }
  22595. }
  22596. };
  22597. exports.default = _default;
  22598. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22599. /***/ }),
  22600. /* 247 */,
  22601. /* 248 */,
  22602. /* 249 */,
  22603. /* 250 */,
  22604. /* 251 */,
  22605. /* 252 */,
  22606. /* 253 */,
  22607. /* 254 */
  22608. /*!************************************************************************************!*\
  22609. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/components/u-radio/props.js ***!
  22610. \************************************************************************************/
  22611. /*! no static exports found */
  22612. /***/ (function(module, exports, __webpack_require__) {
  22613. "use strict";
  22614. /* WEBPACK VAR INJECTION */(function(uni) {
  22615. Object.defineProperty(exports, "__esModule", {
  22616. value: true
  22617. });
  22618. exports.default = void 0;
  22619. var _default = {
  22620. props: {
  22621. // radio的名称
  22622. name: {
  22623. type: [String, Number, Boolean],
  22624. default: uni.$u.props.radio.name
  22625. },
  22626. // 形状,square为方形,circle为圆型
  22627. shape: {
  22628. type: String,
  22629. default: uni.$u.props.radio.shape
  22630. },
  22631. // 是否禁用
  22632. disabled: {
  22633. type: [String, Boolean],
  22634. default: uni.$u.props.radio.disabled
  22635. },
  22636. // 是否禁止点击提示语选中单选框
  22637. labelDisabled: {
  22638. type: [String, Boolean],
  22639. default: uni.$u.props.radio.labelDisabled
  22640. },
  22641. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  22642. activeColor: {
  22643. type: String,
  22644. default: uni.$u.props.radio.activeColor
  22645. },
  22646. // 未选中的颜色
  22647. inactiveColor: {
  22648. type: String,
  22649. default: uni.$u.props.radio.inactiveColor
  22650. },
  22651. // 图标的大小,单位px
  22652. iconSize: {
  22653. type: [String, Number],
  22654. default: uni.$u.props.radio.iconSize
  22655. },
  22656. // label的字体大小,px单位
  22657. labelSize: {
  22658. type: [String, Number],
  22659. default: uni.$u.props.radio.labelSize
  22660. },
  22661. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  22662. label: {
  22663. type: [String, Number],
  22664. default: uni.$u.props.radio.label
  22665. },
  22666. // 整体的大小
  22667. size: {
  22668. type: [String, Number],
  22669. default: uni.$u.props.radio.size
  22670. },
  22671. // 图标颜色
  22672. color: {
  22673. type: String,
  22674. default: uni.$u.props.radio.color
  22675. },
  22676. // label的颜色
  22677. labelColor: {
  22678. type: String,
  22679. default: uni.$u.props.radio.labelColor
  22680. }
  22681. }
  22682. };
  22683. exports.default = _default;
  22684. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22685. /***/ }),
  22686. /* 255 */,
  22687. /* 256 */,
  22688. /* 257 */,
  22689. /* 258 */,
  22690. /* 259 */,
  22691. /* 260 */,
  22692. /* 261 */,
  22693. /* 262 */
  22694. /*!************************************************************************************!*\
  22695. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/components/u-input/props.js ***!
  22696. \************************************************************************************/
  22697. /*! no static exports found */
  22698. /***/ (function(module, exports, __webpack_require__) {
  22699. "use strict";
  22700. /* WEBPACK VAR INJECTION */(function(uni) {
  22701. Object.defineProperty(exports, "__esModule", {
  22702. value: true
  22703. });
  22704. exports.default = void 0;
  22705. var _default = {
  22706. props: {
  22707. // 输入的值
  22708. value: {
  22709. type: [String, Number],
  22710. default: uni.$u.props.input.value
  22711. },
  22712. // 输入框类型
  22713. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  22714. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  22715. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  22716. // text-文本输入键盘
  22717. type: {
  22718. type: String,
  22719. default: uni.$u.props.input.type
  22720. },
  22721. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  22722. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  22723. fixed: {
  22724. type: Boolean,
  22725. default: uni.$u.props.input.fixed
  22726. },
  22727. // 是否禁用输入框
  22728. disabled: {
  22729. type: Boolean,
  22730. default: uni.$u.props.input.disabled
  22731. },
  22732. // 禁用状态时的背景色
  22733. disabledColor: {
  22734. type: String,
  22735. default: uni.$u.props.input.disabledColor
  22736. },
  22737. // 是否显示清除控件
  22738. clearable: {
  22739. type: Boolean,
  22740. default: uni.$u.props.input.clearable
  22741. },
  22742. // 是否密码类型
  22743. password: {
  22744. type: Boolean,
  22745. default: uni.$u.props.input.password
  22746. },
  22747. // 最大输入长度,设置为 -1 的时候不限制最大长度
  22748. maxlength: {
  22749. type: [String, Number],
  22750. default: uni.$u.props.input.maxlength
  22751. },
  22752. // 输入框为空时的占位符
  22753. placeholder: {
  22754. type: String,
  22755. default: uni.$u.props.input.placeholder
  22756. },
  22757. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  22758. placeholderClass: {
  22759. type: String,
  22760. default: uni.$u.props.input.placeholderClass
  22761. },
  22762. // 指定placeholder的样式
  22763. placeholderStyle: {
  22764. type: [String, Object],
  22765. default: uni.$u.props.input.placeholderStyle
  22766. },
  22767. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  22768. showWordLimit: {
  22769. type: Boolean,
  22770. default: uni.$u.props.input.showWordLimit
  22771. },
  22772. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  22773. // https://uniapp.dcloud.io/component/input
  22774. // https://uniapp.dcloud.io/component/textarea
  22775. confirmType: {
  22776. type: String,
  22777. default: uni.$u.props.input.confirmType
  22778. },
  22779. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  22780. confirmHold: {
  22781. type: Boolean,
  22782. default: uni.$u.props.input.confirmHold
  22783. },
  22784. // focus时,点击页面的时候不收起键盘,微信小程序有效
  22785. holdKeyboard: {
  22786. type: Boolean,
  22787. default: uni.$u.props.input.holdKeyboard
  22788. },
  22789. // 自动获取焦点
  22790. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  22791. focus: {
  22792. type: Boolean,
  22793. default: uni.$u.props.input.focus
  22794. },
  22795. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  22796. autoBlur: {
  22797. type: Boolean,
  22798. default: uni.$u.props.input.autoBlur
  22799. },
  22800. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  22801. disableDefaultPadding: {
  22802. type: Boolean,
  22803. default: uni.$u.props.input.disableDefaultPadding
  22804. },
  22805. // 指定focus时光标的位置
  22806. cursor: {
  22807. type: [String, Number],
  22808. default: uni.$u.props.input.cursor
  22809. },
  22810. // 输入框聚焦时底部与键盘的距离
  22811. cursorSpacing: {
  22812. type: [String, Number],
  22813. default: uni.$u.props.input.cursorSpacing
  22814. },
  22815. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  22816. selectionStart: {
  22817. type: [String, Number],
  22818. default: uni.$u.props.input.selectionStart
  22819. },
  22820. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  22821. selectionEnd: {
  22822. type: [String, Number],
  22823. default: uni.$u.props.input.selectionEnd
  22824. },
  22825. // 键盘弹起时,是否自动上推页面
  22826. adjustPosition: {
  22827. type: Boolean,
  22828. default: uni.$u.props.input.adjustPosition
  22829. },
  22830. // 输入框内容对齐方式,可选值为:left|center|right
  22831. inputAlign: {
  22832. type: String,
  22833. default: uni.$u.props.input.inputAlign
  22834. },
  22835. // 输入框字体的大小
  22836. fontSize: {
  22837. type: [String, Number],
  22838. default: uni.$u.props.input.fontSize
  22839. },
  22840. // 输入框字体颜色
  22841. color: {
  22842. type: String,
  22843. default: uni.$u.props.input.color
  22844. },
  22845. // 输入框前置图标
  22846. prefixIcon: {
  22847. type: String,
  22848. default: uni.$u.props.input.prefixIcon
  22849. },
  22850. // 前置图标样式,对象或字符串
  22851. prefixIconStyle: {
  22852. type: [String, Object],
  22853. default: uni.$u.props.input.prefixIconStyle
  22854. },
  22855. // 输入框后置图标
  22856. suffixIcon: {
  22857. type: String,
  22858. default: uni.$u.props.input.suffixIcon
  22859. },
  22860. // 后置图标样式,对象或字符串
  22861. suffixIconStyle: {
  22862. type: [String, Object],
  22863. default: uni.$u.props.input.suffixIconStyle
  22864. },
  22865. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  22866. border: {
  22867. type: String,
  22868. default: uni.$u.props.input.border
  22869. },
  22870. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  22871. readonly: {
  22872. type: Boolean,
  22873. default: uni.$u.props.input.readonly
  22874. },
  22875. // 输入框形状,circle-圆形,square-方形
  22876. shape: {
  22877. type: String,
  22878. default: uni.$u.props.input.shape
  22879. },
  22880. // 用于处理或者过滤输入框内容的方法
  22881. formatter: {
  22882. type: [Function, null],
  22883. default: uni.$u.props.input.formatter
  22884. },
  22885. // 是否忽略组件内对文本合成系统事件的处理
  22886. ignoreCompositionEvent: {
  22887. type: Boolean,
  22888. default: true
  22889. }
  22890. }
  22891. };
  22892. exports.default = _default;
  22893. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22894. /***/ }),
  22895. /* 263 */,
  22896. /* 264 */,
  22897. /* 265 */,
  22898. /* 266 */,
  22899. /* 267 */,
  22900. /* 268 */,
  22901. /* 269 */,
  22902. /* 270 */
  22903. /*!***********************************************************************************!*\
  22904. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/components/u-icon/icons.js ***!
  22905. \***********************************************************************************/
  22906. /*! no static exports found */
  22907. /***/ (function(module, exports, __webpack_require__) {
  22908. "use strict";
  22909. Object.defineProperty(exports, "__esModule", {
  22910. value: true
  22911. });
  22912. exports.default = void 0;
  22913. var _default = {
  22914. 'uicon-level': "\uE693",
  22915. 'uicon-column-line': "\uE68E",
  22916. 'uicon-checkbox-mark': "\uE807",
  22917. 'uicon-folder': "\uE7F5",
  22918. 'uicon-movie': "\uE7F6",
  22919. 'uicon-star-fill': "\uE669",
  22920. 'uicon-star': "\uE65F",
  22921. 'uicon-phone-fill': "\uE64F",
  22922. 'uicon-phone': "\uE622",
  22923. 'uicon-apple-fill': "\uE881",
  22924. 'uicon-chrome-circle-fill': "\uE885",
  22925. 'uicon-backspace': "\uE67B",
  22926. 'uicon-attach': "\uE632",
  22927. 'uicon-cut': "\uE948",
  22928. 'uicon-empty-car': "\uE602",
  22929. 'uicon-empty-coupon': "\uE682",
  22930. 'uicon-empty-address': "\uE646",
  22931. 'uicon-empty-favor': "\uE67C",
  22932. 'uicon-empty-permission': "\uE686",
  22933. 'uicon-empty-news': "\uE687",
  22934. 'uicon-empty-search': "\uE664",
  22935. 'uicon-github-circle-fill': "\uE887",
  22936. 'uicon-rmb': "\uE608",
  22937. 'uicon-person-delete-fill': "\uE66A",
  22938. 'uicon-reload': "\uE788",
  22939. 'uicon-order': "\uE68F",
  22940. 'uicon-server-man': "\uE6BC",
  22941. 'uicon-search': "\uE62A",
  22942. 'uicon-fingerprint': "\uE955",
  22943. 'uicon-more-dot-fill': "\uE630",
  22944. 'uicon-scan': "\uE662",
  22945. 'uicon-share-square': "\uE60B",
  22946. 'uicon-map': "\uE61D",
  22947. 'uicon-map-fill': "\uE64E",
  22948. 'uicon-tags': "\uE629",
  22949. 'uicon-tags-fill': "\uE651",
  22950. 'uicon-bookmark-fill': "\uE63B",
  22951. 'uicon-bookmark': "\uE60A",
  22952. 'uicon-eye': "\uE613",
  22953. 'uicon-eye-fill': "\uE641",
  22954. 'uicon-mic': "\uE64A",
  22955. 'uicon-mic-off': "\uE649",
  22956. 'uicon-calendar': "\uE66E",
  22957. 'uicon-calendar-fill': "\uE634",
  22958. 'uicon-trash': "\uE623",
  22959. 'uicon-trash-fill': "\uE658",
  22960. 'uicon-play-left': "\uE66D",
  22961. 'uicon-play-right': "\uE610",
  22962. 'uicon-minus': "\uE618",
  22963. 'uicon-plus': "\uE62D",
  22964. 'uicon-info': "\uE653",
  22965. 'uicon-info-circle': "\uE7D2",
  22966. 'uicon-info-circle-fill': "\uE64B",
  22967. 'uicon-question': "\uE715",
  22968. 'uicon-error': "\uE6D3",
  22969. 'uicon-close': "\uE685",
  22970. 'uicon-checkmark': "\uE6A8",
  22971. 'uicon-android-circle-fill': "\uE67E",
  22972. 'uicon-android-fill': "\uE67D",
  22973. 'uicon-ie': "\uE87B",
  22974. 'uicon-IE-circle-fill': "\uE889",
  22975. 'uicon-google': "\uE87A",
  22976. 'uicon-google-circle-fill': "\uE88A",
  22977. 'uicon-setting-fill': "\uE872",
  22978. 'uicon-setting': "\uE61F",
  22979. 'uicon-minus-square-fill': "\uE855",
  22980. 'uicon-plus-square-fill': "\uE856",
  22981. 'uicon-heart': "\uE7DF",
  22982. 'uicon-heart-fill': "\uE851",
  22983. 'uicon-camera': "\uE7D7",
  22984. 'uicon-camera-fill': "\uE870",
  22985. 'uicon-more-circle': "\uE63E",
  22986. 'uicon-more-circle-fill': "\uE645",
  22987. 'uicon-chat': "\uE620",
  22988. 'uicon-chat-fill': "\uE61E",
  22989. 'uicon-bag-fill': "\uE617",
  22990. 'uicon-bag': "\uE619",
  22991. 'uicon-error-circle-fill': "\uE62C",
  22992. 'uicon-error-circle': "\uE624",
  22993. 'uicon-close-circle': "\uE63F",
  22994. 'uicon-close-circle-fill': "\uE637",
  22995. 'uicon-checkmark-circle': "\uE63D",
  22996. 'uicon-checkmark-circle-fill': "\uE635",
  22997. 'uicon-question-circle-fill': "\uE666",
  22998. 'uicon-question-circle': "\uE625",
  22999. 'uicon-share': "\uE631",
  23000. 'uicon-share-fill': "\uE65E",
  23001. 'uicon-shopping-cart': "\uE621",
  23002. 'uicon-shopping-cart-fill': "\uE65D",
  23003. 'uicon-bell': "\uE609",
  23004. 'uicon-bell-fill': "\uE640",
  23005. 'uicon-list': "\uE650",
  23006. 'uicon-list-dot': "\uE616",
  23007. 'uicon-zhihu': "\uE6BA",
  23008. 'uicon-zhihu-circle-fill': "\uE709",
  23009. 'uicon-zhifubao': "\uE6B9",
  23010. 'uicon-zhifubao-circle-fill': "\uE6B8",
  23011. 'uicon-weixin-circle-fill': "\uE6B1",
  23012. 'uicon-weixin-fill': "\uE6B2",
  23013. 'uicon-twitter-circle-fill': "\uE6AB",
  23014. 'uicon-twitter': "\uE6AA",
  23015. 'uicon-taobao-circle-fill': "\uE6A7",
  23016. 'uicon-taobao': "\uE6A6",
  23017. 'uicon-weibo-circle-fill': "\uE6A5",
  23018. 'uicon-weibo': "\uE6A4",
  23019. 'uicon-qq-fill': "\uE6A1",
  23020. 'uicon-qq-circle-fill': "\uE6A0",
  23021. 'uicon-moments-circel-fill': "\uE69A",
  23022. 'uicon-moments': "\uE69B",
  23023. 'uicon-qzone': "\uE695",
  23024. 'uicon-qzone-circle-fill': "\uE696",
  23025. 'uicon-baidu-circle-fill': "\uE680",
  23026. 'uicon-baidu': "\uE681",
  23027. 'uicon-facebook-circle-fill': "\uE68A",
  23028. 'uicon-facebook': "\uE689",
  23029. 'uicon-car': "\uE60C",
  23030. 'uicon-car-fill': "\uE636",
  23031. 'uicon-warning-fill': "\uE64D",
  23032. 'uicon-warning': "\uE694",
  23033. 'uicon-clock-fill': "\uE638",
  23034. 'uicon-clock': "\uE60F",
  23035. 'uicon-edit-pen': "\uE612",
  23036. 'uicon-edit-pen-fill': "\uE66B",
  23037. 'uicon-email': "\uE611",
  23038. 'uicon-email-fill': "\uE642",
  23039. 'uicon-minus-circle': "\uE61B",
  23040. 'uicon-minus-circle-fill': "\uE652",
  23041. 'uicon-plus-circle': "\uE62E",
  23042. 'uicon-plus-circle-fill': "\uE661",
  23043. 'uicon-file-text': "\uE663",
  23044. 'uicon-file-text-fill': "\uE665",
  23045. 'uicon-pushpin': "\uE7E3",
  23046. 'uicon-pushpin-fill': "\uE86E",
  23047. 'uicon-grid': "\uE673",
  23048. 'uicon-grid-fill': "\uE678",
  23049. 'uicon-play-circle': "\uE647",
  23050. 'uicon-play-circle-fill': "\uE655",
  23051. 'uicon-pause-circle-fill': "\uE654",
  23052. 'uicon-pause': "\uE8FA",
  23053. 'uicon-pause-circle': "\uE643",
  23054. 'uicon-eye-off': "\uE648",
  23055. 'uicon-eye-off-outline': "\uE62B",
  23056. 'uicon-gift-fill': "\uE65C",
  23057. 'uicon-gift': "\uE65B",
  23058. 'uicon-rmb-circle-fill': "\uE657",
  23059. 'uicon-rmb-circle': "\uE677",
  23060. 'uicon-kefu-ermai': "\uE656",
  23061. 'uicon-server-fill': "\uE751",
  23062. 'uicon-coupon-fill': "\uE8C4",
  23063. 'uicon-coupon': "\uE8AE",
  23064. 'uicon-integral': "\uE704",
  23065. 'uicon-integral-fill': "\uE703",
  23066. 'uicon-home-fill': "\uE964",
  23067. 'uicon-home': "\uE965",
  23068. 'uicon-hourglass-half-fill': "\uE966",
  23069. 'uicon-hourglass': "\uE967",
  23070. 'uicon-account': "\uE628",
  23071. 'uicon-plus-people-fill': "\uE626",
  23072. 'uicon-minus-people-fill': "\uE615",
  23073. 'uicon-account-fill': "\uE614",
  23074. 'uicon-thumb-down-fill': "\uE726",
  23075. 'uicon-thumb-down': "\uE727",
  23076. 'uicon-thumb-up': "\uE733",
  23077. 'uicon-thumb-up-fill': "\uE72F",
  23078. 'uicon-lock-fill': "\uE979",
  23079. 'uicon-lock-open': "\uE973",
  23080. 'uicon-lock-opened-fill': "\uE974",
  23081. 'uicon-lock': "\uE97A",
  23082. 'uicon-red-packet-fill': "\uE690",
  23083. 'uicon-photo-fill': "\uE98B",
  23084. 'uicon-photo': "\uE98D",
  23085. 'uicon-volume-off-fill': "\uE659",
  23086. 'uicon-volume-off': "\uE644",
  23087. 'uicon-volume-fill': "\uE670",
  23088. 'uicon-volume': "\uE633",
  23089. 'uicon-red-packet': "\uE691",
  23090. 'uicon-download': "\uE63C",
  23091. 'uicon-arrow-up-fill': "\uE6B0",
  23092. 'uicon-arrow-down-fill': "\uE600",
  23093. 'uicon-play-left-fill': "\uE675",
  23094. 'uicon-play-right-fill': "\uE676",
  23095. 'uicon-rewind-left-fill': "\uE679",
  23096. 'uicon-rewind-right-fill': "\uE67A",
  23097. 'uicon-arrow-downward': "\uE604",
  23098. 'uicon-arrow-leftward': "\uE601",
  23099. 'uicon-arrow-rightward': "\uE603",
  23100. 'uicon-arrow-upward': "\uE607",
  23101. 'uicon-arrow-down': "\uE60D",
  23102. 'uicon-arrow-right': "\uE605",
  23103. 'uicon-arrow-left': "\uE60E",
  23104. 'uicon-arrow-up': "\uE606",
  23105. 'uicon-skip-back-left': "\uE674",
  23106. 'uicon-skip-forward-right': "\uE672",
  23107. 'uicon-rewind-right': "\uE66F",
  23108. 'uicon-rewind-left': "\uE671",
  23109. 'uicon-arrow-right-double': "\uE68D",
  23110. 'uicon-arrow-left-double': "\uE68C",
  23111. 'uicon-wifi-off': "\uE668",
  23112. 'uicon-wifi': "\uE667",
  23113. 'uicon-empty-data': "\uE62F",
  23114. 'uicon-empty-history': "\uE684",
  23115. 'uicon-empty-list': "\uE68B",
  23116. 'uicon-empty-page': "\uE627",
  23117. 'uicon-empty-order': "\uE639",
  23118. 'uicon-man': "\uE697",
  23119. 'uicon-woman': "\uE69C",
  23120. 'uicon-man-add': "\uE61C",
  23121. 'uicon-man-add-fill': "\uE64C",
  23122. 'uicon-man-delete': "\uE61A",
  23123. 'uicon-man-delete-fill': "\uE66A",
  23124. 'uicon-zh': "\uE70A",
  23125. 'uicon-en': "\uE692"
  23126. };
  23127. exports.default = _default;
  23128. /***/ }),
  23129. /* 271 */
  23130. /*!***********************************************************************************!*\
  23131. !*** E:/hbuildweepspace/sacanPay/uni_modules/uview-ui/components/u-icon/props.js ***!
  23132. \***********************************************************************************/
  23133. /*! no static exports found */
  23134. /***/ (function(module, exports, __webpack_require__) {
  23135. "use strict";
  23136. /* WEBPACK VAR INJECTION */(function(uni) {
  23137. Object.defineProperty(exports, "__esModule", {
  23138. value: true
  23139. });
  23140. exports.default = void 0;
  23141. var _default = {
  23142. props: {
  23143. // 图标类名
  23144. name: {
  23145. type: String,
  23146. default: uni.$u.props.icon.name
  23147. },
  23148. // 图标颜色,可接受主题色
  23149. color: {
  23150. type: String,
  23151. default: uni.$u.props.icon.color
  23152. },
  23153. // 字体大小,单位px
  23154. size: {
  23155. type: [String, Number],
  23156. default: uni.$u.props.icon.size
  23157. },
  23158. // 是否显示粗体
  23159. bold: {
  23160. type: Boolean,
  23161. default: uni.$u.props.icon.bold
  23162. },
  23163. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  23164. index: {
  23165. type: [String, Number],
  23166. default: uni.$u.props.icon.index
  23167. },
  23168. // 触摸图标时的类名
  23169. hoverClass: {
  23170. type: String,
  23171. default: uni.$u.props.icon.hoverClass
  23172. },
  23173. // 自定义扩展前缀,方便用户扩展自己的图标库
  23174. customPrefix: {
  23175. type: String,
  23176. default: uni.$u.props.icon.customPrefix
  23177. },
  23178. // 图标右边或者下面的文字
  23179. label: {
  23180. type: [String, Number],
  23181. default: uni.$u.props.icon.label
  23182. },
  23183. // label的位置,只能右边或者下边
  23184. labelPos: {
  23185. type: String,
  23186. default: uni.$u.props.icon.labelPos
  23187. },
  23188. // label的大小
  23189. labelSize: {
  23190. type: [String, Number],
  23191. default: uni.$u.props.icon.labelSize
  23192. },
  23193. // label的颜色
  23194. labelColor: {
  23195. type: String,
  23196. default: uni.$u.props.icon.labelColor
  23197. },
  23198. // label与图标的距离
  23199. space: {
  23200. type: [String, Number],
  23201. default: uni.$u.props.icon.space
  23202. },
  23203. // 图片的mode
  23204. imgMode: {
  23205. type: String,
  23206. default: uni.$u.props.icon.imgMode
  23207. },
  23208. // 用于显示图片小图标时,图片的宽度
  23209. width: {
  23210. type: [String, Number],
  23211. default: uni.$u.props.icon.width
  23212. },
  23213. // 用于显示图片小图标时,图片的高度
  23214. height: {
  23215. type: [String, Number],
  23216. default: uni.$u.props.icon.height
  23217. },
  23218. // 用于解决某些情况下,让图标垂直居中的用途
  23219. top: {
  23220. type: [String, Number],
  23221. default: uni.$u.props.icon.top
  23222. },
  23223. // 是否阻止事件传播
  23224. stop: {
  23225. type: Boolean,
  23226. default: uni.$u.props.icon.stop
  23227. }
  23228. }
  23229. };
  23230. exports.default = _default;
  23231. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23232. /***/ })
  23233. ]]);
  23234. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map