vendor.js 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068
  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__4E38610",
  754. appName: "慧研学惠生活",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "3.98",
  759. uniRuntimeVersion: "3.98",
  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__4E38610",
  853. appName: "慧研学惠生活",
  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":"慧研学惠生活","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(arr, i) {
  2482. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2483. if (null != _i) {
  2484. var _s,
  2485. _e,
  2486. _x,
  2487. _r,
  2488. _arr = [],
  2489. _n = !0,
  2490. _d = !1;
  2491. try {
  2492. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2493. if (Object(_i) !== _i) return;
  2494. _n = !1;
  2495. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2496. ;
  2497. }
  2498. } catch (err) {
  2499. _d = !0, _e = err;
  2500. } finally {
  2501. try {
  2502. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2503. } finally {
  2504. if (_d) throw _e;
  2505. }
  2506. }
  2507. return _arr;
  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(arg) {
  2587. var key = toPrimitive(arg, "string");
  2588. return _typeof(key) === "symbol" ? key : String(key);
  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(obj) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2601. return typeof obj;
  2602. } : function (obj) {
  2603. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  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(input, hint) {
  2616. if (_typeof(input) !== "object" || input === null) return input;
  2617. var prim = input[Symbol.toPrimitive];
  2618. if (prim !== undefined) {
  2619. var res = prim.call(input, hint || "default");
  2620. if (_typeof(res) !== "object") return res;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return (hint === "string" ? String : Number)(input);
  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(Parent, args, Class) {
  2636. if (isNativeReflectConstruct()) {
  2637. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2638. } else {
  2639. module.exports = _construct = function _construct(Parent, args, Class) {
  2640. var a = [null];
  2641. a.push.apply(a, args);
  2642. var Constructor = Function.bind.apply(Parent, a);
  2643. var instance = new Constructor();
  2644. if (Class) setPrototypeOf(instance, Class.prototype);
  2645. return instance;
  2646. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2647. }
  2648. return _construct.apply(null, arguments);
  2649. }
  2650. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2651. /***/ }),
  2652. /* 16 */
  2653. /*!***************************************************************!*\
  2654. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2655. \***************************************************************/
  2656. /*! no static exports found */
  2657. /***/ (function(module, exports) {
  2658. function _setPrototypeOf(o, p) {
  2659. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2660. o.__proto__ = p;
  2661. return o;
  2662. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2663. return _setPrototypeOf(o, p);
  2664. }
  2665. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2666. /***/ }),
  2667. /* 17 */
  2668. /*!*************************************************************************!*\
  2669. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2670. \*************************************************************************/
  2671. /*! no static exports found */
  2672. /***/ (function(module, exports) {
  2673. function _isNativeReflectConstruct() {
  2674. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2675. if (Reflect.construct.sham) return false;
  2676. if (typeof Proxy === "function") return true;
  2677. try {
  2678. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2679. return true;
  2680. } catch (e) {
  2681. return false;
  2682. }
  2683. }
  2684. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2685. /***/ }),
  2686. /* 18 */
  2687. /*!******************************************************************!*\
  2688. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2689. \******************************************************************/
  2690. /*! no static exports found */
  2691. /***/ (function(module, exports, __webpack_require__) {
  2692. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2693. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2694. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2695. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2696. function _toConsumableArray(arr) {
  2697. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2698. }
  2699. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2700. /***/ }),
  2701. /* 19 */
  2702. /*!******************************************************************!*\
  2703. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2704. \******************************************************************/
  2705. /*! no static exports found */
  2706. /***/ (function(module, exports, __webpack_require__) {
  2707. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2708. function _arrayWithoutHoles(arr) {
  2709. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2710. }
  2711. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 20 */
  2714. /*!****************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2716. \****************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _iterableToArray(iter) {
  2720. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2721. }
  2722. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 21 */
  2725. /*!******************************************************************!*\
  2726. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2727. \******************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports) {
  2730. function _nonIterableSpread() {
  2731. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2732. }
  2733. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2734. /***/ }),
  2735. /* 22 */
  2736. /*!*************************************************************!*\
  2737. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2738. \*************************************************************/
  2739. /*! no static exports found */
  2740. /***/ (function(module, exports, __webpack_require__) {
  2741. "use strict";
  2742. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2743. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2744. Object.defineProperty(exports, "__esModule", {
  2745. value: true
  2746. });
  2747. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2748. exports.compileI18nJsonStr = compileI18nJsonStr;
  2749. exports.hasI18nJson = hasI18nJson;
  2750. exports.initVueI18n = initVueI18n;
  2751. exports.isI18nStr = isI18nStr;
  2752. exports.isString = void 0;
  2753. exports.normalizeLocale = normalizeLocale;
  2754. exports.parseI18nJson = parseI18nJson;
  2755. exports.resolveLocale = resolveLocale;
  2756. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2757. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2758. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2759. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2760. var isObject = function isObject(val) {
  2761. return val !== null && (0, _typeof2.default)(val) === 'object';
  2762. };
  2763. var defaultDelimiters = ['{', '}'];
  2764. var BaseFormatter = /*#__PURE__*/function () {
  2765. function BaseFormatter() {
  2766. (0, _classCallCheck2.default)(this, BaseFormatter);
  2767. this._caches = Object.create(null);
  2768. }
  2769. (0, _createClass2.default)(BaseFormatter, [{
  2770. key: "interpolate",
  2771. value: function interpolate(message, values) {
  2772. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2773. if (!values) {
  2774. return [message];
  2775. }
  2776. var tokens = this._caches[message];
  2777. if (!tokens) {
  2778. tokens = parse(message, delimiters);
  2779. this._caches[message] = tokens;
  2780. }
  2781. return compile(tokens, values);
  2782. }
  2783. }]);
  2784. return BaseFormatter;
  2785. }();
  2786. exports.Formatter = BaseFormatter;
  2787. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2788. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2789. function parse(format, _ref) {
  2790. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2791. startDelimiter = _ref2[0],
  2792. endDelimiter = _ref2[1];
  2793. var tokens = [];
  2794. var position = 0;
  2795. var text = '';
  2796. while (position < format.length) {
  2797. var char = format[position++];
  2798. if (char === startDelimiter) {
  2799. if (text) {
  2800. tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. }
  2805. text = '';
  2806. var sub = '';
  2807. char = format[position++];
  2808. while (char !== undefined && char !== endDelimiter) {
  2809. sub += char;
  2810. char = format[position++];
  2811. }
  2812. var isClosed = char === endDelimiter;
  2813. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2814. tokens.push({
  2815. value: sub,
  2816. type: type
  2817. });
  2818. }
  2819. // else if (char === '%') {
  2820. // // when found rails i18n syntax, skip text capture
  2821. // if (format[position] !== '{') {
  2822. // text += char
  2823. // }
  2824. // }
  2825. else {
  2826. text += char;
  2827. }
  2828. }
  2829. text && tokens.push({
  2830. type: 'text',
  2831. value: text
  2832. });
  2833. return tokens;
  2834. }
  2835. function compile(tokens, values) {
  2836. var compiled = [];
  2837. var index = 0;
  2838. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2839. if (mode === 'unknown') {
  2840. return compiled;
  2841. }
  2842. while (index < tokens.length) {
  2843. var token = tokens[index];
  2844. switch (token.type) {
  2845. case 'text':
  2846. compiled.push(token.value);
  2847. break;
  2848. case 'list':
  2849. compiled.push(values[parseInt(token.value, 10)]);
  2850. break;
  2851. case 'named':
  2852. if (mode === 'named') {
  2853. compiled.push(values[token.value]);
  2854. } else {
  2855. if (true) {
  2856. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2857. }
  2858. }
  2859. break;
  2860. case 'unknown':
  2861. if (true) {
  2862. console.warn("Detect 'unknown' type of token!");
  2863. }
  2864. break;
  2865. }
  2866. index++;
  2867. }
  2868. return compiled;
  2869. }
  2870. var LOCALE_ZH_HANS = 'zh-Hans';
  2871. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2872. var LOCALE_ZH_HANT = 'zh-Hant';
  2873. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2874. var LOCALE_EN = 'en';
  2875. exports.LOCALE_EN = LOCALE_EN;
  2876. var LOCALE_FR = 'fr';
  2877. exports.LOCALE_FR = LOCALE_FR;
  2878. var LOCALE_ES = 'es';
  2879. exports.LOCALE_ES = LOCALE_ES;
  2880. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2881. var hasOwn = function hasOwn(val, key) {
  2882. return hasOwnProperty.call(val, key);
  2883. };
  2884. var defaultFormatter = new BaseFormatter();
  2885. function include(str, parts) {
  2886. return !!parts.find(function (part) {
  2887. return str.indexOf(part) !== -1;
  2888. });
  2889. }
  2890. function startsWith(str, parts) {
  2891. return parts.find(function (part) {
  2892. return str.indexOf(part) === 0;
  2893. });
  2894. }
  2895. function normalizeLocale(locale, messages) {
  2896. if (!locale) {
  2897. return;
  2898. }
  2899. locale = locale.trim().replace(/_/g, '-');
  2900. if (messages && messages[locale]) {
  2901. return locale;
  2902. }
  2903. locale = locale.toLowerCase();
  2904. if (locale === 'chinese') {
  2905. // 支付宝
  2906. return LOCALE_ZH_HANS;
  2907. }
  2908. if (locale.indexOf('zh') === 0) {
  2909. if (locale.indexOf('-hans') > -1) {
  2910. return LOCALE_ZH_HANS;
  2911. }
  2912. if (locale.indexOf('-hant') > -1) {
  2913. return LOCALE_ZH_HANT;
  2914. }
  2915. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. return LOCALE_ZH_HANS;
  2919. }
  2920. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2921. if (messages && Object.keys(messages).length > 0) {
  2922. locales = Object.keys(messages);
  2923. }
  2924. var lang = startsWith(locale, locales);
  2925. if (lang) {
  2926. return lang;
  2927. }
  2928. }
  2929. var I18n = /*#__PURE__*/function () {
  2930. function I18n(_ref3) {
  2931. var locale = _ref3.locale,
  2932. fallbackLocale = _ref3.fallbackLocale,
  2933. messages = _ref3.messages,
  2934. watcher = _ref3.watcher,
  2935. formater = _ref3.formater;
  2936. (0, _classCallCheck2.default)(this, I18n);
  2937. this.locale = LOCALE_EN;
  2938. this.fallbackLocale = LOCALE_EN;
  2939. this.message = {};
  2940. this.messages = {};
  2941. this.watchers = [];
  2942. if (fallbackLocale) {
  2943. this.fallbackLocale = fallbackLocale;
  2944. }
  2945. this.formater = formater || defaultFormatter;
  2946. this.messages = messages || {};
  2947. this.setLocale(locale || LOCALE_EN);
  2948. if (watcher) {
  2949. this.watchLocale(watcher);
  2950. }
  2951. }
  2952. (0, _createClass2.default)(I18n, [{
  2953. key: "setLocale",
  2954. value: function setLocale(locale) {
  2955. var _this = this;
  2956. var oldLocale = this.locale;
  2957. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2958. if (!this.messages[this.locale]) {
  2959. // 可能初始化时不存在
  2960. this.messages[this.locale] = {};
  2961. }
  2962. this.message = this.messages[this.locale];
  2963. // 仅发生变化时,通知
  2964. if (oldLocale !== this.locale) {
  2965. this.watchers.forEach(function (watcher) {
  2966. watcher(_this.locale, oldLocale);
  2967. });
  2968. }
  2969. }
  2970. }, {
  2971. key: "getLocale",
  2972. value: function getLocale() {
  2973. return this.locale;
  2974. }
  2975. }, {
  2976. key: "watchLocale",
  2977. value: function watchLocale(fn) {
  2978. var _this2 = this;
  2979. var index = this.watchers.push(fn) - 1;
  2980. return function () {
  2981. _this2.watchers.splice(index, 1);
  2982. };
  2983. }
  2984. }, {
  2985. key: "add",
  2986. value: function add(locale, message) {
  2987. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2988. var curMessages = this.messages[locale];
  2989. if (curMessages) {
  2990. if (override) {
  2991. Object.assign(curMessages, message);
  2992. } else {
  2993. Object.keys(message).forEach(function (key) {
  2994. if (!hasOwn(curMessages, key)) {
  2995. curMessages[key] = message[key];
  2996. }
  2997. });
  2998. }
  2999. } else {
  3000. this.messages[locale] = message;
  3001. }
  3002. }
  3003. }, {
  3004. key: "f",
  3005. value: function f(message, values, delimiters) {
  3006. return this.formater.interpolate(message, values, delimiters).join('');
  3007. }
  3008. }, {
  3009. key: "t",
  3010. value: function t(key, locale, values) {
  3011. var message = this.message;
  3012. if (typeof locale === 'string') {
  3013. locale = normalizeLocale(locale, this.messages);
  3014. locale && (message = this.messages[locale]);
  3015. } else {
  3016. values = locale;
  3017. }
  3018. if (!hasOwn(message, key)) {
  3019. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3020. return key;
  3021. }
  3022. return this.formater.interpolate(message[key], values).join('');
  3023. }
  3024. }]);
  3025. return I18n;
  3026. }();
  3027. exports.I18n = I18n;
  3028. function watchAppLocale(appVm, i18n) {
  3029. // 需要保证 watch 的触发在组件渲染之前
  3030. if (appVm.$watchLocale) {
  3031. // vue2
  3032. appVm.$watchLocale(function (newLocale) {
  3033. i18n.setLocale(newLocale);
  3034. });
  3035. } else {
  3036. appVm.$watch(function () {
  3037. return appVm.$locale;
  3038. }, function (newLocale) {
  3039. i18n.setLocale(newLocale);
  3040. });
  3041. }
  3042. }
  3043. function getDefaultLocale() {
  3044. if (typeof uni !== 'undefined' && uni.getLocale) {
  3045. return uni.getLocale();
  3046. }
  3047. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3048. if (typeof global !== 'undefined' && global.getLocale) {
  3049. return global.getLocale();
  3050. }
  3051. return LOCALE_EN;
  3052. }
  3053. function initVueI18n(locale) {
  3054. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3055. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3056. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3057. // 兼容旧版本入参
  3058. if (typeof locale !== 'string') {
  3059. var _ref4 = [messages, locale];
  3060. locale = _ref4[0];
  3061. messages = _ref4[1];
  3062. }
  3063. if (typeof locale !== 'string') {
  3064. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3065. locale = getDefaultLocale();
  3066. }
  3067. if (typeof fallbackLocale !== 'string') {
  3068. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3069. }
  3070. var i18n = new I18n({
  3071. locale: locale,
  3072. fallbackLocale: fallbackLocale,
  3073. messages: messages,
  3074. watcher: watcher
  3075. });
  3076. var _t = function t(key, values) {
  3077. if (typeof getApp !== 'function') {
  3078. // app view
  3079. /* eslint-disable no-func-assign */
  3080. _t = function t(key, values) {
  3081. return i18n.t(key, values);
  3082. };
  3083. } else {
  3084. var isWatchedAppLocale = false;
  3085. _t = function t(key, values) {
  3086. var appVm = getApp().$vm;
  3087. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3088. // options: {
  3089. // type: Array,
  3090. // default () {
  3091. // return [{
  3092. // icon: 'shop',
  3093. // text: t("uni-goods-nav.options.shop"),
  3094. // }, {
  3095. // icon: 'cart',
  3096. // text: t("uni-goods-nav.options.cart")
  3097. // }]
  3098. // }
  3099. // },
  3100. if (appVm) {
  3101. // 触发响应式
  3102. appVm.$locale;
  3103. if (!isWatchedAppLocale) {
  3104. isWatchedAppLocale = true;
  3105. watchAppLocale(appVm, i18n);
  3106. }
  3107. }
  3108. return i18n.t(key, values);
  3109. };
  3110. }
  3111. return _t(key, values);
  3112. };
  3113. return {
  3114. i18n: i18n,
  3115. f: function f(message, values, delimiters) {
  3116. return i18n.f(message, values, delimiters);
  3117. },
  3118. t: function t(key, values) {
  3119. return _t(key, values);
  3120. },
  3121. add: function add(locale, message) {
  3122. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3123. return i18n.add(locale, message, override);
  3124. },
  3125. watch: function watch(fn) {
  3126. return i18n.watchLocale(fn);
  3127. },
  3128. getLocale: function getLocale() {
  3129. return i18n.getLocale();
  3130. },
  3131. setLocale: function setLocale(newLocale) {
  3132. return i18n.setLocale(newLocale);
  3133. }
  3134. };
  3135. }
  3136. var isString = function isString(val) {
  3137. return typeof val === 'string';
  3138. };
  3139. exports.isString = isString;
  3140. var formater;
  3141. function hasI18nJson(jsonObj, delimiters) {
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3146. var value = jsonObj[key];
  3147. if (isString(value)) {
  3148. if (isI18nStr(value, delimiters)) {
  3149. return true;
  3150. }
  3151. } else {
  3152. return hasI18nJson(value, delimiters);
  3153. }
  3154. });
  3155. }
  3156. function parseI18nJson(jsonObj, values, delimiters) {
  3157. if (!formater) {
  3158. formater = new BaseFormatter();
  3159. }
  3160. walkJsonObj(jsonObj, function (jsonObj, key) {
  3161. var value = jsonObj[key];
  3162. if (isString(value)) {
  3163. if (isI18nStr(value, delimiters)) {
  3164. jsonObj[key] = compileStr(value, values, delimiters);
  3165. }
  3166. } else {
  3167. parseI18nJson(value, values, delimiters);
  3168. }
  3169. });
  3170. return jsonObj;
  3171. }
  3172. function compileI18nJsonStr(jsonStr, _ref5) {
  3173. var locale = _ref5.locale,
  3174. locales = _ref5.locales,
  3175. delimiters = _ref5.delimiters;
  3176. if (!isI18nStr(jsonStr, delimiters)) {
  3177. return jsonStr;
  3178. }
  3179. if (!formater) {
  3180. formater = new BaseFormatter();
  3181. }
  3182. var localeValues = [];
  3183. Object.keys(locales).forEach(function (name) {
  3184. if (name !== locale) {
  3185. localeValues.push({
  3186. locale: name,
  3187. values: locales[name]
  3188. });
  3189. }
  3190. });
  3191. localeValues.unshift({
  3192. locale: locale,
  3193. values: locales[locale]
  3194. });
  3195. try {
  3196. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3197. } catch (e) {}
  3198. return jsonStr;
  3199. }
  3200. function isI18nStr(value, delimiters) {
  3201. return value.indexOf(delimiters[0]) > -1;
  3202. }
  3203. function compileStr(value, values, delimiters) {
  3204. return formater.interpolate(value, values, delimiters).join('');
  3205. }
  3206. function compileValue(jsonObj, key, localeValues, delimiters) {
  3207. var value = jsonObj[key];
  3208. if (isString(value)) {
  3209. // 存在国际化
  3210. if (isI18nStr(value, delimiters)) {
  3211. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3212. if (localeValues.length > 1) {
  3213. // 格式化国际化语言
  3214. var valueLocales = jsonObj[key + 'Locales'] = {};
  3215. localeValues.forEach(function (localValue) {
  3216. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3217. });
  3218. }
  3219. }
  3220. } else {
  3221. compileJsonObj(value, localeValues, delimiters);
  3222. }
  3223. }
  3224. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3225. walkJsonObj(jsonObj, function (jsonObj, key) {
  3226. compileValue(jsonObj, key, localeValues, delimiters);
  3227. });
  3228. return jsonObj;
  3229. }
  3230. function walkJsonObj(jsonObj, walk) {
  3231. if (Array.isArray(jsonObj)) {
  3232. for (var i = 0; i < jsonObj.length; i++) {
  3233. if (walk(jsonObj, i)) {
  3234. return true;
  3235. }
  3236. }
  3237. } else if (isObject(jsonObj)) {
  3238. for (var key in jsonObj) {
  3239. if (walk(jsonObj, key)) {
  3240. return true;
  3241. }
  3242. }
  3243. }
  3244. return false;
  3245. }
  3246. function resolveLocale(locales) {
  3247. return function (locale) {
  3248. if (!locale) {
  3249. return locale;
  3250. }
  3251. locale = normalizeLocale(locale) || locale;
  3252. return resolveLocaleChain(locale).find(function (locale) {
  3253. return locales.indexOf(locale) > -1;
  3254. });
  3255. };
  3256. }
  3257. function resolveLocaleChain(locale) {
  3258. var chain = [];
  3259. var tokens = locale.split('-');
  3260. while (tokens.length) {
  3261. chain.push(tokens.join('-'));
  3262. tokens.pop();
  3263. }
  3264. return chain;
  3265. }
  3266. /* 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)))
  3267. /***/ }),
  3268. /* 23 */
  3269. /*!***************************************************************!*\
  3270. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3271. \***************************************************************/
  3272. /*! no static exports found */
  3273. /***/ (function(module, exports) {
  3274. function _classCallCheck(instance, Constructor) {
  3275. if (!(instance instanceof Constructor)) {
  3276. throw new TypeError("Cannot call a class as a function");
  3277. }
  3278. }
  3279. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3280. /***/ }),
  3281. /* 24 */
  3282. /*!************************************************************!*\
  3283. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3284. \************************************************************/
  3285. /*! no static exports found */
  3286. /***/ (function(module, exports, __webpack_require__) {
  3287. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3288. function _defineProperties(target, props) {
  3289. for (var i = 0; i < props.length; i++) {
  3290. var descriptor = props[i];
  3291. descriptor.enumerable = descriptor.enumerable || false;
  3292. descriptor.configurable = true;
  3293. if ("value" in descriptor) descriptor.writable = true;
  3294. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3295. }
  3296. }
  3297. function _createClass(Constructor, protoProps, staticProps) {
  3298. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3299. if (staticProps) _defineProperties(Constructor, staticProps);
  3300. Object.defineProperty(Constructor, "prototype", {
  3301. writable: false
  3302. });
  3303. return Constructor;
  3304. }
  3305. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3306. /***/ }),
  3307. /* 25 */
  3308. /*!******************************************************************************************!*\
  3309. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3310. \******************************************************************************************/
  3311. /*! exports provided: default */
  3312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3313. "use strict";
  3314. __webpack_require__.r(__webpack_exports__);
  3315. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3316. * Vue.js v2.6.11
  3317. * (c) 2014-2023 Evan You
  3318. * Released under the MIT License.
  3319. */
  3320. /* */
  3321. var emptyObject = Object.freeze({});
  3322. // These helpers produce better VM code in JS engines due to their
  3323. // explicitness and function inlining.
  3324. function isUndef (v) {
  3325. return v === undefined || v === null
  3326. }
  3327. function isDef (v) {
  3328. return v !== undefined && v !== null
  3329. }
  3330. function isTrue (v) {
  3331. return v === true
  3332. }
  3333. function isFalse (v) {
  3334. return v === false
  3335. }
  3336. /**
  3337. * Check if value is primitive.
  3338. */
  3339. function isPrimitive (value) {
  3340. return (
  3341. typeof value === 'string' ||
  3342. typeof value === 'number' ||
  3343. // $flow-disable-line
  3344. typeof value === 'symbol' ||
  3345. typeof value === 'boolean'
  3346. )
  3347. }
  3348. /**
  3349. * Quick object check - this is primarily used to tell
  3350. * Objects from primitive values when we know the value
  3351. * is a JSON-compliant type.
  3352. */
  3353. function isObject (obj) {
  3354. return obj !== null && typeof obj === 'object'
  3355. }
  3356. /**
  3357. * Get the raw type string of a value, e.g., [object Object].
  3358. */
  3359. var _toString = Object.prototype.toString;
  3360. function toRawType (value) {
  3361. return _toString.call(value).slice(8, -1)
  3362. }
  3363. /**
  3364. * Strict object type check. Only returns true
  3365. * for plain JavaScript objects.
  3366. */
  3367. function isPlainObject (obj) {
  3368. return _toString.call(obj) === '[object Object]'
  3369. }
  3370. function isRegExp (v) {
  3371. return _toString.call(v) === '[object RegExp]'
  3372. }
  3373. /**
  3374. * Check if val is a valid array index.
  3375. */
  3376. function isValidArrayIndex (val) {
  3377. var n = parseFloat(String(val));
  3378. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3379. }
  3380. function isPromise (val) {
  3381. return (
  3382. isDef(val) &&
  3383. typeof val.then === 'function' &&
  3384. typeof val.catch === 'function'
  3385. )
  3386. }
  3387. /**
  3388. * Convert a value to a string that is actually rendered.
  3389. */
  3390. function toString (val) {
  3391. return val == null
  3392. ? ''
  3393. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3394. ? JSON.stringify(val, null, 2)
  3395. : String(val)
  3396. }
  3397. /**
  3398. * Convert an input value to a number for persistence.
  3399. * If the conversion fails, return original string.
  3400. */
  3401. function toNumber (val) {
  3402. var n = parseFloat(val);
  3403. return isNaN(n) ? val : n
  3404. }
  3405. /**
  3406. * Make a map and return a function for checking if a key
  3407. * is in that map.
  3408. */
  3409. function makeMap (
  3410. str,
  3411. expectsLowerCase
  3412. ) {
  3413. var map = Object.create(null);
  3414. var list = str.split(',');
  3415. for (var i = 0; i < list.length; i++) {
  3416. map[list[i]] = true;
  3417. }
  3418. return expectsLowerCase
  3419. ? function (val) { return map[val.toLowerCase()]; }
  3420. : function (val) { return map[val]; }
  3421. }
  3422. /**
  3423. * Check if a tag is a built-in tag.
  3424. */
  3425. var isBuiltInTag = makeMap('slot,component', true);
  3426. /**
  3427. * Check if an attribute is a reserved attribute.
  3428. */
  3429. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3430. /**
  3431. * Remove an item from an array.
  3432. */
  3433. function remove (arr, item) {
  3434. if (arr.length) {
  3435. var index = arr.indexOf(item);
  3436. if (index > -1) {
  3437. return arr.splice(index, 1)
  3438. }
  3439. }
  3440. }
  3441. /**
  3442. * Check whether an object has the property.
  3443. */
  3444. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3445. function hasOwn (obj, key) {
  3446. return hasOwnProperty.call(obj, key)
  3447. }
  3448. /**
  3449. * Create a cached version of a pure function.
  3450. */
  3451. function cached (fn) {
  3452. var cache = Object.create(null);
  3453. return (function cachedFn (str) {
  3454. var hit = cache[str];
  3455. return hit || (cache[str] = fn(str))
  3456. })
  3457. }
  3458. /**
  3459. * Camelize a hyphen-delimited string.
  3460. */
  3461. var camelizeRE = /-(\w)/g;
  3462. var camelize = cached(function (str) {
  3463. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3464. });
  3465. /**
  3466. * Capitalize a string.
  3467. */
  3468. var capitalize = cached(function (str) {
  3469. return str.charAt(0).toUpperCase() + str.slice(1)
  3470. });
  3471. /**
  3472. * Hyphenate a camelCase string.
  3473. */
  3474. var hyphenateRE = /\B([A-Z])/g;
  3475. var hyphenate = cached(function (str) {
  3476. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3477. });
  3478. /**
  3479. * Simple bind polyfill for environments that do not support it,
  3480. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3481. * since native bind is now performant enough in most browsers.
  3482. * But removing it would mean breaking code that was able to run in
  3483. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3484. */
  3485. /* istanbul ignore next */
  3486. function polyfillBind (fn, ctx) {
  3487. function boundFn (a) {
  3488. var l = arguments.length;
  3489. return l
  3490. ? l > 1
  3491. ? fn.apply(ctx, arguments)
  3492. : fn.call(ctx, a)
  3493. : fn.call(ctx)
  3494. }
  3495. boundFn._length = fn.length;
  3496. return boundFn
  3497. }
  3498. function nativeBind (fn, ctx) {
  3499. return fn.bind(ctx)
  3500. }
  3501. var bind = Function.prototype.bind
  3502. ? nativeBind
  3503. : polyfillBind;
  3504. /**
  3505. * Convert an Array-like object to a real Array.
  3506. */
  3507. function toArray (list, start) {
  3508. start = start || 0;
  3509. var i = list.length - start;
  3510. var ret = new Array(i);
  3511. while (i--) {
  3512. ret[i] = list[i + start];
  3513. }
  3514. return ret
  3515. }
  3516. /**
  3517. * Mix properties into target object.
  3518. */
  3519. function extend (to, _from) {
  3520. for (var key in _from) {
  3521. to[key] = _from[key];
  3522. }
  3523. return to
  3524. }
  3525. /**
  3526. * Merge an Array of Objects into a single Object.
  3527. */
  3528. function toObject (arr) {
  3529. var res = {};
  3530. for (var i = 0; i < arr.length; i++) {
  3531. if (arr[i]) {
  3532. extend(res, arr[i]);
  3533. }
  3534. }
  3535. return res
  3536. }
  3537. /* eslint-disable no-unused-vars */
  3538. /**
  3539. * Perform no operation.
  3540. * Stubbing args to make Flow happy without leaving useless transpiled code
  3541. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3542. */
  3543. function noop (a, b, c) {}
  3544. /**
  3545. * Always return false.
  3546. */
  3547. var no = function (a, b, c) { return false; };
  3548. /* eslint-enable no-unused-vars */
  3549. /**
  3550. * Return the same value.
  3551. */
  3552. var identity = function (_) { return _; };
  3553. /**
  3554. * Check if two values are loosely equal - that is,
  3555. * if they are plain objects, do they have the same shape?
  3556. */
  3557. function looseEqual (a, b) {
  3558. if (a === b) { return true }
  3559. var isObjectA = isObject(a);
  3560. var isObjectB = isObject(b);
  3561. if (isObjectA && isObjectB) {
  3562. try {
  3563. var isArrayA = Array.isArray(a);
  3564. var isArrayB = Array.isArray(b);
  3565. if (isArrayA && isArrayB) {
  3566. return a.length === b.length && a.every(function (e, i) {
  3567. return looseEqual(e, b[i])
  3568. })
  3569. } else if (a instanceof Date && b instanceof Date) {
  3570. return a.getTime() === b.getTime()
  3571. } else if (!isArrayA && !isArrayB) {
  3572. var keysA = Object.keys(a);
  3573. var keysB = Object.keys(b);
  3574. return keysA.length === keysB.length && keysA.every(function (key) {
  3575. return looseEqual(a[key], b[key])
  3576. })
  3577. } else {
  3578. /* istanbul ignore next */
  3579. return false
  3580. }
  3581. } catch (e) {
  3582. /* istanbul ignore next */
  3583. return false
  3584. }
  3585. } else if (!isObjectA && !isObjectB) {
  3586. return String(a) === String(b)
  3587. } else {
  3588. return false
  3589. }
  3590. }
  3591. /**
  3592. * Return the first index at which a loosely equal value can be
  3593. * found in the array (if value is a plain object, the array must
  3594. * contain an object of the same shape), or -1 if it is not present.
  3595. */
  3596. function looseIndexOf (arr, val) {
  3597. for (var i = 0; i < arr.length; i++) {
  3598. if (looseEqual(arr[i], val)) { return i }
  3599. }
  3600. return -1
  3601. }
  3602. /**
  3603. * Ensure a function is called only once.
  3604. */
  3605. function once (fn) {
  3606. var called = false;
  3607. return function () {
  3608. if (!called) {
  3609. called = true;
  3610. fn.apply(this, arguments);
  3611. }
  3612. }
  3613. }
  3614. var ASSET_TYPES = [
  3615. 'component',
  3616. 'directive',
  3617. 'filter'
  3618. ];
  3619. var LIFECYCLE_HOOKS = [
  3620. 'beforeCreate',
  3621. 'created',
  3622. 'beforeMount',
  3623. 'mounted',
  3624. 'beforeUpdate',
  3625. 'updated',
  3626. 'beforeDestroy',
  3627. 'destroyed',
  3628. 'activated',
  3629. 'deactivated',
  3630. 'errorCaptured',
  3631. 'serverPrefetch'
  3632. ];
  3633. /* */
  3634. var config = ({
  3635. /**
  3636. * Option merge strategies (used in core/util/options)
  3637. */
  3638. // $flow-disable-line
  3639. optionMergeStrategies: Object.create(null),
  3640. /**
  3641. * Whether to suppress warnings.
  3642. */
  3643. silent: false,
  3644. /**
  3645. * Show production mode tip message on boot?
  3646. */
  3647. productionTip: "development" !== 'production',
  3648. /**
  3649. * Whether to enable devtools
  3650. */
  3651. devtools: "development" !== 'production',
  3652. /**
  3653. * Whether to record perf
  3654. */
  3655. performance: false,
  3656. /**
  3657. * Error handler for watcher errors
  3658. */
  3659. errorHandler: null,
  3660. /**
  3661. * Warn handler for watcher warns
  3662. */
  3663. warnHandler: null,
  3664. /**
  3665. * Ignore certain custom elements
  3666. */
  3667. ignoredElements: [],
  3668. /**
  3669. * Custom user key aliases for v-on
  3670. */
  3671. // $flow-disable-line
  3672. keyCodes: Object.create(null),
  3673. /**
  3674. * Check if a tag is reserved so that it cannot be registered as a
  3675. * component. This is platform-dependent and may be overwritten.
  3676. */
  3677. isReservedTag: no,
  3678. /**
  3679. * Check if an attribute is reserved so that it cannot be used as a component
  3680. * prop. This is platform-dependent and may be overwritten.
  3681. */
  3682. isReservedAttr: no,
  3683. /**
  3684. * Check if a tag is an unknown element.
  3685. * Platform-dependent.
  3686. */
  3687. isUnknownElement: no,
  3688. /**
  3689. * Get the namespace of an element
  3690. */
  3691. getTagNamespace: noop,
  3692. /**
  3693. * Parse the real tag name for the specific platform.
  3694. */
  3695. parsePlatformTagName: identity,
  3696. /**
  3697. * Check if an attribute must be bound using property, e.g. value
  3698. * Platform-dependent.
  3699. */
  3700. mustUseProp: no,
  3701. /**
  3702. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3703. * This will significantly reduce performance if set to false.
  3704. */
  3705. async: true,
  3706. /**
  3707. * Exposed for legacy reasons
  3708. */
  3709. _lifecycleHooks: LIFECYCLE_HOOKS
  3710. });
  3711. /* */
  3712. /**
  3713. * unicode letters used for parsing html tags, component names and property paths.
  3714. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3715. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3716. */
  3717. 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/;
  3718. /**
  3719. * Check if a string starts with $ or _
  3720. */
  3721. function isReserved (str) {
  3722. var c = (str + '').charCodeAt(0);
  3723. return c === 0x24 || c === 0x5F
  3724. }
  3725. /**
  3726. * Define a property.
  3727. */
  3728. function def (obj, key, val, enumerable) {
  3729. Object.defineProperty(obj, key, {
  3730. value: val,
  3731. enumerable: !!enumerable,
  3732. writable: true,
  3733. configurable: true
  3734. });
  3735. }
  3736. /**
  3737. * Parse simple path.
  3738. */
  3739. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3740. function parsePath (path) {
  3741. if (bailRE.test(path)) {
  3742. return
  3743. }
  3744. var segments = path.split('.');
  3745. return function (obj) {
  3746. for (var i = 0; i < segments.length; i++) {
  3747. if (!obj) { return }
  3748. obj = obj[segments[i]];
  3749. }
  3750. return obj
  3751. }
  3752. }
  3753. /* */
  3754. // can we use __proto__?
  3755. var hasProto = '__proto__' in {};
  3756. // Browser environment sniffing
  3757. var inBrowser = typeof window !== 'undefined';
  3758. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3759. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3760. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3761. var isIE = UA && /msie|trident/.test(UA);
  3762. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3763. var isEdge = UA && UA.indexOf('edge/') > 0;
  3764. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3765. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3766. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3767. var isPhantomJS = UA && /phantomjs/.test(UA);
  3768. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3769. // Firefox has a "watch" function on Object.prototype...
  3770. var nativeWatch = ({}).watch;
  3771. if (inBrowser) {
  3772. try {
  3773. var opts = {};
  3774. Object.defineProperty(opts, 'passive', ({
  3775. get: function get () {
  3776. }
  3777. })); // https://github.com/facebook/flow/issues/285
  3778. window.addEventListener('test-passive', null, opts);
  3779. } catch (e) {}
  3780. }
  3781. // this needs to be lazy-evaled because vue may be required before
  3782. // vue-server-renderer can set VUE_ENV
  3783. var _isServer;
  3784. var isServerRendering = function () {
  3785. if (_isServer === undefined) {
  3786. /* istanbul ignore if */
  3787. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3788. // detect presence of vue-server-renderer and avoid
  3789. // Webpack shimming the process
  3790. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3791. } else {
  3792. _isServer = false;
  3793. }
  3794. }
  3795. return _isServer
  3796. };
  3797. // detect devtools
  3798. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3799. /* istanbul ignore next */
  3800. function isNative (Ctor) {
  3801. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3802. }
  3803. var hasSymbol =
  3804. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3805. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3806. var _Set;
  3807. /* istanbul ignore if */ // $flow-disable-line
  3808. if (typeof Set !== 'undefined' && isNative(Set)) {
  3809. // use native Set when available.
  3810. _Set = Set;
  3811. } else {
  3812. // a non-standard Set polyfill that only works with primitive keys.
  3813. _Set = /*@__PURE__*/(function () {
  3814. function Set () {
  3815. this.set = Object.create(null);
  3816. }
  3817. Set.prototype.has = function has (key) {
  3818. return this.set[key] === true
  3819. };
  3820. Set.prototype.add = function add (key) {
  3821. this.set[key] = true;
  3822. };
  3823. Set.prototype.clear = function clear () {
  3824. this.set = Object.create(null);
  3825. };
  3826. return Set;
  3827. }());
  3828. }
  3829. /* */
  3830. var warn = noop;
  3831. var tip = noop;
  3832. var generateComponentTrace = (noop); // work around flow check
  3833. var formatComponentName = (noop);
  3834. if (true) {
  3835. var hasConsole = typeof console !== 'undefined';
  3836. var classifyRE = /(?:^|[-_])(\w)/g;
  3837. var classify = function (str) { return str
  3838. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3839. .replace(/[-_]/g, ''); };
  3840. warn = function (msg, vm) {
  3841. var trace = vm ? generateComponentTrace(vm) : '';
  3842. if (config.warnHandler) {
  3843. config.warnHandler.call(null, msg, vm, trace);
  3844. } else if (hasConsole && (!config.silent)) {
  3845. console.error(("[Vue warn]: " + msg + trace));
  3846. }
  3847. };
  3848. tip = function (msg, vm) {
  3849. if (hasConsole && (!config.silent)) {
  3850. console.warn("[Vue tip]: " + msg + (
  3851. vm ? generateComponentTrace(vm) : ''
  3852. ));
  3853. }
  3854. };
  3855. formatComponentName = function (vm, includeFile) {
  3856. if (vm.$root === vm) {
  3857. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3858. return ('') + vm.$options.__file
  3859. }
  3860. return '<Root>'
  3861. }
  3862. var options = typeof vm === 'function' && vm.cid != null
  3863. ? vm.options
  3864. : vm._isVue
  3865. ? vm.$options || vm.constructor.options
  3866. : vm;
  3867. var name = options.name || options._componentTag;
  3868. var file = options.__file;
  3869. if (!name && file) {
  3870. var match = file.match(/([^/\\]+)\.vue$/);
  3871. name = match && match[1];
  3872. }
  3873. return (
  3874. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3875. (file && includeFile !== false ? (" at " + file) : '')
  3876. )
  3877. };
  3878. var repeat = function (str, n) {
  3879. var res = '';
  3880. while (n) {
  3881. if (n % 2 === 1) { res += str; }
  3882. if (n > 1) { str += str; }
  3883. n >>= 1;
  3884. }
  3885. return res
  3886. };
  3887. generateComponentTrace = function (vm) {
  3888. if (vm._isVue && vm.$parent) {
  3889. var tree = [];
  3890. var currentRecursiveSequence = 0;
  3891. while (vm && vm.$options.name !== 'PageBody') {
  3892. if (tree.length > 0) {
  3893. var last = tree[tree.length - 1];
  3894. if (last.constructor === vm.constructor) {
  3895. currentRecursiveSequence++;
  3896. vm = vm.$parent;
  3897. continue
  3898. } else if (currentRecursiveSequence > 0) {
  3899. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3900. currentRecursiveSequence = 0;
  3901. }
  3902. }
  3903. !vm.$options.isReserved && tree.push(vm);
  3904. vm = vm.$parent;
  3905. }
  3906. return '\n\nfound in\n\n' + tree
  3907. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3908. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3909. : formatComponentName(vm))); })
  3910. .join('\n')
  3911. } else {
  3912. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3913. }
  3914. };
  3915. }
  3916. /* */
  3917. var uid = 0;
  3918. /**
  3919. * A dep is an observable that can have multiple
  3920. * directives subscribing to it.
  3921. */
  3922. var Dep = function Dep () {
  3923. this.id = uid++;
  3924. this.subs = [];
  3925. };
  3926. Dep.prototype.addSub = function addSub (sub) {
  3927. this.subs.push(sub);
  3928. };
  3929. Dep.prototype.removeSub = function removeSub (sub) {
  3930. remove(this.subs, sub);
  3931. };
  3932. Dep.prototype.depend = function depend () {
  3933. if (Dep.SharedObject.target) {
  3934. Dep.SharedObject.target.addDep(this);
  3935. }
  3936. };
  3937. Dep.prototype.notify = function notify () {
  3938. // stabilize the subscriber list first
  3939. var subs = this.subs.slice();
  3940. if ( true && !config.async) {
  3941. // subs aren't sorted in scheduler if not running async
  3942. // we need to sort them now to make sure they fire in correct
  3943. // order
  3944. subs.sort(function (a, b) { return a.id - b.id; });
  3945. }
  3946. for (var i = 0, l = subs.length; i < l; i++) {
  3947. subs[i].update();
  3948. }
  3949. };
  3950. // The current target watcher being evaluated.
  3951. // This is globally unique because only one watcher
  3952. // can be evaluated at a time.
  3953. // fixed by xxxxxx (nvue shared vuex)
  3954. /* eslint-disable no-undef */
  3955. Dep.SharedObject = {};
  3956. Dep.SharedObject.target = null;
  3957. Dep.SharedObject.targetStack = [];
  3958. function pushTarget (target) {
  3959. Dep.SharedObject.targetStack.push(target);
  3960. Dep.SharedObject.target = target;
  3961. Dep.target = target;
  3962. }
  3963. function popTarget () {
  3964. Dep.SharedObject.targetStack.pop();
  3965. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3966. Dep.target = Dep.SharedObject.target;
  3967. }
  3968. /* */
  3969. var VNode = function VNode (
  3970. tag,
  3971. data,
  3972. children,
  3973. text,
  3974. elm,
  3975. context,
  3976. componentOptions,
  3977. asyncFactory
  3978. ) {
  3979. this.tag = tag;
  3980. this.data = data;
  3981. this.children = children;
  3982. this.text = text;
  3983. this.elm = elm;
  3984. this.ns = undefined;
  3985. this.context = context;
  3986. this.fnContext = undefined;
  3987. this.fnOptions = undefined;
  3988. this.fnScopeId = undefined;
  3989. this.key = data && data.key;
  3990. this.componentOptions = componentOptions;
  3991. this.componentInstance = undefined;
  3992. this.parent = undefined;
  3993. this.raw = false;
  3994. this.isStatic = false;
  3995. this.isRootInsert = true;
  3996. this.isComment = false;
  3997. this.isCloned = false;
  3998. this.isOnce = false;
  3999. this.asyncFactory = asyncFactory;
  4000. this.asyncMeta = undefined;
  4001. this.isAsyncPlaceholder = false;
  4002. };
  4003. var prototypeAccessors = { child: { configurable: true } };
  4004. // DEPRECATED: alias for componentInstance for backwards compat.
  4005. /* istanbul ignore next */
  4006. prototypeAccessors.child.get = function () {
  4007. return this.componentInstance
  4008. };
  4009. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4010. var createEmptyVNode = function (text) {
  4011. if ( text === void 0 ) text = '';
  4012. var node = new VNode();
  4013. node.text = text;
  4014. node.isComment = true;
  4015. return node
  4016. };
  4017. function createTextVNode (val) {
  4018. return new VNode(undefined, undefined, undefined, String(val))
  4019. }
  4020. // optimized shallow clone
  4021. // used for static nodes and slot nodes because they may be reused across
  4022. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4023. // on their elm reference.
  4024. function cloneVNode (vnode) {
  4025. var cloned = new VNode(
  4026. vnode.tag,
  4027. vnode.data,
  4028. // #7975
  4029. // clone children array to avoid mutating original in case of cloning
  4030. // a child.
  4031. vnode.children && vnode.children.slice(),
  4032. vnode.text,
  4033. vnode.elm,
  4034. vnode.context,
  4035. vnode.componentOptions,
  4036. vnode.asyncFactory
  4037. );
  4038. cloned.ns = vnode.ns;
  4039. cloned.isStatic = vnode.isStatic;
  4040. cloned.key = vnode.key;
  4041. cloned.isComment = vnode.isComment;
  4042. cloned.fnContext = vnode.fnContext;
  4043. cloned.fnOptions = vnode.fnOptions;
  4044. cloned.fnScopeId = vnode.fnScopeId;
  4045. cloned.asyncMeta = vnode.asyncMeta;
  4046. cloned.isCloned = true;
  4047. return cloned
  4048. }
  4049. /*
  4050. * not type checking this file because flow doesn't play well with
  4051. * dynamically accessing methods on Array prototype
  4052. */
  4053. var arrayProto = Array.prototype;
  4054. var arrayMethods = Object.create(arrayProto);
  4055. var methodsToPatch = [
  4056. 'push',
  4057. 'pop',
  4058. 'shift',
  4059. 'unshift',
  4060. 'splice',
  4061. 'sort',
  4062. 'reverse'
  4063. ];
  4064. /**
  4065. * Intercept mutating methods and emit events
  4066. */
  4067. methodsToPatch.forEach(function (method) {
  4068. // cache original method
  4069. var original = arrayProto[method];
  4070. def(arrayMethods, method, function mutator () {
  4071. var args = [], len = arguments.length;
  4072. while ( len-- ) args[ len ] = arguments[ len ];
  4073. var result = original.apply(this, args);
  4074. var ob = this.__ob__;
  4075. var inserted;
  4076. switch (method) {
  4077. case 'push':
  4078. case 'unshift':
  4079. inserted = args;
  4080. break
  4081. case 'splice':
  4082. inserted = args.slice(2);
  4083. break
  4084. }
  4085. if (inserted) { ob.observeArray(inserted); }
  4086. // notify change
  4087. ob.dep.notify();
  4088. return result
  4089. });
  4090. });
  4091. /* */
  4092. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4093. /**
  4094. * In some cases we may want to disable observation inside a component's
  4095. * update computation.
  4096. */
  4097. var shouldObserve = true;
  4098. function toggleObserving (value) {
  4099. shouldObserve = value;
  4100. }
  4101. /**
  4102. * Observer class that is attached to each observed
  4103. * object. Once attached, the observer converts the target
  4104. * object's property keys into getter/setters that
  4105. * collect dependencies and dispatch updates.
  4106. */
  4107. var Observer = function Observer (value) {
  4108. this.value = value;
  4109. this.dep = new Dep();
  4110. this.vmCount = 0;
  4111. def(value, '__ob__', this);
  4112. if (Array.isArray(value)) {
  4113. if (hasProto) {
  4114. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4115. if(value.push !== value.__proto__.push){
  4116. copyAugment(value, arrayMethods, arrayKeys);
  4117. } else {
  4118. protoAugment(value, arrayMethods);
  4119. }
  4120. }
  4121. } else {
  4122. copyAugment(value, arrayMethods, arrayKeys);
  4123. }
  4124. this.observeArray(value);
  4125. } else {
  4126. this.walk(value);
  4127. }
  4128. };
  4129. /**
  4130. * Walk through all properties and convert them into
  4131. * getter/setters. This method should only be called when
  4132. * value type is Object.
  4133. */
  4134. Observer.prototype.walk = function walk (obj) {
  4135. var keys = Object.keys(obj);
  4136. for (var i = 0; i < keys.length; i++) {
  4137. defineReactive$$1(obj, keys[i]);
  4138. }
  4139. };
  4140. /**
  4141. * Observe a list of Array items.
  4142. */
  4143. Observer.prototype.observeArray = function observeArray (items) {
  4144. for (var i = 0, l = items.length; i < l; i++) {
  4145. observe(items[i]);
  4146. }
  4147. };
  4148. // helpers
  4149. /**
  4150. * Augment a target Object or Array by intercepting
  4151. * the prototype chain using __proto__
  4152. */
  4153. function protoAugment (target, src) {
  4154. /* eslint-disable no-proto */
  4155. target.__proto__ = src;
  4156. /* eslint-enable no-proto */
  4157. }
  4158. /**
  4159. * Augment a target Object or Array by defining
  4160. * hidden properties.
  4161. */
  4162. /* istanbul ignore next */
  4163. function copyAugment (target, src, keys) {
  4164. for (var i = 0, l = keys.length; i < l; i++) {
  4165. var key = keys[i];
  4166. def(target, key, src[key]);
  4167. }
  4168. }
  4169. /**
  4170. * Attempt to create an observer instance for a value,
  4171. * returns the new observer if successfully observed,
  4172. * or the existing observer if the value already has one.
  4173. */
  4174. function observe (value, asRootData) {
  4175. if (!isObject(value) || value instanceof VNode) {
  4176. return
  4177. }
  4178. var ob;
  4179. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4180. ob = value.__ob__;
  4181. } else if (
  4182. shouldObserve &&
  4183. !isServerRendering() &&
  4184. (Array.isArray(value) || isPlainObject(value)) &&
  4185. Object.isExtensible(value) &&
  4186. !value._isVue &&
  4187. !value.__v_isMPComponent
  4188. ) {
  4189. ob = new Observer(value);
  4190. }
  4191. if (asRootData && ob) {
  4192. ob.vmCount++;
  4193. }
  4194. return ob
  4195. }
  4196. /**
  4197. * Define a reactive property on an Object.
  4198. */
  4199. function defineReactive$$1 (
  4200. obj,
  4201. key,
  4202. val,
  4203. customSetter,
  4204. shallow
  4205. ) {
  4206. var dep = new Dep();
  4207. var property = Object.getOwnPropertyDescriptor(obj, key);
  4208. if (property && property.configurable === false) {
  4209. return
  4210. }
  4211. // cater for pre-defined getter/setters
  4212. var getter = property && property.get;
  4213. var setter = property && property.set;
  4214. if ((!getter || setter) && arguments.length === 2) {
  4215. val = obj[key];
  4216. }
  4217. var childOb = !shallow && observe(val);
  4218. Object.defineProperty(obj, key, {
  4219. enumerable: true,
  4220. configurable: true,
  4221. get: function reactiveGetter () {
  4222. var value = getter ? getter.call(obj) : val;
  4223. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4224. dep.depend();
  4225. if (childOb) {
  4226. childOb.dep.depend();
  4227. if (Array.isArray(value)) {
  4228. dependArray(value);
  4229. }
  4230. }
  4231. }
  4232. return value
  4233. },
  4234. set: function reactiveSetter (newVal) {
  4235. var value = getter ? getter.call(obj) : val;
  4236. /* eslint-disable no-self-compare */
  4237. if (newVal === value || (newVal !== newVal && value !== value)) {
  4238. return
  4239. }
  4240. /* eslint-enable no-self-compare */
  4241. if ( true && customSetter) {
  4242. customSetter();
  4243. }
  4244. // #7981: for accessor properties without setter
  4245. if (getter && !setter) { return }
  4246. if (setter) {
  4247. setter.call(obj, newVal);
  4248. } else {
  4249. val = newVal;
  4250. }
  4251. childOb = !shallow && observe(newVal);
  4252. dep.notify();
  4253. }
  4254. });
  4255. }
  4256. /**
  4257. * Set a property on an object. Adds the new property and
  4258. * triggers change notification if the property doesn't
  4259. * already exist.
  4260. */
  4261. function set (target, key, val) {
  4262. if ( true &&
  4263. (isUndef(target) || isPrimitive(target))
  4264. ) {
  4265. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4266. }
  4267. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4268. target.length = Math.max(target.length, key);
  4269. target.splice(key, 1, val);
  4270. return val
  4271. }
  4272. if (key in target && !(key in Object.prototype)) {
  4273. target[key] = val;
  4274. return val
  4275. }
  4276. var ob = (target).__ob__;
  4277. if (target._isVue || (ob && ob.vmCount)) {
  4278. true && warn(
  4279. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4280. 'at runtime - declare it upfront in the data option.'
  4281. );
  4282. return val
  4283. }
  4284. if (!ob) {
  4285. target[key] = val;
  4286. return val
  4287. }
  4288. defineReactive$$1(ob.value, key, val);
  4289. ob.dep.notify();
  4290. return val
  4291. }
  4292. /**
  4293. * Delete a property and trigger change if necessary.
  4294. */
  4295. function del (target, key) {
  4296. if ( true &&
  4297. (isUndef(target) || isPrimitive(target))
  4298. ) {
  4299. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4300. }
  4301. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4302. target.splice(key, 1);
  4303. return
  4304. }
  4305. var ob = (target).__ob__;
  4306. if (target._isVue || (ob && ob.vmCount)) {
  4307. true && warn(
  4308. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4309. '- just set it to null.'
  4310. );
  4311. return
  4312. }
  4313. if (!hasOwn(target, key)) {
  4314. return
  4315. }
  4316. delete target[key];
  4317. if (!ob) {
  4318. return
  4319. }
  4320. ob.dep.notify();
  4321. }
  4322. /**
  4323. * Collect dependencies on array elements when the array is touched, since
  4324. * we cannot intercept array element access like property getters.
  4325. */
  4326. function dependArray (value) {
  4327. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4328. e = value[i];
  4329. e && e.__ob__ && e.__ob__.dep.depend();
  4330. if (Array.isArray(e)) {
  4331. dependArray(e);
  4332. }
  4333. }
  4334. }
  4335. /* */
  4336. /**
  4337. * Option overwriting strategies are functions that handle
  4338. * how to merge a parent option value and a child option
  4339. * value into the final value.
  4340. */
  4341. var strats = config.optionMergeStrategies;
  4342. /**
  4343. * Options with restrictions
  4344. */
  4345. if (true) {
  4346. strats.el = strats.propsData = function (parent, child, vm, key) {
  4347. if (!vm) {
  4348. warn(
  4349. "option \"" + key + "\" can only be used during instance " +
  4350. 'creation with the `new` keyword.'
  4351. );
  4352. }
  4353. return defaultStrat(parent, child)
  4354. };
  4355. }
  4356. /**
  4357. * Helper that recursively merges two data objects together.
  4358. */
  4359. function mergeData (to, from) {
  4360. if (!from) { return to }
  4361. var key, toVal, fromVal;
  4362. var keys = hasSymbol
  4363. ? Reflect.ownKeys(from)
  4364. : Object.keys(from);
  4365. for (var i = 0; i < keys.length; i++) {
  4366. key = keys[i];
  4367. // in case the object is already observed...
  4368. if (key === '__ob__') { continue }
  4369. toVal = to[key];
  4370. fromVal = from[key];
  4371. if (!hasOwn(to, key)) {
  4372. set(to, key, fromVal);
  4373. } else if (
  4374. toVal !== fromVal &&
  4375. isPlainObject(toVal) &&
  4376. isPlainObject(fromVal)
  4377. ) {
  4378. mergeData(toVal, fromVal);
  4379. }
  4380. }
  4381. return to
  4382. }
  4383. /**
  4384. * Data
  4385. */
  4386. function mergeDataOrFn (
  4387. parentVal,
  4388. childVal,
  4389. vm
  4390. ) {
  4391. if (!vm) {
  4392. // in a Vue.extend merge, both should be functions
  4393. if (!childVal) {
  4394. return parentVal
  4395. }
  4396. if (!parentVal) {
  4397. return childVal
  4398. }
  4399. // when parentVal & childVal are both present,
  4400. // we need to return a function that returns the
  4401. // merged result of both functions... no need to
  4402. // check if parentVal is a function here because
  4403. // it has to be a function to pass previous merges.
  4404. return function mergedDataFn () {
  4405. return mergeData(
  4406. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4407. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4408. )
  4409. }
  4410. } else {
  4411. return function mergedInstanceDataFn () {
  4412. // instance merge
  4413. var instanceData = typeof childVal === 'function'
  4414. ? childVal.call(vm, vm)
  4415. : childVal;
  4416. var defaultData = typeof parentVal === 'function'
  4417. ? parentVal.call(vm, vm)
  4418. : parentVal;
  4419. if (instanceData) {
  4420. return mergeData(instanceData, defaultData)
  4421. } else {
  4422. return defaultData
  4423. }
  4424. }
  4425. }
  4426. }
  4427. strats.data = function (
  4428. parentVal,
  4429. childVal,
  4430. vm
  4431. ) {
  4432. if (!vm) {
  4433. if (childVal && typeof childVal !== 'function') {
  4434. true && warn(
  4435. 'The "data" option should be a function ' +
  4436. 'that returns a per-instance value in component ' +
  4437. 'definitions.',
  4438. vm
  4439. );
  4440. return parentVal
  4441. }
  4442. return mergeDataOrFn(parentVal, childVal)
  4443. }
  4444. return mergeDataOrFn(parentVal, childVal, vm)
  4445. };
  4446. /**
  4447. * Hooks and props are merged as arrays.
  4448. */
  4449. function mergeHook (
  4450. parentVal,
  4451. childVal
  4452. ) {
  4453. var res = childVal
  4454. ? parentVal
  4455. ? parentVal.concat(childVal)
  4456. : Array.isArray(childVal)
  4457. ? childVal
  4458. : [childVal]
  4459. : parentVal;
  4460. return res
  4461. ? dedupeHooks(res)
  4462. : res
  4463. }
  4464. function dedupeHooks (hooks) {
  4465. var res = [];
  4466. for (var i = 0; i < hooks.length; i++) {
  4467. if (res.indexOf(hooks[i]) === -1) {
  4468. res.push(hooks[i]);
  4469. }
  4470. }
  4471. return res
  4472. }
  4473. LIFECYCLE_HOOKS.forEach(function (hook) {
  4474. strats[hook] = mergeHook;
  4475. });
  4476. /**
  4477. * Assets
  4478. *
  4479. * When a vm is present (instance creation), we need to do
  4480. * a three-way merge between constructor options, instance
  4481. * options and parent options.
  4482. */
  4483. function mergeAssets (
  4484. parentVal,
  4485. childVal,
  4486. vm,
  4487. key
  4488. ) {
  4489. var res = Object.create(parentVal || null);
  4490. if (childVal) {
  4491. true && assertObjectType(key, childVal, vm);
  4492. return extend(res, childVal)
  4493. } else {
  4494. return res
  4495. }
  4496. }
  4497. ASSET_TYPES.forEach(function (type) {
  4498. strats[type + 's'] = mergeAssets;
  4499. });
  4500. /**
  4501. * Watchers.
  4502. *
  4503. * Watchers hashes should not overwrite one
  4504. * another, so we merge them as arrays.
  4505. */
  4506. strats.watch = function (
  4507. parentVal,
  4508. childVal,
  4509. vm,
  4510. key
  4511. ) {
  4512. // work around Firefox's Object.prototype.watch...
  4513. if (parentVal === nativeWatch) { parentVal = undefined; }
  4514. if (childVal === nativeWatch) { childVal = undefined; }
  4515. /* istanbul ignore if */
  4516. if (!childVal) { return Object.create(parentVal || null) }
  4517. if (true) {
  4518. assertObjectType(key, childVal, vm);
  4519. }
  4520. if (!parentVal) { return childVal }
  4521. var ret = {};
  4522. extend(ret, parentVal);
  4523. for (var key$1 in childVal) {
  4524. var parent = ret[key$1];
  4525. var child = childVal[key$1];
  4526. if (parent && !Array.isArray(parent)) {
  4527. parent = [parent];
  4528. }
  4529. ret[key$1] = parent
  4530. ? parent.concat(child)
  4531. : Array.isArray(child) ? child : [child];
  4532. }
  4533. return ret
  4534. };
  4535. /**
  4536. * Other object hashes.
  4537. */
  4538. strats.props =
  4539. strats.methods =
  4540. strats.inject =
  4541. strats.computed = function (
  4542. parentVal,
  4543. childVal,
  4544. vm,
  4545. key
  4546. ) {
  4547. if (childVal && "development" !== 'production') {
  4548. assertObjectType(key, childVal, vm);
  4549. }
  4550. if (!parentVal) { return childVal }
  4551. var ret = Object.create(null);
  4552. extend(ret, parentVal);
  4553. if (childVal) { extend(ret, childVal); }
  4554. return ret
  4555. };
  4556. strats.provide = mergeDataOrFn;
  4557. /**
  4558. * Default strategy.
  4559. */
  4560. var defaultStrat = function (parentVal, childVal) {
  4561. return childVal === undefined
  4562. ? parentVal
  4563. : childVal
  4564. };
  4565. /**
  4566. * Validate component names
  4567. */
  4568. function checkComponents (options) {
  4569. for (var key in options.components) {
  4570. validateComponentName(key);
  4571. }
  4572. }
  4573. function validateComponentName (name) {
  4574. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4575. warn(
  4576. 'Invalid component name: "' + name + '". Component names ' +
  4577. 'should conform to valid custom element name in html5 specification.'
  4578. );
  4579. }
  4580. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4581. warn(
  4582. 'Do not use built-in or reserved HTML elements as component ' +
  4583. 'id: ' + name
  4584. );
  4585. }
  4586. }
  4587. /**
  4588. * Ensure all props option syntax are normalized into the
  4589. * Object-based format.
  4590. */
  4591. function normalizeProps (options, vm) {
  4592. var props = options.props;
  4593. if (!props) { return }
  4594. var res = {};
  4595. var i, val, name;
  4596. if (Array.isArray(props)) {
  4597. i = props.length;
  4598. while (i--) {
  4599. val = props[i];
  4600. if (typeof val === 'string') {
  4601. name = camelize(val);
  4602. res[name] = { type: null };
  4603. } else if (true) {
  4604. warn('props must be strings when using array syntax.');
  4605. }
  4606. }
  4607. } else if (isPlainObject(props)) {
  4608. for (var key in props) {
  4609. val = props[key];
  4610. name = camelize(key);
  4611. res[name] = isPlainObject(val)
  4612. ? val
  4613. : { type: val };
  4614. }
  4615. } else if (true) {
  4616. warn(
  4617. "Invalid value for option \"props\": expected an Array or an Object, " +
  4618. "but got " + (toRawType(props)) + ".",
  4619. vm
  4620. );
  4621. }
  4622. options.props = res;
  4623. }
  4624. /**
  4625. * Normalize all injections into Object-based format
  4626. */
  4627. function normalizeInject (options, vm) {
  4628. var inject = options.inject;
  4629. if (!inject) { return }
  4630. var normalized = options.inject = {};
  4631. if (Array.isArray(inject)) {
  4632. for (var i = 0; i < inject.length; i++) {
  4633. normalized[inject[i]] = { from: inject[i] };
  4634. }
  4635. } else if (isPlainObject(inject)) {
  4636. for (var key in inject) {
  4637. var val = inject[key];
  4638. normalized[key] = isPlainObject(val)
  4639. ? extend({ from: key }, val)
  4640. : { from: val };
  4641. }
  4642. } else if (true) {
  4643. warn(
  4644. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4645. "but got " + (toRawType(inject)) + ".",
  4646. vm
  4647. );
  4648. }
  4649. }
  4650. /**
  4651. * Normalize raw function directives into object format.
  4652. */
  4653. function normalizeDirectives (options) {
  4654. var dirs = options.directives;
  4655. if (dirs) {
  4656. for (var key in dirs) {
  4657. var def$$1 = dirs[key];
  4658. if (typeof def$$1 === 'function') {
  4659. dirs[key] = { bind: def$$1, update: def$$1 };
  4660. }
  4661. }
  4662. }
  4663. }
  4664. function assertObjectType (name, value, vm) {
  4665. if (!isPlainObject(value)) {
  4666. warn(
  4667. "Invalid value for option \"" + name + "\": expected an Object, " +
  4668. "but got " + (toRawType(value)) + ".",
  4669. vm
  4670. );
  4671. }
  4672. }
  4673. /**
  4674. * Merge two option objects into a new one.
  4675. * Core utility used in both instantiation and inheritance.
  4676. */
  4677. function mergeOptions (
  4678. parent,
  4679. child,
  4680. vm
  4681. ) {
  4682. if (true) {
  4683. checkComponents(child);
  4684. }
  4685. if (typeof child === 'function') {
  4686. child = child.options;
  4687. }
  4688. normalizeProps(child, vm);
  4689. normalizeInject(child, vm);
  4690. normalizeDirectives(child);
  4691. // Apply extends and mixins on the child options,
  4692. // but only if it is a raw options object that isn't
  4693. // the result of another mergeOptions call.
  4694. // Only merged options has the _base property.
  4695. if (!child._base) {
  4696. if (child.extends) {
  4697. parent = mergeOptions(parent, child.extends, vm);
  4698. }
  4699. if (child.mixins) {
  4700. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4701. parent = mergeOptions(parent, child.mixins[i], vm);
  4702. }
  4703. }
  4704. }
  4705. var options = {};
  4706. var key;
  4707. for (key in parent) {
  4708. mergeField(key);
  4709. }
  4710. for (key in child) {
  4711. if (!hasOwn(parent, key)) {
  4712. mergeField(key);
  4713. }
  4714. }
  4715. function mergeField (key) {
  4716. var strat = strats[key] || defaultStrat;
  4717. options[key] = strat(parent[key], child[key], vm, key);
  4718. }
  4719. return options
  4720. }
  4721. /**
  4722. * Resolve an asset.
  4723. * This function is used because child instances need access
  4724. * to assets defined in its ancestor chain.
  4725. */
  4726. function resolveAsset (
  4727. options,
  4728. type,
  4729. id,
  4730. warnMissing
  4731. ) {
  4732. /* istanbul ignore if */
  4733. if (typeof id !== 'string') {
  4734. return
  4735. }
  4736. var assets = options[type];
  4737. // check local registration variations first
  4738. if (hasOwn(assets, id)) { return assets[id] }
  4739. var camelizedId = camelize(id);
  4740. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4741. var PascalCaseId = capitalize(camelizedId);
  4742. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4743. // fallback to prototype chain
  4744. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4745. if ( true && warnMissing && !res) {
  4746. warn(
  4747. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4748. options
  4749. );
  4750. }
  4751. return res
  4752. }
  4753. /* */
  4754. function validateProp (
  4755. key,
  4756. propOptions,
  4757. propsData,
  4758. vm
  4759. ) {
  4760. var prop = propOptions[key];
  4761. var absent = !hasOwn(propsData, key);
  4762. var value = propsData[key];
  4763. // boolean casting
  4764. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4765. if (booleanIndex > -1) {
  4766. if (absent && !hasOwn(prop, 'default')) {
  4767. value = false;
  4768. } else if (value === '' || value === hyphenate(key)) {
  4769. // only cast empty string / same name to boolean if
  4770. // boolean has higher priority
  4771. var stringIndex = getTypeIndex(String, prop.type);
  4772. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4773. value = true;
  4774. }
  4775. }
  4776. }
  4777. // check default value
  4778. if (value === undefined) {
  4779. value = getPropDefaultValue(vm, prop, key);
  4780. // since the default value is a fresh copy,
  4781. // make sure to observe it.
  4782. var prevShouldObserve = shouldObserve;
  4783. toggleObserving(true);
  4784. observe(value);
  4785. toggleObserving(prevShouldObserve);
  4786. }
  4787. if (
  4788. true
  4789. ) {
  4790. assertProp(prop, key, value, vm, absent);
  4791. }
  4792. return value
  4793. }
  4794. /**
  4795. * Get the default value of a prop.
  4796. */
  4797. function getPropDefaultValue (vm, prop, key) {
  4798. // no default, return undefined
  4799. if (!hasOwn(prop, 'default')) {
  4800. return undefined
  4801. }
  4802. var def = prop.default;
  4803. // warn against non-factory defaults for Object & Array
  4804. if ( true && isObject(def)) {
  4805. warn(
  4806. 'Invalid default value for prop "' + key + '": ' +
  4807. 'Props with type Object/Array must use a factory function ' +
  4808. 'to return the default value.',
  4809. vm
  4810. );
  4811. }
  4812. // the raw prop value was also undefined from previous render,
  4813. // return previous default value to avoid unnecessary watcher trigger
  4814. if (vm && vm.$options.propsData &&
  4815. vm.$options.propsData[key] === undefined &&
  4816. vm._props[key] !== undefined
  4817. ) {
  4818. return vm._props[key]
  4819. }
  4820. // call factory function for non-Function types
  4821. // a value is Function if its prototype is function even across different execution context
  4822. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4823. ? def.call(vm)
  4824. : def
  4825. }
  4826. /**
  4827. * Assert whether a prop is valid.
  4828. */
  4829. function assertProp (
  4830. prop,
  4831. name,
  4832. value,
  4833. vm,
  4834. absent
  4835. ) {
  4836. if (prop.required && absent) {
  4837. warn(
  4838. 'Missing required prop: "' + name + '"',
  4839. vm
  4840. );
  4841. return
  4842. }
  4843. if (value == null && !prop.required) {
  4844. return
  4845. }
  4846. var type = prop.type;
  4847. var valid = !type || type === true;
  4848. var expectedTypes = [];
  4849. if (type) {
  4850. if (!Array.isArray(type)) {
  4851. type = [type];
  4852. }
  4853. for (var i = 0; i < type.length && !valid; i++) {
  4854. var assertedType = assertType(value, type[i]);
  4855. expectedTypes.push(assertedType.expectedType || '');
  4856. valid = assertedType.valid;
  4857. }
  4858. }
  4859. if (!valid) {
  4860. warn(
  4861. getInvalidTypeMessage(name, value, expectedTypes),
  4862. vm
  4863. );
  4864. return
  4865. }
  4866. var validator = prop.validator;
  4867. if (validator) {
  4868. if (!validator(value)) {
  4869. warn(
  4870. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4871. vm
  4872. );
  4873. }
  4874. }
  4875. }
  4876. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4877. function assertType (value, type) {
  4878. var valid;
  4879. var expectedType = getType(type);
  4880. if (simpleCheckRE.test(expectedType)) {
  4881. var t = typeof value;
  4882. valid = t === expectedType.toLowerCase();
  4883. // for primitive wrapper objects
  4884. if (!valid && t === 'object') {
  4885. valid = value instanceof type;
  4886. }
  4887. } else if (expectedType === 'Object') {
  4888. valid = isPlainObject(value);
  4889. } else if (expectedType === 'Array') {
  4890. valid = Array.isArray(value);
  4891. } else {
  4892. valid = value instanceof type;
  4893. }
  4894. return {
  4895. valid: valid,
  4896. expectedType: expectedType
  4897. }
  4898. }
  4899. /**
  4900. * Use function string name to check built-in types,
  4901. * because a simple equality check will fail when running
  4902. * across different vms / iframes.
  4903. */
  4904. function getType (fn) {
  4905. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4906. return match ? match[1] : ''
  4907. }
  4908. function isSameType (a, b) {
  4909. return getType(a) === getType(b)
  4910. }
  4911. function getTypeIndex (type, expectedTypes) {
  4912. if (!Array.isArray(expectedTypes)) {
  4913. return isSameType(expectedTypes, type) ? 0 : -1
  4914. }
  4915. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4916. if (isSameType(expectedTypes[i], type)) {
  4917. return i
  4918. }
  4919. }
  4920. return -1
  4921. }
  4922. function getInvalidTypeMessage (name, value, expectedTypes) {
  4923. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4924. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4925. var expectedType = expectedTypes[0];
  4926. var receivedType = toRawType(value);
  4927. var expectedValue = styleValue(value, expectedType);
  4928. var receivedValue = styleValue(value, receivedType);
  4929. // check if we need to specify expected value
  4930. if (expectedTypes.length === 1 &&
  4931. isExplicable(expectedType) &&
  4932. !isBoolean(expectedType, receivedType)) {
  4933. message += " with value " + expectedValue;
  4934. }
  4935. message += ", got " + receivedType + " ";
  4936. // check if we need to specify received value
  4937. if (isExplicable(receivedType)) {
  4938. message += "with value " + receivedValue + ".";
  4939. }
  4940. return message
  4941. }
  4942. function styleValue (value, type) {
  4943. if (type === 'String') {
  4944. return ("\"" + value + "\"")
  4945. } else if (type === 'Number') {
  4946. return ("" + (Number(value)))
  4947. } else {
  4948. return ("" + value)
  4949. }
  4950. }
  4951. function isExplicable (value) {
  4952. var explicitTypes = ['string', 'number', 'boolean'];
  4953. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4954. }
  4955. function isBoolean () {
  4956. var args = [], len = arguments.length;
  4957. while ( len-- ) args[ len ] = arguments[ len ];
  4958. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4959. }
  4960. /* */
  4961. function handleError (err, vm, info) {
  4962. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4963. // See: https://github.com/vuejs/vuex/issues/1505
  4964. pushTarget();
  4965. try {
  4966. if (vm) {
  4967. var cur = vm;
  4968. while ((cur = cur.$parent)) {
  4969. var hooks = cur.$options.errorCaptured;
  4970. if (hooks) {
  4971. for (var i = 0; i < hooks.length; i++) {
  4972. try {
  4973. var capture = hooks[i].call(cur, err, vm, info) === false;
  4974. if (capture) { return }
  4975. } catch (e) {
  4976. globalHandleError(e, cur, 'errorCaptured hook');
  4977. }
  4978. }
  4979. }
  4980. }
  4981. }
  4982. globalHandleError(err, vm, info);
  4983. } finally {
  4984. popTarget();
  4985. }
  4986. }
  4987. function invokeWithErrorHandling (
  4988. handler,
  4989. context,
  4990. args,
  4991. vm,
  4992. info
  4993. ) {
  4994. var res;
  4995. try {
  4996. res = args ? handler.apply(context, args) : handler.call(context);
  4997. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4998. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4999. // issue #9511
  5000. // avoid catch triggering multiple times when nested calls
  5001. res._handled = true;
  5002. }
  5003. } catch (e) {
  5004. handleError(e, vm, info);
  5005. }
  5006. return res
  5007. }
  5008. function globalHandleError (err, vm, info) {
  5009. if (config.errorHandler) {
  5010. try {
  5011. return config.errorHandler.call(null, err, vm, info)
  5012. } catch (e) {
  5013. // if the user intentionally throws the original error in the handler,
  5014. // do not log it twice
  5015. if (e !== err) {
  5016. logError(e, null, 'config.errorHandler');
  5017. }
  5018. }
  5019. }
  5020. logError(err, vm, info);
  5021. }
  5022. function logError (err, vm, info) {
  5023. if (true) {
  5024. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5025. }
  5026. /* istanbul ignore else */
  5027. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5028. console.error(err);
  5029. } else {
  5030. throw err
  5031. }
  5032. }
  5033. /* */
  5034. var callbacks = [];
  5035. var pending = false;
  5036. function flushCallbacks () {
  5037. pending = false;
  5038. var copies = callbacks.slice(0);
  5039. callbacks.length = 0;
  5040. for (var i = 0; i < copies.length; i++) {
  5041. copies[i]();
  5042. }
  5043. }
  5044. // Here we have async deferring wrappers using microtasks.
  5045. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5046. // However, it has subtle problems when state is changed right before repaint
  5047. // (e.g. #6813, out-in transitions).
  5048. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5049. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5050. // So we now use microtasks everywhere, again.
  5051. // A major drawback of this tradeoff is that there are some scenarios
  5052. // where microtasks have too high a priority and fire in between supposedly
  5053. // sequential events (e.g. #4521, #6690, which have workarounds)
  5054. // or even between bubbling of the same event (#6566).
  5055. var timerFunc;
  5056. // The nextTick behavior leverages the microtask queue, which can be accessed
  5057. // via either native Promise.then or MutationObserver.
  5058. // MutationObserver has wider support, however it is seriously bugged in
  5059. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5060. // completely stops working after triggering a few times... so, if native
  5061. // Promise is available, we will use it:
  5062. /* istanbul ignore next, $flow-disable-line */
  5063. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5064. var p = Promise.resolve();
  5065. timerFunc = function () {
  5066. p.then(flushCallbacks);
  5067. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5068. // it can get stuck in a weird state where callbacks are pushed into the
  5069. // microtask queue but the queue isn't being flushed, until the browser
  5070. // needs to do some other work, e.g. handle a timer. Therefore we can
  5071. // "force" the microtask queue to be flushed by adding an empty timer.
  5072. if (isIOS) { setTimeout(noop); }
  5073. };
  5074. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5075. isNative(MutationObserver) ||
  5076. // PhantomJS and iOS 7.x
  5077. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5078. )) {
  5079. // Use MutationObserver where native Promise is not available,
  5080. // e.g. PhantomJS, iOS7, Android 4.4
  5081. // (#6466 MutationObserver is unreliable in IE11)
  5082. var counter = 1;
  5083. var observer = new MutationObserver(flushCallbacks);
  5084. var textNode = document.createTextNode(String(counter));
  5085. observer.observe(textNode, {
  5086. characterData: true
  5087. });
  5088. timerFunc = function () {
  5089. counter = (counter + 1) % 2;
  5090. textNode.data = String(counter);
  5091. };
  5092. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5093. // Fallback to setImmediate.
  5094. // Technically it leverages the (macro) task queue,
  5095. // but it is still a better choice than setTimeout.
  5096. timerFunc = function () {
  5097. setImmediate(flushCallbacks);
  5098. };
  5099. } else {
  5100. // Fallback to setTimeout.
  5101. timerFunc = function () {
  5102. setTimeout(flushCallbacks, 0);
  5103. };
  5104. }
  5105. function nextTick (cb, ctx) {
  5106. var _resolve;
  5107. callbacks.push(function () {
  5108. if (cb) {
  5109. try {
  5110. cb.call(ctx);
  5111. } catch (e) {
  5112. handleError(e, ctx, 'nextTick');
  5113. }
  5114. } else if (_resolve) {
  5115. _resolve(ctx);
  5116. }
  5117. });
  5118. if (!pending) {
  5119. pending = true;
  5120. timerFunc();
  5121. }
  5122. // $flow-disable-line
  5123. if (!cb && typeof Promise !== 'undefined') {
  5124. return new Promise(function (resolve) {
  5125. _resolve = resolve;
  5126. })
  5127. }
  5128. }
  5129. /* */
  5130. /* not type checking this file because flow doesn't play well with Proxy */
  5131. var initProxy;
  5132. if (true) {
  5133. var allowedGlobals = makeMap(
  5134. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5135. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5136. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5137. 'require' // for Webpack/Browserify
  5138. );
  5139. var warnNonPresent = function (target, key) {
  5140. warn(
  5141. "Property or method \"" + key + "\" is not defined on the instance but " +
  5142. 'referenced during render. Make sure that this property is reactive, ' +
  5143. 'either in the data option, or for class-based components, by ' +
  5144. 'initializing the property. ' +
  5145. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5146. target
  5147. );
  5148. };
  5149. var warnReservedPrefix = function (target, key) {
  5150. warn(
  5151. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5152. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5153. 'prevent conflicts with Vue internals. ' +
  5154. 'See: https://vuejs.org/v2/api/#data',
  5155. target
  5156. );
  5157. };
  5158. var hasProxy =
  5159. typeof Proxy !== 'undefined' && isNative(Proxy);
  5160. if (hasProxy) {
  5161. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5162. config.keyCodes = new Proxy(config.keyCodes, {
  5163. set: function set (target, key, value) {
  5164. if (isBuiltInModifier(key)) {
  5165. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5166. return false
  5167. } else {
  5168. target[key] = value;
  5169. return true
  5170. }
  5171. }
  5172. });
  5173. }
  5174. var hasHandler = {
  5175. has: function has (target, key) {
  5176. var has = key in target;
  5177. var isAllowed = allowedGlobals(key) ||
  5178. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5179. if (!has && !isAllowed) {
  5180. if (key in target.$data) { warnReservedPrefix(target, key); }
  5181. else { warnNonPresent(target, key); }
  5182. }
  5183. return has || !isAllowed
  5184. }
  5185. };
  5186. var getHandler = {
  5187. get: function get (target, key) {
  5188. if (typeof key === 'string' && !(key in target)) {
  5189. if (key in target.$data) { warnReservedPrefix(target, key); }
  5190. else { warnNonPresent(target, key); }
  5191. }
  5192. return target[key]
  5193. }
  5194. };
  5195. initProxy = function initProxy (vm) {
  5196. if (hasProxy) {
  5197. // determine which proxy handler to use
  5198. var options = vm.$options;
  5199. var handlers = options.render && options.render._withStripped
  5200. ? getHandler
  5201. : hasHandler;
  5202. vm._renderProxy = new Proxy(vm, handlers);
  5203. } else {
  5204. vm._renderProxy = vm;
  5205. }
  5206. };
  5207. }
  5208. /* */
  5209. var seenObjects = new _Set();
  5210. /**
  5211. * Recursively traverse an object to evoke all converted
  5212. * getters, so that every nested property inside the object
  5213. * is collected as a "deep" dependency.
  5214. */
  5215. function traverse (val) {
  5216. _traverse(val, seenObjects);
  5217. seenObjects.clear();
  5218. }
  5219. function _traverse (val, seen) {
  5220. var i, keys;
  5221. var isA = Array.isArray(val);
  5222. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5223. return
  5224. }
  5225. if (val.__ob__) {
  5226. var depId = val.__ob__.dep.id;
  5227. if (seen.has(depId)) {
  5228. return
  5229. }
  5230. seen.add(depId);
  5231. }
  5232. if (isA) {
  5233. i = val.length;
  5234. while (i--) { _traverse(val[i], seen); }
  5235. } else {
  5236. keys = Object.keys(val);
  5237. i = keys.length;
  5238. while (i--) { _traverse(val[keys[i]], seen); }
  5239. }
  5240. }
  5241. var mark;
  5242. var measure;
  5243. if (true) {
  5244. var perf = inBrowser && window.performance;
  5245. /* istanbul ignore if */
  5246. if (
  5247. perf &&
  5248. perf.mark &&
  5249. perf.measure &&
  5250. perf.clearMarks &&
  5251. perf.clearMeasures
  5252. ) {
  5253. mark = function (tag) { return perf.mark(tag); };
  5254. measure = function (name, startTag, endTag) {
  5255. perf.measure(name, startTag, endTag);
  5256. perf.clearMarks(startTag);
  5257. perf.clearMarks(endTag);
  5258. // perf.clearMeasures(name)
  5259. };
  5260. }
  5261. }
  5262. /* */
  5263. var normalizeEvent = cached(function (name) {
  5264. var passive = name.charAt(0) === '&';
  5265. name = passive ? name.slice(1) : name;
  5266. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5267. name = once$$1 ? name.slice(1) : name;
  5268. var capture = name.charAt(0) === '!';
  5269. name = capture ? name.slice(1) : name;
  5270. return {
  5271. name: name,
  5272. once: once$$1,
  5273. capture: capture,
  5274. passive: passive
  5275. }
  5276. });
  5277. function createFnInvoker (fns, vm) {
  5278. function invoker () {
  5279. var arguments$1 = arguments;
  5280. var fns = invoker.fns;
  5281. if (Array.isArray(fns)) {
  5282. var cloned = fns.slice();
  5283. for (var i = 0; i < cloned.length; i++) {
  5284. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5285. }
  5286. } else {
  5287. // return handler return value for single handlers
  5288. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5289. }
  5290. }
  5291. invoker.fns = fns;
  5292. return invoker
  5293. }
  5294. function updateListeners (
  5295. on,
  5296. oldOn,
  5297. add,
  5298. remove$$1,
  5299. createOnceHandler,
  5300. vm
  5301. ) {
  5302. var name, def$$1, cur, old, event;
  5303. for (name in on) {
  5304. def$$1 = cur = on[name];
  5305. old = oldOn[name];
  5306. event = normalizeEvent(name);
  5307. if (isUndef(cur)) {
  5308. true && warn(
  5309. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5310. vm
  5311. );
  5312. } else if (isUndef(old)) {
  5313. if (isUndef(cur.fns)) {
  5314. cur = on[name] = createFnInvoker(cur, vm);
  5315. }
  5316. if (isTrue(event.once)) {
  5317. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5318. }
  5319. add(event.name, cur, event.capture, event.passive, event.params);
  5320. } else if (cur !== old) {
  5321. old.fns = cur;
  5322. on[name] = old;
  5323. }
  5324. }
  5325. for (name in oldOn) {
  5326. if (isUndef(on[name])) {
  5327. event = normalizeEvent(name);
  5328. remove$$1(event.name, oldOn[name], event.capture);
  5329. }
  5330. }
  5331. }
  5332. /* */
  5333. /* */
  5334. // fixed by xxxxxx (mp properties)
  5335. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5336. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5337. if (isUndef(propOptions)) {
  5338. return res
  5339. }
  5340. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5341. var attrs = data.attrs;
  5342. var props = data.props;
  5343. if (isDef(attrs) || isDef(props)) {
  5344. for (var key in propOptions) {
  5345. var altKey = hyphenate(key);
  5346. var result = checkProp(res, props, key, altKey, true) ||
  5347. checkProp(res, attrs, key, altKey, false);
  5348. // externalClass
  5349. if (
  5350. result &&
  5351. res[key] &&
  5352. externalClasses.indexOf(altKey) !== -1 &&
  5353. context[camelize(res[key])]
  5354. ) {
  5355. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5356. res[key] = context[camelize(res[key])];
  5357. }
  5358. }
  5359. }
  5360. return res
  5361. }
  5362. function extractPropsFromVNodeData (
  5363. data,
  5364. Ctor,
  5365. tag,
  5366. context// fixed by xxxxxx
  5367. ) {
  5368. // we are only extracting raw values here.
  5369. // validation and default values are handled in the child
  5370. // component itself.
  5371. var propOptions = Ctor.options.props;
  5372. if (isUndef(propOptions)) {
  5373. // fixed by xxxxxx
  5374. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5375. }
  5376. var res = {};
  5377. var attrs = data.attrs;
  5378. var props = data.props;
  5379. if (isDef(attrs) || isDef(props)) {
  5380. for (var key in propOptions) {
  5381. var altKey = hyphenate(key);
  5382. if (true) {
  5383. var keyInLowerCase = key.toLowerCase();
  5384. if (
  5385. key !== keyInLowerCase &&
  5386. attrs && hasOwn(attrs, keyInLowerCase)
  5387. ) {
  5388. tip(
  5389. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5390. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5391. " \"" + key + "\". " +
  5392. "Note that HTML attributes are case-insensitive and camelCased " +
  5393. "props need to use their kebab-case equivalents when using in-DOM " +
  5394. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5395. );
  5396. }
  5397. }
  5398. checkProp(res, props, key, altKey, true) ||
  5399. checkProp(res, attrs, key, altKey, false);
  5400. }
  5401. }
  5402. // fixed by xxxxxx
  5403. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5404. }
  5405. function checkProp (
  5406. res,
  5407. hash,
  5408. key,
  5409. altKey,
  5410. preserve
  5411. ) {
  5412. if (isDef(hash)) {
  5413. if (hasOwn(hash, key)) {
  5414. res[key] = hash[key];
  5415. if (!preserve) {
  5416. delete hash[key];
  5417. }
  5418. return true
  5419. } else if (hasOwn(hash, altKey)) {
  5420. res[key] = hash[altKey];
  5421. if (!preserve) {
  5422. delete hash[altKey];
  5423. }
  5424. return true
  5425. }
  5426. }
  5427. return false
  5428. }
  5429. /* */
  5430. // The template compiler attempts to minimize the need for normalization by
  5431. // statically analyzing the template at compile time.
  5432. //
  5433. // For plain HTML markup, normalization can be completely skipped because the
  5434. // generated render function is guaranteed to return Array<VNode>. There are
  5435. // two cases where extra normalization is needed:
  5436. // 1. When the children contains components - because a functional component
  5437. // may return an Array instead of a single root. In this case, just a simple
  5438. // normalization is needed - if any child is an Array, we flatten the whole
  5439. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5440. // because functional components already normalize their own children.
  5441. function simpleNormalizeChildren (children) {
  5442. for (var i = 0; i < children.length; i++) {
  5443. if (Array.isArray(children[i])) {
  5444. return Array.prototype.concat.apply([], children)
  5445. }
  5446. }
  5447. return children
  5448. }
  5449. // 2. When the children contains constructs that always generated nested Arrays,
  5450. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5451. // with hand-written render functions / JSX. In such cases a full normalization
  5452. // is needed to cater to all possible types of children values.
  5453. function normalizeChildren (children) {
  5454. return isPrimitive(children)
  5455. ? [createTextVNode(children)]
  5456. : Array.isArray(children)
  5457. ? normalizeArrayChildren(children)
  5458. : undefined
  5459. }
  5460. function isTextNode (node) {
  5461. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5462. }
  5463. function normalizeArrayChildren (children, nestedIndex) {
  5464. var res = [];
  5465. var i, c, lastIndex, last;
  5466. for (i = 0; i < children.length; i++) {
  5467. c = children[i];
  5468. if (isUndef(c) || typeof c === 'boolean') { continue }
  5469. lastIndex = res.length - 1;
  5470. last = res[lastIndex];
  5471. // nested
  5472. if (Array.isArray(c)) {
  5473. if (c.length > 0) {
  5474. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5475. // merge adjacent text nodes
  5476. if (isTextNode(c[0]) && isTextNode(last)) {
  5477. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5478. c.shift();
  5479. }
  5480. res.push.apply(res, c);
  5481. }
  5482. } else if (isPrimitive(c)) {
  5483. if (isTextNode(last)) {
  5484. // merge adjacent text nodes
  5485. // this is necessary for SSR hydration because text nodes are
  5486. // essentially merged when rendered to HTML strings
  5487. res[lastIndex] = createTextVNode(last.text + c);
  5488. } else if (c !== '') {
  5489. // convert primitive to vnode
  5490. res.push(createTextVNode(c));
  5491. }
  5492. } else {
  5493. if (isTextNode(c) && isTextNode(last)) {
  5494. // merge adjacent text nodes
  5495. res[lastIndex] = createTextVNode(last.text + c.text);
  5496. } else {
  5497. // default key for nested array children (likely generated by v-for)
  5498. if (isTrue(children._isVList) &&
  5499. isDef(c.tag) &&
  5500. isUndef(c.key) &&
  5501. isDef(nestedIndex)) {
  5502. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5503. }
  5504. res.push(c);
  5505. }
  5506. }
  5507. }
  5508. return res
  5509. }
  5510. /* */
  5511. function initProvide (vm) {
  5512. var provide = vm.$options.provide;
  5513. if (provide) {
  5514. vm._provided = typeof provide === 'function'
  5515. ? provide.call(vm)
  5516. : provide;
  5517. }
  5518. }
  5519. function initInjections (vm) {
  5520. var result = resolveInject(vm.$options.inject, vm);
  5521. if (result) {
  5522. toggleObserving(false);
  5523. Object.keys(result).forEach(function (key) {
  5524. /* istanbul ignore else */
  5525. if (true) {
  5526. defineReactive$$1(vm, key, result[key], function () {
  5527. warn(
  5528. "Avoid mutating an injected value directly since the changes will be " +
  5529. "overwritten whenever the provided component re-renders. " +
  5530. "injection being mutated: \"" + key + "\"",
  5531. vm
  5532. );
  5533. });
  5534. } else {}
  5535. });
  5536. toggleObserving(true);
  5537. }
  5538. }
  5539. function resolveInject (inject, vm) {
  5540. if (inject) {
  5541. // inject is :any because flow is not smart enough to figure out cached
  5542. var result = Object.create(null);
  5543. var keys = hasSymbol
  5544. ? Reflect.ownKeys(inject)
  5545. : Object.keys(inject);
  5546. for (var i = 0; i < keys.length; i++) {
  5547. var key = keys[i];
  5548. // #6574 in case the inject object is observed...
  5549. if (key === '__ob__') { continue }
  5550. var provideKey = inject[key].from;
  5551. var source = vm;
  5552. while (source) {
  5553. if (source._provided && hasOwn(source._provided, provideKey)) {
  5554. result[key] = source._provided[provideKey];
  5555. break
  5556. }
  5557. source = source.$parent;
  5558. }
  5559. if (!source) {
  5560. if ('default' in inject[key]) {
  5561. var provideDefault = inject[key].default;
  5562. result[key] = typeof provideDefault === 'function'
  5563. ? provideDefault.call(vm)
  5564. : provideDefault;
  5565. } else if (true) {
  5566. warn(("Injection \"" + key + "\" not found"), vm);
  5567. }
  5568. }
  5569. }
  5570. return result
  5571. }
  5572. }
  5573. /* */
  5574. /**
  5575. * Runtime helper for resolving raw children VNodes into a slot object.
  5576. */
  5577. function resolveSlots (
  5578. children,
  5579. context
  5580. ) {
  5581. if (!children || !children.length) {
  5582. return {}
  5583. }
  5584. var slots = {};
  5585. for (var i = 0, l = children.length; i < l; i++) {
  5586. var child = children[i];
  5587. var data = child.data;
  5588. // remove slot attribute if the node is resolved as a Vue slot node
  5589. if (data && data.attrs && data.attrs.slot) {
  5590. delete data.attrs.slot;
  5591. }
  5592. // named slots should only be respected if the vnode was rendered in the
  5593. // same context.
  5594. if ((child.context === context || child.fnContext === context) &&
  5595. data && data.slot != null
  5596. ) {
  5597. var name = data.slot;
  5598. var slot = (slots[name] || (slots[name] = []));
  5599. if (child.tag === 'template') {
  5600. slot.push.apply(slot, child.children || []);
  5601. } else {
  5602. slot.push(child);
  5603. }
  5604. } else {
  5605. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5606. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5607. (slots['page'] || (slots['page'] = [])).push(child);
  5608. }else{
  5609. (slots.default || (slots.default = [])).push(child);
  5610. }
  5611. }
  5612. }
  5613. // ignore slots that contains only whitespace
  5614. for (var name$1 in slots) {
  5615. if (slots[name$1].every(isWhitespace)) {
  5616. delete slots[name$1];
  5617. }
  5618. }
  5619. return slots
  5620. }
  5621. function isWhitespace (node) {
  5622. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5623. }
  5624. /* */
  5625. function normalizeScopedSlots (
  5626. slots,
  5627. normalSlots,
  5628. prevSlots
  5629. ) {
  5630. var res;
  5631. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5632. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5633. var key = slots && slots.$key;
  5634. if (!slots) {
  5635. res = {};
  5636. } else if (slots._normalized) {
  5637. // fast path 1: child component re-render only, parent did not change
  5638. return slots._normalized
  5639. } else if (
  5640. isStable &&
  5641. prevSlots &&
  5642. prevSlots !== emptyObject &&
  5643. key === prevSlots.$key &&
  5644. !hasNormalSlots &&
  5645. !prevSlots.$hasNormal
  5646. ) {
  5647. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5648. // only need to normalize once
  5649. return prevSlots
  5650. } else {
  5651. res = {};
  5652. for (var key$1 in slots) {
  5653. if (slots[key$1] && key$1[0] !== '$') {
  5654. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5655. }
  5656. }
  5657. }
  5658. // expose normal slots on scopedSlots
  5659. for (var key$2 in normalSlots) {
  5660. if (!(key$2 in res)) {
  5661. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5662. }
  5663. }
  5664. // avoriaz seems to mock a non-extensible $scopedSlots object
  5665. // and when that is passed down this would cause an error
  5666. if (slots && Object.isExtensible(slots)) {
  5667. (slots)._normalized = res;
  5668. }
  5669. def(res, '$stable', isStable);
  5670. def(res, '$key', key);
  5671. def(res, '$hasNormal', hasNormalSlots);
  5672. return res
  5673. }
  5674. function normalizeScopedSlot(normalSlots, key, fn) {
  5675. var normalized = function () {
  5676. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5677. res = res && typeof res === 'object' && !Array.isArray(res)
  5678. ? [res] // single vnode
  5679. : normalizeChildren(res);
  5680. return res && (
  5681. res.length === 0 ||
  5682. (res.length === 1 && res[0].isComment) // #9658
  5683. ) ? undefined
  5684. : res
  5685. };
  5686. // this is a slot using the new v-slot syntax without scope. although it is
  5687. // compiled as a scoped slot, render fn users would expect it to be present
  5688. // on this.$slots because the usage is semantically a normal slot.
  5689. if (fn.proxy) {
  5690. Object.defineProperty(normalSlots, key, {
  5691. get: normalized,
  5692. enumerable: true,
  5693. configurable: true
  5694. });
  5695. }
  5696. return normalized
  5697. }
  5698. function proxyNormalSlot(slots, key) {
  5699. return function () { return slots[key]; }
  5700. }
  5701. /* */
  5702. /**
  5703. * Runtime helper for rendering v-for lists.
  5704. */
  5705. function renderList (
  5706. val,
  5707. render
  5708. ) {
  5709. var ret, i, l, keys, key;
  5710. if (Array.isArray(val) || typeof val === 'string') {
  5711. ret = new Array(val.length);
  5712. for (i = 0, l = val.length; i < l; i++) {
  5713. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5714. }
  5715. } else if (typeof val === 'number') {
  5716. ret = new Array(val);
  5717. for (i = 0; i < val; i++) {
  5718. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5719. }
  5720. } else if (isObject(val)) {
  5721. if (hasSymbol && val[Symbol.iterator]) {
  5722. ret = [];
  5723. var iterator = val[Symbol.iterator]();
  5724. var result = iterator.next();
  5725. while (!result.done) {
  5726. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5727. result = iterator.next();
  5728. }
  5729. } else {
  5730. keys = Object.keys(val);
  5731. ret = new Array(keys.length);
  5732. for (i = 0, l = keys.length; i < l; i++) {
  5733. key = keys[i];
  5734. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5735. }
  5736. }
  5737. }
  5738. if (!isDef(ret)) {
  5739. ret = [];
  5740. }
  5741. (ret)._isVList = true;
  5742. return ret
  5743. }
  5744. /* */
  5745. /**
  5746. * Runtime helper for rendering <slot>
  5747. */
  5748. function renderSlot (
  5749. name,
  5750. fallback,
  5751. props,
  5752. bindObject
  5753. ) {
  5754. var scopedSlotFn = this.$scopedSlots[name];
  5755. var nodes;
  5756. if (scopedSlotFn) { // scoped slot
  5757. props = props || {};
  5758. if (bindObject) {
  5759. if ( true && !isObject(bindObject)) {
  5760. warn(
  5761. 'slot v-bind without argument expects an Object',
  5762. this
  5763. );
  5764. }
  5765. props = extend(extend({}, bindObject), props);
  5766. }
  5767. // fixed by xxxxxx app-plus scopedSlot
  5768. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5769. } else {
  5770. nodes = this.$slots[name] || fallback;
  5771. }
  5772. var target = props && props.slot;
  5773. if (target) {
  5774. return this.$createElement('template', { slot: target }, nodes)
  5775. } else {
  5776. return nodes
  5777. }
  5778. }
  5779. /* */
  5780. /**
  5781. * Runtime helper for resolving filters
  5782. */
  5783. function resolveFilter (id) {
  5784. return resolveAsset(this.$options, 'filters', id, true) || identity
  5785. }
  5786. /* */
  5787. function isKeyNotMatch (expect, actual) {
  5788. if (Array.isArray(expect)) {
  5789. return expect.indexOf(actual) === -1
  5790. } else {
  5791. return expect !== actual
  5792. }
  5793. }
  5794. /**
  5795. * Runtime helper for checking keyCodes from config.
  5796. * exposed as Vue.prototype._k
  5797. * passing in eventKeyName as last argument separately for backwards compat
  5798. */
  5799. function checkKeyCodes (
  5800. eventKeyCode,
  5801. key,
  5802. builtInKeyCode,
  5803. eventKeyName,
  5804. builtInKeyName
  5805. ) {
  5806. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5807. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5808. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5809. } else if (mappedKeyCode) {
  5810. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5811. } else if (eventKeyName) {
  5812. return hyphenate(eventKeyName) !== key
  5813. }
  5814. }
  5815. /* */
  5816. /**
  5817. * Runtime helper for merging v-bind="object" into a VNode's data.
  5818. */
  5819. function bindObjectProps (
  5820. data,
  5821. tag,
  5822. value,
  5823. asProp,
  5824. isSync
  5825. ) {
  5826. if (value) {
  5827. if (!isObject(value)) {
  5828. true && warn(
  5829. 'v-bind without argument expects an Object or Array value',
  5830. this
  5831. );
  5832. } else {
  5833. if (Array.isArray(value)) {
  5834. value = toObject(value);
  5835. }
  5836. var hash;
  5837. var loop = function ( key ) {
  5838. if (
  5839. key === 'class' ||
  5840. key === 'style' ||
  5841. isReservedAttribute(key)
  5842. ) {
  5843. hash = data;
  5844. } else {
  5845. var type = data.attrs && data.attrs.type;
  5846. hash = asProp || config.mustUseProp(tag, type, key)
  5847. ? data.domProps || (data.domProps = {})
  5848. : data.attrs || (data.attrs = {});
  5849. }
  5850. var camelizedKey = camelize(key);
  5851. var hyphenatedKey = hyphenate(key);
  5852. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5853. hash[key] = value[key];
  5854. if (isSync) {
  5855. var on = data.on || (data.on = {});
  5856. on[("update:" + key)] = function ($event) {
  5857. value[key] = $event;
  5858. };
  5859. }
  5860. }
  5861. };
  5862. for (var key in value) loop( key );
  5863. }
  5864. }
  5865. return data
  5866. }
  5867. /* */
  5868. /**
  5869. * Runtime helper for rendering static trees.
  5870. */
  5871. function renderStatic (
  5872. index,
  5873. isInFor
  5874. ) {
  5875. var cached = this._staticTrees || (this._staticTrees = []);
  5876. var tree = cached[index];
  5877. // if has already-rendered static tree and not inside v-for,
  5878. // we can reuse the same tree.
  5879. if (tree && !isInFor) {
  5880. return tree
  5881. }
  5882. // otherwise, render a fresh tree.
  5883. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5884. this._renderProxy,
  5885. null,
  5886. this // for render fns generated for functional component templates
  5887. );
  5888. markStatic(tree, ("__static__" + index), false);
  5889. return tree
  5890. }
  5891. /**
  5892. * Runtime helper for v-once.
  5893. * Effectively it means marking the node as static with a unique key.
  5894. */
  5895. function markOnce (
  5896. tree,
  5897. index,
  5898. key
  5899. ) {
  5900. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5901. return tree
  5902. }
  5903. function markStatic (
  5904. tree,
  5905. key,
  5906. isOnce
  5907. ) {
  5908. if (Array.isArray(tree)) {
  5909. for (var i = 0; i < tree.length; i++) {
  5910. if (tree[i] && typeof tree[i] !== 'string') {
  5911. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5912. }
  5913. }
  5914. } else {
  5915. markStaticNode(tree, key, isOnce);
  5916. }
  5917. }
  5918. function markStaticNode (node, key, isOnce) {
  5919. node.isStatic = true;
  5920. node.key = key;
  5921. node.isOnce = isOnce;
  5922. }
  5923. /* */
  5924. function bindObjectListeners (data, value) {
  5925. if (value) {
  5926. if (!isPlainObject(value)) {
  5927. true && warn(
  5928. 'v-on without argument expects an Object value',
  5929. this
  5930. );
  5931. } else {
  5932. var on = data.on = data.on ? extend({}, data.on) : {};
  5933. for (var key in value) {
  5934. var existing = on[key];
  5935. var ours = value[key];
  5936. on[key] = existing ? [].concat(existing, ours) : ours;
  5937. }
  5938. }
  5939. }
  5940. return data
  5941. }
  5942. /* */
  5943. function resolveScopedSlots (
  5944. fns, // see flow/vnode
  5945. res,
  5946. // the following are added in 2.6
  5947. hasDynamicKeys,
  5948. contentHashKey
  5949. ) {
  5950. res = res || { $stable: !hasDynamicKeys };
  5951. for (var i = 0; i < fns.length; i++) {
  5952. var slot = fns[i];
  5953. if (Array.isArray(slot)) {
  5954. resolveScopedSlots(slot, res, hasDynamicKeys);
  5955. } else if (slot) {
  5956. // marker for reverse proxying v-slot without scope on this.$slots
  5957. if (slot.proxy) {
  5958. slot.fn.proxy = true;
  5959. }
  5960. res[slot.key] = slot.fn;
  5961. }
  5962. }
  5963. if (contentHashKey) {
  5964. (res).$key = contentHashKey;
  5965. }
  5966. return res
  5967. }
  5968. /* */
  5969. function bindDynamicKeys (baseObj, values) {
  5970. for (var i = 0; i < values.length; i += 2) {
  5971. var key = values[i];
  5972. if (typeof key === 'string' && key) {
  5973. baseObj[values[i]] = values[i + 1];
  5974. } else if ( true && key !== '' && key !== null) {
  5975. // null is a special value for explicitly removing a binding
  5976. warn(
  5977. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5978. this
  5979. );
  5980. }
  5981. }
  5982. return baseObj
  5983. }
  5984. // helper to dynamically append modifier runtime markers to event names.
  5985. // ensure only append when value is already string, otherwise it will be cast
  5986. // to string and cause the type check to miss.
  5987. function prependModifier (value, symbol) {
  5988. return typeof value === 'string' ? symbol + value : value
  5989. }
  5990. /* */
  5991. function installRenderHelpers (target) {
  5992. target._o = markOnce;
  5993. target._n = toNumber;
  5994. target._s = toString;
  5995. target._l = renderList;
  5996. target._t = renderSlot;
  5997. target._q = looseEqual;
  5998. target._i = looseIndexOf;
  5999. target._m = renderStatic;
  6000. target._f = resolveFilter;
  6001. target._k = checkKeyCodes;
  6002. target._b = bindObjectProps;
  6003. target._v = createTextVNode;
  6004. target._e = createEmptyVNode;
  6005. target._u = resolveScopedSlots;
  6006. target._g = bindObjectListeners;
  6007. target._d = bindDynamicKeys;
  6008. target._p = prependModifier;
  6009. }
  6010. /* */
  6011. function FunctionalRenderContext (
  6012. data,
  6013. props,
  6014. children,
  6015. parent,
  6016. Ctor
  6017. ) {
  6018. var this$1 = this;
  6019. var options = Ctor.options;
  6020. // ensure the createElement function in functional components
  6021. // gets a unique context - this is necessary for correct named slot check
  6022. var contextVm;
  6023. if (hasOwn(parent, '_uid')) {
  6024. contextVm = Object.create(parent);
  6025. // $flow-disable-line
  6026. contextVm._original = parent;
  6027. } else {
  6028. // the context vm passed in is a functional context as well.
  6029. // in this case we want to make sure we are able to get a hold to the
  6030. // real context instance.
  6031. contextVm = parent;
  6032. // $flow-disable-line
  6033. parent = parent._original;
  6034. }
  6035. var isCompiled = isTrue(options._compiled);
  6036. var needNormalization = !isCompiled;
  6037. this.data = data;
  6038. this.props = props;
  6039. this.children = children;
  6040. this.parent = parent;
  6041. this.listeners = data.on || emptyObject;
  6042. this.injections = resolveInject(options.inject, parent);
  6043. this.slots = function () {
  6044. if (!this$1.$slots) {
  6045. normalizeScopedSlots(
  6046. data.scopedSlots,
  6047. this$1.$slots = resolveSlots(children, parent)
  6048. );
  6049. }
  6050. return this$1.$slots
  6051. };
  6052. Object.defineProperty(this, 'scopedSlots', ({
  6053. enumerable: true,
  6054. get: function get () {
  6055. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6056. }
  6057. }));
  6058. // support for compiled functional template
  6059. if (isCompiled) {
  6060. // exposing $options for renderStatic()
  6061. this.$options = options;
  6062. // pre-resolve slots for renderSlot()
  6063. this.$slots = this.slots();
  6064. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6065. }
  6066. if (options._scopeId) {
  6067. this._c = function (a, b, c, d) {
  6068. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6069. if (vnode && !Array.isArray(vnode)) {
  6070. vnode.fnScopeId = options._scopeId;
  6071. vnode.fnContext = parent;
  6072. }
  6073. return vnode
  6074. };
  6075. } else {
  6076. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6077. }
  6078. }
  6079. installRenderHelpers(FunctionalRenderContext.prototype);
  6080. function createFunctionalComponent (
  6081. Ctor,
  6082. propsData,
  6083. data,
  6084. contextVm,
  6085. children
  6086. ) {
  6087. var options = Ctor.options;
  6088. var props = {};
  6089. var propOptions = options.props;
  6090. if (isDef(propOptions)) {
  6091. for (var key in propOptions) {
  6092. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6093. }
  6094. } else {
  6095. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6096. if (isDef(data.props)) { mergeProps(props, data.props); }
  6097. }
  6098. var renderContext = new FunctionalRenderContext(
  6099. data,
  6100. props,
  6101. children,
  6102. contextVm,
  6103. Ctor
  6104. );
  6105. var vnode = options.render.call(null, renderContext._c, renderContext);
  6106. if (vnode instanceof VNode) {
  6107. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6108. } else if (Array.isArray(vnode)) {
  6109. var vnodes = normalizeChildren(vnode) || [];
  6110. var res = new Array(vnodes.length);
  6111. for (var i = 0; i < vnodes.length; i++) {
  6112. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6113. }
  6114. return res
  6115. }
  6116. }
  6117. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6118. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6119. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6120. // that should not be matched to match.
  6121. var clone = cloneVNode(vnode);
  6122. clone.fnContext = contextVm;
  6123. clone.fnOptions = options;
  6124. if (true) {
  6125. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6126. }
  6127. if (data.slot) {
  6128. (clone.data || (clone.data = {})).slot = data.slot;
  6129. }
  6130. return clone
  6131. }
  6132. function mergeProps (to, from) {
  6133. for (var key in from) {
  6134. to[camelize(key)] = from[key];
  6135. }
  6136. }
  6137. /* */
  6138. /* */
  6139. /* */
  6140. /* */
  6141. // inline hooks to be invoked on component VNodes during patch
  6142. var componentVNodeHooks = {
  6143. init: function init (vnode, hydrating) {
  6144. if (
  6145. vnode.componentInstance &&
  6146. !vnode.componentInstance._isDestroyed &&
  6147. vnode.data.keepAlive
  6148. ) {
  6149. // kept-alive components, treat as a patch
  6150. var mountedNode = vnode; // work around flow
  6151. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6152. } else {
  6153. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6154. vnode,
  6155. activeInstance
  6156. );
  6157. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6158. }
  6159. },
  6160. prepatch: function prepatch (oldVnode, vnode) {
  6161. var options = vnode.componentOptions;
  6162. var child = vnode.componentInstance = oldVnode.componentInstance;
  6163. updateChildComponent(
  6164. child,
  6165. options.propsData, // updated props
  6166. options.listeners, // updated listeners
  6167. vnode, // new parent vnode
  6168. options.children // new children
  6169. );
  6170. },
  6171. insert: function insert (vnode) {
  6172. var context = vnode.context;
  6173. var componentInstance = vnode.componentInstance;
  6174. if (!componentInstance._isMounted) {
  6175. callHook(componentInstance, 'onServiceCreated');
  6176. callHook(componentInstance, 'onServiceAttached');
  6177. componentInstance._isMounted = true;
  6178. callHook(componentInstance, 'mounted');
  6179. }
  6180. if (vnode.data.keepAlive) {
  6181. if (context._isMounted) {
  6182. // vue-router#1212
  6183. // During updates, a kept-alive component's child components may
  6184. // change, so directly walking the tree here may call activated hooks
  6185. // on incorrect children. Instead we push them into a queue which will
  6186. // be processed after the whole patch process ended.
  6187. queueActivatedComponent(componentInstance);
  6188. } else {
  6189. activateChildComponent(componentInstance, true /* direct */);
  6190. }
  6191. }
  6192. },
  6193. destroy: function destroy (vnode) {
  6194. var componentInstance = vnode.componentInstance;
  6195. if (!componentInstance._isDestroyed) {
  6196. if (!vnode.data.keepAlive) {
  6197. componentInstance.$destroy();
  6198. } else {
  6199. deactivateChildComponent(componentInstance, true /* direct */);
  6200. }
  6201. }
  6202. }
  6203. };
  6204. var hooksToMerge = Object.keys(componentVNodeHooks);
  6205. function createComponent (
  6206. Ctor,
  6207. data,
  6208. context,
  6209. children,
  6210. tag
  6211. ) {
  6212. if (isUndef(Ctor)) {
  6213. return
  6214. }
  6215. var baseCtor = context.$options._base;
  6216. // plain options object: turn it into a constructor
  6217. if (isObject(Ctor)) {
  6218. Ctor = baseCtor.extend(Ctor);
  6219. }
  6220. // if at this stage it's not a constructor or an async component factory,
  6221. // reject.
  6222. if (typeof Ctor !== 'function') {
  6223. if (true) {
  6224. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6225. }
  6226. return
  6227. }
  6228. // async component
  6229. var asyncFactory;
  6230. if (isUndef(Ctor.cid)) {
  6231. asyncFactory = Ctor;
  6232. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6233. if (Ctor === undefined) {
  6234. // return a placeholder node for async component, which is rendered
  6235. // as a comment node but preserves all the raw information for the node.
  6236. // the information will be used for async server-rendering and hydration.
  6237. return createAsyncPlaceholder(
  6238. asyncFactory,
  6239. data,
  6240. context,
  6241. children,
  6242. tag
  6243. )
  6244. }
  6245. }
  6246. data = data || {};
  6247. // resolve constructor options in case global mixins are applied after
  6248. // component constructor creation
  6249. resolveConstructorOptions(Ctor);
  6250. // transform component v-model data into props & events
  6251. if (isDef(data.model)) {
  6252. transformModel(Ctor.options, data);
  6253. }
  6254. // extract props
  6255. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6256. // functional component
  6257. if (isTrue(Ctor.options.functional)) {
  6258. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6259. }
  6260. // extract listeners, since these needs to be treated as
  6261. // child component listeners instead of DOM listeners
  6262. var listeners = data.on;
  6263. // replace with listeners with .native modifier
  6264. // so it gets processed during parent component patch.
  6265. data.on = data.nativeOn;
  6266. if (isTrue(Ctor.options.abstract)) {
  6267. // abstract components do not keep anything
  6268. // other than props & listeners & slot
  6269. // work around flow
  6270. var slot = data.slot;
  6271. data = {};
  6272. if (slot) {
  6273. data.slot = slot;
  6274. }
  6275. }
  6276. // install component management hooks onto the placeholder node
  6277. installComponentHooks(data);
  6278. // return a placeholder vnode
  6279. var name = Ctor.options.name || tag;
  6280. var vnode = new VNode(
  6281. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6282. data, undefined, undefined, undefined, context,
  6283. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6284. asyncFactory
  6285. );
  6286. return vnode
  6287. }
  6288. function createComponentInstanceForVnode (
  6289. vnode, // we know it's MountedComponentVNode but flow doesn't
  6290. parent // activeInstance in lifecycle state
  6291. ) {
  6292. var options = {
  6293. _isComponent: true,
  6294. _parentVnode: vnode,
  6295. parent: parent
  6296. };
  6297. // check inline-template render functions
  6298. var inlineTemplate = vnode.data.inlineTemplate;
  6299. if (isDef(inlineTemplate)) {
  6300. options.render = inlineTemplate.render;
  6301. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6302. }
  6303. return new vnode.componentOptions.Ctor(options)
  6304. }
  6305. function installComponentHooks (data) {
  6306. var hooks = data.hook || (data.hook = {});
  6307. for (var i = 0; i < hooksToMerge.length; i++) {
  6308. var key = hooksToMerge[i];
  6309. var existing = hooks[key];
  6310. var toMerge = componentVNodeHooks[key];
  6311. if (existing !== toMerge && !(existing && existing._merged)) {
  6312. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6313. }
  6314. }
  6315. }
  6316. function mergeHook$1 (f1, f2) {
  6317. var merged = function (a, b) {
  6318. // flow complains about extra args which is why we use any
  6319. f1(a, b);
  6320. f2(a, b);
  6321. };
  6322. merged._merged = true;
  6323. return merged
  6324. }
  6325. // transform component v-model info (value and callback) into
  6326. // prop and event handler respectively.
  6327. function transformModel (options, data) {
  6328. var prop = (options.model && options.model.prop) || 'value';
  6329. var event = (options.model && options.model.event) || 'input'
  6330. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6331. var on = data.on || (data.on = {});
  6332. var existing = on[event];
  6333. var callback = data.model.callback;
  6334. if (isDef(existing)) {
  6335. if (
  6336. Array.isArray(existing)
  6337. ? existing.indexOf(callback) === -1
  6338. : existing !== callback
  6339. ) {
  6340. on[event] = [callback].concat(existing);
  6341. }
  6342. } else {
  6343. on[event] = callback;
  6344. }
  6345. }
  6346. /* */
  6347. var SIMPLE_NORMALIZE = 1;
  6348. var ALWAYS_NORMALIZE = 2;
  6349. // wrapper function for providing a more flexible interface
  6350. // without getting yelled at by flow
  6351. function createElement (
  6352. context,
  6353. tag,
  6354. data,
  6355. children,
  6356. normalizationType,
  6357. alwaysNormalize
  6358. ) {
  6359. if (Array.isArray(data) || isPrimitive(data)) {
  6360. normalizationType = children;
  6361. children = data;
  6362. data = undefined;
  6363. }
  6364. if (isTrue(alwaysNormalize)) {
  6365. normalizationType = ALWAYS_NORMALIZE;
  6366. }
  6367. return _createElement(context, tag, data, children, normalizationType)
  6368. }
  6369. function _createElement (
  6370. context,
  6371. tag,
  6372. data,
  6373. children,
  6374. normalizationType
  6375. ) {
  6376. if (isDef(data) && isDef((data).__ob__)) {
  6377. true && warn(
  6378. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6379. 'Always create fresh vnode data objects in each render!',
  6380. context
  6381. );
  6382. return createEmptyVNode()
  6383. }
  6384. // object syntax in v-bind
  6385. if (isDef(data) && isDef(data.is)) {
  6386. tag = data.is;
  6387. }
  6388. if (!tag) {
  6389. // in case of component :is set to falsy value
  6390. return createEmptyVNode()
  6391. }
  6392. // warn against non-primitive key
  6393. if ( true &&
  6394. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6395. ) {
  6396. {
  6397. warn(
  6398. 'Avoid using non-primitive value as key, ' +
  6399. 'use string/number value instead.',
  6400. context
  6401. );
  6402. }
  6403. }
  6404. // support single function children as default scoped slot
  6405. if (Array.isArray(children) &&
  6406. typeof children[0] === 'function'
  6407. ) {
  6408. data = data || {};
  6409. data.scopedSlots = { default: children[0] };
  6410. children.length = 0;
  6411. }
  6412. if (normalizationType === ALWAYS_NORMALIZE) {
  6413. children = normalizeChildren(children);
  6414. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6415. children = simpleNormalizeChildren(children);
  6416. }
  6417. var vnode, ns;
  6418. if (typeof tag === 'string') {
  6419. var Ctor;
  6420. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6421. if (config.isReservedTag(tag)) {
  6422. // platform built-in elements
  6423. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6424. warn(
  6425. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6426. context
  6427. );
  6428. }
  6429. vnode = new VNode(
  6430. config.parsePlatformTagName(tag), data, children,
  6431. undefined, undefined, context
  6432. );
  6433. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6434. // component
  6435. vnode = createComponent(Ctor, data, context, children, tag);
  6436. } else {
  6437. // unknown or unlisted namespaced elements
  6438. // check at runtime because it may get assigned a namespace when its
  6439. // parent normalizes children
  6440. vnode = new VNode(
  6441. tag, data, children,
  6442. undefined, undefined, context
  6443. );
  6444. }
  6445. } else {
  6446. // direct component options / constructor
  6447. vnode = createComponent(tag, data, context, children);
  6448. }
  6449. if (Array.isArray(vnode)) {
  6450. return vnode
  6451. } else if (isDef(vnode)) {
  6452. if (isDef(ns)) { applyNS(vnode, ns); }
  6453. if (isDef(data)) { registerDeepBindings(data); }
  6454. return vnode
  6455. } else {
  6456. return createEmptyVNode()
  6457. }
  6458. }
  6459. function applyNS (vnode, ns, force) {
  6460. vnode.ns = ns;
  6461. if (vnode.tag === 'foreignObject') {
  6462. // use default namespace inside foreignObject
  6463. ns = undefined;
  6464. force = true;
  6465. }
  6466. if (isDef(vnode.children)) {
  6467. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6468. var child = vnode.children[i];
  6469. if (isDef(child.tag) && (
  6470. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6471. applyNS(child, ns, force);
  6472. }
  6473. }
  6474. }
  6475. }
  6476. // ref #5318
  6477. // necessary to ensure parent re-render when deep bindings like :style and
  6478. // :class are used on slot nodes
  6479. function registerDeepBindings (data) {
  6480. if (isObject(data.style)) {
  6481. traverse(data.style);
  6482. }
  6483. if (isObject(data.class)) {
  6484. traverse(data.class);
  6485. }
  6486. }
  6487. /* */
  6488. function initRender (vm) {
  6489. vm._vnode = null; // the root of the child tree
  6490. vm._staticTrees = null; // v-once cached trees
  6491. var options = vm.$options;
  6492. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6493. var renderContext = parentVnode && parentVnode.context;
  6494. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6495. vm.$scopedSlots = emptyObject;
  6496. // bind the createElement fn to this instance
  6497. // so that we get proper render context inside it.
  6498. // args order: tag, data, children, normalizationType, alwaysNormalize
  6499. // internal version is used by render functions compiled from templates
  6500. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6501. // normalization is always applied for the public version, used in
  6502. // user-written render functions.
  6503. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6504. // $attrs & $listeners are exposed for easier HOC creation.
  6505. // they need to be reactive so that HOCs using them are always updated
  6506. var parentData = parentVnode && parentVnode.data;
  6507. /* istanbul ignore else */
  6508. if (true) {
  6509. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6510. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6511. }, true);
  6512. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6514. }, true);
  6515. } else {}
  6516. }
  6517. var currentRenderingInstance = null;
  6518. function renderMixin (Vue) {
  6519. // install runtime convenience helpers
  6520. installRenderHelpers(Vue.prototype);
  6521. Vue.prototype.$nextTick = function (fn) {
  6522. return nextTick(fn, this)
  6523. };
  6524. Vue.prototype._render = function () {
  6525. var vm = this;
  6526. var ref = vm.$options;
  6527. var render = ref.render;
  6528. var _parentVnode = ref._parentVnode;
  6529. if (_parentVnode) {
  6530. vm.$scopedSlots = normalizeScopedSlots(
  6531. _parentVnode.data.scopedSlots,
  6532. vm.$slots,
  6533. vm.$scopedSlots
  6534. );
  6535. }
  6536. // set parent vnode. this allows render functions to have access
  6537. // to the data on the placeholder node.
  6538. vm.$vnode = _parentVnode;
  6539. // render self
  6540. var vnode;
  6541. try {
  6542. // There's no need to maintain a stack because all render fns are called
  6543. // separately from one another. Nested component's render fns are called
  6544. // when parent component is patched.
  6545. currentRenderingInstance = vm;
  6546. vnode = render.call(vm._renderProxy, vm.$createElement);
  6547. } catch (e) {
  6548. handleError(e, vm, "render");
  6549. // return error render result,
  6550. // or previous vnode to prevent render error causing blank component
  6551. /* istanbul ignore else */
  6552. if ( true && vm.$options.renderError) {
  6553. try {
  6554. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6555. } catch (e) {
  6556. handleError(e, vm, "renderError");
  6557. vnode = vm._vnode;
  6558. }
  6559. } else {
  6560. vnode = vm._vnode;
  6561. }
  6562. } finally {
  6563. currentRenderingInstance = null;
  6564. }
  6565. // if the returned array contains only a single node, allow it
  6566. if (Array.isArray(vnode) && vnode.length === 1) {
  6567. vnode = vnode[0];
  6568. }
  6569. // return empty vnode in case the render function errored out
  6570. if (!(vnode instanceof VNode)) {
  6571. if ( true && Array.isArray(vnode)) {
  6572. warn(
  6573. 'Multiple root nodes returned from render function. Render function ' +
  6574. 'should return a single root node.',
  6575. vm
  6576. );
  6577. }
  6578. vnode = createEmptyVNode();
  6579. }
  6580. // set parent
  6581. vnode.parent = _parentVnode;
  6582. return vnode
  6583. };
  6584. }
  6585. /* */
  6586. function ensureCtor (comp, base) {
  6587. if (
  6588. comp.__esModule ||
  6589. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6590. ) {
  6591. comp = comp.default;
  6592. }
  6593. return isObject(comp)
  6594. ? base.extend(comp)
  6595. : comp
  6596. }
  6597. function createAsyncPlaceholder (
  6598. factory,
  6599. data,
  6600. context,
  6601. children,
  6602. tag
  6603. ) {
  6604. var node = createEmptyVNode();
  6605. node.asyncFactory = factory;
  6606. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6607. return node
  6608. }
  6609. function resolveAsyncComponent (
  6610. factory,
  6611. baseCtor
  6612. ) {
  6613. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6614. return factory.errorComp
  6615. }
  6616. if (isDef(factory.resolved)) {
  6617. return factory.resolved
  6618. }
  6619. var owner = currentRenderingInstance;
  6620. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6621. // already pending
  6622. factory.owners.push(owner);
  6623. }
  6624. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6625. return factory.loadingComp
  6626. }
  6627. if (owner && !isDef(factory.owners)) {
  6628. var owners = factory.owners = [owner];
  6629. var sync = true;
  6630. var timerLoading = null;
  6631. var timerTimeout = null
  6632. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6633. var forceRender = function (renderCompleted) {
  6634. for (var i = 0, l = owners.length; i < l; i++) {
  6635. (owners[i]).$forceUpdate();
  6636. }
  6637. if (renderCompleted) {
  6638. owners.length = 0;
  6639. if (timerLoading !== null) {
  6640. clearTimeout(timerLoading);
  6641. timerLoading = null;
  6642. }
  6643. if (timerTimeout !== null) {
  6644. clearTimeout(timerTimeout);
  6645. timerTimeout = null;
  6646. }
  6647. }
  6648. };
  6649. var resolve = once(function (res) {
  6650. // cache resolved
  6651. factory.resolved = ensureCtor(res, baseCtor);
  6652. // invoke callbacks only if this is not a synchronous resolve
  6653. // (async resolves are shimmed as synchronous during SSR)
  6654. if (!sync) {
  6655. forceRender(true);
  6656. } else {
  6657. owners.length = 0;
  6658. }
  6659. });
  6660. var reject = once(function (reason) {
  6661. true && warn(
  6662. "Failed to resolve async component: " + (String(factory)) +
  6663. (reason ? ("\nReason: " + reason) : '')
  6664. );
  6665. if (isDef(factory.errorComp)) {
  6666. factory.error = true;
  6667. forceRender(true);
  6668. }
  6669. });
  6670. var res = factory(resolve, reject);
  6671. if (isObject(res)) {
  6672. if (isPromise(res)) {
  6673. // () => Promise
  6674. if (isUndef(factory.resolved)) {
  6675. res.then(resolve, reject);
  6676. }
  6677. } else if (isPromise(res.component)) {
  6678. res.component.then(resolve, reject);
  6679. if (isDef(res.error)) {
  6680. factory.errorComp = ensureCtor(res.error, baseCtor);
  6681. }
  6682. if (isDef(res.loading)) {
  6683. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6684. if (res.delay === 0) {
  6685. factory.loading = true;
  6686. } else {
  6687. timerLoading = setTimeout(function () {
  6688. timerLoading = null;
  6689. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6690. factory.loading = true;
  6691. forceRender(false);
  6692. }
  6693. }, res.delay || 200);
  6694. }
  6695. }
  6696. if (isDef(res.timeout)) {
  6697. timerTimeout = setTimeout(function () {
  6698. timerTimeout = null;
  6699. if (isUndef(factory.resolved)) {
  6700. reject(
  6701. true
  6702. ? ("timeout (" + (res.timeout) + "ms)")
  6703. : undefined
  6704. );
  6705. }
  6706. }, res.timeout);
  6707. }
  6708. }
  6709. }
  6710. sync = false;
  6711. // return in case resolved synchronously
  6712. return factory.loading
  6713. ? factory.loadingComp
  6714. : factory.resolved
  6715. }
  6716. }
  6717. /* */
  6718. function isAsyncPlaceholder (node) {
  6719. return node.isComment && node.asyncFactory
  6720. }
  6721. /* */
  6722. function getFirstComponentChild (children) {
  6723. if (Array.isArray(children)) {
  6724. for (var i = 0; i < children.length; i++) {
  6725. var c = children[i];
  6726. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6727. return c
  6728. }
  6729. }
  6730. }
  6731. }
  6732. /* */
  6733. /* */
  6734. function initEvents (vm) {
  6735. vm._events = Object.create(null);
  6736. vm._hasHookEvent = false;
  6737. // init parent attached events
  6738. var listeners = vm.$options._parentListeners;
  6739. if (listeners) {
  6740. updateComponentListeners(vm, listeners);
  6741. }
  6742. }
  6743. var target;
  6744. function add (event, fn) {
  6745. target.$on(event, fn);
  6746. }
  6747. function remove$1 (event, fn) {
  6748. target.$off(event, fn);
  6749. }
  6750. function createOnceHandler (event, fn) {
  6751. var _target = target;
  6752. return function onceHandler () {
  6753. var res = fn.apply(null, arguments);
  6754. if (res !== null) {
  6755. _target.$off(event, onceHandler);
  6756. }
  6757. }
  6758. }
  6759. function updateComponentListeners (
  6760. vm,
  6761. listeners,
  6762. oldListeners
  6763. ) {
  6764. target = vm;
  6765. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6766. target = undefined;
  6767. }
  6768. function eventsMixin (Vue) {
  6769. var hookRE = /^hook:/;
  6770. Vue.prototype.$on = function (event, fn) {
  6771. var vm = this;
  6772. if (Array.isArray(event)) {
  6773. for (var i = 0, l = event.length; i < l; i++) {
  6774. vm.$on(event[i], fn);
  6775. }
  6776. } else {
  6777. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6778. // optimize hook:event cost by using a boolean flag marked at registration
  6779. // instead of a hash lookup
  6780. if (hookRE.test(event)) {
  6781. vm._hasHookEvent = true;
  6782. }
  6783. }
  6784. return vm
  6785. };
  6786. Vue.prototype.$once = function (event, fn) {
  6787. var vm = this;
  6788. function on () {
  6789. vm.$off(event, on);
  6790. fn.apply(vm, arguments);
  6791. }
  6792. on.fn = fn;
  6793. vm.$on(event, on);
  6794. return vm
  6795. };
  6796. Vue.prototype.$off = function (event, fn) {
  6797. var vm = this;
  6798. // all
  6799. if (!arguments.length) {
  6800. vm._events = Object.create(null);
  6801. return vm
  6802. }
  6803. // array of events
  6804. if (Array.isArray(event)) {
  6805. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6806. vm.$off(event[i$1], fn);
  6807. }
  6808. return vm
  6809. }
  6810. // specific event
  6811. var cbs = vm._events[event];
  6812. if (!cbs) {
  6813. return vm
  6814. }
  6815. if (!fn) {
  6816. vm._events[event] = null;
  6817. return vm
  6818. }
  6819. // specific handler
  6820. var cb;
  6821. var i = cbs.length;
  6822. while (i--) {
  6823. cb = cbs[i];
  6824. if (cb === fn || cb.fn === fn) {
  6825. cbs.splice(i, 1);
  6826. break
  6827. }
  6828. }
  6829. return vm
  6830. };
  6831. Vue.prototype.$emit = function (event) {
  6832. var vm = this;
  6833. if (true) {
  6834. var lowerCaseEvent = event.toLowerCase();
  6835. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6836. tip(
  6837. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6838. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6839. "Note that HTML attributes are case-insensitive and you cannot use " +
  6840. "v-on to listen to camelCase events when using in-DOM templates. " +
  6841. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6842. );
  6843. }
  6844. }
  6845. var cbs = vm._events[event];
  6846. if (cbs) {
  6847. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6848. var args = toArray(arguments, 1);
  6849. var info = "event handler for \"" + event + "\"";
  6850. for (var i = 0, l = cbs.length; i < l; i++) {
  6851. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6852. }
  6853. }
  6854. return vm
  6855. };
  6856. }
  6857. /* */
  6858. var activeInstance = null;
  6859. var isUpdatingChildComponent = false;
  6860. function setActiveInstance(vm) {
  6861. var prevActiveInstance = activeInstance;
  6862. activeInstance = vm;
  6863. return function () {
  6864. activeInstance = prevActiveInstance;
  6865. }
  6866. }
  6867. function initLifecycle (vm) {
  6868. var options = vm.$options;
  6869. // locate first non-abstract parent
  6870. var parent = options.parent;
  6871. if (parent && !options.abstract) {
  6872. while (parent.$options.abstract && parent.$parent) {
  6873. parent = parent.$parent;
  6874. }
  6875. parent.$children.push(vm);
  6876. }
  6877. vm.$parent = parent;
  6878. vm.$root = parent ? parent.$root : vm;
  6879. vm.$children = [];
  6880. vm.$refs = {};
  6881. vm._watcher = null;
  6882. vm._inactive = null;
  6883. vm._directInactive = false;
  6884. vm._isMounted = false;
  6885. vm._isDestroyed = false;
  6886. vm._isBeingDestroyed = false;
  6887. }
  6888. function lifecycleMixin (Vue) {
  6889. Vue.prototype._update = function (vnode, hydrating) {
  6890. var vm = this;
  6891. var prevEl = vm.$el;
  6892. var prevVnode = vm._vnode;
  6893. var restoreActiveInstance = setActiveInstance(vm);
  6894. vm._vnode = vnode;
  6895. // Vue.prototype.__patch__ is injected in entry points
  6896. // based on the rendering backend used.
  6897. if (!prevVnode) {
  6898. // initial render
  6899. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6900. } else {
  6901. // updates
  6902. vm.$el = vm.__patch__(prevVnode, vnode);
  6903. }
  6904. restoreActiveInstance();
  6905. // update __vue__ reference
  6906. if (prevEl) {
  6907. prevEl.__vue__ = null;
  6908. }
  6909. if (vm.$el) {
  6910. vm.$el.__vue__ = vm;
  6911. }
  6912. // if parent is an HOC, update its $el as well
  6913. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6914. vm.$parent.$el = vm.$el;
  6915. }
  6916. // updated hook is called by the scheduler to ensure that children are
  6917. // updated in a parent's updated hook.
  6918. };
  6919. Vue.prototype.$forceUpdate = function () {
  6920. var vm = this;
  6921. if (vm._watcher) {
  6922. vm._watcher.update();
  6923. }
  6924. };
  6925. Vue.prototype.$destroy = function () {
  6926. var vm = this;
  6927. if (vm._isBeingDestroyed) {
  6928. return
  6929. }
  6930. callHook(vm, 'beforeDestroy');
  6931. vm._isBeingDestroyed = true;
  6932. // remove self from parent
  6933. var parent = vm.$parent;
  6934. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6935. remove(parent.$children, vm);
  6936. }
  6937. // teardown watchers
  6938. if (vm._watcher) {
  6939. vm._watcher.teardown();
  6940. }
  6941. var i = vm._watchers.length;
  6942. while (i--) {
  6943. vm._watchers[i].teardown();
  6944. }
  6945. // remove reference from data ob
  6946. // frozen object may not have observer.
  6947. if (vm._data.__ob__) {
  6948. vm._data.__ob__.vmCount--;
  6949. }
  6950. // call the last hook...
  6951. vm._isDestroyed = true;
  6952. // invoke destroy hooks on current rendered tree
  6953. vm.__patch__(vm._vnode, null);
  6954. // fire destroyed hook
  6955. callHook(vm, 'destroyed');
  6956. // turn off all instance listeners.
  6957. vm.$off();
  6958. // remove __vue__ reference
  6959. if (vm.$el) {
  6960. vm.$el.__vue__ = null;
  6961. }
  6962. // release circular reference (#6759)
  6963. if (vm.$vnode) {
  6964. vm.$vnode.parent = null;
  6965. }
  6966. };
  6967. }
  6968. function updateChildComponent (
  6969. vm,
  6970. propsData,
  6971. listeners,
  6972. parentVnode,
  6973. renderChildren
  6974. ) {
  6975. if (true) {
  6976. isUpdatingChildComponent = true;
  6977. }
  6978. // determine whether component has slot children
  6979. // we need to do this before overwriting $options._renderChildren.
  6980. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6981. // dynamic slot names). Static scoped slots compiled from template has the
  6982. // "$stable" marker.
  6983. var newScopedSlots = parentVnode.data.scopedSlots;
  6984. var oldScopedSlots = vm.$scopedSlots;
  6985. var hasDynamicScopedSlot = !!(
  6986. (newScopedSlots && !newScopedSlots.$stable) ||
  6987. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6988. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6989. );
  6990. // Any static slot children from the parent may have changed during parent's
  6991. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6992. // update is necessary to ensure correctness.
  6993. var needsForceUpdate = !!(
  6994. renderChildren || // has new static slots
  6995. vm.$options._renderChildren || // has old static slots
  6996. hasDynamicScopedSlot
  6997. );
  6998. vm.$options._parentVnode = parentVnode;
  6999. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7000. if (vm._vnode) { // update child tree's parent
  7001. vm._vnode.parent = parentVnode;
  7002. }
  7003. vm.$options._renderChildren = renderChildren;
  7004. // update $attrs and $listeners hash
  7005. // these are also reactive so they may trigger child update if the child
  7006. // used them during render
  7007. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7008. vm.$listeners = listeners || emptyObject;
  7009. // update props
  7010. if (propsData && vm.$options.props) {
  7011. toggleObserving(false);
  7012. var props = vm._props;
  7013. var propKeys = vm.$options._propKeys || [];
  7014. for (var i = 0; i < propKeys.length; i++) {
  7015. var key = propKeys[i];
  7016. var propOptions = vm.$options.props; // wtf flow?
  7017. props[key] = validateProp(key, propOptions, propsData, vm);
  7018. }
  7019. toggleObserving(true);
  7020. // keep a copy of raw propsData
  7021. vm.$options.propsData = propsData;
  7022. }
  7023. // fixed by xxxxxx update properties(mp runtime)
  7024. vm._$updateProperties && vm._$updateProperties(vm);
  7025. // update listeners
  7026. listeners = listeners || emptyObject;
  7027. var oldListeners = vm.$options._parentListeners;
  7028. vm.$options._parentListeners = listeners;
  7029. updateComponentListeners(vm, listeners, oldListeners);
  7030. // resolve slots + force update if has children
  7031. if (needsForceUpdate) {
  7032. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7033. vm.$forceUpdate();
  7034. }
  7035. if (true) {
  7036. isUpdatingChildComponent = false;
  7037. }
  7038. }
  7039. function isInInactiveTree (vm) {
  7040. while (vm && (vm = vm.$parent)) {
  7041. if (vm._inactive) { return true }
  7042. }
  7043. return false
  7044. }
  7045. function activateChildComponent (vm, direct) {
  7046. if (direct) {
  7047. vm._directInactive = false;
  7048. if (isInInactiveTree(vm)) {
  7049. return
  7050. }
  7051. } else if (vm._directInactive) {
  7052. return
  7053. }
  7054. if (vm._inactive || vm._inactive === null) {
  7055. vm._inactive = false;
  7056. for (var i = 0; i < vm.$children.length; i++) {
  7057. activateChildComponent(vm.$children[i]);
  7058. }
  7059. callHook(vm, 'activated');
  7060. }
  7061. }
  7062. function deactivateChildComponent (vm, direct) {
  7063. if (direct) {
  7064. vm._directInactive = true;
  7065. if (isInInactiveTree(vm)) {
  7066. return
  7067. }
  7068. }
  7069. if (!vm._inactive) {
  7070. vm._inactive = true;
  7071. for (var i = 0; i < vm.$children.length; i++) {
  7072. deactivateChildComponent(vm.$children[i]);
  7073. }
  7074. callHook(vm, 'deactivated');
  7075. }
  7076. }
  7077. function callHook (vm, hook) {
  7078. // #7573 disable dep collection when invoking lifecycle hooks
  7079. pushTarget();
  7080. var handlers = vm.$options[hook];
  7081. var info = hook + " hook";
  7082. if (handlers) {
  7083. for (var i = 0, j = handlers.length; i < j; i++) {
  7084. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7085. }
  7086. }
  7087. if (vm._hasHookEvent) {
  7088. vm.$emit('hook:' + hook);
  7089. }
  7090. popTarget();
  7091. }
  7092. /* */
  7093. var MAX_UPDATE_COUNT = 100;
  7094. var queue = [];
  7095. var activatedChildren = [];
  7096. var has = {};
  7097. var circular = {};
  7098. var waiting = false;
  7099. var flushing = false;
  7100. var index = 0;
  7101. /**
  7102. * Reset the scheduler's state.
  7103. */
  7104. function resetSchedulerState () {
  7105. index = queue.length = activatedChildren.length = 0;
  7106. has = {};
  7107. if (true) {
  7108. circular = {};
  7109. }
  7110. waiting = flushing = false;
  7111. }
  7112. // Async edge case #6566 requires saving the timestamp when event listeners are
  7113. // attached. However, calling performance.now() has a perf overhead especially
  7114. // if the page has thousands of event listeners. Instead, we take a timestamp
  7115. // every time the scheduler flushes and use that for all event listeners
  7116. // attached during that flush.
  7117. var currentFlushTimestamp = 0;
  7118. // Async edge case fix requires storing an event listener's attach timestamp.
  7119. var getNow = Date.now;
  7120. // Determine what event timestamp the browser is using. Annoyingly, the
  7121. // timestamp can either be hi-res (relative to page load) or low-res
  7122. // (relative to UNIX epoch), so in order to compare time we have to use the
  7123. // same timestamp type when saving the flush timestamp.
  7124. // All IE versions use low-res event timestamps, and have problematic clock
  7125. // implementations (#9632)
  7126. if (inBrowser && !isIE) {
  7127. var performance = window.performance;
  7128. if (
  7129. performance &&
  7130. typeof performance.now === 'function' &&
  7131. getNow() > document.createEvent('Event').timeStamp
  7132. ) {
  7133. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7134. // smaller than it, it means the event is using a hi-res timestamp,
  7135. // and we need to use the hi-res version for event listener timestamps as
  7136. // well.
  7137. getNow = function () { return performance.now(); };
  7138. }
  7139. }
  7140. /**
  7141. * Flush both queues and run the watchers.
  7142. */
  7143. function flushSchedulerQueue () {
  7144. currentFlushTimestamp = getNow();
  7145. flushing = true;
  7146. var watcher, id;
  7147. // Sort queue before flush.
  7148. // This ensures that:
  7149. // 1. Components are updated from parent to child. (because parent is always
  7150. // created before the child)
  7151. // 2. A component's user watchers are run before its render watcher (because
  7152. // user watchers are created before the render watcher)
  7153. // 3. If a component is destroyed during a parent component's watcher run,
  7154. // its watchers can be skipped.
  7155. queue.sort(function (a, b) { return a.id - b.id; });
  7156. // do not cache length because more watchers might be pushed
  7157. // as we run existing watchers
  7158. for (index = 0; index < queue.length; index++) {
  7159. watcher = queue[index];
  7160. if (watcher.before) {
  7161. watcher.before();
  7162. }
  7163. id = watcher.id;
  7164. has[id] = null;
  7165. watcher.run();
  7166. // in dev build, check and stop circular updates.
  7167. if ( true && has[id] != null) {
  7168. circular[id] = (circular[id] || 0) + 1;
  7169. if (circular[id] > MAX_UPDATE_COUNT) {
  7170. warn(
  7171. 'You may have an infinite update loop ' + (
  7172. watcher.user
  7173. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7174. : "in a component render function."
  7175. ),
  7176. watcher.vm
  7177. );
  7178. break
  7179. }
  7180. }
  7181. }
  7182. // keep copies of post queues before resetting state
  7183. var activatedQueue = activatedChildren.slice();
  7184. var updatedQueue = queue.slice();
  7185. resetSchedulerState();
  7186. // call component updated and activated hooks
  7187. callActivatedHooks(activatedQueue);
  7188. callUpdatedHooks(updatedQueue);
  7189. // devtool hook
  7190. /* istanbul ignore if */
  7191. if (devtools && config.devtools) {
  7192. devtools.emit('flush');
  7193. }
  7194. }
  7195. function callUpdatedHooks (queue) {
  7196. var i = queue.length;
  7197. while (i--) {
  7198. var watcher = queue[i];
  7199. var vm = watcher.vm;
  7200. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7201. callHook(vm, 'updated');
  7202. }
  7203. }
  7204. }
  7205. /**
  7206. * Queue a kept-alive component that was activated during patch.
  7207. * The queue will be processed after the entire tree has been patched.
  7208. */
  7209. function queueActivatedComponent (vm) {
  7210. // setting _inactive to false here so that a render function can
  7211. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7212. vm._inactive = false;
  7213. activatedChildren.push(vm);
  7214. }
  7215. function callActivatedHooks (queue) {
  7216. for (var i = 0; i < queue.length; i++) {
  7217. queue[i]._inactive = true;
  7218. activateChildComponent(queue[i], true /* true */);
  7219. }
  7220. }
  7221. /**
  7222. * Push a watcher into the watcher queue.
  7223. * Jobs with duplicate IDs will be skipped unless it's
  7224. * pushed when the queue is being flushed.
  7225. */
  7226. function queueWatcher (watcher) {
  7227. var id = watcher.id;
  7228. if (has[id] == null) {
  7229. has[id] = true;
  7230. if (!flushing) {
  7231. queue.push(watcher);
  7232. } else {
  7233. // if already flushing, splice the watcher based on its id
  7234. // if already past its id, it will be run next immediately.
  7235. var i = queue.length - 1;
  7236. while (i > index && queue[i].id > watcher.id) {
  7237. i--;
  7238. }
  7239. queue.splice(i + 1, 0, watcher);
  7240. }
  7241. // queue the flush
  7242. if (!waiting) {
  7243. waiting = true;
  7244. if ( true && !config.async) {
  7245. flushSchedulerQueue();
  7246. return
  7247. }
  7248. nextTick(flushSchedulerQueue);
  7249. }
  7250. }
  7251. }
  7252. /* */
  7253. var uid$2 = 0;
  7254. /**
  7255. * A watcher parses an expression, collects dependencies,
  7256. * and fires callback when the expression value changes.
  7257. * This is used for both the $watch() api and directives.
  7258. */
  7259. var Watcher = function Watcher (
  7260. vm,
  7261. expOrFn,
  7262. cb,
  7263. options,
  7264. isRenderWatcher
  7265. ) {
  7266. this.vm = vm;
  7267. if (isRenderWatcher) {
  7268. vm._watcher = this;
  7269. }
  7270. vm._watchers.push(this);
  7271. // options
  7272. if (options) {
  7273. this.deep = !!options.deep;
  7274. this.user = !!options.user;
  7275. this.lazy = !!options.lazy;
  7276. this.sync = !!options.sync;
  7277. this.before = options.before;
  7278. } else {
  7279. this.deep = this.user = this.lazy = this.sync = false;
  7280. }
  7281. this.cb = cb;
  7282. this.id = ++uid$2; // uid for batching
  7283. this.active = true;
  7284. this.dirty = this.lazy; // for lazy watchers
  7285. this.deps = [];
  7286. this.newDeps = [];
  7287. this.depIds = new _Set();
  7288. this.newDepIds = new _Set();
  7289. this.expression = true
  7290. ? expOrFn.toString()
  7291. : undefined;
  7292. // parse expression for getter
  7293. if (typeof expOrFn === 'function') {
  7294. this.getter = expOrFn;
  7295. } else {
  7296. this.getter = parsePath(expOrFn);
  7297. if (!this.getter) {
  7298. this.getter = noop;
  7299. true && warn(
  7300. "Failed watching path: \"" + expOrFn + "\" " +
  7301. 'Watcher only accepts simple dot-delimited paths. ' +
  7302. 'For full control, use a function instead.',
  7303. vm
  7304. );
  7305. }
  7306. }
  7307. this.value = this.lazy
  7308. ? undefined
  7309. : this.get();
  7310. };
  7311. /**
  7312. * Evaluate the getter, and re-collect dependencies.
  7313. */
  7314. Watcher.prototype.get = function get () {
  7315. pushTarget(this);
  7316. var value;
  7317. var vm = this.vm;
  7318. try {
  7319. value = this.getter.call(vm, vm);
  7320. } catch (e) {
  7321. if (this.user) {
  7322. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7323. } else {
  7324. throw e
  7325. }
  7326. } finally {
  7327. // "touch" every property so they are all tracked as
  7328. // dependencies for deep watching
  7329. if (this.deep) {
  7330. traverse(value);
  7331. }
  7332. popTarget();
  7333. this.cleanupDeps();
  7334. }
  7335. return value
  7336. };
  7337. /**
  7338. * Add a dependency to this directive.
  7339. */
  7340. Watcher.prototype.addDep = function addDep (dep) {
  7341. var id = dep.id;
  7342. if (!this.newDepIds.has(id)) {
  7343. this.newDepIds.add(id);
  7344. this.newDeps.push(dep);
  7345. if (!this.depIds.has(id)) {
  7346. dep.addSub(this);
  7347. }
  7348. }
  7349. };
  7350. /**
  7351. * Clean up for dependency collection.
  7352. */
  7353. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7354. var i = this.deps.length;
  7355. while (i--) {
  7356. var dep = this.deps[i];
  7357. if (!this.newDepIds.has(dep.id)) {
  7358. dep.removeSub(this);
  7359. }
  7360. }
  7361. var tmp = this.depIds;
  7362. this.depIds = this.newDepIds;
  7363. this.newDepIds = tmp;
  7364. this.newDepIds.clear();
  7365. tmp = this.deps;
  7366. this.deps = this.newDeps;
  7367. this.newDeps = tmp;
  7368. this.newDeps.length = 0;
  7369. };
  7370. /**
  7371. * Subscriber interface.
  7372. * Will be called when a dependency changes.
  7373. */
  7374. Watcher.prototype.update = function update () {
  7375. /* istanbul ignore else */
  7376. if (this.lazy) {
  7377. this.dirty = true;
  7378. } else if (this.sync) {
  7379. this.run();
  7380. } else {
  7381. queueWatcher(this);
  7382. }
  7383. };
  7384. /**
  7385. * Scheduler job interface.
  7386. * Will be called by the scheduler.
  7387. */
  7388. Watcher.prototype.run = function run () {
  7389. if (this.active) {
  7390. var value = this.get();
  7391. if (
  7392. value !== this.value ||
  7393. // Deep watchers and watchers on Object/Arrays should fire even
  7394. // when the value is the same, because the value may
  7395. // have mutated.
  7396. isObject(value) ||
  7397. this.deep
  7398. ) {
  7399. // set new value
  7400. var oldValue = this.value;
  7401. this.value = value;
  7402. if (this.user) {
  7403. try {
  7404. this.cb.call(this.vm, value, oldValue);
  7405. } catch (e) {
  7406. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7407. }
  7408. } else {
  7409. this.cb.call(this.vm, value, oldValue);
  7410. }
  7411. }
  7412. }
  7413. };
  7414. /**
  7415. * Evaluate the value of the watcher.
  7416. * This only gets called for lazy watchers.
  7417. */
  7418. Watcher.prototype.evaluate = function evaluate () {
  7419. this.value = this.get();
  7420. this.dirty = false;
  7421. };
  7422. /**
  7423. * Depend on all deps collected by this watcher.
  7424. */
  7425. Watcher.prototype.depend = function depend () {
  7426. var i = this.deps.length;
  7427. while (i--) {
  7428. this.deps[i].depend();
  7429. }
  7430. };
  7431. /**
  7432. * Remove self from all dependencies' subscriber list.
  7433. */
  7434. Watcher.prototype.teardown = function teardown () {
  7435. if (this.active) {
  7436. // remove self from vm's watcher list
  7437. // this is a somewhat expensive operation so we skip it
  7438. // if the vm is being destroyed.
  7439. if (!this.vm._isBeingDestroyed) {
  7440. remove(this.vm._watchers, this);
  7441. }
  7442. var i = this.deps.length;
  7443. while (i--) {
  7444. this.deps[i].removeSub(this);
  7445. }
  7446. this.active = false;
  7447. }
  7448. };
  7449. /* */
  7450. var sharedPropertyDefinition = {
  7451. enumerable: true,
  7452. configurable: true,
  7453. get: noop,
  7454. set: noop
  7455. };
  7456. function proxy (target, sourceKey, key) {
  7457. sharedPropertyDefinition.get = function proxyGetter () {
  7458. return this[sourceKey][key]
  7459. };
  7460. sharedPropertyDefinition.set = function proxySetter (val) {
  7461. this[sourceKey][key] = val;
  7462. };
  7463. Object.defineProperty(target, key, sharedPropertyDefinition);
  7464. }
  7465. function initState (vm) {
  7466. vm._watchers = [];
  7467. var opts = vm.$options;
  7468. if (opts.props) { initProps(vm, opts.props); }
  7469. if (opts.methods) { initMethods(vm, opts.methods); }
  7470. if (opts.data) {
  7471. initData(vm);
  7472. } else {
  7473. observe(vm._data = {}, true /* asRootData */);
  7474. }
  7475. if (opts.computed) { initComputed(vm, opts.computed); }
  7476. if (opts.watch && opts.watch !== nativeWatch) {
  7477. initWatch(vm, opts.watch);
  7478. }
  7479. }
  7480. function initProps (vm, propsOptions) {
  7481. var propsData = vm.$options.propsData || {};
  7482. var props = vm._props = {};
  7483. // cache prop keys so that future props updates can iterate using Array
  7484. // instead of dynamic object key enumeration.
  7485. var keys = vm.$options._propKeys = [];
  7486. var isRoot = !vm.$parent;
  7487. // root instance props should be converted
  7488. if (!isRoot) {
  7489. toggleObserving(false);
  7490. }
  7491. var loop = function ( key ) {
  7492. keys.push(key);
  7493. var value = validateProp(key, propsOptions, propsData, vm);
  7494. /* istanbul ignore else */
  7495. if (true) {
  7496. var hyphenatedKey = hyphenate(key);
  7497. if (isReservedAttribute(hyphenatedKey) ||
  7498. config.isReservedAttr(hyphenatedKey)) {
  7499. warn(
  7500. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7501. vm
  7502. );
  7503. }
  7504. defineReactive$$1(props, key, value, function () {
  7505. if (!isRoot && !isUpdatingChildComponent) {
  7506. {
  7507. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7508. return
  7509. }
  7510. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7511. if(
  7512. key === 'value' &&
  7513. Array.isArray(vm.$options.behaviors) &&
  7514. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7515. ){
  7516. return
  7517. }
  7518. if(vm._getFormData){
  7519. return
  7520. }
  7521. var $parent = vm.$parent;
  7522. while($parent){
  7523. if($parent.__next_tick_pending){
  7524. return
  7525. }
  7526. $parent = $parent.$parent;
  7527. }
  7528. }
  7529. warn(
  7530. "Avoid mutating a prop directly since the value will be " +
  7531. "overwritten whenever the parent component re-renders. " +
  7532. "Instead, use a data or computed property based on the prop's " +
  7533. "value. Prop being mutated: \"" + key + "\"",
  7534. vm
  7535. );
  7536. }
  7537. });
  7538. } else {}
  7539. // static props are already proxied on the component's prototype
  7540. // during Vue.extend(). We only need to proxy props defined at
  7541. // instantiation here.
  7542. if (!(key in vm)) {
  7543. proxy(vm, "_props", key);
  7544. }
  7545. };
  7546. for (var key in propsOptions) loop( key );
  7547. toggleObserving(true);
  7548. }
  7549. function initData (vm) {
  7550. var data = vm.$options.data;
  7551. data = vm._data = typeof data === 'function'
  7552. ? getData(data, vm)
  7553. : data || {};
  7554. if (!isPlainObject(data)) {
  7555. data = {};
  7556. true && warn(
  7557. 'data functions should return an object:\n' +
  7558. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7559. vm
  7560. );
  7561. }
  7562. // proxy data on instance
  7563. var keys = Object.keys(data);
  7564. var props = vm.$options.props;
  7565. var methods = vm.$options.methods;
  7566. var i = keys.length;
  7567. while (i--) {
  7568. var key = keys[i];
  7569. if (true) {
  7570. if (methods && hasOwn(methods, key)) {
  7571. warn(
  7572. ("Method \"" + key + "\" has already been defined as a data property."),
  7573. vm
  7574. );
  7575. }
  7576. }
  7577. if (props && hasOwn(props, key)) {
  7578. true && warn(
  7579. "The data property \"" + key + "\" is already declared as a prop. " +
  7580. "Use prop default value instead.",
  7581. vm
  7582. );
  7583. } else if (!isReserved(key)) {
  7584. proxy(vm, "_data", key);
  7585. }
  7586. }
  7587. // observe data
  7588. observe(data, true /* asRootData */);
  7589. }
  7590. function getData (data, vm) {
  7591. // #7573 disable dep collection when invoking data getters
  7592. pushTarget();
  7593. try {
  7594. return data.call(vm, vm)
  7595. } catch (e) {
  7596. handleError(e, vm, "data()");
  7597. return {}
  7598. } finally {
  7599. popTarget();
  7600. }
  7601. }
  7602. var computedWatcherOptions = { lazy: true };
  7603. function initComputed (vm, computed) {
  7604. // $flow-disable-line
  7605. var watchers = vm._computedWatchers = Object.create(null);
  7606. // computed properties are just getters during SSR
  7607. var isSSR = isServerRendering();
  7608. for (var key in computed) {
  7609. var userDef = computed[key];
  7610. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7611. if ( true && getter == null) {
  7612. warn(
  7613. ("Getter is missing for computed property \"" + key + "\"."),
  7614. vm
  7615. );
  7616. }
  7617. if (!isSSR) {
  7618. // create internal watcher for the computed property.
  7619. watchers[key] = new Watcher(
  7620. vm,
  7621. getter || noop,
  7622. noop,
  7623. computedWatcherOptions
  7624. );
  7625. }
  7626. // component-defined computed properties are already defined on the
  7627. // component prototype. We only need to define computed properties defined
  7628. // at instantiation here.
  7629. if (!(key in vm)) {
  7630. defineComputed(vm, key, userDef);
  7631. } else if (true) {
  7632. if (key in vm.$data) {
  7633. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7634. } else if (vm.$options.props && key in vm.$options.props) {
  7635. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7636. }
  7637. }
  7638. }
  7639. }
  7640. function defineComputed (
  7641. target,
  7642. key,
  7643. userDef
  7644. ) {
  7645. var shouldCache = !isServerRendering();
  7646. if (typeof userDef === 'function') {
  7647. sharedPropertyDefinition.get = shouldCache
  7648. ? createComputedGetter(key)
  7649. : createGetterInvoker(userDef);
  7650. sharedPropertyDefinition.set = noop;
  7651. } else {
  7652. sharedPropertyDefinition.get = userDef.get
  7653. ? shouldCache && userDef.cache !== false
  7654. ? createComputedGetter(key)
  7655. : createGetterInvoker(userDef.get)
  7656. : noop;
  7657. sharedPropertyDefinition.set = userDef.set || noop;
  7658. }
  7659. if ( true &&
  7660. sharedPropertyDefinition.set === noop) {
  7661. sharedPropertyDefinition.set = function () {
  7662. warn(
  7663. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7664. this
  7665. );
  7666. };
  7667. }
  7668. Object.defineProperty(target, key, sharedPropertyDefinition);
  7669. }
  7670. function createComputedGetter (key) {
  7671. return function computedGetter () {
  7672. var watcher = this._computedWatchers && this._computedWatchers[key];
  7673. if (watcher) {
  7674. if (watcher.dirty) {
  7675. watcher.evaluate();
  7676. }
  7677. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7678. watcher.depend();
  7679. }
  7680. return watcher.value
  7681. }
  7682. }
  7683. }
  7684. function createGetterInvoker(fn) {
  7685. return function computedGetter () {
  7686. return fn.call(this, this)
  7687. }
  7688. }
  7689. function initMethods (vm, methods) {
  7690. var props = vm.$options.props;
  7691. for (var key in methods) {
  7692. if (true) {
  7693. if (typeof methods[key] !== 'function') {
  7694. warn(
  7695. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7696. "Did you reference the function correctly?",
  7697. vm
  7698. );
  7699. }
  7700. if (props && hasOwn(props, key)) {
  7701. warn(
  7702. ("Method \"" + key + "\" has already been defined as a prop."),
  7703. vm
  7704. );
  7705. }
  7706. if ((key in vm) && isReserved(key)) {
  7707. warn(
  7708. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7709. "Avoid defining component methods that start with _ or $."
  7710. );
  7711. }
  7712. }
  7713. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7714. }
  7715. }
  7716. function initWatch (vm, watch) {
  7717. for (var key in watch) {
  7718. var handler = watch[key];
  7719. if (Array.isArray(handler)) {
  7720. for (var i = 0; i < handler.length; i++) {
  7721. createWatcher(vm, key, handler[i]);
  7722. }
  7723. } else {
  7724. createWatcher(vm, key, handler);
  7725. }
  7726. }
  7727. }
  7728. function createWatcher (
  7729. vm,
  7730. expOrFn,
  7731. handler,
  7732. options
  7733. ) {
  7734. if (isPlainObject(handler)) {
  7735. options = handler;
  7736. handler = handler.handler;
  7737. }
  7738. if (typeof handler === 'string') {
  7739. handler = vm[handler];
  7740. }
  7741. return vm.$watch(expOrFn, handler, options)
  7742. }
  7743. function stateMixin (Vue) {
  7744. // flow somehow has problems with directly declared definition object
  7745. // when using Object.defineProperty, so we have to procedurally build up
  7746. // the object here.
  7747. var dataDef = {};
  7748. dataDef.get = function () { return this._data };
  7749. var propsDef = {};
  7750. propsDef.get = function () { return this._props };
  7751. if (true) {
  7752. dataDef.set = function () {
  7753. warn(
  7754. 'Avoid replacing instance root $data. ' +
  7755. 'Use nested data properties instead.',
  7756. this
  7757. );
  7758. };
  7759. propsDef.set = function () {
  7760. warn("$props is readonly.", this);
  7761. };
  7762. }
  7763. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7764. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7765. Vue.prototype.$set = set;
  7766. Vue.prototype.$delete = del;
  7767. Vue.prototype.$watch = function (
  7768. expOrFn,
  7769. cb,
  7770. options
  7771. ) {
  7772. var vm = this;
  7773. if (isPlainObject(cb)) {
  7774. return createWatcher(vm, expOrFn, cb, options)
  7775. }
  7776. options = options || {};
  7777. options.user = true;
  7778. var watcher = new Watcher(vm, expOrFn, cb, options);
  7779. if (options.immediate) {
  7780. try {
  7781. cb.call(vm, watcher.value);
  7782. } catch (error) {
  7783. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7784. }
  7785. }
  7786. return function unwatchFn () {
  7787. watcher.teardown();
  7788. }
  7789. };
  7790. }
  7791. /* */
  7792. var uid$3 = 0;
  7793. function initMixin (Vue) {
  7794. Vue.prototype._init = function (options) {
  7795. var vm = this;
  7796. // a uid
  7797. vm._uid = uid$3++;
  7798. var startTag, endTag;
  7799. /* istanbul ignore if */
  7800. if ( true && config.performance && mark) {
  7801. startTag = "vue-perf-start:" + (vm._uid);
  7802. endTag = "vue-perf-end:" + (vm._uid);
  7803. mark(startTag);
  7804. }
  7805. // a flag to avoid this being observed
  7806. vm._isVue = true;
  7807. // merge options
  7808. if (options && options._isComponent) {
  7809. // optimize internal component instantiation
  7810. // since dynamic options merging is pretty slow, and none of the
  7811. // internal component options needs special treatment.
  7812. initInternalComponent(vm, options);
  7813. } else {
  7814. vm.$options = mergeOptions(
  7815. resolveConstructorOptions(vm.constructor),
  7816. options || {},
  7817. vm
  7818. );
  7819. }
  7820. /* istanbul ignore else */
  7821. if (true) {
  7822. initProxy(vm);
  7823. } else {}
  7824. // expose real self
  7825. vm._self = vm;
  7826. initLifecycle(vm);
  7827. initEvents(vm);
  7828. initRender(vm);
  7829. callHook(vm, 'beforeCreate');
  7830. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7831. initState(vm);
  7832. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7833. !vm._$fallback && callHook(vm, 'created');
  7834. /* istanbul ignore if */
  7835. if ( true && config.performance && mark) {
  7836. vm._name = formatComponentName(vm, false);
  7837. mark(endTag);
  7838. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7839. }
  7840. if (vm.$options.el) {
  7841. vm.$mount(vm.$options.el);
  7842. }
  7843. };
  7844. }
  7845. function initInternalComponent (vm, options) {
  7846. var opts = vm.$options = Object.create(vm.constructor.options);
  7847. // doing this because it's faster than dynamic enumeration.
  7848. var parentVnode = options._parentVnode;
  7849. opts.parent = options.parent;
  7850. opts._parentVnode = parentVnode;
  7851. var vnodeComponentOptions = parentVnode.componentOptions;
  7852. opts.propsData = vnodeComponentOptions.propsData;
  7853. opts._parentListeners = vnodeComponentOptions.listeners;
  7854. opts._renderChildren = vnodeComponentOptions.children;
  7855. opts._componentTag = vnodeComponentOptions.tag;
  7856. if (options.render) {
  7857. opts.render = options.render;
  7858. opts.staticRenderFns = options.staticRenderFns;
  7859. }
  7860. }
  7861. function resolveConstructorOptions (Ctor) {
  7862. var options = Ctor.options;
  7863. if (Ctor.super) {
  7864. var superOptions = resolveConstructorOptions(Ctor.super);
  7865. var cachedSuperOptions = Ctor.superOptions;
  7866. if (superOptions !== cachedSuperOptions) {
  7867. // super option changed,
  7868. // need to resolve new options.
  7869. Ctor.superOptions = superOptions;
  7870. // check if there are any late-modified/attached options (#4976)
  7871. var modifiedOptions = resolveModifiedOptions(Ctor);
  7872. // update base extend options
  7873. if (modifiedOptions) {
  7874. extend(Ctor.extendOptions, modifiedOptions);
  7875. }
  7876. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7877. if (options.name) {
  7878. options.components[options.name] = Ctor;
  7879. }
  7880. }
  7881. }
  7882. return options
  7883. }
  7884. function resolveModifiedOptions (Ctor) {
  7885. var modified;
  7886. var latest = Ctor.options;
  7887. var sealed = Ctor.sealedOptions;
  7888. for (var key in latest) {
  7889. if (latest[key] !== sealed[key]) {
  7890. if (!modified) { modified = {}; }
  7891. modified[key] = latest[key];
  7892. }
  7893. }
  7894. return modified
  7895. }
  7896. function Vue (options) {
  7897. if ( true &&
  7898. !(this instanceof Vue)
  7899. ) {
  7900. warn('Vue is a constructor and should be called with the `new` keyword');
  7901. }
  7902. this._init(options);
  7903. }
  7904. initMixin(Vue);
  7905. stateMixin(Vue);
  7906. eventsMixin(Vue);
  7907. lifecycleMixin(Vue);
  7908. renderMixin(Vue);
  7909. /* */
  7910. function initUse (Vue) {
  7911. Vue.use = function (plugin) {
  7912. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7913. if (installedPlugins.indexOf(plugin) > -1) {
  7914. return this
  7915. }
  7916. // additional parameters
  7917. var args = toArray(arguments, 1);
  7918. args.unshift(this);
  7919. if (typeof plugin.install === 'function') {
  7920. plugin.install.apply(plugin, args);
  7921. } else if (typeof plugin === 'function') {
  7922. plugin.apply(null, args);
  7923. }
  7924. installedPlugins.push(plugin);
  7925. return this
  7926. };
  7927. }
  7928. /* */
  7929. function initMixin$1 (Vue) {
  7930. Vue.mixin = function (mixin) {
  7931. this.options = mergeOptions(this.options, mixin);
  7932. return this
  7933. };
  7934. }
  7935. /* */
  7936. function initExtend (Vue) {
  7937. /**
  7938. * Each instance constructor, including Vue, has a unique
  7939. * cid. This enables us to create wrapped "child
  7940. * constructors" for prototypal inheritance and cache them.
  7941. */
  7942. Vue.cid = 0;
  7943. var cid = 1;
  7944. /**
  7945. * Class inheritance
  7946. */
  7947. Vue.extend = function (extendOptions) {
  7948. extendOptions = extendOptions || {};
  7949. var Super = this;
  7950. var SuperId = Super.cid;
  7951. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7952. if (cachedCtors[SuperId]) {
  7953. return cachedCtors[SuperId]
  7954. }
  7955. var name = extendOptions.name || Super.options.name;
  7956. if ( true && name) {
  7957. validateComponentName(name);
  7958. }
  7959. var Sub = function VueComponent (options) {
  7960. this._init(options);
  7961. };
  7962. Sub.prototype = Object.create(Super.prototype);
  7963. Sub.prototype.constructor = Sub;
  7964. Sub.cid = cid++;
  7965. Sub.options = mergeOptions(
  7966. Super.options,
  7967. extendOptions
  7968. );
  7969. Sub['super'] = Super;
  7970. // For props and computed properties, we define the proxy getters on
  7971. // the Vue instances at extension time, on the extended prototype. This
  7972. // avoids Object.defineProperty calls for each instance created.
  7973. if (Sub.options.props) {
  7974. initProps$1(Sub);
  7975. }
  7976. if (Sub.options.computed) {
  7977. initComputed$1(Sub);
  7978. }
  7979. // allow further extension/mixin/plugin usage
  7980. Sub.extend = Super.extend;
  7981. Sub.mixin = Super.mixin;
  7982. Sub.use = Super.use;
  7983. // create asset registers, so extended classes
  7984. // can have their private assets too.
  7985. ASSET_TYPES.forEach(function (type) {
  7986. Sub[type] = Super[type];
  7987. });
  7988. // enable recursive self-lookup
  7989. if (name) {
  7990. Sub.options.components[name] = Sub;
  7991. }
  7992. // keep a reference to the super options at extension time.
  7993. // later at instantiation we can check if Super's options have
  7994. // been updated.
  7995. Sub.superOptions = Super.options;
  7996. Sub.extendOptions = extendOptions;
  7997. Sub.sealedOptions = extend({}, Sub.options);
  7998. // cache constructor
  7999. cachedCtors[SuperId] = Sub;
  8000. return Sub
  8001. };
  8002. }
  8003. function initProps$1 (Comp) {
  8004. var props = Comp.options.props;
  8005. for (var key in props) {
  8006. proxy(Comp.prototype, "_props", key);
  8007. }
  8008. }
  8009. function initComputed$1 (Comp) {
  8010. var computed = Comp.options.computed;
  8011. for (var key in computed) {
  8012. defineComputed(Comp.prototype, key, computed[key]);
  8013. }
  8014. }
  8015. /* */
  8016. function initAssetRegisters (Vue) {
  8017. /**
  8018. * Create asset registration methods.
  8019. */
  8020. ASSET_TYPES.forEach(function (type) {
  8021. Vue[type] = function (
  8022. id,
  8023. definition
  8024. ) {
  8025. if (!definition) {
  8026. return this.options[type + 's'][id]
  8027. } else {
  8028. /* istanbul ignore if */
  8029. if ( true && type === 'component') {
  8030. validateComponentName(id);
  8031. }
  8032. if (type === 'component' && isPlainObject(definition)) {
  8033. definition.name = definition.name || id;
  8034. definition = this.options._base.extend(definition);
  8035. }
  8036. if (type === 'directive' && typeof definition === 'function') {
  8037. definition = { bind: definition, update: definition };
  8038. }
  8039. this.options[type + 's'][id] = definition;
  8040. return definition
  8041. }
  8042. };
  8043. });
  8044. }
  8045. /* */
  8046. function getComponentName (opts) {
  8047. return opts && (opts.Ctor.options.name || opts.tag)
  8048. }
  8049. function matches (pattern, name) {
  8050. if (Array.isArray(pattern)) {
  8051. return pattern.indexOf(name) > -1
  8052. } else if (typeof pattern === 'string') {
  8053. return pattern.split(',').indexOf(name) > -1
  8054. } else if (isRegExp(pattern)) {
  8055. return pattern.test(name)
  8056. }
  8057. /* istanbul ignore next */
  8058. return false
  8059. }
  8060. function pruneCache (keepAliveInstance, filter) {
  8061. var cache = keepAliveInstance.cache;
  8062. var keys = keepAliveInstance.keys;
  8063. var _vnode = keepAliveInstance._vnode;
  8064. for (var key in cache) {
  8065. var cachedNode = cache[key];
  8066. if (cachedNode) {
  8067. var name = getComponentName(cachedNode.componentOptions);
  8068. if (name && !filter(name)) {
  8069. pruneCacheEntry(cache, key, keys, _vnode);
  8070. }
  8071. }
  8072. }
  8073. }
  8074. function pruneCacheEntry (
  8075. cache,
  8076. key,
  8077. keys,
  8078. current
  8079. ) {
  8080. var cached$$1 = cache[key];
  8081. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8082. cached$$1.componentInstance.$destroy();
  8083. }
  8084. cache[key] = null;
  8085. remove(keys, key);
  8086. }
  8087. var patternTypes = [String, RegExp, Array];
  8088. var KeepAlive = {
  8089. name: 'keep-alive',
  8090. abstract: true,
  8091. props: {
  8092. include: patternTypes,
  8093. exclude: patternTypes,
  8094. max: [String, Number]
  8095. },
  8096. created: function created () {
  8097. this.cache = Object.create(null);
  8098. this.keys = [];
  8099. },
  8100. destroyed: function destroyed () {
  8101. for (var key in this.cache) {
  8102. pruneCacheEntry(this.cache, key, this.keys);
  8103. }
  8104. },
  8105. mounted: function mounted () {
  8106. var this$1 = this;
  8107. this.$watch('include', function (val) {
  8108. pruneCache(this$1, function (name) { return matches(val, name); });
  8109. });
  8110. this.$watch('exclude', function (val) {
  8111. pruneCache(this$1, function (name) { return !matches(val, name); });
  8112. });
  8113. },
  8114. render: function render () {
  8115. var slot = this.$slots.default;
  8116. var vnode = getFirstComponentChild(slot);
  8117. var componentOptions = vnode && vnode.componentOptions;
  8118. if (componentOptions) {
  8119. // check pattern
  8120. var name = getComponentName(componentOptions);
  8121. var ref = this;
  8122. var include = ref.include;
  8123. var exclude = ref.exclude;
  8124. if (
  8125. // not included
  8126. (include && (!name || !matches(include, name))) ||
  8127. // excluded
  8128. (exclude && name && matches(exclude, name))
  8129. ) {
  8130. return vnode
  8131. }
  8132. var ref$1 = this;
  8133. var cache = ref$1.cache;
  8134. var keys = ref$1.keys;
  8135. var key = vnode.key == null
  8136. // same constructor may get registered as different local components
  8137. // so cid alone is not enough (#3269)
  8138. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8139. : vnode.key;
  8140. if (cache[key]) {
  8141. vnode.componentInstance = cache[key].componentInstance;
  8142. // make current key freshest
  8143. remove(keys, key);
  8144. keys.push(key);
  8145. } else {
  8146. cache[key] = vnode;
  8147. keys.push(key);
  8148. // prune oldest entry
  8149. if (this.max && keys.length > parseInt(this.max)) {
  8150. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8151. }
  8152. }
  8153. vnode.data.keepAlive = true;
  8154. }
  8155. return vnode || (slot && slot[0])
  8156. }
  8157. };
  8158. var builtInComponents = {
  8159. KeepAlive: KeepAlive
  8160. };
  8161. /* */
  8162. function initGlobalAPI (Vue) {
  8163. // config
  8164. var configDef = {};
  8165. configDef.get = function () { return config; };
  8166. if (true) {
  8167. configDef.set = function () {
  8168. warn(
  8169. 'Do not replace the Vue.config object, set individual fields instead.'
  8170. );
  8171. };
  8172. }
  8173. Object.defineProperty(Vue, 'config', configDef);
  8174. // exposed util methods.
  8175. // NOTE: these are not considered part of the public API - avoid relying on
  8176. // them unless you are aware of the risk.
  8177. Vue.util = {
  8178. warn: warn,
  8179. extend: extend,
  8180. mergeOptions: mergeOptions,
  8181. defineReactive: defineReactive$$1
  8182. };
  8183. Vue.set = set;
  8184. Vue.delete = del;
  8185. Vue.nextTick = nextTick;
  8186. // 2.6 explicit observable API
  8187. Vue.observable = function (obj) {
  8188. observe(obj);
  8189. return obj
  8190. };
  8191. Vue.options = Object.create(null);
  8192. ASSET_TYPES.forEach(function (type) {
  8193. Vue.options[type + 's'] = Object.create(null);
  8194. });
  8195. // this is used to identify the "base" constructor to extend all plain-object
  8196. // components with in Weex's multi-instance scenarios.
  8197. Vue.options._base = Vue;
  8198. extend(Vue.options.components, builtInComponents);
  8199. initUse(Vue);
  8200. initMixin$1(Vue);
  8201. initExtend(Vue);
  8202. initAssetRegisters(Vue);
  8203. }
  8204. initGlobalAPI(Vue);
  8205. Object.defineProperty(Vue.prototype, '$isServer', {
  8206. get: isServerRendering
  8207. });
  8208. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8209. get: function get () {
  8210. /* istanbul ignore next */
  8211. return this.$vnode && this.$vnode.ssrContext
  8212. }
  8213. });
  8214. // expose FunctionalRenderContext for ssr runtime helper installation
  8215. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8216. value: FunctionalRenderContext
  8217. });
  8218. Vue.version = '2.6.11';
  8219. /**
  8220. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8221. */
  8222. var ARRAYTYPE = '[object Array]';
  8223. var OBJECTTYPE = '[object Object]';
  8224. var NULLTYPE = '[object Null]';
  8225. var UNDEFINEDTYPE = '[object Undefined]';
  8226. // const FUNCTIONTYPE = '[object Function]'
  8227. function diff(current, pre) {
  8228. var result = {};
  8229. syncKeys(current, pre);
  8230. _diff(current, pre, '', result);
  8231. return result
  8232. }
  8233. function syncKeys(current, pre) {
  8234. if (current === pre) { return }
  8235. var rootCurrentType = type(current);
  8236. var rootPreType = type(pre);
  8237. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8238. if(Object.keys(current).length >= Object.keys(pre).length){
  8239. for (var key in pre) {
  8240. var currentValue = current[key];
  8241. if (currentValue === undefined) {
  8242. current[key] = null;
  8243. } else {
  8244. syncKeys(currentValue, pre[key]);
  8245. }
  8246. }
  8247. }
  8248. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8249. if (current.length >= pre.length) {
  8250. pre.forEach(function (item, index) {
  8251. syncKeys(current[index], item);
  8252. });
  8253. }
  8254. }
  8255. }
  8256. function nullOrUndefined(currentType, preType) {
  8257. if(
  8258. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8259. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8260. ) {
  8261. return false
  8262. }
  8263. return true
  8264. }
  8265. function _diff(current, pre, path, result) {
  8266. if (current === pre) { return }
  8267. var rootCurrentType = type(current);
  8268. var rootPreType = type(pre);
  8269. if (rootCurrentType == OBJECTTYPE) {
  8270. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. var loop = function ( key ) {
  8274. var currentValue = current[key];
  8275. var preValue = pre[key];
  8276. var currentType = type(currentValue);
  8277. var preType = type(preValue);
  8278. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8279. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8280. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8281. }
  8282. } else if (currentType == ARRAYTYPE) {
  8283. if (preType != ARRAYTYPE) {
  8284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8285. } else {
  8286. if (currentValue.length < preValue.length) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. currentValue.forEach(function (item, index) {
  8290. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8291. });
  8292. }
  8293. }
  8294. } else if (currentType == OBJECTTYPE) {
  8295. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8296. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8297. } else {
  8298. for (var subKey in currentValue) {
  8299. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8300. }
  8301. }
  8302. }
  8303. };
  8304. for (var key in current) loop( key );
  8305. }
  8306. } else if (rootCurrentType == ARRAYTYPE) {
  8307. if (rootPreType != ARRAYTYPE) {
  8308. setResult(result, path, current);
  8309. } else {
  8310. if (current.length < pre.length) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. current.forEach(function (item, index) {
  8314. _diff(item, pre[index], path + '[' + index + ']', result);
  8315. });
  8316. }
  8317. }
  8318. } else {
  8319. setResult(result, path, current);
  8320. }
  8321. }
  8322. function setResult(result, k, v) {
  8323. // if (type(v) != FUNCTIONTYPE) {
  8324. result[k] = v;
  8325. // }
  8326. }
  8327. function type(obj) {
  8328. return Object.prototype.toString.call(obj)
  8329. }
  8330. /* */
  8331. function flushCallbacks$1(vm) {
  8332. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8333. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"慧研学惠生活","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8334. var mpInstance = vm.$scope;
  8335. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8336. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8337. }
  8338. var copies = vm.__next_tick_callbacks.slice(0);
  8339. vm.__next_tick_callbacks.length = 0;
  8340. for (var i = 0; i < copies.length; i++) {
  8341. copies[i]();
  8342. }
  8343. }
  8344. }
  8345. function hasRenderWatcher(vm) {
  8346. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8347. }
  8348. function nextTick$1(vm, cb) {
  8349. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8350. //2.nextTick 之前存在 render watcher
  8351. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8352. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"慧研学惠生活","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8353. var mpInstance = vm.$scope;
  8354. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8355. ']:nextVueTick');
  8356. }
  8357. return nextTick(cb, vm)
  8358. }else{
  8359. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"慧研学惠生活","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8360. var mpInstance$1 = vm.$scope;
  8361. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8362. ']:nextMPTick');
  8363. }
  8364. }
  8365. var _resolve;
  8366. if (!vm.__next_tick_callbacks) {
  8367. vm.__next_tick_callbacks = [];
  8368. }
  8369. vm.__next_tick_callbacks.push(function () {
  8370. if (cb) {
  8371. try {
  8372. cb.call(vm);
  8373. } catch (e) {
  8374. handleError(e, vm, 'nextTick');
  8375. }
  8376. } else if (_resolve) {
  8377. _resolve(vm);
  8378. }
  8379. });
  8380. // $flow-disable-line
  8381. if (!cb && typeof Promise !== 'undefined') {
  8382. return new Promise(function (resolve) {
  8383. _resolve = resolve;
  8384. })
  8385. }
  8386. }
  8387. /* */
  8388. function clearInstance(key, value) {
  8389. // 简易去除 Vue 和小程序组件实例
  8390. if (value) {
  8391. if (value._isVue || value.__v_isMPComponent) {
  8392. return {}
  8393. }
  8394. }
  8395. return value
  8396. }
  8397. function cloneWithData(vm) {
  8398. // 确保当前 vm 所有数据被同步
  8399. var ret = Object.create(null);
  8400. var dataKeys = [].concat(
  8401. Object.keys(vm._data || {}),
  8402. Object.keys(vm._computedWatchers || {}));
  8403. dataKeys.reduce(function(ret, key) {
  8404. ret[key] = vm[key];
  8405. return ret
  8406. }, ret);
  8407. // vue-composition-api
  8408. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8409. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8410. if (rawBindings) {
  8411. Object.keys(rawBindings).forEach(function (key) {
  8412. ret[key] = vm[key];
  8413. });
  8414. }
  8415. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8416. Object.assign(ret, vm.$mp.data || {});
  8417. if (
  8418. Array.isArray(vm.$options.behaviors) &&
  8419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8420. ) { //form-field
  8421. ret['name'] = vm.name;
  8422. ret['value'] = vm.value;
  8423. }
  8424. return JSON.parse(JSON.stringify(ret, clearInstance))
  8425. }
  8426. var patch = function(oldVnode, vnode) {
  8427. var this$1 = this;
  8428. if (vnode === null) { //destroy
  8429. return
  8430. }
  8431. if (this.mpType === 'page' || this.mpType === 'component') {
  8432. var mpInstance = this.$scope;
  8433. var data = Object.create(null);
  8434. try {
  8435. data = cloneWithData(this);
  8436. } catch (err) {
  8437. console.error(err);
  8438. }
  8439. data.__webviewId__ = mpInstance.data.__webviewId__;
  8440. var mpData = Object.create(null);
  8441. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8442. mpData[key] = mpInstance.data[key];
  8443. });
  8444. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8445. if (Object.keys(diffData).length) {
  8446. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"慧研学惠生活","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8447. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8448. ']差量更新',
  8449. JSON.stringify(diffData));
  8450. }
  8451. this.__next_tick_pending = true;
  8452. mpInstance.setData(diffData, function () {
  8453. this$1.__next_tick_pending = false;
  8454. flushCallbacks$1(this$1);
  8455. });
  8456. } else {
  8457. flushCallbacks$1(this);
  8458. }
  8459. }
  8460. };
  8461. /* */
  8462. function createEmptyRender() {
  8463. }
  8464. function mountComponent$1(
  8465. vm,
  8466. el,
  8467. hydrating
  8468. ) {
  8469. if (!vm.mpType) {//main.js 中的 new Vue
  8470. return vm
  8471. }
  8472. if (vm.mpType === 'app') {
  8473. vm.$options.render = createEmptyRender;
  8474. }
  8475. if (!vm.$options.render) {
  8476. vm.$options.render = createEmptyRender;
  8477. if (true) {
  8478. /* istanbul ignore if */
  8479. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8480. vm.$options.el || el) {
  8481. warn(
  8482. 'You are using the runtime-only build of Vue where the template ' +
  8483. 'compiler is not available. Either pre-compile the templates into ' +
  8484. 'render functions, or use the compiler-included build.',
  8485. vm
  8486. );
  8487. } else {
  8488. warn(
  8489. 'Failed to mount component: template or render function not defined.',
  8490. vm
  8491. );
  8492. }
  8493. }
  8494. }
  8495. !vm._$fallback && callHook(vm, 'beforeMount');
  8496. var updateComponent = function () {
  8497. vm._update(vm._render(), hydrating);
  8498. };
  8499. // we set this to vm._watcher inside the watcher's constructor
  8500. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8501. // component's mounted hook), which relies on vm._watcher being already defined
  8502. new Watcher(vm, updateComponent, noop, {
  8503. before: function before() {
  8504. if (vm._isMounted && !vm._isDestroyed) {
  8505. callHook(vm, 'beforeUpdate');
  8506. }
  8507. }
  8508. }, true /* isRenderWatcher */);
  8509. hydrating = false;
  8510. return vm
  8511. }
  8512. /* */
  8513. function renderClass (
  8514. staticClass,
  8515. dynamicClass
  8516. ) {
  8517. if (isDef(staticClass) || isDef(dynamicClass)) {
  8518. return concat(staticClass, stringifyClass(dynamicClass))
  8519. }
  8520. /* istanbul ignore next */
  8521. return ''
  8522. }
  8523. function concat (a, b) {
  8524. return a ? b ? (a + ' ' + b) : a : (b || '')
  8525. }
  8526. function stringifyClass (value) {
  8527. if (Array.isArray(value)) {
  8528. return stringifyArray(value)
  8529. }
  8530. if (isObject(value)) {
  8531. return stringifyObject(value)
  8532. }
  8533. if (typeof value === 'string') {
  8534. return value
  8535. }
  8536. /* istanbul ignore next */
  8537. return ''
  8538. }
  8539. function stringifyArray (value) {
  8540. var res = '';
  8541. var stringified;
  8542. for (var i = 0, l = value.length; i < l; i++) {
  8543. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8544. if (res) { res += ' '; }
  8545. res += stringified;
  8546. }
  8547. }
  8548. return res
  8549. }
  8550. function stringifyObject (value) {
  8551. var res = '';
  8552. for (var key in value) {
  8553. if (value[key]) {
  8554. if (res) { res += ' '; }
  8555. res += key;
  8556. }
  8557. }
  8558. return res
  8559. }
  8560. /* */
  8561. var parseStyleText = cached(function (cssText) {
  8562. var res = {};
  8563. var listDelimiter = /;(?![^(]*\))/g;
  8564. var propertyDelimiter = /:(.+)/;
  8565. cssText.split(listDelimiter).forEach(function (item) {
  8566. if (item) {
  8567. var tmp = item.split(propertyDelimiter);
  8568. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8569. }
  8570. });
  8571. return res
  8572. });
  8573. // normalize possible array / string values into Object
  8574. function normalizeStyleBinding (bindingStyle) {
  8575. if (Array.isArray(bindingStyle)) {
  8576. return toObject(bindingStyle)
  8577. }
  8578. if (typeof bindingStyle === 'string') {
  8579. return parseStyleText(bindingStyle)
  8580. }
  8581. return bindingStyle
  8582. }
  8583. /* */
  8584. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8585. function getTarget(obj, path) {
  8586. var parts = path.split('.');
  8587. var key = parts[0];
  8588. if (key.indexOf('__$n') === 0) { //number index
  8589. key = parseInt(key.replace('__$n', ''));
  8590. }
  8591. if (parts.length === 1) {
  8592. return obj[key]
  8593. }
  8594. return getTarget(obj[key], parts.slice(1).join('.'))
  8595. }
  8596. function internalMixin(Vue) {
  8597. Vue.config.errorHandler = function(err, vm, info) {
  8598. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8599. console.error(err);
  8600. /* eslint-disable no-undef */
  8601. var app = typeof getApp === 'function' && getApp();
  8602. if (app && app.onError) {
  8603. app.onError(err);
  8604. }
  8605. };
  8606. var oldEmit = Vue.prototype.$emit;
  8607. Vue.prototype.$emit = function(event) {
  8608. if (this.$scope && event) {
  8609. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8610. if (triggerEvent) {
  8611. try {
  8612. triggerEvent.call(this.$scope, event, {
  8613. __args__: toArray(arguments, 1)
  8614. });
  8615. } catch (error) {
  8616. }
  8617. }
  8618. }
  8619. return oldEmit.apply(this, arguments)
  8620. };
  8621. Vue.prototype.$nextTick = function(fn) {
  8622. return nextTick$1(this, fn)
  8623. };
  8624. MP_METHODS.forEach(function (method) {
  8625. Vue.prototype[method] = function(args) {
  8626. if (this.$scope && this.$scope[method]) {
  8627. return this.$scope[method](args)
  8628. }
  8629. // mp-alipay
  8630. if (typeof my === 'undefined') {
  8631. return
  8632. }
  8633. if (method === 'createSelectorQuery') {
  8634. /* eslint-disable no-undef */
  8635. return my.createSelectorQuery(args)
  8636. } else if (method === 'createIntersectionObserver') {
  8637. /* eslint-disable no-undef */
  8638. return my.createIntersectionObserver(args)
  8639. }
  8640. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8641. };
  8642. });
  8643. Vue.prototype.__init_provide = initProvide;
  8644. Vue.prototype.__init_injections = initInjections;
  8645. Vue.prototype.__call_hook = function(hook, args) {
  8646. var vm = this;
  8647. // #7573 disable dep collection when invoking lifecycle hooks
  8648. pushTarget();
  8649. var handlers = vm.$options[hook];
  8650. var info = hook + " hook";
  8651. var ret;
  8652. if (handlers) {
  8653. for (var i = 0, j = handlers.length; i < j; i++) {
  8654. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8655. }
  8656. }
  8657. if (vm._hasHookEvent) {
  8658. vm.$emit('hook:' + hook, args);
  8659. }
  8660. popTarget();
  8661. return ret
  8662. };
  8663. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8664. if (Array.isArray(modifiers)) {
  8665. if (modifiers.indexOf('trim') !== -1) {
  8666. value = value.trim();
  8667. }
  8668. if (modifiers.indexOf('number') !== -1) {
  8669. value = this._n(value);
  8670. }
  8671. }
  8672. if (!target) {
  8673. target = this;
  8674. }
  8675. // 解决动态属性添加
  8676. Vue.set(target, key, value);
  8677. };
  8678. Vue.prototype.__set_sync = function(target, key, value) {
  8679. if (!target) {
  8680. target = this;
  8681. }
  8682. // 解决动态属性添加
  8683. Vue.set(target, key, value);
  8684. };
  8685. Vue.prototype.__get_orig = function(item) {
  8686. if (isPlainObject(item)) {
  8687. return item['$orig'] || item
  8688. }
  8689. return item
  8690. };
  8691. Vue.prototype.__get_value = function(dataPath, target) {
  8692. return getTarget(target || this, dataPath)
  8693. };
  8694. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8695. return renderClass(staticClass, dynamicClass)
  8696. };
  8697. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8698. if (!dynamicStyle && !staticStyle) {
  8699. return ''
  8700. }
  8701. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8702. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8703. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8704. };
  8705. Vue.prototype.__map = function(val, iteratee) {
  8706. //TODO 暂不考虑 string
  8707. var ret, i, l, keys, key;
  8708. if (Array.isArray(val)) {
  8709. ret = new Array(val.length);
  8710. for (i = 0, l = val.length; i < l; i++) {
  8711. ret[i] = iteratee(val[i], i);
  8712. }
  8713. return ret
  8714. } else if (isObject(val)) {
  8715. keys = Object.keys(val);
  8716. ret = Object.create(null);
  8717. for (i = 0, l = keys.length; i < l; i++) {
  8718. key = keys[i];
  8719. ret[key] = iteratee(val[key], key, i);
  8720. }
  8721. return ret
  8722. } else if (typeof val === 'number') {
  8723. ret = new Array(val);
  8724. for (i = 0, l = val; i < l; i++) {
  8725. // 第一个参数暂时仍和小程序一致
  8726. ret[i] = iteratee(i, i);
  8727. }
  8728. return ret
  8729. }
  8730. return []
  8731. };
  8732. }
  8733. /* */
  8734. var LIFECYCLE_HOOKS$1 = [
  8735. //App
  8736. 'onLaunch',
  8737. 'onShow',
  8738. 'onHide',
  8739. 'onUniNViewMessage',
  8740. 'onPageNotFound',
  8741. 'onThemeChange',
  8742. 'onError',
  8743. 'onUnhandledRejection',
  8744. //Page
  8745. 'onInit',
  8746. 'onLoad',
  8747. // 'onShow',
  8748. 'onReady',
  8749. // 'onHide',
  8750. 'onUnload',
  8751. 'onPullDownRefresh',
  8752. 'onReachBottom',
  8753. 'onTabItemTap',
  8754. 'onAddToFavorites',
  8755. 'onShareTimeline',
  8756. 'onShareAppMessage',
  8757. 'onResize',
  8758. 'onPageScroll',
  8759. 'onNavigationBarButtonTap',
  8760. 'onBackPress',
  8761. 'onNavigationBarSearchInputChanged',
  8762. 'onNavigationBarSearchInputConfirmed',
  8763. 'onNavigationBarSearchInputClicked',
  8764. 'onUploadDouyinVideo',
  8765. 'onNFCReadMessage',
  8766. //Component
  8767. // 'onReady', // 兼容旧版本,应该移除该事件
  8768. 'onPageShow',
  8769. 'onPageHide',
  8770. 'onPageResize'
  8771. ];
  8772. function lifecycleMixin$1(Vue) {
  8773. //fixed vue-class-component
  8774. var oldExtend = Vue.extend;
  8775. Vue.extend = function(extendOptions) {
  8776. extendOptions = extendOptions || {};
  8777. var methods = extendOptions.methods;
  8778. if (methods) {
  8779. Object.keys(methods).forEach(function (methodName) {
  8780. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8781. extendOptions[methodName] = methods[methodName];
  8782. delete methods[methodName];
  8783. }
  8784. });
  8785. }
  8786. return oldExtend.call(this, extendOptions)
  8787. };
  8788. var strategies = Vue.config.optionMergeStrategies;
  8789. var mergeHook = strategies.created;
  8790. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8791. strategies[hook] = mergeHook;
  8792. });
  8793. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8794. }
  8795. /* */
  8796. // install platform patch function
  8797. Vue.prototype.__patch__ = patch;
  8798. // public mount method
  8799. Vue.prototype.$mount = function(
  8800. el ,
  8801. hydrating
  8802. ) {
  8803. return mountComponent$1(this, el, hydrating)
  8804. };
  8805. lifecycleMixin$1(Vue);
  8806. internalMixin(Vue);
  8807. /* */
  8808. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8809. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8810. /***/ }),
  8811. /* 26 */
  8812. /*!**********************************************!*\
  8813. !*** F:/项目/HBuilderProjects/test/pages.json ***!
  8814. \**********************************************/
  8815. /*! no static exports found */
  8816. /***/ (function(module, exports) {
  8817. /***/ }),
  8818. /* 27 */,
  8819. /* 28 */,
  8820. /* 29 */,
  8821. /* 30 */
  8822. /*!*************************************************!*\
  8823. !*** F:/项目/HBuilderProjects/test/api/common.js ***!
  8824. \*************************************************/
  8825. /*! no static exports found */
  8826. /***/ (function(module, exports, __webpack_require__) {
  8827. "use strict";
  8828. Object.defineProperty(exports, "__esModule", {
  8829. value: true
  8830. });
  8831. exports.auth = auth;
  8832. exports.delSearchHistory = delSearchHistory;
  8833. exports.finishUploadImg = finishUploadImg;
  8834. exports.getAdv = getAdv;
  8835. exports.getBanner = getBanner;
  8836. exports.getGoodsTypeObj = getGoodsTypeObj;
  8837. exports.getInviteCode = getInviteCode;
  8838. exports.getLoginToken = getLoginToken;
  8839. exports.getMenu = getMenu;
  8840. exports.getNotification = getNotification;
  8841. exports.getPhoneNum = getPhoneNum;
  8842. exports.getScheme = getScheme;
  8843. exports.getSearchHistory = getSearchHistory;
  8844. exports.getUserDetail = getUserDetail;
  8845. exports.refreshToken = refreshToken;
  8846. exports.register = register;
  8847. exports.saveSearchHistory = saveSearchHistory;
  8848. exports.sendVerifyCode = sendVerifyCode;
  8849. exports.updateLevel = updateLevel;
  8850. exports.updateNickname = updateNickname;
  8851. exports.uploadImg = uploadImg;
  8852. exports.validLogin = validLogin;
  8853. exports.wechatLogin = wechatLogin;
  8854. var _request = __webpack_require__(/*! @/utils/request.js */ 31);
  8855. // 注册
  8856. function register(data) {
  8857. return (0, _request.request)({
  8858. url: '/zswl-cloud-bdb/user/addUser',
  8859. method: 'post',
  8860. data: data
  8861. });
  8862. }
  8863. // 获取短信验证码
  8864. function sendVerifyCode(data) {
  8865. return (0, _request.request)({
  8866. url: '/zswl-cloud-bdb/smsTemplate/sendVerifyCode',
  8867. method: 'post',
  8868. data: data
  8869. });
  8870. }
  8871. // 实名认证
  8872. function auth(data) {
  8873. return (0, _request.request)({
  8874. url: '/zswl-cloud-bdb/user/auth',
  8875. method: 'post',
  8876. data: data
  8877. });
  8878. }
  8879. // 刷新token
  8880. function refreshToken(data) {
  8881. return (0, _request.request)({
  8882. url: '/zswl-cloud-bdb/user/refreshToken',
  8883. data: data
  8884. });
  8885. }
  8886. // 获取登录token
  8887. function getLoginToken(data) {
  8888. return (0, _request.request)({
  8889. url: '/zswl-cloud-bdb/user/getLoginToken',
  8890. data: data
  8891. });
  8892. }
  8893. // 微信登录
  8894. function wechatLogin(data) {
  8895. return (0, _request.request)({
  8896. url: '/zswl-cloud-bdb/user/wechatLogin',
  8897. method: 'post',
  8898. data: data
  8899. });
  8900. }
  8901. // 验证码登录
  8902. function validLogin(data) {
  8903. return (0, _request.request)({
  8904. url: '/zswl-cloud-bdb/user/validLogin',
  8905. method: 'post',
  8906. data: data
  8907. });
  8908. }
  8909. // 获取手机号
  8910. function getPhoneNum(data) {
  8911. return (0, _request.request)({
  8912. url: '/zswl-cloud-bdb/user/getPhoneNum',
  8913. data: data
  8914. });
  8915. }
  8916. // 用户详情
  8917. function getUserDetail(data) {
  8918. return (0, _request.request)({
  8919. url: '/zswl-cloud-bdb/user/detail',
  8920. data: data
  8921. });
  8922. }
  8923. // 通知列表
  8924. function getNotification(data) {
  8925. return (0, _request.request)({
  8926. url: '/zswl-cloud-bdb/user/search',
  8927. data: data
  8928. });
  8929. }
  8930. // 更改套餐
  8931. function updateLevel(data) {
  8932. return (0, _request.request)({
  8933. url: '/zswl-cloud-bdb/user/updateLevel',
  8934. method: 'post',
  8935. data: data
  8936. });
  8937. }
  8938. // 修改昵称
  8939. function updateNickname(data) {
  8940. return (0, _request.request)({
  8941. url: '/zswl-cloud-bdb/user/updateNickname',
  8942. method: 'post',
  8943. data: data
  8944. });
  8945. }
  8946. // // 上传头像
  8947. // export function uploadImg(data) {
  8948. // return request({
  8949. // url: '/user/uploadImg',
  8950. // method:'post',
  8951. // data
  8952. // })
  8953. // }
  8954. // 获取打开小程序url
  8955. function getScheme(data) {
  8956. return (0, _request.request)({
  8957. url: '/zswl-cloud-bdb/user/generateScheme',
  8958. data: data
  8959. });
  8960. }
  8961. // // 获取oss上传
  8962. // export function uploadImg(data) {
  8963. // return request({
  8964. // url: '/OSS/oss/getSign',
  8965. // data
  8966. // })
  8967. // }
  8968. // 获取oss上传
  8969. function uploadImg(data) {
  8970. return (0, _request.request)({
  8971. url: '/zswl-cloud-bdb/user/requestUploadImg',
  8972. method: 'post',
  8973. data: data
  8974. });
  8975. }
  8976. // 通知服务端上传结果
  8977. function finishUploadImg(data) {
  8978. return (0, _request.request)({
  8979. url: '/zswl-cloud-bdb/user/finishUploadImg',
  8980. method: 'post',
  8981. data: data
  8982. });
  8983. }
  8984. // 获取金刚区
  8985. function getMenu(data) {
  8986. return (0, _request.request)({
  8987. url: '/zswl-cloud-shop/menu/list',
  8988. data: data
  8989. });
  8990. }
  8991. // 获取广告位
  8992. function getAdv(data) {
  8993. return (0, _request.request)({
  8994. url: '/zswl-cloud-shop/advertsInfo/search',
  8995. data: data
  8996. });
  8997. }
  8998. //获取邀请码
  8999. function getInviteCode(data) {
  9000. return (0, _request.request)({
  9001. url: '/zswl-cloud-shop/employeeShopRelation/getShopList',
  9002. data: data
  9003. });
  9004. }
  9005. //banner列表
  9006. function getBanner(data) {
  9007. return (0, _request.request)({
  9008. url: '/zswl-cloud-shop/banner/list',
  9009. data: data
  9010. });
  9011. }
  9012. //搜索记录
  9013. function getSearchHistory(data) {
  9014. return (0, _request.request)({
  9015. url: '/zswl-cloud-bdb/user/getSearchHistory',
  9016. data: data
  9017. });
  9018. }
  9019. //删除搜索记录
  9020. function delSearchHistory(data) {
  9021. return (0, _request.request)({
  9022. url: '/zswl-cloud-bdb/user/delSearchHistory',
  9023. data: data
  9024. });
  9025. }
  9026. //保存搜索记录
  9027. function saveSearchHistory(data) {
  9028. return (0, _request.request)({
  9029. url: '/zswl-cloud-bdb/user/saveSearchHistory',
  9030. data: data
  9031. });
  9032. }
  9033. //获取商品类型字典
  9034. function getGoodsTypeObj(data) {
  9035. return (0, _request.request)({
  9036. url: '/zswl-cloud-shop/goodsCoupon/getMsg',
  9037. data: data
  9038. });
  9039. }
  9040. /***/ }),
  9041. /* 31 */
  9042. /*!****************************************************!*\
  9043. !*** F:/项目/HBuilderProjects/test/utils/request.js ***!
  9044. \****************************************************/
  9045. /*! no static exports found */
  9046. /***/ (function(module, exports, __webpack_require__) {
  9047. "use strict";
  9048. /* WEBPACK VAR INJECTION */(function(uni) {
  9049. Object.defineProperty(exports, "__esModule", {
  9050. value: true
  9051. });
  9052. exports.request = void 0;
  9053. var _config = __webpack_require__(/*! @/utils/config.js */ 32);
  9054. //用BASEURL来表示域名地址
  9055. // const BASE_URL = 'http://192.168.110.153:9002'
  9056. // const BASE_URL = 'https://zswl.api.jpy.wang/zswl-cloud-bdb'
  9057. // const BASE_URL = 'https://api.dev.zonelife.cn'
  9058. //封装请求方法
  9059. var request = function request(options) {
  9060. return new Promise(function (resolve, reject) {
  9061. //请求路径拼接,,其中options.url就是通过下面方法myRequest获取到接口部分的url
  9062. //method--请求方法,不是method的post就是get
  9063. //请求的参数,当没有参数的时候就是空对象
  9064. uni.request({
  9065. url: _config.BASE_URL + options.url,
  9066. method: options.method || 'GET',
  9067. data: options.data || {},
  9068. header: {
  9069. accessToken: uni.getStorageSync('token')
  9070. },
  9071. success: function success(res) {
  9072. if (res.statusCode !== 200) {
  9073. return uni.showToast({
  9074. title: '获取失败'
  9075. });
  9076. // uni.hideLoading()
  9077. } else if (res.data.msg != '成功') {
  9078. //接口返回报错
  9079. uni.showToast({
  9080. title: res.data.msg || res.data.exception.message || '请求失败',
  9081. icon: 'error'
  9082. });
  9083. console.log('报错:', res);
  9084. // token过期或出了问题
  9085. if (res.data.exception && res.data.exception.type == 'AuthenticationCredentialsNotFoundException') {
  9086. uni.showLoading({
  9087. title: '刷新登录中'
  9088. });
  9089. if (!uni.getStorageSync('refreshToken')) {
  9090. uni.clearStorageSync();
  9091. uni.reLaunch({
  9092. url: '/pages/index/index'
  9093. });
  9094. }
  9095. // 刷新token
  9096. uni.request({
  9097. url: _config.BASE_URL + '/zswl-cloud-bdb/user/refreshToken',
  9098. method: 'GET',
  9099. data: {
  9100. refreshToken: uni.getStorageSync('refreshToken')
  9101. },
  9102. success: function success(r) {
  9103. uni.hideLoading();
  9104. if (r.data.content == '刷新令牌错误') {
  9105. uni.showToast({
  9106. title: '登录失效',
  9107. icon: 'fail'
  9108. });
  9109. uni.clearStorageSync();
  9110. uni.reLaunch({
  9111. url: '/pages/index/index'
  9112. });
  9113. } else {
  9114. uni.setStorageSync('token', r.data.content); //登录状态
  9115. // 刷新页面
  9116. var list = ['/pay/pay'];
  9117. var pages = getCurrentPages();
  9118. var url = '/' + pages[pages.length - 1].route;
  9119. if (list.indexOf(url) == -1) {
  9120. console.log(11111111, list.indexOf(url), url);
  9121. uni.reLaunch({
  9122. url: url
  9123. });
  9124. }
  9125. }
  9126. }
  9127. });
  9128. }
  9129. }
  9130. resolve(res.data);
  9131. },
  9132. //请求失败
  9133. fail: function fail(err) {
  9134. uni.showToast({
  9135. title: '请求接口失败'
  9136. });
  9137. reject(err);
  9138. }
  9139. });
  9140. });
  9141. };
  9142. exports.request = request;
  9143. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9144. /***/ }),
  9145. /* 32 */
  9146. /*!***************************************************!*\
  9147. !*** F:/项目/HBuilderProjects/test/utils/config.js ***!
  9148. \***************************************************/
  9149. /*! no static exports found */
  9150. /***/ (function(module, exports, __webpack_require__) {
  9151. "use strict";
  9152. Object.defineProperty(exports, "__esModule", {
  9153. value: true
  9154. });
  9155. exports.SHOP_ID = exports.BASE_URL = void 0;
  9156. // export const BASE_URL = 'https://api.dev.zonelife.cn';
  9157. var BASE_URL = 'https://api.zonelife.cn';
  9158. // export const SHOP_ID = '65aa19c3e2cc5b1095f087fc';//测试视频会员店铺
  9159. exports.BASE_URL = BASE_URL;
  9160. var SHOP_ID = '65aa17f980f6d56f44643a1f'; //生产视频会员店铺
  9161. exports.SHOP_ID = SHOP_ID;
  9162. /***/ }),
  9163. /* 33 */,
  9164. /* 34 */,
  9165. /* 35 */
  9166. /*!**********************************************************************************************************!*\
  9167. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  9168. \**********************************************************************************************************/
  9169. /*! exports provided: default */
  9170. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9171. "use strict";
  9172. __webpack_require__.r(__webpack_exports__);
  9173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  9174. /* globals __VUE_SSR_CONTEXT__ */
  9175. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  9176. // This module is a runtime utility for cleaner component module output and will
  9177. // be included in the final webpack user bundle.
  9178. function normalizeComponent (
  9179. scriptExports,
  9180. render,
  9181. staticRenderFns,
  9182. functionalTemplate,
  9183. injectStyles,
  9184. scopeId,
  9185. moduleIdentifier, /* server only */
  9186. shadowMode, /* vue-cli only */
  9187. components, // fixed by xxxxxx auto components
  9188. renderjs // fixed by xxxxxx renderjs
  9189. ) {
  9190. // Vue.extend constructor export interop
  9191. var options = typeof scriptExports === 'function'
  9192. ? scriptExports.options
  9193. : scriptExports
  9194. // fixed by xxxxxx auto components
  9195. if (components) {
  9196. if (!options.components) {
  9197. options.components = {}
  9198. }
  9199. var hasOwn = Object.prototype.hasOwnProperty
  9200. for (var name in components) {
  9201. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  9202. options.components[name] = components[name]
  9203. }
  9204. }
  9205. }
  9206. // fixed by xxxxxx renderjs
  9207. if (renderjs) {
  9208. if(typeof renderjs.beforeCreate === 'function'){
  9209. renderjs.beforeCreate = [renderjs.beforeCreate]
  9210. }
  9211. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  9212. this[renderjs.__module] = this
  9213. });
  9214. (options.mixins || (options.mixins = [])).push(renderjs)
  9215. }
  9216. // render functions
  9217. if (render) {
  9218. options.render = render
  9219. options.staticRenderFns = staticRenderFns
  9220. options._compiled = true
  9221. }
  9222. // functional template
  9223. if (functionalTemplate) {
  9224. options.functional = true
  9225. }
  9226. // scopedId
  9227. if (scopeId) {
  9228. options._scopeId = 'data-v-' + scopeId
  9229. }
  9230. var hook
  9231. if (moduleIdentifier) { // server build
  9232. hook = function (context) {
  9233. // 2.3 injection
  9234. context =
  9235. context || // cached call
  9236. (this.$vnode && this.$vnode.ssrContext) || // stateful
  9237. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  9238. // 2.2 with runInNewContext: true
  9239. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  9240. context = __VUE_SSR_CONTEXT__
  9241. }
  9242. // inject component styles
  9243. if (injectStyles) {
  9244. injectStyles.call(this, context)
  9245. }
  9246. // register component module identifier for async chunk inferrence
  9247. if (context && context._registeredComponents) {
  9248. context._registeredComponents.add(moduleIdentifier)
  9249. }
  9250. }
  9251. // used by ssr in case component is cached and beforeCreate
  9252. // never gets called
  9253. options._ssrRegister = hook
  9254. } else if (injectStyles) {
  9255. hook = shadowMode
  9256. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  9257. : injectStyles
  9258. }
  9259. if (hook) {
  9260. if (options.functional) {
  9261. // for template-only hot-reload because in that case the render fn doesn't
  9262. // go through the normalizer
  9263. options._injectStyles = hook
  9264. // register for functioal component in vue file
  9265. var originalRender = options.render
  9266. options.render = function renderWithStyleInjection (h, context) {
  9267. hook.call(context)
  9268. return originalRender(h, context)
  9269. }
  9270. } else {
  9271. // inject component registration as beforeCreate hook
  9272. var existing = options.beforeCreate
  9273. options.beforeCreate = existing
  9274. ? [].concat(existing, hook)
  9275. : [hook]
  9276. }
  9277. }
  9278. return {
  9279. exports: scriptExports,
  9280. options: options
  9281. }
  9282. }
  9283. /***/ }),
  9284. /* 36 */
  9285. /*!************************************************************!*\
  9286. !*** F:/项目/HBuilderProjects/test/uni.promisify.adaptor.js ***!
  9287. \************************************************************/
  9288. /*! no static exports found */
  9289. /***/ (function(module, exports, __webpack_require__) {
  9290. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9291. uni.addInterceptor({
  9292. returnValue: function returnValue(res) {
  9293. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  9294. return res;
  9295. }
  9296. return new Promise(function (resolve, reject) {
  9297. res.then(function (res) {
  9298. return res[0] ? reject(res[0]) : resolve(res[1]);
  9299. });
  9300. });
  9301. }
  9302. });
  9303. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9304. /***/ }),
  9305. /* 37 */
  9306. /*!*****************************************************************!*\
  9307. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/index.js ***!
  9308. \*****************************************************************/
  9309. /*! no static exports found */
  9310. /***/ (function(module, exports, __webpack_require__) {
  9311. "use strict";
  9312. /* WEBPACK VAR INJECTION */(function(uni) {
  9313. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9314. Object.defineProperty(exports, "__esModule", {
  9315. value: true
  9316. });
  9317. exports.default = void 0;
  9318. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9319. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 38));
  9320. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 39));
  9321. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 40));
  9322. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 58));
  9323. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 62));
  9324. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 63));
  9325. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 64));
  9326. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 65));
  9327. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 66));
  9328. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 69));
  9329. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 70));
  9330. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 160));
  9331. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 118));
  9332. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 161));
  9333. 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; }
  9334. 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; }
  9335. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9336. var pleaseSetTranspileDependencies = {},
  9337. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9338. // 引入全局mixin
  9339. var $u = _objectSpread(_objectSpread({
  9340. route: _route.default,
  9341. date: _index.default.timeFormat,
  9342. // 另名date
  9343. colorGradient: _colorGradient.default.colorGradient,
  9344. hexToRgb: _colorGradient.default.hexToRgb,
  9345. rgbToHex: _colorGradient.default.rgbToHex,
  9346. colorToRgba: _colorGradient.default.colorToRgba,
  9347. test: _test.default,
  9348. type: ['primary', 'success', 'error', 'warning', 'info'],
  9349. http: new _luchRequest.default(),
  9350. config: _config.default,
  9351. // uView配置信息相关,比如版本号
  9352. zIndex: _zIndex.default,
  9353. debounce: _debounce.default,
  9354. throttle: _throttle.default,
  9355. mixin: _mixin.default,
  9356. mpMixin: _mpMixin.default,
  9357. props: _props.default
  9358. }, _index.default), {}, {
  9359. color: _color.default,
  9360. platform: _platform.default
  9361. });
  9362. // $u挂载到uni对象上
  9363. uni.$u = $u;
  9364. var install = function install(Vue) {
  9365. // 时间格式化,同时两个名称,date和timeFormat
  9366. Vue.filter('timeFormat', function (timestamp, format) {
  9367. return uni.$u.timeFormat(timestamp, format);
  9368. });
  9369. Vue.filter('date', function (timestamp, format) {
  9370. return uni.$u.timeFormat(timestamp, format);
  9371. });
  9372. // 将多久以前的方法,注入到全局过滤器
  9373. Vue.filter('timeFrom', function (timestamp, format) {
  9374. return uni.$u.timeFrom(timestamp, format);
  9375. });
  9376. // 同时挂载到uni和Vue.prototype中
  9377. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9378. Vue.prototype.$u = $u;
  9379. Vue.mixin(_mixin.default);
  9380. };
  9381. var _default = {
  9382. install: install
  9383. };
  9384. exports.default = _default;
  9385. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9386. /***/ }),
  9387. /* 38 */
  9388. /*!****************************************************************************!*\
  9389. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9390. \****************************************************************************/
  9391. /*! no static exports found */
  9392. /***/ (function(module, exports, __webpack_require__) {
  9393. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9394. // 定义每个组件都可能需要用到的外部样式以及类名
  9395. props: {
  9396. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9397. customStyle: {
  9398. type: [Object, String],
  9399. default: function _default() {
  9400. return {};
  9401. }
  9402. },
  9403. customClass: {
  9404. type: String,
  9405. default: ''
  9406. },
  9407. // 跳转的页面路径
  9408. url: {
  9409. type: String,
  9410. default: ''
  9411. },
  9412. // 页面跳转的类型
  9413. linkType: {
  9414. type: String,
  9415. default: 'navigateTo'
  9416. }
  9417. },
  9418. data: function data() {
  9419. return {};
  9420. },
  9421. onLoad: function onLoad() {
  9422. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9423. this.$u.getRect = this.$uGetRect;
  9424. },
  9425. created: function created() {
  9426. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9427. this.$u.getRect = this.$uGetRect;
  9428. },
  9429. computed: {
  9430. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9431. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9432. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9433. $u: function $u() {
  9434. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9435. return uni.$u.deepMerge(uni.$u, {
  9436. props: undefined,
  9437. http: undefined,
  9438. mixin: undefined
  9439. });
  9440. },
  9441. /**
  9442. * 生成bem规则类名
  9443. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9444. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9445. * @param {String} name 组件名称
  9446. * @param {Array} fixed 一直会存在的类名
  9447. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9448. * @returns {Array|string}
  9449. */
  9450. bem: function bem() {
  9451. return function (name, fixed, change) {
  9452. var _this = this;
  9453. // 类名前缀
  9454. var prefix = "u-".concat(name, "--");
  9455. var classes = {};
  9456. if (fixed) {
  9457. fixed.map(function (item) {
  9458. // 这里的类名,会一直存在
  9459. classes[prefix + _this[item]] = true;
  9460. });
  9461. }
  9462. if (change) {
  9463. change.map(function (item) {
  9464. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9465. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9466. });
  9467. }
  9468. return Object.keys(classes);
  9469. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9470. };
  9471. }
  9472. },
  9473. methods: {
  9474. // 跳转某一个页面
  9475. openPage: function openPage() {
  9476. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9477. var url = this[urlKey];
  9478. if (url) {
  9479. // 执行类似uni.navigateTo的方法
  9480. uni[this.linkType]({
  9481. url: url
  9482. });
  9483. }
  9484. },
  9485. // 查询节点信息
  9486. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9487. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9488. $uGetRect: function $uGetRect(selector, all) {
  9489. var _this2 = this;
  9490. return new Promise(function (resolve) {
  9491. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9492. if (all && Array.isArray(rect) && rect.length) {
  9493. resolve(rect);
  9494. }
  9495. if (!all && rect) {
  9496. resolve(rect);
  9497. }
  9498. }).exec();
  9499. });
  9500. },
  9501. getParentData: function getParentData() {
  9502. var _this3 = this;
  9503. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9504. // 避免在created中去定义parent变量
  9505. if (!this.parent) this.parent = {};
  9506. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9507. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9508. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9509. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9510. this.parent = uni.$u.$parent.call(this, parentName);
  9511. if (this.parent.children) {
  9512. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9513. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9514. }
  9515. if (this.parent && this.parentData) {
  9516. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9517. Object.keys(this.parentData).map(function (key) {
  9518. _this3.parentData[key] = _this3.parent[key];
  9519. });
  9520. }
  9521. },
  9522. // 阻止事件冒泡
  9523. preventEvent: function preventEvent(e) {
  9524. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9525. },
  9526. // 空操作
  9527. noop: function noop(e) {
  9528. this.preventEvent(e);
  9529. }
  9530. },
  9531. onReachBottom: function onReachBottom() {
  9532. uni.$emit('uOnReachBottom');
  9533. },
  9534. beforeDestroy: function beforeDestroy() {
  9535. var _this4 = this;
  9536. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9537. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9538. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9539. // 组件销毁时,移除父组件中的children数组中对应的实例
  9540. var childrenList = this.parent.children;
  9541. childrenList.map(function (child, index) {
  9542. // 如果相等,则移除
  9543. if (child === _this4) {
  9544. childrenList.splice(index, 1);
  9545. }
  9546. });
  9547. }
  9548. }
  9549. };
  9550. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9551. /***/ }),
  9552. /* 39 */
  9553. /*!******************************************************************************!*\
  9554. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9555. \******************************************************************************/
  9556. /*! no static exports found */
  9557. /***/ (function(module, exports, __webpack_require__) {
  9558. "use strict";
  9559. Object.defineProperty(exports, "__esModule", {
  9560. value: true
  9561. });
  9562. exports.default = void 0;
  9563. var _default = {
  9564. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9565. options: {
  9566. virtualHost: true
  9567. }
  9568. };
  9569. exports.default = _default;
  9570. /***/ }),
  9571. /* 40 */
  9572. /*!***********************************************************************************!*\
  9573. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9574. \***********************************************************************************/
  9575. /*! no static exports found */
  9576. /***/ (function(module, exports, __webpack_require__) {
  9577. "use strict";
  9578. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9579. Object.defineProperty(exports, "__esModule", {
  9580. value: true
  9581. });
  9582. exports.default = void 0;
  9583. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 41));
  9584. var _default = _Request.default;
  9585. exports.default = _default;
  9586. /***/ }),
  9587. /* 41 */
  9588. /*!******************************************************************************************!*\
  9589. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9590. \******************************************************************************************/
  9591. /*! no static exports found */
  9592. /***/ (function(module, exports, __webpack_require__) {
  9593. "use strict";
  9594. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9595. Object.defineProperty(exports, "__esModule", {
  9596. value: true
  9597. });
  9598. exports.default = void 0;
  9599. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9600. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9601. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9602. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 42));
  9603. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 50));
  9604. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 51));
  9605. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 52));
  9606. var _utils = __webpack_require__(/*! ../utils */ 45);
  9607. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 53));
  9608. 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; }
  9609. 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; }
  9610. var Request = /*#__PURE__*/function () {
  9611. /**
  9612. * @param {Object} arg - 全局配置
  9613. * @param {String} arg.baseURL - 全局根路径
  9614. * @param {Object} arg.header - 全局header
  9615. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9616. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9617. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9618. * @param {Object} arg.custom - 全局默认的自定义参数
  9619. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9620. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9621. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9622. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9623. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9624. */
  9625. function Request() {
  9626. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9627. (0, _classCallCheck2.default)(this, Request);
  9628. if (!(0, _utils.isPlainObject)(arg)) {
  9629. arg = {};
  9630. console.warn('设置全局参数必须接收一个Object');
  9631. }
  9632. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9633. this.interceptors = {
  9634. request: new _InterceptorManager.default(),
  9635. response: new _InterceptorManager.default()
  9636. };
  9637. }
  9638. /**
  9639. * @Function
  9640. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9641. */
  9642. (0, _createClass2.default)(Request, [{
  9643. key: "setConfig",
  9644. value: function setConfig(f) {
  9645. this.config = f(this.config);
  9646. }
  9647. }, {
  9648. key: "middleware",
  9649. value: function middleware(config) {
  9650. config = (0, _mergeConfig.default)(this.config, config);
  9651. var chain = [_dispatchRequest.default, undefined];
  9652. var promise = Promise.resolve(config);
  9653. this.interceptors.request.forEach(function (interceptor) {
  9654. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9655. });
  9656. this.interceptors.response.forEach(function (interceptor) {
  9657. chain.push(interceptor.fulfilled, interceptor.rejected);
  9658. });
  9659. while (chain.length) {
  9660. promise = promise.then(chain.shift(), chain.shift());
  9661. }
  9662. return promise;
  9663. }
  9664. /**
  9665. * @Function
  9666. * @param {Object} config - 请求配置项
  9667. * @prop {String} options.url - 请求路径
  9668. * @prop {Object} options.data - 请求参数
  9669. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9670. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9671. * @prop {Object} [options.header = config.header] - 请求header
  9672. * @prop {Object} [options.method = config.method] - 请求方法
  9673. * @returns {Promise<unknown>}
  9674. */
  9675. }, {
  9676. key: "request",
  9677. value: function request() {
  9678. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9679. return this.middleware(config);
  9680. }
  9681. }, {
  9682. key: "get",
  9683. value: function get(url) {
  9684. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9685. return this.middleware(_objectSpread({
  9686. url: url,
  9687. method: 'GET'
  9688. }, options));
  9689. }
  9690. }, {
  9691. key: "post",
  9692. value: function post(url, data) {
  9693. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9694. return this.middleware(_objectSpread({
  9695. url: url,
  9696. data: data,
  9697. method: 'POST'
  9698. }, options));
  9699. }
  9700. }, {
  9701. key: "put",
  9702. value: function put(url, data) {
  9703. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9704. return this.middleware(_objectSpread({
  9705. url: url,
  9706. data: data,
  9707. method: 'PUT'
  9708. }, options));
  9709. }
  9710. }, {
  9711. key: "delete",
  9712. value: function _delete(url, data) {
  9713. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9714. return this.middleware(_objectSpread({
  9715. url: url,
  9716. data: data,
  9717. method: 'DELETE'
  9718. }, options));
  9719. }
  9720. }, {
  9721. key: "connect",
  9722. value: function connect(url, data) {
  9723. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9724. return this.middleware(_objectSpread({
  9725. url: url,
  9726. data: data,
  9727. method: 'CONNECT'
  9728. }, options));
  9729. }
  9730. }, {
  9731. key: "head",
  9732. value: function head(url, data) {
  9733. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9734. return this.middleware(_objectSpread({
  9735. url: url,
  9736. data: data,
  9737. method: 'HEAD'
  9738. }, options));
  9739. }
  9740. }, {
  9741. key: "options",
  9742. value: function options(url, data) {
  9743. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9744. return this.middleware(_objectSpread({
  9745. url: url,
  9746. data: data,
  9747. method: 'OPTIONS'
  9748. }, _options));
  9749. }
  9750. }, {
  9751. key: "trace",
  9752. value: function trace(url, data) {
  9753. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9754. return this.middleware(_objectSpread({
  9755. url: url,
  9756. data: data,
  9757. method: 'TRACE'
  9758. }, options));
  9759. }
  9760. }, {
  9761. key: "upload",
  9762. value: function upload(url) {
  9763. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9764. config.url = url;
  9765. config.method = 'UPLOAD';
  9766. return this.middleware(config);
  9767. }
  9768. }, {
  9769. key: "download",
  9770. value: function download(url) {
  9771. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9772. config.url = url;
  9773. config.method = 'DOWNLOAD';
  9774. return this.middleware(config);
  9775. }
  9776. }]);
  9777. return Request;
  9778. }();
  9779. /**
  9780. * setConfig回调
  9781. * @return {Object} - 返回操作后的config
  9782. * @callback Request~setConfigCallback
  9783. * @param {Object} config - 全局默认config
  9784. */
  9785. exports.default = Request;
  9786. /***/ }),
  9787. /* 42 */
  9788. /*!**************************************************************************************************!*\
  9789. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9790. \**************************************************************************************************/
  9791. /*! no static exports found */
  9792. /***/ (function(module, exports, __webpack_require__) {
  9793. "use strict";
  9794. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9795. Object.defineProperty(exports, "__esModule", {
  9796. value: true
  9797. });
  9798. exports.default = void 0;
  9799. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 43));
  9800. var _default = function _default(config) {
  9801. return (0, _index.default)(config);
  9802. };
  9803. exports.default = _default;
  9804. /***/ }),
  9805. /* 43 */
  9806. /*!********************************************************************************************!*\
  9807. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9808. \********************************************************************************************/
  9809. /*! no static exports found */
  9810. /***/ (function(module, exports, __webpack_require__) {
  9811. "use strict";
  9812. /* WEBPACK VAR INJECTION */(function(uni) {
  9813. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9814. Object.defineProperty(exports, "__esModule", {
  9815. value: true
  9816. });
  9817. exports.default = void 0;
  9818. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9819. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 44));
  9820. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 46));
  9821. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 49));
  9822. var _utils = __webpack_require__(/*! ../utils */ 45);
  9823. 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; }
  9824. 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; }
  9825. /**
  9826. * 返回可选值存在的配置
  9827. * @param {Array} keys - 可选值数组
  9828. * @param {Object} config2 - 配置
  9829. * @return {{}} - 存在的配置项
  9830. */
  9831. var mergeKeys = function mergeKeys(keys, config2) {
  9832. var config = {};
  9833. keys.forEach(function (prop) {
  9834. if (!(0, _utils.isUndefined)(config2[prop])) {
  9835. config[prop] = config2[prop];
  9836. }
  9837. });
  9838. return config;
  9839. };
  9840. var _default = function _default(config) {
  9841. return new Promise(function (resolve, reject) {
  9842. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9843. var _config = {
  9844. url: fullPath,
  9845. header: config.header,
  9846. complete: function complete(response) {
  9847. config.fullPath = fullPath;
  9848. response.config = config;
  9849. try {
  9850. // 对可能字符串不是json 的情况容错
  9851. if (typeof response.data === 'string') {
  9852. response.data = JSON.parse(response.data);
  9853. }
  9854. // eslint-disable-next-line no-empty
  9855. } catch (e) {}
  9856. (0, _settle.default)(resolve, reject, response);
  9857. }
  9858. };
  9859. var requestTask;
  9860. if (config.method === 'UPLOAD') {
  9861. delete _config.header['content-type'];
  9862. delete _config.header['Content-Type'];
  9863. var otherConfig = {
  9864. filePath: config.filePath,
  9865. name: config.name
  9866. };
  9867. var optionalKeys = ['formData'];
  9868. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9869. } else if (config.method === 'DOWNLOAD') {
  9870. requestTask = uni.downloadFile(_config);
  9871. } else {
  9872. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9873. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9874. }
  9875. if (config.getTask) {
  9876. config.getTask(requestTask, config);
  9877. }
  9878. });
  9879. };
  9880. exports.default = _default;
  9881. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9882. /***/ }),
  9883. /* 44 */
  9884. /*!**********************************************************************************************!*\
  9885. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9886. \**********************************************************************************************/
  9887. /*! no static exports found */
  9888. /***/ (function(module, exports, __webpack_require__) {
  9889. "use strict";
  9890. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9891. Object.defineProperty(exports, "__esModule", {
  9892. value: true
  9893. });
  9894. exports.default = buildURL;
  9895. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 45));
  9896. 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); }
  9897. 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; }
  9898. function encode(val) {
  9899. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9900. }
  9901. /**
  9902. * Build a URL by appending params to the end
  9903. *
  9904. * @param {string} url The base of the url (e.g., http://www.google.com)
  9905. * @param {object} [params] The params to be appended
  9906. * @returns {string} The formatted url
  9907. */
  9908. function buildURL(url, params) {
  9909. /* eslint no-param-reassign:0 */
  9910. if (!params) {
  9911. return url;
  9912. }
  9913. var serializedParams;
  9914. if (utils.isURLSearchParams(params)) {
  9915. serializedParams = params.toString();
  9916. } else {
  9917. var parts = [];
  9918. utils.forEach(params, function (val, key) {
  9919. if (val === null || typeof val === 'undefined') {
  9920. return;
  9921. }
  9922. if (utils.isArray(val)) {
  9923. key = "".concat(key, "[]");
  9924. } else {
  9925. val = [val];
  9926. }
  9927. utils.forEach(val, function (v) {
  9928. if (utils.isDate(v)) {
  9929. v = v.toISOString();
  9930. } else if (utils.isObject(v)) {
  9931. v = JSON.stringify(v);
  9932. }
  9933. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9934. });
  9935. });
  9936. serializedParams = parts.join('&');
  9937. }
  9938. if (serializedParams) {
  9939. var hashmarkIndex = url.indexOf('#');
  9940. if (hashmarkIndex !== -1) {
  9941. url = url.slice(0, hashmarkIndex);
  9942. }
  9943. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9944. }
  9945. return url;
  9946. }
  9947. /***/ }),
  9948. /* 45 */
  9949. /*!***********************************************************************************!*\
  9950. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  9951. \***********************************************************************************/
  9952. /*! no static exports found */
  9953. /***/ (function(module, exports, __webpack_require__) {
  9954. "use strict";
  9955. // utils is a library of generic helper functions non-specific to axios
  9956. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9957. Object.defineProperty(exports, "__esModule", {
  9958. value: true
  9959. });
  9960. exports.deepMerge = deepMerge;
  9961. exports.forEach = forEach;
  9962. exports.isArray = isArray;
  9963. exports.isBoolean = isBoolean;
  9964. exports.isDate = isDate;
  9965. exports.isObject = isObject;
  9966. exports.isPlainObject = isPlainObject;
  9967. exports.isURLSearchParams = isURLSearchParams;
  9968. exports.isUndefined = isUndefined;
  9969. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9970. var toString = Object.prototype.toString;
  9971. /**
  9972. * Determine if a value is an Array
  9973. *
  9974. * @param {Object} val The value to test
  9975. * @returns {boolean} True if value is an Array, otherwise false
  9976. */
  9977. function isArray(val) {
  9978. return toString.call(val) === '[object Array]';
  9979. }
  9980. /**
  9981. * Determine if a value is an Object
  9982. *
  9983. * @param {Object} val The value to test
  9984. * @returns {boolean} True if value is an Object, otherwise false
  9985. */
  9986. function isObject(val) {
  9987. return val !== null && (0, _typeof2.default)(val) === 'object';
  9988. }
  9989. /**
  9990. * Determine if a value is a Date
  9991. *
  9992. * @param {Object} val The value to test
  9993. * @returns {boolean} True if value is a Date, otherwise false
  9994. */
  9995. function isDate(val) {
  9996. return toString.call(val) === '[object Date]';
  9997. }
  9998. /**
  9999. * Determine if a value is a URLSearchParams object
  10000. *
  10001. * @param {Object} val The value to test
  10002. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  10003. */
  10004. function isURLSearchParams(val) {
  10005. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  10006. }
  10007. /**
  10008. * Iterate over an Array or an Object invoking a function for each item.
  10009. *
  10010. * If `obj` is an Array callback will be called passing
  10011. * the value, index, and complete array for each item.
  10012. *
  10013. * If 'obj' is an Object callback will be called passing
  10014. * the value, key, and complete object for each property.
  10015. *
  10016. * @param {Object|Array} obj The object to iterate
  10017. * @param {Function} fn The callback to invoke for each item
  10018. */
  10019. function forEach(obj, fn) {
  10020. // Don't bother if no value provided
  10021. if (obj === null || typeof obj === 'undefined') {
  10022. return;
  10023. }
  10024. // Force an array if not already something iterable
  10025. if ((0, _typeof2.default)(obj) !== 'object') {
  10026. /* eslint no-param-reassign:0 */
  10027. obj = [obj];
  10028. }
  10029. if (isArray(obj)) {
  10030. // Iterate over array values
  10031. for (var i = 0, l = obj.length; i < l; i++) {
  10032. fn.call(null, obj[i], i, obj);
  10033. }
  10034. } else {
  10035. // Iterate over object keys
  10036. for (var key in obj) {
  10037. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  10038. fn.call(null, obj[key], key, obj);
  10039. }
  10040. }
  10041. }
  10042. }
  10043. /**
  10044. * 是否为boolean 值
  10045. * @param val
  10046. * @returns {boolean}
  10047. */
  10048. function isBoolean(val) {
  10049. return typeof val === 'boolean';
  10050. }
  10051. /**
  10052. * 是否为真正的对象{} new Object
  10053. * @param {any} obj - 检测的对象
  10054. * @returns {boolean}
  10055. */
  10056. function isPlainObject(obj) {
  10057. return Object.prototype.toString.call(obj) === '[object Object]';
  10058. }
  10059. /**
  10060. * Function equal to merge with the difference being that no reference
  10061. * to original objects is kept.
  10062. *
  10063. * @see merge
  10064. * @param {Object} obj1 Object to merge
  10065. * @returns {Object} Result of all merge properties
  10066. */
  10067. function deepMerge( /* obj1, obj2, obj3, ... */
  10068. ) {
  10069. var result = {};
  10070. function assignValue(val, key) {
  10071. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  10072. result[key] = deepMerge(result[key], val);
  10073. } else if ((0, _typeof2.default)(val) === 'object') {
  10074. result[key] = deepMerge({}, val);
  10075. } else {
  10076. result[key] = val;
  10077. }
  10078. }
  10079. for (var i = 0, l = arguments.length; i < l; i++) {
  10080. forEach(arguments[i], assignValue);
  10081. }
  10082. return result;
  10083. }
  10084. function isUndefined(val) {
  10085. return typeof val === 'undefined';
  10086. }
  10087. /***/ }),
  10088. /* 46 */
  10089. /*!************************************************************************************************!*\
  10090. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10091. \************************************************************************************************/
  10092. /*! no static exports found */
  10093. /***/ (function(module, exports, __webpack_require__) {
  10094. "use strict";
  10095. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10096. Object.defineProperty(exports, "__esModule", {
  10097. value: true
  10098. });
  10099. exports.default = buildFullPath;
  10100. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 47));
  10101. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 48));
  10102. /**
  10103. * Creates a new URL by combining the baseURL with the requestedURL,
  10104. * only when the requestedURL is not already an absolute URL.
  10105. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10106. *
  10107. * @param {string} baseURL The base URL
  10108. * @param {string} requestedURL Absolute or relative URL to combine
  10109. * @returns {string} The combined full path
  10110. */
  10111. function buildFullPath(baseURL, requestedURL) {
  10112. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10113. return (0, _combineURLs.default)(baseURL, requestedURL);
  10114. }
  10115. return requestedURL;
  10116. }
  10117. /***/ }),
  10118. /* 47 */
  10119. /*!***************************************************************************************************!*\
  10120. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10121. \***************************************************************************************************/
  10122. /*! no static exports found */
  10123. /***/ (function(module, exports, __webpack_require__) {
  10124. "use strict";
  10125. /**
  10126. * Determines whether the specified URL is absolute
  10127. *
  10128. * @param {string} url The URL to test
  10129. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10130. */
  10131. Object.defineProperty(exports, "__esModule", {
  10132. value: true
  10133. });
  10134. exports.default = isAbsoluteURL;
  10135. function isAbsoluteURL(url) {
  10136. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10137. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10138. // by any combination of letters, digits, plus, period, or hyphen.
  10139. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10140. }
  10141. /***/ }),
  10142. /* 48 */
  10143. /*!*************************************************************************************************!*\
  10144. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10145. \*************************************************************************************************/
  10146. /*! no static exports found */
  10147. /***/ (function(module, exports, __webpack_require__) {
  10148. "use strict";
  10149. /**
  10150. * Creates a new URL by combining the specified URLs
  10151. *
  10152. * @param {string} baseURL The base URL
  10153. * @param {string} relativeURL The relative URL
  10154. * @returns {string} The combined URL
  10155. */
  10156. Object.defineProperty(exports, "__esModule", {
  10157. value: true
  10158. });
  10159. exports.default = combineURLs;
  10160. function combineURLs(baseURL, relativeURL) {
  10161. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  10162. }
  10163. /***/ }),
  10164. /* 49 */
  10165. /*!*****************************************************************************************!*\
  10166. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10167. \*****************************************************************************************/
  10168. /*! no static exports found */
  10169. /***/ (function(module, exports, __webpack_require__) {
  10170. "use strict";
  10171. Object.defineProperty(exports, "__esModule", {
  10172. value: true
  10173. });
  10174. exports.default = settle;
  10175. /**
  10176. * Resolve or reject a Promise based on response status.
  10177. *
  10178. * @param {Function} resolve A function that resolves the promise.
  10179. * @param {Function} reject A function that rejects the promise.
  10180. * @param {object} response The response.
  10181. */
  10182. function settle(resolve, reject, response) {
  10183. var validateStatus = response.config.validateStatus;
  10184. var status = response.statusCode;
  10185. if (status && (!validateStatus || validateStatus(status))) {
  10186. resolve(response);
  10187. } else {
  10188. reject(response);
  10189. }
  10190. }
  10191. /***/ }),
  10192. /* 50 */
  10193. /*!*****************************************************************************************************!*\
  10194. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10195. \*****************************************************************************************************/
  10196. /*! no static exports found */
  10197. /***/ (function(module, exports, __webpack_require__) {
  10198. "use strict";
  10199. Object.defineProperty(exports, "__esModule", {
  10200. value: true
  10201. });
  10202. exports.default = void 0;
  10203. function InterceptorManager() {
  10204. this.handlers = [];
  10205. }
  10206. /**
  10207. * Add a new interceptor to the stack
  10208. *
  10209. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10210. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10211. *
  10212. * @return {Number} An ID used to remove interceptor later
  10213. */
  10214. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10215. this.handlers.push({
  10216. fulfilled: fulfilled,
  10217. rejected: rejected
  10218. });
  10219. return this.handlers.length - 1;
  10220. };
  10221. /**
  10222. * Remove an interceptor from the stack
  10223. *
  10224. * @param {Number} id The ID that was returned by `use`
  10225. */
  10226. InterceptorManager.prototype.eject = function eject(id) {
  10227. if (this.handlers[id]) {
  10228. this.handlers[id] = null;
  10229. }
  10230. };
  10231. /**
  10232. * Iterate over all the registered interceptors
  10233. *
  10234. * This method is particularly useful for skipping over any
  10235. * interceptors that may have become `null` calling `eject`.
  10236. *
  10237. * @param {Function} fn The function to call for each interceptor
  10238. */
  10239. InterceptorManager.prototype.forEach = function forEach(fn) {
  10240. this.handlers.forEach(function (h) {
  10241. if (h !== null) {
  10242. fn(h);
  10243. }
  10244. });
  10245. };
  10246. var _default = InterceptorManager;
  10247. exports.default = _default;
  10248. /***/ }),
  10249. /* 51 */
  10250. /*!**********************************************************************************************!*\
  10251. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10252. \**********************************************************************************************/
  10253. /*! no static exports found */
  10254. /***/ (function(module, exports, __webpack_require__) {
  10255. "use strict";
  10256. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10257. Object.defineProperty(exports, "__esModule", {
  10258. value: true
  10259. });
  10260. exports.default = void 0;
  10261. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10262. var _utils = __webpack_require__(/*! ../utils */ 45);
  10263. 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; }
  10264. 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; }
  10265. /**
  10266. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10267. * @param {Array} keys - 配置项
  10268. * @param {Object} globalsConfig - 当前的全局配置
  10269. * @param {Object} config2 - 局部配置
  10270. * @return {{}}
  10271. */
  10272. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10273. var config = {};
  10274. keys.forEach(function (prop) {
  10275. if (!(0, _utils.isUndefined)(config2[prop])) {
  10276. config[prop] = config2[prop];
  10277. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10278. config[prop] = globalsConfig[prop];
  10279. }
  10280. });
  10281. return config;
  10282. };
  10283. /**
  10284. *
  10285. * @param globalsConfig - 当前实例的全局配置
  10286. * @param config2 - 当前的局部配置
  10287. * @return - 合并后的配置
  10288. */
  10289. var _default = function _default(globalsConfig) {
  10290. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10291. var method = config2.method || globalsConfig.method || 'GET';
  10292. var config = {
  10293. baseURL: globalsConfig.baseURL || '',
  10294. method: method,
  10295. url: config2.url || '',
  10296. params: config2.params || {},
  10297. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10298. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10299. };
  10300. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10301. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10302. // eslint-disable-next-line no-empty
  10303. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10304. delete config.header['content-type'];
  10305. delete config.header['Content-Type'];
  10306. var uploadKeys = ['filePath', 'name', 'formData'];
  10307. uploadKeys.forEach(function (prop) {
  10308. if (!(0, _utils.isUndefined)(config2[prop])) {
  10309. config[prop] = config2[prop];
  10310. }
  10311. });
  10312. } else {
  10313. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  10314. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10315. }
  10316. return config;
  10317. };
  10318. exports.default = _default;
  10319. /***/ }),
  10320. /* 52 */
  10321. /*!*******************************************************************************************!*\
  10322. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10323. \*******************************************************************************************/
  10324. /*! no static exports found */
  10325. /***/ (function(module, exports, __webpack_require__) {
  10326. "use strict";
  10327. Object.defineProperty(exports, "__esModule", {
  10328. value: true
  10329. });
  10330. exports.default = void 0;
  10331. /**
  10332. * 默认的全局配置
  10333. */
  10334. var _default = {
  10335. baseURL: '',
  10336. header: {},
  10337. method: 'GET',
  10338. dataType: 'json',
  10339. responseType: 'text',
  10340. custom: {},
  10341. timeout: 60000,
  10342. validateStatus: function validateStatus(status) {
  10343. return status >= 200 && status < 300;
  10344. }
  10345. };
  10346. exports.default = _default;
  10347. /***/ }),
  10348. /* 53 */
  10349. /*!*****************************************************************************************!*\
  10350. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10351. \*****************************************************************************************/
  10352. /*! no static exports found */
  10353. /***/ (function(module, exports, __webpack_require__) {
  10354. "use strict";
  10355. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10356. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10357. Object.defineProperty(exports, "__esModule", {
  10358. value: true
  10359. });
  10360. exports.default = void 0;
  10361. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10362. /* eslint-disable */
  10363. var clone = function () {
  10364. 'use strict';
  10365. function _instanceof(obj, type) {
  10366. return type != null && obj instanceof type;
  10367. }
  10368. var nativeMap;
  10369. try {
  10370. nativeMap = Map;
  10371. } catch (_) {
  10372. // maybe a reference error because no `Map`. Give it a dummy value that no
  10373. // value will ever be an instanceof.
  10374. nativeMap = function nativeMap() {};
  10375. }
  10376. var nativeSet;
  10377. try {
  10378. nativeSet = Set;
  10379. } catch (_) {
  10380. nativeSet = function nativeSet() {};
  10381. }
  10382. var nativePromise;
  10383. try {
  10384. nativePromise = Promise;
  10385. } catch (_) {
  10386. nativePromise = function nativePromise() {};
  10387. }
  10388. /**
  10389. * Clones (copies) an Object using deep copying.
  10390. *
  10391. * This function supports circular references by default, but if you are certain
  10392. * there are no circular references in your object, you can save some CPU time
  10393. * by calling clone(obj, false).
  10394. *
  10395. * Caution: if `circular` is false and `parent` contains circular references,
  10396. * your program may enter an infinite loop and crash.
  10397. *
  10398. * @param `parent` - the object to be cloned
  10399. * @param `circular` - set to true if the object to be cloned may contain
  10400. * circular references. (optional - true by default)
  10401. * @param `depth` - set to a number if the object is only to be cloned to
  10402. * a particular depth. (optional - defaults to Infinity)
  10403. * @param `prototype` - sets the prototype to be used when cloning an object.
  10404. * (optional - defaults to parent prototype).
  10405. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10406. * should be cloned as well. Non-enumerable properties on the prototype
  10407. * chain will be ignored. (optional - false by default)
  10408. */
  10409. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10410. if ((0, _typeof2.default)(circular) === 'object') {
  10411. depth = circular.depth;
  10412. prototype = circular.prototype;
  10413. includeNonEnumerable = circular.includeNonEnumerable;
  10414. circular = circular.circular;
  10415. }
  10416. // maintain two arrays for circular references, where corresponding parents
  10417. // and children have the same index
  10418. var allParents = [];
  10419. var allChildren = [];
  10420. var useBuffer = typeof Buffer != 'undefined';
  10421. if (typeof circular == 'undefined') circular = true;
  10422. if (typeof depth == 'undefined') depth = Infinity;
  10423. // recurse this function so we don't reset allParents and allChildren
  10424. function _clone(parent, depth) {
  10425. // cloning null always returns null
  10426. if (parent === null) return null;
  10427. if (depth === 0) return parent;
  10428. var child;
  10429. var proto;
  10430. if ((0, _typeof2.default)(parent) != 'object') {
  10431. return parent;
  10432. }
  10433. if (_instanceof(parent, nativeMap)) {
  10434. child = new nativeMap();
  10435. } else if (_instanceof(parent, nativeSet)) {
  10436. child = new nativeSet();
  10437. } else if (_instanceof(parent, nativePromise)) {
  10438. child = new nativePromise(function (resolve, reject) {
  10439. parent.then(function (value) {
  10440. resolve(_clone(value, depth - 1));
  10441. }, function (err) {
  10442. reject(_clone(err, depth - 1));
  10443. });
  10444. });
  10445. } else if (clone.__isArray(parent)) {
  10446. child = [];
  10447. } else if (clone.__isRegExp(parent)) {
  10448. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10449. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10450. } else if (clone.__isDate(parent)) {
  10451. child = new Date(parent.getTime());
  10452. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10453. if (Buffer.from) {
  10454. // Node.js >= 5.10.0
  10455. child = Buffer.from(parent);
  10456. } else {
  10457. // Older Node.js versions
  10458. child = new Buffer(parent.length);
  10459. parent.copy(child);
  10460. }
  10461. return child;
  10462. } else if (_instanceof(parent, Error)) {
  10463. child = Object.create(parent);
  10464. } else {
  10465. if (typeof prototype == 'undefined') {
  10466. proto = Object.getPrototypeOf(parent);
  10467. child = Object.create(proto);
  10468. } else {
  10469. child = Object.create(prototype);
  10470. proto = prototype;
  10471. }
  10472. }
  10473. if (circular) {
  10474. var index = allParents.indexOf(parent);
  10475. if (index != -1) {
  10476. return allChildren[index];
  10477. }
  10478. allParents.push(parent);
  10479. allChildren.push(child);
  10480. }
  10481. if (_instanceof(parent, nativeMap)) {
  10482. parent.forEach(function (value, key) {
  10483. var keyChild = _clone(key, depth - 1);
  10484. var valueChild = _clone(value, depth - 1);
  10485. child.set(keyChild, valueChild);
  10486. });
  10487. }
  10488. if (_instanceof(parent, nativeSet)) {
  10489. parent.forEach(function (value) {
  10490. var entryChild = _clone(value, depth - 1);
  10491. child.add(entryChild);
  10492. });
  10493. }
  10494. for (var i in parent) {
  10495. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10496. if (attrs) {
  10497. child[i] = _clone(parent[i], depth - 1);
  10498. }
  10499. try {
  10500. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10501. if (objProperty.set === 'undefined') {
  10502. // no setter defined. Skip cloning this property
  10503. continue;
  10504. }
  10505. child[i] = _clone(parent[i], depth - 1);
  10506. } catch (e) {
  10507. if (e instanceof TypeError) {
  10508. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10509. // we can't do anything about this, other than inform the user that this property cannot be set.
  10510. continue;
  10511. } else if (e instanceof ReferenceError) {
  10512. //this may happen in non strict mode
  10513. continue;
  10514. }
  10515. }
  10516. }
  10517. if (Object.getOwnPropertySymbols) {
  10518. var symbols = Object.getOwnPropertySymbols(parent);
  10519. for (var i = 0; i < symbols.length; i++) {
  10520. // Don't need to worry about cloning a symbol because it is a primitive,
  10521. // like a number or string.
  10522. var symbol = symbols[i];
  10523. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10524. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10525. continue;
  10526. }
  10527. child[symbol] = _clone(parent[symbol], depth - 1);
  10528. Object.defineProperty(child, symbol, descriptor);
  10529. }
  10530. }
  10531. if (includeNonEnumerable) {
  10532. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10533. for (var i = 0; i < allPropertyNames.length; i++) {
  10534. var propertyName = allPropertyNames[i];
  10535. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10536. if (descriptor && descriptor.enumerable) {
  10537. continue;
  10538. }
  10539. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10540. Object.defineProperty(child, propertyName, descriptor);
  10541. }
  10542. }
  10543. return child;
  10544. }
  10545. return _clone(parent, depth);
  10546. }
  10547. /**
  10548. * Simple flat clone using prototype, accepts only objects, usefull for property
  10549. * override on FLAT configuration object (no nested props).
  10550. *
  10551. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10552. * works.
  10553. */
  10554. clone.clonePrototype = function clonePrototype(parent) {
  10555. if (parent === null) return null;
  10556. var c = function c() {};
  10557. c.prototype = parent;
  10558. return new c();
  10559. };
  10560. // private utility functions
  10561. function __objToStr(o) {
  10562. return Object.prototype.toString.call(o);
  10563. }
  10564. clone.__objToStr = __objToStr;
  10565. function __isDate(o) {
  10566. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10567. }
  10568. clone.__isDate = __isDate;
  10569. function __isArray(o) {
  10570. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10571. }
  10572. clone.__isArray = __isArray;
  10573. function __isRegExp(o) {
  10574. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10575. }
  10576. clone.__isRegExp = __isRegExp;
  10577. function __getRegExpFlags(re) {
  10578. var flags = '';
  10579. if (re.global) flags += 'g';
  10580. if (re.ignoreCase) flags += 'i';
  10581. if (re.multiline) flags += 'm';
  10582. return flags;
  10583. }
  10584. clone.__getRegExpFlags = __getRegExpFlags;
  10585. return clone;
  10586. }();
  10587. var _default = clone;
  10588. exports.default = _default;
  10589. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 54).Buffer))
  10590. /***/ }),
  10591. /* 54 */
  10592. /*!**************************************!*\
  10593. !*** ./node_modules/buffer/index.js ***!
  10594. \**************************************/
  10595. /*! no static exports found */
  10596. /***/ (function(module, exports, __webpack_require__) {
  10597. "use strict";
  10598. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10599. * The buffer module from node.js, for the browser.
  10600. *
  10601. * @author Feross Aboukhadijeh <http://feross.org>
  10602. * @license MIT
  10603. */
  10604. /* eslint-disable no-proto */
  10605. var base64 = __webpack_require__(/*! base64-js */ 55)
  10606. var ieee754 = __webpack_require__(/*! ieee754 */ 56)
  10607. var isArray = __webpack_require__(/*! isarray */ 57)
  10608. exports.Buffer = Buffer
  10609. exports.SlowBuffer = SlowBuffer
  10610. exports.INSPECT_MAX_BYTES = 50
  10611. /**
  10612. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10613. * === true Use Uint8Array implementation (fastest)
  10614. * === false Use Object implementation (most compatible, even IE6)
  10615. *
  10616. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10617. * Opera 11.6+, iOS 4.2+.
  10618. *
  10619. * Due to various browser bugs, sometimes the Object implementation will be used even
  10620. * when the browser supports typed arrays.
  10621. *
  10622. * Note:
  10623. *
  10624. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10625. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10626. *
  10627. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10628. *
  10629. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10630. * incorrect length in some situations.
  10631. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10632. * get the Object implementation, which is slower but behaves correctly.
  10633. */
  10634. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10635. ? global.TYPED_ARRAY_SUPPORT
  10636. : typedArraySupport()
  10637. /*
  10638. * Export kMaxLength after typed array support is determined.
  10639. */
  10640. exports.kMaxLength = kMaxLength()
  10641. function typedArraySupport () {
  10642. try {
  10643. var arr = new Uint8Array(1)
  10644. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10645. return arr.foo() === 42 && // typed array instances can be augmented
  10646. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10647. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10648. } catch (e) {
  10649. return false
  10650. }
  10651. }
  10652. function kMaxLength () {
  10653. return Buffer.TYPED_ARRAY_SUPPORT
  10654. ? 0x7fffffff
  10655. : 0x3fffffff
  10656. }
  10657. function createBuffer (that, length) {
  10658. if (kMaxLength() < length) {
  10659. throw new RangeError('Invalid typed array length')
  10660. }
  10661. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10662. // Return an augmented `Uint8Array` instance, for best performance
  10663. that = new Uint8Array(length)
  10664. that.__proto__ = Buffer.prototype
  10665. } else {
  10666. // Fallback: Return an object instance of the Buffer class
  10667. if (that === null) {
  10668. that = new Buffer(length)
  10669. }
  10670. that.length = length
  10671. }
  10672. return that
  10673. }
  10674. /**
  10675. * The Buffer constructor returns instances of `Uint8Array` that have their
  10676. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10677. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10678. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10679. * returns a single octet.
  10680. *
  10681. * The `Uint8Array` prototype remains unmodified.
  10682. */
  10683. function Buffer (arg, encodingOrOffset, length) {
  10684. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10685. return new Buffer(arg, encodingOrOffset, length)
  10686. }
  10687. // Common case.
  10688. if (typeof arg === 'number') {
  10689. if (typeof encodingOrOffset === 'string') {
  10690. throw new Error(
  10691. 'If encoding is specified then the first argument must be a string'
  10692. )
  10693. }
  10694. return allocUnsafe(this, arg)
  10695. }
  10696. return from(this, arg, encodingOrOffset, length)
  10697. }
  10698. Buffer.poolSize = 8192 // not used by this implementation
  10699. // TODO: Legacy, not needed anymore. Remove in next major version.
  10700. Buffer._augment = function (arr) {
  10701. arr.__proto__ = Buffer.prototype
  10702. return arr
  10703. }
  10704. function from (that, value, encodingOrOffset, length) {
  10705. if (typeof value === 'number') {
  10706. throw new TypeError('"value" argument must not be a number')
  10707. }
  10708. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10709. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10710. }
  10711. if (typeof value === 'string') {
  10712. return fromString(that, value, encodingOrOffset)
  10713. }
  10714. return fromObject(that, value)
  10715. }
  10716. /**
  10717. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10718. * if value is a number.
  10719. * Buffer.from(str[, encoding])
  10720. * Buffer.from(array)
  10721. * Buffer.from(buffer)
  10722. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10723. **/
  10724. Buffer.from = function (value, encodingOrOffset, length) {
  10725. return from(null, value, encodingOrOffset, length)
  10726. }
  10727. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10728. Buffer.prototype.__proto__ = Uint8Array.prototype
  10729. Buffer.__proto__ = Uint8Array
  10730. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10731. Buffer[Symbol.species] === Buffer) {
  10732. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10733. Object.defineProperty(Buffer, Symbol.species, {
  10734. value: null,
  10735. configurable: true
  10736. })
  10737. }
  10738. }
  10739. function assertSize (size) {
  10740. if (typeof size !== 'number') {
  10741. throw new TypeError('"size" argument must be a number')
  10742. } else if (size < 0) {
  10743. throw new RangeError('"size" argument must not be negative')
  10744. }
  10745. }
  10746. function alloc (that, size, fill, encoding) {
  10747. assertSize(size)
  10748. if (size <= 0) {
  10749. return createBuffer(that, size)
  10750. }
  10751. if (fill !== undefined) {
  10752. // Only pay attention to encoding if it's a string. This
  10753. // prevents accidentally sending in a number that would
  10754. // be interpretted as a start offset.
  10755. return typeof encoding === 'string'
  10756. ? createBuffer(that, size).fill(fill, encoding)
  10757. : createBuffer(that, size).fill(fill)
  10758. }
  10759. return createBuffer(that, size)
  10760. }
  10761. /**
  10762. * Creates a new filled Buffer instance.
  10763. * alloc(size[, fill[, encoding]])
  10764. **/
  10765. Buffer.alloc = function (size, fill, encoding) {
  10766. return alloc(null, size, fill, encoding)
  10767. }
  10768. function allocUnsafe (that, size) {
  10769. assertSize(size)
  10770. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10771. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10772. for (var i = 0; i < size; ++i) {
  10773. that[i] = 0
  10774. }
  10775. }
  10776. return that
  10777. }
  10778. /**
  10779. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10780. * */
  10781. Buffer.allocUnsafe = function (size) {
  10782. return allocUnsafe(null, size)
  10783. }
  10784. /**
  10785. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10786. */
  10787. Buffer.allocUnsafeSlow = function (size) {
  10788. return allocUnsafe(null, size)
  10789. }
  10790. function fromString (that, string, encoding) {
  10791. if (typeof encoding !== 'string' || encoding === '') {
  10792. encoding = 'utf8'
  10793. }
  10794. if (!Buffer.isEncoding(encoding)) {
  10795. throw new TypeError('"encoding" must be a valid string encoding')
  10796. }
  10797. var length = byteLength(string, encoding) | 0
  10798. that = createBuffer(that, length)
  10799. var actual = that.write(string, encoding)
  10800. if (actual !== length) {
  10801. // Writing a hex string, for example, that contains invalid characters will
  10802. // cause everything after the first invalid character to be ignored. (e.g.
  10803. // 'abxxcd' will be treated as 'ab')
  10804. that = that.slice(0, actual)
  10805. }
  10806. return that
  10807. }
  10808. function fromArrayLike (that, array) {
  10809. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10810. that = createBuffer(that, length)
  10811. for (var i = 0; i < length; i += 1) {
  10812. that[i] = array[i] & 255
  10813. }
  10814. return that
  10815. }
  10816. function fromArrayBuffer (that, array, byteOffset, length) {
  10817. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10818. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10819. throw new RangeError('\'offset\' is out of bounds')
  10820. }
  10821. if (array.byteLength < byteOffset + (length || 0)) {
  10822. throw new RangeError('\'length\' is out of bounds')
  10823. }
  10824. if (byteOffset === undefined && length === undefined) {
  10825. array = new Uint8Array(array)
  10826. } else if (length === undefined) {
  10827. array = new Uint8Array(array, byteOffset)
  10828. } else {
  10829. array = new Uint8Array(array, byteOffset, length)
  10830. }
  10831. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10832. // Return an augmented `Uint8Array` instance, for best performance
  10833. that = array
  10834. that.__proto__ = Buffer.prototype
  10835. } else {
  10836. // Fallback: Return an object instance of the Buffer class
  10837. that = fromArrayLike(that, array)
  10838. }
  10839. return that
  10840. }
  10841. function fromObject (that, obj) {
  10842. if (Buffer.isBuffer(obj)) {
  10843. var len = checked(obj.length) | 0
  10844. that = createBuffer(that, len)
  10845. if (that.length === 0) {
  10846. return that
  10847. }
  10848. obj.copy(that, 0, 0, len)
  10849. return that
  10850. }
  10851. if (obj) {
  10852. if ((typeof ArrayBuffer !== 'undefined' &&
  10853. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10854. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10855. return createBuffer(that, 0)
  10856. }
  10857. return fromArrayLike(that, obj)
  10858. }
  10859. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10860. return fromArrayLike(that, obj.data)
  10861. }
  10862. }
  10863. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10864. }
  10865. function checked (length) {
  10866. // Note: cannot use `length < kMaxLength()` here because that fails when
  10867. // length is NaN (which is otherwise coerced to zero.)
  10868. if (length >= kMaxLength()) {
  10869. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10870. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10871. }
  10872. return length | 0
  10873. }
  10874. function SlowBuffer (length) {
  10875. if (+length != length) { // eslint-disable-line eqeqeq
  10876. length = 0
  10877. }
  10878. return Buffer.alloc(+length)
  10879. }
  10880. Buffer.isBuffer = function isBuffer (b) {
  10881. return !!(b != null && b._isBuffer)
  10882. }
  10883. Buffer.compare = function compare (a, b) {
  10884. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10885. throw new TypeError('Arguments must be Buffers')
  10886. }
  10887. if (a === b) return 0
  10888. var x = a.length
  10889. var y = b.length
  10890. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10891. if (a[i] !== b[i]) {
  10892. x = a[i]
  10893. y = b[i]
  10894. break
  10895. }
  10896. }
  10897. if (x < y) return -1
  10898. if (y < x) return 1
  10899. return 0
  10900. }
  10901. Buffer.isEncoding = function isEncoding (encoding) {
  10902. switch (String(encoding).toLowerCase()) {
  10903. case 'hex':
  10904. case 'utf8':
  10905. case 'utf-8':
  10906. case 'ascii':
  10907. case 'latin1':
  10908. case 'binary':
  10909. case 'base64':
  10910. case 'ucs2':
  10911. case 'ucs-2':
  10912. case 'utf16le':
  10913. case 'utf-16le':
  10914. return true
  10915. default:
  10916. return false
  10917. }
  10918. }
  10919. Buffer.concat = function concat (list, length) {
  10920. if (!isArray(list)) {
  10921. throw new TypeError('"list" argument must be an Array of Buffers')
  10922. }
  10923. if (list.length === 0) {
  10924. return Buffer.alloc(0)
  10925. }
  10926. var i
  10927. if (length === undefined) {
  10928. length = 0
  10929. for (i = 0; i < list.length; ++i) {
  10930. length += list[i].length
  10931. }
  10932. }
  10933. var buffer = Buffer.allocUnsafe(length)
  10934. var pos = 0
  10935. for (i = 0; i < list.length; ++i) {
  10936. var buf = list[i]
  10937. if (!Buffer.isBuffer(buf)) {
  10938. throw new TypeError('"list" argument must be an Array of Buffers')
  10939. }
  10940. buf.copy(buffer, pos)
  10941. pos += buf.length
  10942. }
  10943. return buffer
  10944. }
  10945. function byteLength (string, encoding) {
  10946. if (Buffer.isBuffer(string)) {
  10947. return string.length
  10948. }
  10949. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10950. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10951. return string.byteLength
  10952. }
  10953. if (typeof string !== 'string') {
  10954. string = '' + string
  10955. }
  10956. var len = string.length
  10957. if (len === 0) return 0
  10958. // Use a for loop to avoid recursion
  10959. var loweredCase = false
  10960. for (;;) {
  10961. switch (encoding) {
  10962. case 'ascii':
  10963. case 'latin1':
  10964. case 'binary':
  10965. return len
  10966. case 'utf8':
  10967. case 'utf-8':
  10968. case undefined:
  10969. return utf8ToBytes(string).length
  10970. case 'ucs2':
  10971. case 'ucs-2':
  10972. case 'utf16le':
  10973. case 'utf-16le':
  10974. return len * 2
  10975. case 'hex':
  10976. return len >>> 1
  10977. case 'base64':
  10978. return base64ToBytes(string).length
  10979. default:
  10980. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10981. encoding = ('' + encoding).toLowerCase()
  10982. loweredCase = true
  10983. }
  10984. }
  10985. }
  10986. Buffer.byteLength = byteLength
  10987. function slowToString (encoding, start, end) {
  10988. var loweredCase = false
  10989. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10990. // property of a typed array.
  10991. // This behaves neither like String nor Uint8Array in that we set start/end
  10992. // to their upper/lower bounds if the value passed is out of range.
  10993. // undefined is handled specially as per ECMA-262 6th Edition,
  10994. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10995. if (start === undefined || start < 0) {
  10996. start = 0
  10997. }
  10998. // Return early if start > this.length. Done here to prevent potential uint32
  10999. // coercion fail below.
  11000. if (start > this.length) {
  11001. return ''
  11002. }
  11003. if (end === undefined || end > this.length) {
  11004. end = this.length
  11005. }
  11006. if (end <= 0) {
  11007. return ''
  11008. }
  11009. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  11010. end >>>= 0
  11011. start >>>= 0
  11012. if (end <= start) {
  11013. return ''
  11014. }
  11015. if (!encoding) encoding = 'utf8'
  11016. while (true) {
  11017. switch (encoding) {
  11018. case 'hex':
  11019. return hexSlice(this, start, end)
  11020. case 'utf8':
  11021. case 'utf-8':
  11022. return utf8Slice(this, start, end)
  11023. case 'ascii':
  11024. return asciiSlice(this, start, end)
  11025. case 'latin1':
  11026. case 'binary':
  11027. return latin1Slice(this, start, end)
  11028. case 'base64':
  11029. return base64Slice(this, start, end)
  11030. case 'ucs2':
  11031. case 'ucs-2':
  11032. case 'utf16le':
  11033. case 'utf-16le':
  11034. return utf16leSlice(this, start, end)
  11035. default:
  11036. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11037. encoding = (encoding + '').toLowerCase()
  11038. loweredCase = true
  11039. }
  11040. }
  11041. }
  11042. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  11043. // Buffer instances.
  11044. Buffer.prototype._isBuffer = true
  11045. function swap (b, n, m) {
  11046. var i = b[n]
  11047. b[n] = b[m]
  11048. b[m] = i
  11049. }
  11050. Buffer.prototype.swap16 = function swap16 () {
  11051. var len = this.length
  11052. if (len % 2 !== 0) {
  11053. throw new RangeError('Buffer size must be a multiple of 16-bits')
  11054. }
  11055. for (var i = 0; i < len; i += 2) {
  11056. swap(this, i, i + 1)
  11057. }
  11058. return this
  11059. }
  11060. Buffer.prototype.swap32 = function swap32 () {
  11061. var len = this.length
  11062. if (len % 4 !== 0) {
  11063. throw new RangeError('Buffer size must be a multiple of 32-bits')
  11064. }
  11065. for (var i = 0; i < len; i += 4) {
  11066. swap(this, i, i + 3)
  11067. swap(this, i + 1, i + 2)
  11068. }
  11069. return this
  11070. }
  11071. Buffer.prototype.swap64 = function swap64 () {
  11072. var len = this.length
  11073. if (len % 8 !== 0) {
  11074. throw new RangeError('Buffer size must be a multiple of 64-bits')
  11075. }
  11076. for (var i = 0; i < len; i += 8) {
  11077. swap(this, i, i + 7)
  11078. swap(this, i + 1, i + 6)
  11079. swap(this, i + 2, i + 5)
  11080. swap(this, i + 3, i + 4)
  11081. }
  11082. return this
  11083. }
  11084. Buffer.prototype.toString = function toString () {
  11085. var length = this.length | 0
  11086. if (length === 0) return ''
  11087. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11088. return slowToString.apply(this, arguments)
  11089. }
  11090. Buffer.prototype.equals = function equals (b) {
  11091. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11092. if (this === b) return true
  11093. return Buffer.compare(this, b) === 0
  11094. }
  11095. Buffer.prototype.inspect = function inspect () {
  11096. var str = ''
  11097. var max = exports.INSPECT_MAX_BYTES
  11098. if (this.length > 0) {
  11099. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11100. if (this.length > max) str += ' ... '
  11101. }
  11102. return '<Buffer ' + str + '>'
  11103. }
  11104. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11105. if (!Buffer.isBuffer(target)) {
  11106. throw new TypeError('Argument must be a Buffer')
  11107. }
  11108. if (start === undefined) {
  11109. start = 0
  11110. }
  11111. if (end === undefined) {
  11112. end = target ? target.length : 0
  11113. }
  11114. if (thisStart === undefined) {
  11115. thisStart = 0
  11116. }
  11117. if (thisEnd === undefined) {
  11118. thisEnd = this.length
  11119. }
  11120. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11121. throw new RangeError('out of range index')
  11122. }
  11123. if (thisStart >= thisEnd && start >= end) {
  11124. return 0
  11125. }
  11126. if (thisStart >= thisEnd) {
  11127. return -1
  11128. }
  11129. if (start >= end) {
  11130. return 1
  11131. }
  11132. start >>>= 0
  11133. end >>>= 0
  11134. thisStart >>>= 0
  11135. thisEnd >>>= 0
  11136. if (this === target) return 0
  11137. var x = thisEnd - thisStart
  11138. var y = end - start
  11139. var len = Math.min(x, y)
  11140. var thisCopy = this.slice(thisStart, thisEnd)
  11141. var targetCopy = target.slice(start, end)
  11142. for (var i = 0; i < len; ++i) {
  11143. if (thisCopy[i] !== targetCopy[i]) {
  11144. x = thisCopy[i]
  11145. y = targetCopy[i]
  11146. break
  11147. }
  11148. }
  11149. if (x < y) return -1
  11150. if (y < x) return 1
  11151. return 0
  11152. }
  11153. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11154. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11155. //
  11156. // Arguments:
  11157. // - buffer - a Buffer to search
  11158. // - val - a string, Buffer, or number
  11159. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11160. // - encoding - an optional encoding, relevant is val is a string
  11161. // - dir - true for indexOf, false for lastIndexOf
  11162. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11163. // Empty buffer means no match
  11164. if (buffer.length === 0) return -1
  11165. // Normalize byteOffset
  11166. if (typeof byteOffset === 'string') {
  11167. encoding = byteOffset
  11168. byteOffset = 0
  11169. } else if (byteOffset > 0x7fffffff) {
  11170. byteOffset = 0x7fffffff
  11171. } else if (byteOffset < -0x80000000) {
  11172. byteOffset = -0x80000000
  11173. }
  11174. byteOffset = +byteOffset // Coerce to Number.
  11175. if (isNaN(byteOffset)) {
  11176. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  11177. byteOffset = dir ? 0 : (buffer.length - 1)
  11178. }
  11179. // Normalize byteOffset: negative offsets start from the end of the buffer
  11180. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11181. if (byteOffset >= buffer.length) {
  11182. if (dir) return -1
  11183. else byteOffset = buffer.length - 1
  11184. } else if (byteOffset < 0) {
  11185. if (dir) byteOffset = 0
  11186. else return -1
  11187. }
  11188. // Normalize val
  11189. if (typeof val === 'string') {
  11190. val = Buffer.from(val, encoding)
  11191. }
  11192. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11193. if (Buffer.isBuffer(val)) {
  11194. // Special case: looking for empty string/buffer always fails
  11195. if (val.length === 0) {
  11196. return -1
  11197. }
  11198. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11199. } else if (typeof val === 'number') {
  11200. val = val & 0xFF // Search for a byte value [0-255]
  11201. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11202. typeof Uint8Array.prototype.indexOf === 'function') {
  11203. if (dir) {
  11204. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11205. } else {
  11206. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11207. }
  11208. }
  11209. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11210. }
  11211. throw new TypeError('val must be string, number or Buffer')
  11212. }
  11213. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11214. var indexSize = 1
  11215. var arrLength = arr.length
  11216. var valLength = val.length
  11217. if (encoding !== undefined) {
  11218. encoding = String(encoding).toLowerCase()
  11219. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11220. encoding === 'utf16le' || encoding === 'utf-16le') {
  11221. if (arr.length < 2 || val.length < 2) {
  11222. return -1
  11223. }
  11224. indexSize = 2
  11225. arrLength /= 2
  11226. valLength /= 2
  11227. byteOffset /= 2
  11228. }
  11229. }
  11230. function read (buf, i) {
  11231. if (indexSize === 1) {
  11232. return buf[i]
  11233. } else {
  11234. return buf.readUInt16BE(i * indexSize)
  11235. }
  11236. }
  11237. var i
  11238. if (dir) {
  11239. var foundIndex = -1
  11240. for (i = byteOffset; i < arrLength; i++) {
  11241. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11242. if (foundIndex === -1) foundIndex = i
  11243. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11244. } else {
  11245. if (foundIndex !== -1) i -= i - foundIndex
  11246. foundIndex = -1
  11247. }
  11248. }
  11249. } else {
  11250. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11251. for (i = byteOffset; i >= 0; i--) {
  11252. var found = true
  11253. for (var j = 0; j < valLength; j++) {
  11254. if (read(arr, i + j) !== read(val, j)) {
  11255. found = false
  11256. break
  11257. }
  11258. }
  11259. if (found) return i
  11260. }
  11261. }
  11262. return -1
  11263. }
  11264. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11265. return this.indexOf(val, byteOffset, encoding) !== -1
  11266. }
  11267. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11268. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11269. }
  11270. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11271. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11272. }
  11273. function hexWrite (buf, string, offset, length) {
  11274. offset = Number(offset) || 0
  11275. var remaining = buf.length - offset
  11276. if (!length) {
  11277. length = remaining
  11278. } else {
  11279. length = Number(length)
  11280. if (length > remaining) {
  11281. length = remaining
  11282. }
  11283. }
  11284. // must be an even number of digits
  11285. var strLen = string.length
  11286. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11287. if (length > strLen / 2) {
  11288. length = strLen / 2
  11289. }
  11290. for (var i = 0; i < length; ++i) {
  11291. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11292. if (isNaN(parsed)) return i
  11293. buf[offset + i] = parsed
  11294. }
  11295. return i
  11296. }
  11297. function utf8Write (buf, string, offset, length) {
  11298. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11299. }
  11300. function asciiWrite (buf, string, offset, length) {
  11301. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11302. }
  11303. function latin1Write (buf, string, offset, length) {
  11304. return asciiWrite(buf, string, offset, length)
  11305. }
  11306. function base64Write (buf, string, offset, length) {
  11307. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11308. }
  11309. function ucs2Write (buf, string, offset, length) {
  11310. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11311. }
  11312. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11313. // Buffer#write(string)
  11314. if (offset === undefined) {
  11315. encoding = 'utf8'
  11316. length = this.length
  11317. offset = 0
  11318. // Buffer#write(string, encoding)
  11319. } else if (length === undefined && typeof offset === 'string') {
  11320. encoding = offset
  11321. length = this.length
  11322. offset = 0
  11323. // Buffer#write(string, offset[, length][, encoding])
  11324. } else if (isFinite(offset)) {
  11325. offset = offset | 0
  11326. if (isFinite(length)) {
  11327. length = length | 0
  11328. if (encoding === undefined) encoding = 'utf8'
  11329. } else {
  11330. encoding = length
  11331. length = undefined
  11332. }
  11333. // legacy write(string, encoding, offset, length) - remove in v0.13
  11334. } else {
  11335. throw new Error(
  11336. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11337. )
  11338. }
  11339. var remaining = this.length - offset
  11340. if (length === undefined || length > remaining) length = remaining
  11341. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11342. throw new RangeError('Attempt to write outside buffer bounds')
  11343. }
  11344. if (!encoding) encoding = 'utf8'
  11345. var loweredCase = false
  11346. for (;;) {
  11347. switch (encoding) {
  11348. case 'hex':
  11349. return hexWrite(this, string, offset, length)
  11350. case 'utf8':
  11351. case 'utf-8':
  11352. return utf8Write(this, string, offset, length)
  11353. case 'ascii':
  11354. return asciiWrite(this, string, offset, length)
  11355. case 'latin1':
  11356. case 'binary':
  11357. return latin1Write(this, string, offset, length)
  11358. case 'base64':
  11359. // Warning: maxLength not taken into account in base64Write
  11360. return base64Write(this, string, offset, length)
  11361. case 'ucs2':
  11362. case 'ucs-2':
  11363. case 'utf16le':
  11364. case 'utf-16le':
  11365. return ucs2Write(this, string, offset, length)
  11366. default:
  11367. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11368. encoding = ('' + encoding).toLowerCase()
  11369. loweredCase = true
  11370. }
  11371. }
  11372. }
  11373. Buffer.prototype.toJSON = function toJSON () {
  11374. return {
  11375. type: 'Buffer',
  11376. data: Array.prototype.slice.call(this._arr || this, 0)
  11377. }
  11378. }
  11379. function base64Slice (buf, start, end) {
  11380. if (start === 0 && end === buf.length) {
  11381. return base64.fromByteArray(buf)
  11382. } else {
  11383. return base64.fromByteArray(buf.slice(start, end))
  11384. }
  11385. }
  11386. function utf8Slice (buf, start, end) {
  11387. end = Math.min(buf.length, end)
  11388. var res = []
  11389. var i = start
  11390. while (i < end) {
  11391. var firstByte = buf[i]
  11392. var codePoint = null
  11393. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11394. : (firstByte > 0xDF) ? 3
  11395. : (firstByte > 0xBF) ? 2
  11396. : 1
  11397. if (i + bytesPerSequence <= end) {
  11398. var secondByte, thirdByte, fourthByte, tempCodePoint
  11399. switch (bytesPerSequence) {
  11400. case 1:
  11401. if (firstByte < 0x80) {
  11402. codePoint = firstByte
  11403. }
  11404. break
  11405. case 2:
  11406. secondByte = buf[i + 1]
  11407. if ((secondByte & 0xC0) === 0x80) {
  11408. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11409. if (tempCodePoint > 0x7F) {
  11410. codePoint = tempCodePoint
  11411. }
  11412. }
  11413. break
  11414. case 3:
  11415. secondByte = buf[i + 1]
  11416. thirdByte = buf[i + 2]
  11417. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11418. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11419. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11420. codePoint = tempCodePoint
  11421. }
  11422. }
  11423. break
  11424. case 4:
  11425. secondByte = buf[i + 1]
  11426. thirdByte = buf[i + 2]
  11427. fourthByte = buf[i + 3]
  11428. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11429. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11430. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11431. codePoint = tempCodePoint
  11432. }
  11433. }
  11434. }
  11435. }
  11436. if (codePoint === null) {
  11437. // we did not generate a valid codePoint so insert a
  11438. // replacement char (U+FFFD) and advance only 1 byte
  11439. codePoint = 0xFFFD
  11440. bytesPerSequence = 1
  11441. } else if (codePoint > 0xFFFF) {
  11442. // encode to utf16 (surrogate pair dance)
  11443. codePoint -= 0x10000
  11444. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11445. codePoint = 0xDC00 | codePoint & 0x3FF
  11446. }
  11447. res.push(codePoint)
  11448. i += bytesPerSequence
  11449. }
  11450. return decodeCodePointsArray(res)
  11451. }
  11452. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11453. // the lowest limit is Chrome, with 0x10000 args.
  11454. // We go 1 magnitude less, for safety
  11455. var MAX_ARGUMENTS_LENGTH = 0x1000
  11456. function decodeCodePointsArray (codePoints) {
  11457. var len = codePoints.length
  11458. if (len <= MAX_ARGUMENTS_LENGTH) {
  11459. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11460. }
  11461. // Decode in chunks to avoid "call stack size exceeded".
  11462. var res = ''
  11463. var i = 0
  11464. while (i < len) {
  11465. res += String.fromCharCode.apply(
  11466. String,
  11467. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11468. )
  11469. }
  11470. return res
  11471. }
  11472. function asciiSlice (buf, start, end) {
  11473. var ret = ''
  11474. end = Math.min(buf.length, end)
  11475. for (var i = start; i < end; ++i) {
  11476. ret += String.fromCharCode(buf[i] & 0x7F)
  11477. }
  11478. return ret
  11479. }
  11480. function latin1Slice (buf, start, end) {
  11481. var ret = ''
  11482. end = Math.min(buf.length, end)
  11483. for (var i = start; i < end; ++i) {
  11484. ret += String.fromCharCode(buf[i])
  11485. }
  11486. return ret
  11487. }
  11488. function hexSlice (buf, start, end) {
  11489. var len = buf.length
  11490. if (!start || start < 0) start = 0
  11491. if (!end || end < 0 || end > len) end = len
  11492. var out = ''
  11493. for (var i = start; i < end; ++i) {
  11494. out += toHex(buf[i])
  11495. }
  11496. return out
  11497. }
  11498. function utf16leSlice (buf, start, end) {
  11499. var bytes = buf.slice(start, end)
  11500. var res = ''
  11501. for (var i = 0; i < bytes.length; i += 2) {
  11502. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11503. }
  11504. return res
  11505. }
  11506. Buffer.prototype.slice = function slice (start, end) {
  11507. var len = this.length
  11508. start = ~~start
  11509. end = end === undefined ? len : ~~end
  11510. if (start < 0) {
  11511. start += len
  11512. if (start < 0) start = 0
  11513. } else if (start > len) {
  11514. start = len
  11515. }
  11516. if (end < 0) {
  11517. end += len
  11518. if (end < 0) end = 0
  11519. } else if (end > len) {
  11520. end = len
  11521. }
  11522. if (end < start) end = start
  11523. var newBuf
  11524. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11525. newBuf = this.subarray(start, end)
  11526. newBuf.__proto__ = Buffer.prototype
  11527. } else {
  11528. var sliceLen = end - start
  11529. newBuf = new Buffer(sliceLen, undefined)
  11530. for (var i = 0; i < sliceLen; ++i) {
  11531. newBuf[i] = this[i + start]
  11532. }
  11533. }
  11534. return newBuf
  11535. }
  11536. /*
  11537. * Need to make sure that buffer isn't trying to write out of bounds.
  11538. */
  11539. function checkOffset (offset, ext, length) {
  11540. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11541. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11542. }
  11543. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11544. offset = offset | 0
  11545. byteLength = byteLength | 0
  11546. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11547. var val = this[offset]
  11548. var mul = 1
  11549. var i = 0
  11550. while (++i < byteLength && (mul *= 0x100)) {
  11551. val += this[offset + i] * mul
  11552. }
  11553. return val
  11554. }
  11555. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11556. offset = offset | 0
  11557. byteLength = byteLength | 0
  11558. if (!noAssert) {
  11559. checkOffset(offset, byteLength, this.length)
  11560. }
  11561. var val = this[offset + --byteLength]
  11562. var mul = 1
  11563. while (byteLength > 0 && (mul *= 0x100)) {
  11564. val += this[offset + --byteLength] * mul
  11565. }
  11566. return val
  11567. }
  11568. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11569. if (!noAssert) checkOffset(offset, 1, this.length)
  11570. return this[offset]
  11571. }
  11572. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11573. if (!noAssert) checkOffset(offset, 2, this.length)
  11574. return this[offset] | (this[offset + 1] << 8)
  11575. }
  11576. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11577. if (!noAssert) checkOffset(offset, 2, this.length)
  11578. return (this[offset] << 8) | this[offset + 1]
  11579. }
  11580. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11581. if (!noAssert) checkOffset(offset, 4, this.length)
  11582. return ((this[offset]) |
  11583. (this[offset + 1] << 8) |
  11584. (this[offset + 2] << 16)) +
  11585. (this[offset + 3] * 0x1000000)
  11586. }
  11587. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11588. if (!noAssert) checkOffset(offset, 4, this.length)
  11589. return (this[offset] * 0x1000000) +
  11590. ((this[offset + 1] << 16) |
  11591. (this[offset + 2] << 8) |
  11592. this[offset + 3])
  11593. }
  11594. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11595. offset = offset | 0
  11596. byteLength = byteLength | 0
  11597. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11598. var val = this[offset]
  11599. var mul = 1
  11600. var i = 0
  11601. while (++i < byteLength && (mul *= 0x100)) {
  11602. val += this[offset + i] * mul
  11603. }
  11604. mul *= 0x80
  11605. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11606. return val
  11607. }
  11608. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11609. offset = offset | 0
  11610. byteLength = byteLength | 0
  11611. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11612. var i = byteLength
  11613. var mul = 1
  11614. var val = this[offset + --i]
  11615. while (i > 0 && (mul *= 0x100)) {
  11616. val += this[offset + --i] * mul
  11617. }
  11618. mul *= 0x80
  11619. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11620. return val
  11621. }
  11622. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11623. if (!noAssert) checkOffset(offset, 1, this.length)
  11624. if (!(this[offset] & 0x80)) return (this[offset])
  11625. return ((0xff - this[offset] + 1) * -1)
  11626. }
  11627. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11628. if (!noAssert) checkOffset(offset, 2, this.length)
  11629. var val = this[offset] | (this[offset + 1] << 8)
  11630. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11631. }
  11632. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11633. if (!noAssert) checkOffset(offset, 2, this.length)
  11634. var val = this[offset + 1] | (this[offset] << 8)
  11635. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11636. }
  11637. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11638. if (!noAssert) checkOffset(offset, 4, this.length)
  11639. return (this[offset]) |
  11640. (this[offset + 1] << 8) |
  11641. (this[offset + 2] << 16) |
  11642. (this[offset + 3] << 24)
  11643. }
  11644. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11645. if (!noAssert) checkOffset(offset, 4, this.length)
  11646. return (this[offset] << 24) |
  11647. (this[offset + 1] << 16) |
  11648. (this[offset + 2] << 8) |
  11649. (this[offset + 3])
  11650. }
  11651. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11652. if (!noAssert) checkOffset(offset, 4, this.length)
  11653. return ieee754.read(this, offset, true, 23, 4)
  11654. }
  11655. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11656. if (!noAssert) checkOffset(offset, 4, this.length)
  11657. return ieee754.read(this, offset, false, 23, 4)
  11658. }
  11659. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11660. if (!noAssert) checkOffset(offset, 8, this.length)
  11661. return ieee754.read(this, offset, true, 52, 8)
  11662. }
  11663. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11664. if (!noAssert) checkOffset(offset, 8, this.length)
  11665. return ieee754.read(this, offset, false, 52, 8)
  11666. }
  11667. function checkInt (buf, value, offset, ext, max, min) {
  11668. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11669. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11670. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11671. }
  11672. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11673. value = +value
  11674. offset = offset | 0
  11675. byteLength = byteLength | 0
  11676. if (!noAssert) {
  11677. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11678. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11679. }
  11680. var mul = 1
  11681. var i = 0
  11682. this[offset] = value & 0xFF
  11683. while (++i < byteLength && (mul *= 0x100)) {
  11684. this[offset + i] = (value / mul) & 0xFF
  11685. }
  11686. return offset + byteLength
  11687. }
  11688. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11689. value = +value
  11690. offset = offset | 0
  11691. byteLength = byteLength | 0
  11692. if (!noAssert) {
  11693. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11694. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11695. }
  11696. var i = byteLength - 1
  11697. var mul = 1
  11698. this[offset + i] = value & 0xFF
  11699. while (--i >= 0 && (mul *= 0x100)) {
  11700. this[offset + i] = (value / mul) & 0xFF
  11701. }
  11702. return offset + byteLength
  11703. }
  11704. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11705. value = +value
  11706. offset = offset | 0
  11707. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11708. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11709. this[offset] = (value & 0xff)
  11710. return offset + 1
  11711. }
  11712. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11713. if (value < 0) value = 0xffff + value + 1
  11714. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11715. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11716. (littleEndian ? i : 1 - i) * 8
  11717. }
  11718. }
  11719. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11720. value = +value
  11721. offset = offset | 0
  11722. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11723. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11724. this[offset] = (value & 0xff)
  11725. this[offset + 1] = (value >>> 8)
  11726. } else {
  11727. objectWriteUInt16(this, value, offset, true)
  11728. }
  11729. return offset + 2
  11730. }
  11731. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11732. value = +value
  11733. offset = offset | 0
  11734. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11735. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11736. this[offset] = (value >>> 8)
  11737. this[offset + 1] = (value & 0xff)
  11738. } else {
  11739. objectWriteUInt16(this, value, offset, false)
  11740. }
  11741. return offset + 2
  11742. }
  11743. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11744. if (value < 0) value = 0xffffffff + value + 1
  11745. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11746. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11747. }
  11748. }
  11749. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11750. value = +value
  11751. offset = offset | 0
  11752. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11753. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11754. this[offset + 3] = (value >>> 24)
  11755. this[offset + 2] = (value >>> 16)
  11756. this[offset + 1] = (value >>> 8)
  11757. this[offset] = (value & 0xff)
  11758. } else {
  11759. objectWriteUInt32(this, value, offset, true)
  11760. }
  11761. return offset + 4
  11762. }
  11763. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11764. value = +value
  11765. offset = offset | 0
  11766. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11767. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11768. this[offset] = (value >>> 24)
  11769. this[offset + 1] = (value >>> 16)
  11770. this[offset + 2] = (value >>> 8)
  11771. this[offset + 3] = (value & 0xff)
  11772. } else {
  11773. objectWriteUInt32(this, value, offset, false)
  11774. }
  11775. return offset + 4
  11776. }
  11777. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11778. value = +value
  11779. offset = offset | 0
  11780. if (!noAssert) {
  11781. var limit = Math.pow(2, 8 * byteLength - 1)
  11782. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11783. }
  11784. var i = 0
  11785. var mul = 1
  11786. var sub = 0
  11787. this[offset] = value & 0xFF
  11788. while (++i < byteLength && (mul *= 0x100)) {
  11789. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11790. sub = 1
  11791. }
  11792. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11793. }
  11794. return offset + byteLength
  11795. }
  11796. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11797. value = +value
  11798. offset = offset | 0
  11799. if (!noAssert) {
  11800. var limit = Math.pow(2, 8 * byteLength - 1)
  11801. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11802. }
  11803. var i = byteLength - 1
  11804. var mul = 1
  11805. var sub = 0
  11806. this[offset + i] = value & 0xFF
  11807. while (--i >= 0 && (mul *= 0x100)) {
  11808. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11809. sub = 1
  11810. }
  11811. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11812. }
  11813. return offset + byteLength
  11814. }
  11815. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11816. value = +value
  11817. offset = offset | 0
  11818. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11819. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11820. if (value < 0) value = 0xff + value + 1
  11821. this[offset] = (value & 0xff)
  11822. return offset + 1
  11823. }
  11824. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11825. value = +value
  11826. offset = offset | 0
  11827. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11828. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11829. this[offset] = (value & 0xff)
  11830. this[offset + 1] = (value >>> 8)
  11831. } else {
  11832. objectWriteUInt16(this, value, offset, true)
  11833. }
  11834. return offset + 2
  11835. }
  11836. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11837. value = +value
  11838. offset = offset | 0
  11839. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11840. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11841. this[offset] = (value >>> 8)
  11842. this[offset + 1] = (value & 0xff)
  11843. } else {
  11844. objectWriteUInt16(this, value, offset, false)
  11845. }
  11846. return offset + 2
  11847. }
  11848. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11849. value = +value
  11850. offset = offset | 0
  11851. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11852. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11853. this[offset] = (value & 0xff)
  11854. this[offset + 1] = (value >>> 8)
  11855. this[offset + 2] = (value >>> 16)
  11856. this[offset + 3] = (value >>> 24)
  11857. } else {
  11858. objectWriteUInt32(this, value, offset, true)
  11859. }
  11860. return offset + 4
  11861. }
  11862. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11863. value = +value
  11864. offset = offset | 0
  11865. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11866. if (value < 0) value = 0xffffffff + value + 1
  11867. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11868. this[offset] = (value >>> 24)
  11869. this[offset + 1] = (value >>> 16)
  11870. this[offset + 2] = (value >>> 8)
  11871. this[offset + 3] = (value & 0xff)
  11872. } else {
  11873. objectWriteUInt32(this, value, offset, false)
  11874. }
  11875. return offset + 4
  11876. }
  11877. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11878. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11879. if (offset < 0) throw new RangeError('Index out of range')
  11880. }
  11881. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11882. if (!noAssert) {
  11883. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11884. }
  11885. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11886. return offset + 4
  11887. }
  11888. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11889. return writeFloat(this, value, offset, true, noAssert)
  11890. }
  11891. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11892. return writeFloat(this, value, offset, false, noAssert)
  11893. }
  11894. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11895. if (!noAssert) {
  11896. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11897. }
  11898. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11899. return offset + 8
  11900. }
  11901. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11902. return writeDouble(this, value, offset, true, noAssert)
  11903. }
  11904. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11905. return writeDouble(this, value, offset, false, noAssert)
  11906. }
  11907. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11908. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11909. if (!start) start = 0
  11910. if (!end && end !== 0) end = this.length
  11911. if (targetStart >= target.length) targetStart = target.length
  11912. if (!targetStart) targetStart = 0
  11913. if (end > 0 && end < start) end = start
  11914. // Copy 0 bytes; we're done
  11915. if (end === start) return 0
  11916. if (target.length === 0 || this.length === 0) return 0
  11917. // Fatal error conditions
  11918. if (targetStart < 0) {
  11919. throw new RangeError('targetStart out of bounds')
  11920. }
  11921. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11922. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11923. // Are we oob?
  11924. if (end > this.length) end = this.length
  11925. if (target.length - targetStart < end - start) {
  11926. end = target.length - targetStart + start
  11927. }
  11928. var len = end - start
  11929. var i
  11930. if (this === target && start < targetStart && targetStart < end) {
  11931. // descending copy from end
  11932. for (i = len - 1; i >= 0; --i) {
  11933. target[i + targetStart] = this[i + start]
  11934. }
  11935. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11936. // ascending copy from start
  11937. for (i = 0; i < len; ++i) {
  11938. target[i + targetStart] = this[i + start]
  11939. }
  11940. } else {
  11941. Uint8Array.prototype.set.call(
  11942. target,
  11943. this.subarray(start, start + len),
  11944. targetStart
  11945. )
  11946. }
  11947. return len
  11948. }
  11949. // Usage:
  11950. // buffer.fill(number[, offset[, end]])
  11951. // buffer.fill(buffer[, offset[, end]])
  11952. // buffer.fill(string[, offset[, end]][, encoding])
  11953. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11954. // Handle string cases:
  11955. if (typeof val === 'string') {
  11956. if (typeof start === 'string') {
  11957. encoding = start
  11958. start = 0
  11959. end = this.length
  11960. } else if (typeof end === 'string') {
  11961. encoding = end
  11962. end = this.length
  11963. }
  11964. if (val.length === 1) {
  11965. var code = val.charCodeAt(0)
  11966. if (code < 256) {
  11967. val = code
  11968. }
  11969. }
  11970. if (encoding !== undefined && typeof encoding !== 'string') {
  11971. throw new TypeError('encoding must be a string')
  11972. }
  11973. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11974. throw new TypeError('Unknown encoding: ' + encoding)
  11975. }
  11976. } else if (typeof val === 'number') {
  11977. val = val & 255
  11978. }
  11979. // Invalid ranges are not set to a default, so can range check early.
  11980. if (start < 0 || this.length < start || this.length < end) {
  11981. throw new RangeError('Out of range index')
  11982. }
  11983. if (end <= start) {
  11984. return this
  11985. }
  11986. start = start >>> 0
  11987. end = end === undefined ? this.length : end >>> 0
  11988. if (!val) val = 0
  11989. var i
  11990. if (typeof val === 'number') {
  11991. for (i = start; i < end; ++i) {
  11992. this[i] = val
  11993. }
  11994. } else {
  11995. var bytes = Buffer.isBuffer(val)
  11996. ? val
  11997. : utf8ToBytes(new Buffer(val, encoding).toString())
  11998. var len = bytes.length
  11999. for (i = 0; i < end - start; ++i) {
  12000. this[i + start] = bytes[i % len]
  12001. }
  12002. }
  12003. return this
  12004. }
  12005. // HELPER FUNCTIONS
  12006. // ================
  12007. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  12008. function base64clean (str) {
  12009. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  12010. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  12011. // Node converts strings with length < 2 to ''
  12012. if (str.length < 2) return ''
  12013. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  12014. while (str.length % 4 !== 0) {
  12015. str = str + '='
  12016. }
  12017. return str
  12018. }
  12019. function stringtrim (str) {
  12020. if (str.trim) return str.trim()
  12021. return str.replace(/^\s+|\s+$/g, '')
  12022. }
  12023. function toHex (n) {
  12024. if (n < 16) return '0' + n.toString(16)
  12025. return n.toString(16)
  12026. }
  12027. function utf8ToBytes (string, units) {
  12028. units = units || Infinity
  12029. var codePoint
  12030. var length = string.length
  12031. var leadSurrogate = null
  12032. var bytes = []
  12033. for (var i = 0; i < length; ++i) {
  12034. codePoint = string.charCodeAt(i)
  12035. // is surrogate component
  12036. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  12037. // last char was a lead
  12038. if (!leadSurrogate) {
  12039. // no lead yet
  12040. if (codePoint > 0xDBFF) {
  12041. // unexpected trail
  12042. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12043. continue
  12044. } else if (i + 1 === length) {
  12045. // unpaired lead
  12046. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12047. continue
  12048. }
  12049. // valid lead
  12050. leadSurrogate = codePoint
  12051. continue
  12052. }
  12053. // 2 leads in a row
  12054. if (codePoint < 0xDC00) {
  12055. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12056. leadSurrogate = codePoint
  12057. continue
  12058. }
  12059. // valid surrogate pair
  12060. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  12061. } else if (leadSurrogate) {
  12062. // valid bmp char, but last char was a lead
  12063. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12064. }
  12065. leadSurrogate = null
  12066. // encode utf8
  12067. if (codePoint < 0x80) {
  12068. if ((units -= 1) < 0) break
  12069. bytes.push(codePoint)
  12070. } else if (codePoint < 0x800) {
  12071. if ((units -= 2) < 0) break
  12072. bytes.push(
  12073. codePoint >> 0x6 | 0xC0,
  12074. codePoint & 0x3F | 0x80
  12075. )
  12076. } else if (codePoint < 0x10000) {
  12077. if ((units -= 3) < 0) break
  12078. bytes.push(
  12079. codePoint >> 0xC | 0xE0,
  12080. codePoint >> 0x6 & 0x3F | 0x80,
  12081. codePoint & 0x3F | 0x80
  12082. )
  12083. } else if (codePoint < 0x110000) {
  12084. if ((units -= 4) < 0) break
  12085. bytes.push(
  12086. codePoint >> 0x12 | 0xF0,
  12087. codePoint >> 0xC & 0x3F | 0x80,
  12088. codePoint >> 0x6 & 0x3F | 0x80,
  12089. codePoint & 0x3F | 0x80
  12090. )
  12091. } else {
  12092. throw new Error('Invalid code point')
  12093. }
  12094. }
  12095. return bytes
  12096. }
  12097. function asciiToBytes (str) {
  12098. var byteArray = []
  12099. for (var i = 0; i < str.length; ++i) {
  12100. // Node's code seems to be doing this and not & 0x7F..
  12101. byteArray.push(str.charCodeAt(i) & 0xFF)
  12102. }
  12103. return byteArray
  12104. }
  12105. function utf16leToBytes (str, units) {
  12106. var c, hi, lo
  12107. var byteArray = []
  12108. for (var i = 0; i < str.length; ++i) {
  12109. if ((units -= 2) < 0) break
  12110. c = str.charCodeAt(i)
  12111. hi = c >> 8
  12112. lo = c % 256
  12113. byteArray.push(lo)
  12114. byteArray.push(hi)
  12115. }
  12116. return byteArray
  12117. }
  12118. function base64ToBytes (str) {
  12119. return base64.toByteArray(base64clean(str))
  12120. }
  12121. function blitBuffer (src, dst, offset, length) {
  12122. for (var i = 0; i < length; ++i) {
  12123. if ((i + offset >= dst.length) || (i >= src.length)) break
  12124. dst[i + offset] = src[i]
  12125. }
  12126. return i
  12127. }
  12128. function isnan (val) {
  12129. return val !== val // eslint-disable-line no-self-compare
  12130. }
  12131. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  12132. /***/ }),
  12133. /* 55 */
  12134. /*!*****************************************!*\
  12135. !*** ./node_modules/base64-js/index.js ***!
  12136. \*****************************************/
  12137. /*! no static exports found */
  12138. /***/ (function(module, exports, __webpack_require__) {
  12139. "use strict";
  12140. exports.byteLength = byteLength
  12141. exports.toByteArray = toByteArray
  12142. exports.fromByteArray = fromByteArray
  12143. var lookup = []
  12144. var revLookup = []
  12145. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12146. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12147. for (var i = 0, len = code.length; i < len; ++i) {
  12148. lookup[i] = code[i]
  12149. revLookup[code.charCodeAt(i)] = i
  12150. }
  12151. // Support decoding URL-safe base64 strings, as Node.js does.
  12152. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12153. revLookup['-'.charCodeAt(0)] = 62
  12154. revLookup['_'.charCodeAt(0)] = 63
  12155. function getLens (b64) {
  12156. var len = b64.length
  12157. if (len % 4 > 0) {
  12158. throw new Error('Invalid string. Length must be a multiple of 4')
  12159. }
  12160. // Trim off extra bytes after placeholder bytes are found
  12161. // See: https://github.com/beatgammit/base64-js/issues/42
  12162. var validLen = b64.indexOf('=')
  12163. if (validLen === -1) validLen = len
  12164. var placeHoldersLen = validLen === len
  12165. ? 0
  12166. : 4 - (validLen % 4)
  12167. return [validLen, placeHoldersLen]
  12168. }
  12169. // base64 is 4/3 + up to two characters of the original data
  12170. function byteLength (b64) {
  12171. var lens = getLens(b64)
  12172. var validLen = lens[0]
  12173. var placeHoldersLen = lens[1]
  12174. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12175. }
  12176. function _byteLength (b64, validLen, placeHoldersLen) {
  12177. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12178. }
  12179. function toByteArray (b64) {
  12180. var tmp
  12181. var lens = getLens(b64)
  12182. var validLen = lens[0]
  12183. var placeHoldersLen = lens[1]
  12184. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12185. var curByte = 0
  12186. // if there are placeholders, only get up to the last complete 4 chars
  12187. var len = placeHoldersLen > 0
  12188. ? validLen - 4
  12189. : validLen
  12190. var i
  12191. for (i = 0; i < len; i += 4) {
  12192. tmp =
  12193. (revLookup[b64.charCodeAt(i)] << 18) |
  12194. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12195. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12196. revLookup[b64.charCodeAt(i + 3)]
  12197. arr[curByte++] = (tmp >> 16) & 0xFF
  12198. arr[curByte++] = (tmp >> 8) & 0xFF
  12199. arr[curByte++] = tmp & 0xFF
  12200. }
  12201. if (placeHoldersLen === 2) {
  12202. tmp =
  12203. (revLookup[b64.charCodeAt(i)] << 2) |
  12204. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12205. arr[curByte++] = tmp & 0xFF
  12206. }
  12207. if (placeHoldersLen === 1) {
  12208. tmp =
  12209. (revLookup[b64.charCodeAt(i)] << 10) |
  12210. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12211. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12212. arr[curByte++] = (tmp >> 8) & 0xFF
  12213. arr[curByte++] = tmp & 0xFF
  12214. }
  12215. return arr
  12216. }
  12217. function tripletToBase64 (num) {
  12218. return lookup[num >> 18 & 0x3F] +
  12219. lookup[num >> 12 & 0x3F] +
  12220. lookup[num >> 6 & 0x3F] +
  12221. lookup[num & 0x3F]
  12222. }
  12223. function encodeChunk (uint8, start, end) {
  12224. var tmp
  12225. var output = []
  12226. for (var i = start; i < end; i += 3) {
  12227. tmp =
  12228. ((uint8[i] << 16) & 0xFF0000) +
  12229. ((uint8[i + 1] << 8) & 0xFF00) +
  12230. (uint8[i + 2] & 0xFF)
  12231. output.push(tripletToBase64(tmp))
  12232. }
  12233. return output.join('')
  12234. }
  12235. function fromByteArray (uint8) {
  12236. var tmp
  12237. var len = uint8.length
  12238. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12239. var parts = []
  12240. var maxChunkLength = 16383 // must be multiple of 3
  12241. // go through the array every three bytes, we'll deal with trailing stuff later
  12242. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12243. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12244. }
  12245. // pad the end with zeros, but make sure to not forget the extra bytes
  12246. if (extraBytes === 1) {
  12247. tmp = uint8[len - 1]
  12248. parts.push(
  12249. lookup[tmp >> 2] +
  12250. lookup[(tmp << 4) & 0x3F] +
  12251. '=='
  12252. )
  12253. } else if (extraBytes === 2) {
  12254. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12255. parts.push(
  12256. lookup[tmp >> 10] +
  12257. lookup[(tmp >> 4) & 0x3F] +
  12258. lookup[(tmp << 2) & 0x3F] +
  12259. '='
  12260. )
  12261. }
  12262. return parts.join('')
  12263. }
  12264. /***/ }),
  12265. /* 56 */
  12266. /*!***************************************!*\
  12267. !*** ./node_modules/ieee754/index.js ***!
  12268. \***************************************/
  12269. /*! no static exports found */
  12270. /***/ (function(module, exports) {
  12271. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12272. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12273. var e, m
  12274. var eLen = (nBytes * 8) - mLen - 1
  12275. var eMax = (1 << eLen) - 1
  12276. var eBias = eMax >> 1
  12277. var nBits = -7
  12278. var i = isLE ? (nBytes - 1) : 0
  12279. var d = isLE ? -1 : 1
  12280. var s = buffer[offset + i]
  12281. i += d
  12282. e = s & ((1 << (-nBits)) - 1)
  12283. s >>= (-nBits)
  12284. nBits += eLen
  12285. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12286. m = e & ((1 << (-nBits)) - 1)
  12287. e >>= (-nBits)
  12288. nBits += mLen
  12289. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12290. if (e === 0) {
  12291. e = 1 - eBias
  12292. } else if (e === eMax) {
  12293. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12294. } else {
  12295. m = m + Math.pow(2, mLen)
  12296. e = e - eBias
  12297. }
  12298. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12299. }
  12300. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12301. var e, m, c
  12302. var eLen = (nBytes * 8) - mLen - 1
  12303. var eMax = (1 << eLen) - 1
  12304. var eBias = eMax >> 1
  12305. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12306. var i = isLE ? 0 : (nBytes - 1)
  12307. var d = isLE ? 1 : -1
  12308. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12309. value = Math.abs(value)
  12310. if (isNaN(value) || value === Infinity) {
  12311. m = isNaN(value) ? 1 : 0
  12312. e = eMax
  12313. } else {
  12314. e = Math.floor(Math.log(value) / Math.LN2)
  12315. if (value * (c = Math.pow(2, -e)) < 1) {
  12316. e--
  12317. c *= 2
  12318. }
  12319. if (e + eBias >= 1) {
  12320. value += rt / c
  12321. } else {
  12322. value += rt * Math.pow(2, 1 - eBias)
  12323. }
  12324. if (value * c >= 2) {
  12325. e++
  12326. c /= 2
  12327. }
  12328. if (e + eBias >= eMax) {
  12329. m = 0
  12330. e = eMax
  12331. } else if (e + eBias >= 1) {
  12332. m = ((value * c) - 1) * Math.pow(2, mLen)
  12333. e = e + eBias
  12334. } else {
  12335. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12336. e = 0
  12337. }
  12338. }
  12339. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12340. e = (e << mLen) | m
  12341. eLen += mLen
  12342. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12343. buffer[offset + i - d] |= s * 128
  12344. }
  12345. /***/ }),
  12346. /* 57 */
  12347. /*!***************************************!*\
  12348. !*** ./node_modules/isarray/index.js ***!
  12349. \***************************************/
  12350. /*! no static exports found */
  12351. /***/ (function(module, exports) {
  12352. var toString = {}.toString;
  12353. module.exports = Array.isArray || function (arr) {
  12354. return toString.call(arr) == '[object Array]';
  12355. };
  12356. /***/ }),
  12357. /* 58 */
  12358. /*!***************************************************************************!*\
  12359. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/util/route.js ***!
  12360. \***************************************************************************/
  12361. /*! no static exports found */
  12362. /***/ (function(module, exports, __webpack_require__) {
  12363. "use strict";
  12364. /* WEBPACK VAR INJECTION */(function(uni) {
  12365. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12366. Object.defineProperty(exports, "__esModule", {
  12367. value: true
  12368. });
  12369. exports.default = void 0;
  12370. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 59));
  12371. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 61));
  12372. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12373. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12374. /**
  12375. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12376. * 并且带有路由拦截功能
  12377. */
  12378. var Router = /*#__PURE__*/function () {
  12379. function Router() {
  12380. (0, _classCallCheck2.default)(this, Router);
  12381. // 原始属性定义
  12382. this.config = {
  12383. type: 'navigateTo',
  12384. url: '',
  12385. delta: 1,
  12386. // navigateBack页面后退时,回退的层数
  12387. params: {},
  12388. // 传递的参数
  12389. animationType: 'pop-in',
  12390. // 窗口动画,只在APP有效
  12391. animationDuration: 300,
  12392. // 窗口动画持续时间,单位毫秒,只在APP有效
  12393. intercept: false // 是否需要拦截
  12394. };
  12395. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12396. // 这里在构造函数中进行this绑定
  12397. this.route = this.route.bind(this);
  12398. }
  12399. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12400. (0, _createClass2.default)(Router, [{
  12401. key: "addRootPath",
  12402. value: function addRootPath(url) {
  12403. return url[0] === '/' ? url : "/".concat(url);
  12404. }
  12405. // 整合路由参数
  12406. }, {
  12407. key: "mixinParam",
  12408. value: function mixinParam(url, params) {
  12409. url = url && this.addRootPath(url);
  12410. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12411. // 如果有url中有get参数,转换后无需带上"?"
  12412. var query = '';
  12413. if (/.*\/.*\?.*=.*/.test(url)) {
  12414. // object对象转为get类型的参数
  12415. query = uni.$u.queryParams(params, false);
  12416. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12417. return url += "&".concat(query);
  12418. }
  12419. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12420. query = uni.$u.queryParams(params);
  12421. return url += query;
  12422. }
  12423. // 对外的方法名称
  12424. }, {
  12425. key: "route",
  12426. value: function () {
  12427. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12428. var options,
  12429. params,
  12430. mergeConfig,
  12431. isNext,
  12432. _args = arguments;
  12433. return _regenerator.default.wrap(function _callee$(_context) {
  12434. while (1) {
  12435. switch (_context.prev = _context.next) {
  12436. case 0:
  12437. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12438. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12439. // 合并用户的配置和内部的默认配置
  12440. mergeConfig = {};
  12441. if (typeof options === 'string') {
  12442. // 如果options为字符串,则为route(url, params)的形式
  12443. mergeConfig.url = this.mixinParam(options, params);
  12444. mergeConfig.type = 'navigateTo';
  12445. } else {
  12446. mergeConfig = uni.$u.deepMerge(this.config, options);
  12447. // 否则正常使用mergeConfig中的url和params进行拼接
  12448. mergeConfig.url = this.mixinParam(options.url, options.params);
  12449. }
  12450. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12451. if (!(mergeConfig.url === uni.$u.page())) {
  12452. _context.next = 6;
  12453. break;
  12454. }
  12455. return _context.abrupt("return");
  12456. case 6:
  12457. if (params.intercept) {
  12458. this.config.intercept = params.intercept;
  12459. }
  12460. // params参数也带给拦截器
  12461. mergeConfig.params = params;
  12462. // 合并内外部参数
  12463. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12464. // 判断用户是否定义了拦截器
  12465. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12466. _context.next = 16;
  12467. break;
  12468. }
  12469. _context.next = 12;
  12470. return new Promise(function (resolve, reject) {
  12471. uni.$u.routeIntercept(mergeConfig, resolve);
  12472. });
  12473. case 12:
  12474. isNext = _context.sent;
  12475. // 如果isNext为true,则执行路由跳转
  12476. isNext && this.openPage(mergeConfig);
  12477. _context.next = 17;
  12478. break;
  12479. case 16:
  12480. this.openPage(mergeConfig);
  12481. case 17:
  12482. case "end":
  12483. return _context.stop();
  12484. }
  12485. }
  12486. }, _callee, this);
  12487. }));
  12488. function route() {
  12489. return _route.apply(this, arguments);
  12490. }
  12491. return route;
  12492. }() // 执行路由跳转
  12493. }, {
  12494. key: "openPage",
  12495. value: function openPage(config) {
  12496. // 解构参数
  12497. var url = config.url,
  12498. type = config.type,
  12499. delta = config.delta,
  12500. animationType = config.animationType,
  12501. animationDuration = config.animationDuration;
  12502. if (config.type == 'navigateTo' || config.type == 'to') {
  12503. uni.navigateTo({
  12504. url: url,
  12505. animationType: animationType,
  12506. animationDuration: animationDuration
  12507. });
  12508. }
  12509. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12510. uni.redirectTo({
  12511. url: url
  12512. });
  12513. }
  12514. if (config.type == 'switchTab' || config.type == 'tab') {
  12515. uni.switchTab({
  12516. url: url
  12517. });
  12518. }
  12519. if (config.type == 'reLaunch' || config.type == 'launch') {
  12520. uni.reLaunch({
  12521. url: url
  12522. });
  12523. }
  12524. if (config.type == 'navigateBack' || config.type == 'back') {
  12525. uni.navigateBack({
  12526. delta: delta
  12527. });
  12528. }
  12529. }
  12530. }]);
  12531. return Router;
  12532. }();
  12533. var _default = new Router().route;
  12534. exports.default = _default;
  12535. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12536. /***/ }),
  12537. /* 59 */
  12538. /*!************************************************************************************************!*\
  12539. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12540. \************************************************************************************************/
  12541. /*! no static exports found */
  12542. /***/ (function(module, exports, __webpack_require__) {
  12543. // TODO(Babel 8): Remove this file.
  12544. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 60)();
  12545. module.exports = runtime;
  12546. /***/ }),
  12547. /* 60 */
  12548. /*!*******************************************************************!*\
  12549. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12550. \*******************************************************************/
  12551. /*! no static exports found */
  12552. /***/ (function(module, exports, __webpack_require__) {
  12553. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12554. function _regeneratorRuntime() {
  12555. "use strict";
  12556. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12557. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12558. return exports;
  12559. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12560. var exports = {},
  12561. Op = Object.prototype,
  12562. hasOwn = Op.hasOwnProperty,
  12563. defineProperty = Object.defineProperty || function (obj, key, desc) {
  12564. obj[key] = desc.value;
  12565. },
  12566. $Symbol = "function" == typeof Symbol ? Symbol : {},
  12567. iteratorSymbol = $Symbol.iterator || "@@iterator",
  12568. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  12569. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12570. function define(obj, key, value) {
  12571. return Object.defineProperty(obj, key, {
  12572. value: value,
  12573. enumerable: !0,
  12574. configurable: !0,
  12575. writable: !0
  12576. }), obj[key];
  12577. }
  12578. try {
  12579. define({}, "");
  12580. } catch (err) {
  12581. define = function define(obj, key, value) {
  12582. return obj[key] = value;
  12583. };
  12584. }
  12585. function wrap(innerFn, outerFn, self, tryLocsList) {
  12586. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  12587. generator = Object.create(protoGenerator.prototype),
  12588. context = new Context(tryLocsList || []);
  12589. return defineProperty(generator, "_invoke", {
  12590. value: makeInvokeMethod(innerFn, self, context)
  12591. }), generator;
  12592. }
  12593. function tryCatch(fn, obj, arg) {
  12594. try {
  12595. return {
  12596. type: "normal",
  12597. arg: fn.call(obj, arg)
  12598. };
  12599. } catch (err) {
  12600. return {
  12601. type: "throw",
  12602. arg: err
  12603. };
  12604. }
  12605. }
  12606. exports.wrap = wrap;
  12607. var ContinueSentinel = {};
  12608. function Generator() {}
  12609. function GeneratorFunction() {}
  12610. function GeneratorFunctionPrototype() {}
  12611. var IteratorPrototype = {};
  12612. define(IteratorPrototype, iteratorSymbol, function () {
  12613. return this;
  12614. });
  12615. var getProto = Object.getPrototypeOf,
  12616. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12617. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  12618. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  12619. function defineIteratorMethods(prototype) {
  12620. ["next", "throw", "return"].forEach(function (method) {
  12621. define(prototype, method, function (arg) {
  12622. return this._invoke(method, arg);
  12623. });
  12624. });
  12625. }
  12626. function AsyncIterator(generator, PromiseImpl) {
  12627. function invoke(method, arg, resolve, reject) {
  12628. var record = tryCatch(generator[method], generator, arg);
  12629. if ("throw" !== record.type) {
  12630. var result = record.arg,
  12631. value = result.value;
  12632. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  12633. invoke("next", value, resolve, reject);
  12634. }, function (err) {
  12635. invoke("throw", err, resolve, reject);
  12636. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  12637. result.value = unwrapped, resolve(result);
  12638. }, function (error) {
  12639. return invoke("throw", error, resolve, reject);
  12640. });
  12641. }
  12642. reject(record.arg);
  12643. }
  12644. var previousPromise;
  12645. defineProperty(this, "_invoke", {
  12646. value: function value(method, arg) {
  12647. function callInvokeWithMethodAndArg() {
  12648. return new PromiseImpl(function (resolve, reject) {
  12649. invoke(method, arg, resolve, reject);
  12650. });
  12651. }
  12652. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12653. }
  12654. });
  12655. }
  12656. function makeInvokeMethod(innerFn, self, context) {
  12657. var state = "suspendedStart";
  12658. return function (method, arg) {
  12659. if ("executing" === state) throw new Error("Generator is already running");
  12660. if ("completed" === state) {
  12661. if ("throw" === method) throw arg;
  12662. return doneResult();
  12663. }
  12664. for (context.method = method, context.arg = arg;;) {
  12665. var delegate = context.delegate;
  12666. if (delegate) {
  12667. var delegateResult = maybeInvokeDelegate(delegate, context);
  12668. if (delegateResult) {
  12669. if (delegateResult === ContinueSentinel) continue;
  12670. return delegateResult;
  12671. }
  12672. }
  12673. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  12674. if ("suspendedStart" === state) throw state = "completed", context.arg;
  12675. context.dispatchException(context.arg);
  12676. } else "return" === context.method && context.abrupt("return", context.arg);
  12677. state = "executing";
  12678. var record = tryCatch(innerFn, self, context);
  12679. if ("normal" === record.type) {
  12680. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  12681. return {
  12682. value: record.arg,
  12683. done: context.done
  12684. };
  12685. }
  12686. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  12687. }
  12688. };
  12689. }
  12690. function maybeInvokeDelegate(delegate, context) {
  12691. var methodName = context.method,
  12692. method = delegate.iterator[methodName];
  12693. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  12694. var record = tryCatch(method, delegate.iterator, context.arg);
  12695. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  12696. var info = record.arg;
  12697. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  12698. }
  12699. function pushTryEntry(locs) {
  12700. var entry = {
  12701. tryLoc: locs[0]
  12702. };
  12703. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  12704. }
  12705. function resetTryEntry(entry) {
  12706. var record = entry.completion || {};
  12707. record.type = "normal", delete record.arg, entry.completion = record;
  12708. }
  12709. function Context(tryLocsList) {
  12710. this.tryEntries = [{
  12711. tryLoc: "root"
  12712. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  12713. }
  12714. function values(iterable) {
  12715. if (iterable) {
  12716. var iteratorMethod = iterable[iteratorSymbol];
  12717. if (iteratorMethod) return iteratorMethod.call(iterable);
  12718. if ("function" == typeof iterable.next) return iterable;
  12719. if (!isNaN(iterable.length)) {
  12720. var i = -1,
  12721. next = function next() {
  12722. for (; ++i < iterable.length;) {
  12723. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  12724. }
  12725. return next.value = undefined, next.done = !0, next;
  12726. };
  12727. return next.next = next;
  12728. }
  12729. }
  12730. return {
  12731. next: doneResult
  12732. };
  12733. }
  12734. function doneResult() {
  12735. return {
  12736. value: undefined,
  12737. done: !0
  12738. };
  12739. }
  12740. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  12741. value: GeneratorFunctionPrototype,
  12742. configurable: !0
  12743. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  12744. value: GeneratorFunction,
  12745. configurable: !0
  12746. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  12747. var ctor = "function" == typeof genFun && genFun.constructor;
  12748. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  12749. }, exports.mark = function (genFun) {
  12750. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  12751. }, exports.awrap = function (arg) {
  12752. return {
  12753. __await: arg
  12754. };
  12755. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  12756. return this;
  12757. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  12758. void 0 === PromiseImpl && (PromiseImpl = Promise);
  12759. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  12760. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  12761. return result.done ? result.value : iter.next();
  12762. });
  12763. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  12764. return this;
  12765. }), define(Gp, "toString", function () {
  12766. return "[object Generator]";
  12767. }), exports.keys = function (val) {
  12768. var object = Object(val),
  12769. keys = [];
  12770. for (var key in object) {
  12771. keys.push(key);
  12772. }
  12773. return keys.reverse(), function next() {
  12774. for (; keys.length;) {
  12775. var key = keys.pop();
  12776. if (key in object) return next.value = key, next.done = !1, next;
  12777. }
  12778. return next.done = !0, next;
  12779. };
  12780. }, exports.values = values, Context.prototype = {
  12781. constructor: Context,
  12782. reset: function reset(skipTempReset) {
  12783. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  12784. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  12785. }
  12786. },
  12787. stop: function stop() {
  12788. this.done = !0;
  12789. var rootRecord = this.tryEntries[0].completion;
  12790. if ("throw" === rootRecord.type) throw rootRecord.arg;
  12791. return this.rval;
  12792. },
  12793. dispatchException: function dispatchException(exception) {
  12794. if (this.done) throw exception;
  12795. var context = this;
  12796. function handle(loc, caught) {
  12797. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  12798. }
  12799. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12800. var entry = this.tryEntries[i],
  12801. record = entry.completion;
  12802. if ("root" === entry.tryLoc) return handle("end");
  12803. if (entry.tryLoc <= this.prev) {
  12804. var hasCatch = hasOwn.call(entry, "catchLoc"),
  12805. hasFinally = hasOwn.call(entry, "finallyLoc");
  12806. if (hasCatch && hasFinally) {
  12807. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12808. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12809. } else if (hasCatch) {
  12810. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12811. } else {
  12812. if (!hasFinally) throw new Error("try statement without catch or finally");
  12813. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12814. }
  12815. }
  12816. }
  12817. },
  12818. abrupt: function abrupt(type, arg) {
  12819. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12820. var entry = this.tryEntries[i];
  12821. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  12822. var finallyEntry = entry;
  12823. break;
  12824. }
  12825. }
  12826. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  12827. var record = finallyEntry ? finallyEntry.completion : {};
  12828. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  12829. },
  12830. complete: function complete(record, afterLoc) {
  12831. if ("throw" === record.type) throw record.arg;
  12832. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  12833. },
  12834. finish: function finish(finallyLoc) {
  12835. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12836. var entry = this.tryEntries[i];
  12837. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  12838. }
  12839. },
  12840. "catch": function _catch(tryLoc) {
  12841. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12842. var entry = this.tryEntries[i];
  12843. if (entry.tryLoc === tryLoc) {
  12844. var record = entry.completion;
  12845. if ("throw" === record.type) {
  12846. var thrown = record.arg;
  12847. resetTryEntry(entry);
  12848. }
  12849. return thrown;
  12850. }
  12851. }
  12852. throw new Error("illegal catch attempt");
  12853. },
  12854. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  12855. return this.delegate = {
  12856. iterator: values(iterable),
  12857. resultName: resultName,
  12858. nextLoc: nextLoc
  12859. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  12860. }
  12861. }, exports;
  12862. }
  12863. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12864. /***/ }),
  12865. /* 61 */
  12866. /*!*****************************************************************!*\
  12867. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12868. \*****************************************************************/
  12869. /*! no static exports found */
  12870. /***/ (function(module, exports) {
  12871. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12872. try {
  12873. var info = gen[key](arg);
  12874. var value = info.value;
  12875. } catch (error) {
  12876. reject(error);
  12877. return;
  12878. }
  12879. if (info.done) {
  12880. resolve(value);
  12881. } else {
  12882. Promise.resolve(value).then(_next, _throw);
  12883. }
  12884. }
  12885. function _asyncToGenerator(fn) {
  12886. return function () {
  12887. var self = this,
  12888. args = arguments;
  12889. return new Promise(function (resolve, reject) {
  12890. var gen = fn.apply(self, args);
  12891. function _next(value) {
  12892. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12893. }
  12894. function _throw(err) {
  12895. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12896. }
  12897. _next(undefined);
  12898. });
  12899. };
  12900. }
  12901. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12902. /***/ }),
  12903. /* 62 */
  12904. /*!***************************************************************************************!*\
  12905. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12906. \***************************************************************************************/
  12907. /*! no static exports found */
  12908. /***/ (function(module, exports, __webpack_require__) {
  12909. "use strict";
  12910. Object.defineProperty(exports, "__esModule", {
  12911. value: true
  12912. });
  12913. exports.default = void 0;
  12914. /**
  12915. * 求两个颜色之间的渐变值
  12916. * @param {string} startColor 开始的颜色
  12917. * @param {string} endColor 结束的颜色
  12918. * @param {number} step 颜色等分的份额
  12919. * */
  12920. function colorGradient() {
  12921. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12922. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12923. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12924. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12925. var startR = startRGB[0];
  12926. var startG = startRGB[1];
  12927. var startB = startRGB[2];
  12928. var endRGB = hexToRgb(endColor, false);
  12929. var endR = endRGB[0];
  12930. var endG = endRGB[1];
  12931. var endB = endRGB[2];
  12932. var sR = (endR - startR) / step; // 总差值
  12933. var sG = (endG - startG) / step;
  12934. var sB = (endB - startB) / step;
  12935. var colorArr = [];
  12936. for (var i = 0; i < step; i++) {
  12937. // 计算每一步的hex值
  12938. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12939. // 确保第一个颜色值为startColor的值
  12940. if (i === 0) hex = rgbToHex(startColor);
  12941. // 确保最后一个颜色值为endColor的值
  12942. if (i === step - 1) hex = rgbToHex(endColor);
  12943. colorArr.push(hex);
  12944. }
  12945. return colorArr;
  12946. }
  12947. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12948. function hexToRgb(sColor) {
  12949. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12950. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12951. sColor = String(sColor).toLowerCase();
  12952. if (sColor && reg.test(sColor)) {
  12953. if (sColor.length === 4) {
  12954. var sColorNew = '#';
  12955. for (var i = 1; i < 4; i += 1) {
  12956. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12957. }
  12958. sColor = sColorNew;
  12959. }
  12960. // 处理六位的颜色值
  12961. var sColorChange = [];
  12962. for (var _i = 1; _i < 7; _i += 2) {
  12963. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12964. }
  12965. if (!str) {
  12966. return sColorChange;
  12967. }
  12968. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12969. }
  12970. if (/^(rgb|RGB)/.test(sColor)) {
  12971. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12972. return arr.map(function (val) {
  12973. return Number(val);
  12974. });
  12975. }
  12976. return sColor;
  12977. }
  12978. // 将rgb表示方式转换为hex表示方式
  12979. function rgbToHex(rgb) {
  12980. var _this = rgb;
  12981. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12982. if (/^(rgb|RGB)/.test(_this)) {
  12983. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12984. var strHex = '#';
  12985. for (var i = 0; i < aColor.length; i++) {
  12986. var hex = Number(aColor[i]).toString(16);
  12987. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12988. if (hex === '0') {
  12989. hex += hex;
  12990. }
  12991. strHex += hex;
  12992. }
  12993. if (strHex.length !== 7) {
  12994. strHex = _this;
  12995. }
  12996. return strHex;
  12997. }
  12998. if (reg.test(_this)) {
  12999. var aNum = _this.replace(/#/, '').split('');
  13000. if (aNum.length === 6) {
  13001. return _this;
  13002. }
  13003. if (aNum.length === 3) {
  13004. var numHex = '#';
  13005. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  13006. numHex += aNum[_i2] + aNum[_i2];
  13007. }
  13008. return numHex;
  13009. }
  13010. } else {
  13011. return _this;
  13012. }
  13013. }
  13014. /**
  13015. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  13016. * sHex为传入的十六进制的色值
  13017. * alpha为rgba的透明度
  13018. */
  13019. function colorToRgba(color, alpha) {
  13020. color = rgbToHex(color);
  13021. // 十六进制颜色值的正则表达式
  13022. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13023. /* 16进制颜色转为RGB格式 */
  13024. var sColor = String(color).toLowerCase();
  13025. if (sColor && reg.test(sColor)) {
  13026. if (sColor.length === 4) {
  13027. var sColorNew = '#';
  13028. for (var i = 1; i < 4; i += 1) {
  13029. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13030. }
  13031. sColor = sColorNew;
  13032. }
  13033. // 处理六位的颜色值
  13034. var sColorChange = [];
  13035. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  13036. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  13037. }
  13038. // return sColorChange.join(',')
  13039. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  13040. }
  13041. return sColor;
  13042. }
  13043. var _default = {
  13044. colorGradient: colorGradient,
  13045. hexToRgb: hexToRgb,
  13046. rgbToHex: rgbToHex,
  13047. colorToRgba: colorToRgba
  13048. };
  13049. exports.default = _default;
  13050. /***/ }),
  13051. /* 63 */
  13052. /*!******************************************************************************!*\
  13053. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/function/test.js ***!
  13054. \******************************************************************************/
  13055. /*! no static exports found */
  13056. /***/ (function(module, exports, __webpack_require__) {
  13057. "use strict";
  13058. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13059. Object.defineProperty(exports, "__esModule", {
  13060. value: true
  13061. });
  13062. exports.default = void 0;
  13063. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13064. /**
  13065. * 验证电子邮箱格式
  13066. */
  13067. function email(value) {
  13068. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  13069. }
  13070. /**
  13071. * 验证手机格式
  13072. */
  13073. function mobile(value) {
  13074. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  13075. }
  13076. /**
  13077. * 验证URL格式
  13078. */
  13079. function url(value) {
  13080. 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);
  13081. }
  13082. /**
  13083. * 验证日期格式
  13084. */
  13085. function date(value) {
  13086. if (!value) return false;
  13087. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13088. if (number(value)) value = +value;
  13089. return !/Invalid|NaN/.test(new Date(value).toString());
  13090. }
  13091. /**
  13092. * 验证ISO类型的日期格式
  13093. */
  13094. function dateISO(value) {
  13095. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13096. }
  13097. /**
  13098. * 验证十进制数字
  13099. */
  13100. function number(value) {
  13101. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13102. }
  13103. /**
  13104. * 验证字符串
  13105. */
  13106. function string(value) {
  13107. return typeof value === 'string';
  13108. }
  13109. /**
  13110. * 验证整数
  13111. */
  13112. function digits(value) {
  13113. return /^\d+$/.test(value);
  13114. }
  13115. /**
  13116. * 验证身份证号码
  13117. */
  13118. function idCard(value) {
  13119. 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);
  13120. }
  13121. /**
  13122. * 是否车牌号
  13123. */
  13124. function carNo(value) {
  13125. // 新能源车牌
  13126. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13127. // 旧车牌
  13128. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13129. if (value.length === 7) {
  13130. return creg.test(value);
  13131. }
  13132. if (value.length === 8) {
  13133. return xreg.test(value);
  13134. }
  13135. return false;
  13136. }
  13137. /**
  13138. * 金额,只允许2位小数
  13139. */
  13140. function amount(value) {
  13141. // 金额,只允许保留两位小数
  13142. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13143. }
  13144. /**
  13145. * 中文
  13146. */
  13147. function chinese(value) {
  13148. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13149. return reg.test(value);
  13150. }
  13151. /**
  13152. * 只能输入字母
  13153. */
  13154. function letter(value) {
  13155. return /^[a-zA-Z]*$/.test(value);
  13156. }
  13157. /**
  13158. * 只能是字母或者数字
  13159. */
  13160. function enOrNum(value) {
  13161. // 英文或者数字
  13162. var reg = /^[0-9a-zA-Z]*$/g;
  13163. return reg.test(value);
  13164. }
  13165. /**
  13166. * 验证是否包含某个值
  13167. */
  13168. function contains(value, param) {
  13169. return value.indexOf(param) >= 0;
  13170. }
  13171. /**
  13172. * 验证一个值范围[min, max]
  13173. */
  13174. function range(value, param) {
  13175. return value >= param[0] && value <= param[1];
  13176. }
  13177. /**
  13178. * 验证一个长度范围[min, max]
  13179. */
  13180. function rangeLength(value, param) {
  13181. return value.length >= param[0] && value.length <= param[1];
  13182. }
  13183. /**
  13184. * 是否固定电话
  13185. */
  13186. function landline(value) {
  13187. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13188. return reg.test(value);
  13189. }
  13190. /**
  13191. * 判断是否为空
  13192. */
  13193. function empty(value) {
  13194. switch ((0, _typeof2.default)(value)) {
  13195. case 'undefined':
  13196. return true;
  13197. case 'string':
  13198. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13199. break;
  13200. case 'boolean':
  13201. if (!value) return true;
  13202. break;
  13203. case 'number':
  13204. if (value === 0 || isNaN(value)) return true;
  13205. break;
  13206. case 'object':
  13207. if (value === null || value.length === 0) return true;
  13208. for (var i in value) {
  13209. return false;
  13210. }
  13211. return true;
  13212. }
  13213. return false;
  13214. }
  13215. /**
  13216. * 是否json字符串
  13217. */
  13218. function jsonString(value) {
  13219. if (typeof value === 'string') {
  13220. try {
  13221. var obj = JSON.parse(value);
  13222. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13223. return true;
  13224. }
  13225. return false;
  13226. } catch (e) {
  13227. return false;
  13228. }
  13229. }
  13230. return false;
  13231. }
  13232. /**
  13233. * 是否数组
  13234. */
  13235. function array(value) {
  13236. if (typeof Array.isArray === 'function') {
  13237. return Array.isArray(value);
  13238. }
  13239. return Object.prototype.toString.call(value) === '[object Array]';
  13240. }
  13241. /**
  13242. * 是否对象
  13243. */
  13244. function object(value) {
  13245. return Object.prototype.toString.call(value) === '[object Object]';
  13246. }
  13247. /**
  13248. * 是否短信验证码
  13249. */
  13250. function code(value) {
  13251. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13252. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13253. }
  13254. /**
  13255. * 是否函数方法
  13256. * @param {Object} value
  13257. */
  13258. function func(value) {
  13259. return typeof value === 'function';
  13260. }
  13261. /**
  13262. * 是否promise对象
  13263. * @param {Object} value
  13264. */
  13265. function promise(value) {
  13266. return object(value) && func(value.then) && func(value.catch);
  13267. }
  13268. /** 是否图片格式
  13269. * @param {Object} value
  13270. */
  13271. function image(value) {
  13272. var newValue = value.split('?')[0];
  13273. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13274. return IMAGE_REGEXP.test(newValue);
  13275. }
  13276. /**
  13277. * 是否视频格式
  13278. * @param {Object} value
  13279. */
  13280. function video(value) {
  13281. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13282. return VIDEO_REGEXP.test(value);
  13283. }
  13284. /**
  13285. * 是否为正则对象
  13286. * @param {Object}
  13287. * @return {Boolean}
  13288. */
  13289. function regExp(o) {
  13290. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13291. }
  13292. var _default = {
  13293. email: email,
  13294. mobile: mobile,
  13295. url: url,
  13296. date: date,
  13297. dateISO: dateISO,
  13298. number: number,
  13299. digits: digits,
  13300. idCard: idCard,
  13301. carNo: carNo,
  13302. amount: amount,
  13303. chinese: chinese,
  13304. letter: letter,
  13305. enOrNum: enOrNum,
  13306. contains: contains,
  13307. range: range,
  13308. rangeLength: rangeLength,
  13309. empty: empty,
  13310. isEmpty: empty,
  13311. jsonString: jsonString,
  13312. landline: landline,
  13313. object: object,
  13314. array: array,
  13315. code: code,
  13316. func: func,
  13317. promise: promise,
  13318. video: video,
  13319. image: image,
  13320. regExp: regExp,
  13321. string: string
  13322. };
  13323. exports.default = _default;
  13324. /***/ }),
  13325. /* 64 */
  13326. /*!**********************************************************************************!*\
  13327. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/function/debounce.js ***!
  13328. \**********************************************************************************/
  13329. /*! no static exports found */
  13330. /***/ (function(module, exports, __webpack_require__) {
  13331. "use strict";
  13332. Object.defineProperty(exports, "__esModule", {
  13333. value: true
  13334. });
  13335. exports.default = void 0;
  13336. var timeout = null;
  13337. /**
  13338. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13339. *
  13340. * @param {Function} func 要执行的回调函数
  13341. * @param {Number} wait 延时的时间
  13342. * @param {Boolean} immediate 是否立即执行
  13343. * @return null
  13344. */
  13345. function debounce(func) {
  13346. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13347. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13348. // 清除定时器
  13349. if (timeout !== null) clearTimeout(timeout);
  13350. // 立即执行,此类情况一般用不到
  13351. if (immediate) {
  13352. var callNow = !timeout;
  13353. timeout = setTimeout(function () {
  13354. timeout = null;
  13355. }, wait);
  13356. if (callNow) typeof func === 'function' && func();
  13357. } else {
  13358. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13359. timeout = setTimeout(function () {
  13360. typeof func === 'function' && func();
  13361. }, wait);
  13362. }
  13363. }
  13364. var _default = debounce;
  13365. exports.default = _default;
  13366. /***/ }),
  13367. /* 65 */
  13368. /*!**********************************************************************************!*\
  13369. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/function/throttle.js ***!
  13370. \**********************************************************************************/
  13371. /*! no static exports found */
  13372. /***/ (function(module, exports, __webpack_require__) {
  13373. "use strict";
  13374. Object.defineProperty(exports, "__esModule", {
  13375. value: true
  13376. });
  13377. exports.default = void 0;
  13378. var timer;
  13379. var flag;
  13380. /**
  13381. * 节流原理:在一定时间内,只能触发一次
  13382. *
  13383. * @param {Function} func 要执行的回调函数
  13384. * @param {Number} wait 延时的时间
  13385. * @param {Boolean} immediate 是否立即执行
  13386. * @return null
  13387. */
  13388. function throttle(func) {
  13389. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13390. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13391. if (immediate) {
  13392. if (!flag) {
  13393. flag = true;
  13394. // 如果是立即执行,则在wait毫秒内开始时执行
  13395. typeof func === 'function' && func();
  13396. timer = setTimeout(function () {
  13397. flag = false;
  13398. }, wait);
  13399. }
  13400. } else if (!flag) {
  13401. flag = true;
  13402. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13403. timer = setTimeout(function () {
  13404. flag = false;
  13405. typeof func === 'function' && func();
  13406. }, wait);
  13407. }
  13408. }
  13409. var _default = throttle;
  13410. exports.default = _default;
  13411. /***/ }),
  13412. /* 66 */
  13413. /*!*******************************************************************************!*\
  13414. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/function/index.js ***!
  13415. \*******************************************************************************/
  13416. /*! no static exports found */
  13417. /***/ (function(module, exports, __webpack_require__) {
  13418. "use strict";
  13419. /* WEBPACK VAR INJECTION */(function(uni) {
  13420. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13421. Object.defineProperty(exports, "__esModule", {
  13422. value: true
  13423. });
  13424. exports.default = void 0;
  13425. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13426. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13427. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 63));
  13428. var _digit = __webpack_require__(/*! ./digit.js */ 67);
  13429. /**
  13430. * @description 如果value小于min,取min;如果value大于max,取max
  13431. * @param {number} min
  13432. * @param {number} max
  13433. * @param {number} value
  13434. */
  13435. function range() {
  13436. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13437. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13438. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13439. return Math.max(min, Math.min(max, Number(value)));
  13440. }
  13441. /**
  13442. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13443. * @param {number|string} value 用户传递值的px值
  13444. * @param {boolean} unit
  13445. * @returns {number|string}
  13446. */
  13447. function getPx(value) {
  13448. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13449. if (_test.default.number(value)) {
  13450. return unit ? "".concat(value, "px") : Number(value);
  13451. }
  13452. // 如果带有rpx,先取出其数值部分,再转为px值
  13453. if (/(rpx|upx)$/.test(value)) {
  13454. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13455. }
  13456. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13457. }
  13458. /**
  13459. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13460. * @param {number} value 堵塞时间 单位ms 毫秒
  13461. * @returns {Promise} 返回promise
  13462. */
  13463. function sleep() {
  13464. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13465. return new Promise(function (resolve) {
  13466. setTimeout(function () {
  13467. resolve();
  13468. }, value);
  13469. });
  13470. }
  13471. /**
  13472. * @description 运行期判断平台
  13473. * @returns {string} 返回所在平台(小写)
  13474. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13475. */
  13476. function os() {
  13477. return uni.getSystemInfoSync().platform.toLowerCase();
  13478. }
  13479. /**
  13480. * @description 获取系统信息同步接口
  13481. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13482. */
  13483. function sys() {
  13484. return uni.getSystemInfoSync();
  13485. }
  13486. /**
  13487. * @description 取一个区间数
  13488. * @param {Number} min 最小值
  13489. * @param {Number} max 最大值
  13490. */
  13491. function random(min, max) {
  13492. if (min >= 0 && max > 0 && max >= min) {
  13493. var gab = max - min + 1;
  13494. return Math.floor(Math.random() * gab + min);
  13495. }
  13496. return 0;
  13497. }
  13498. /**
  13499. * @param {Number} len uuid的长度
  13500. * @param {Boolean} firstU 将返回的首字母置为"u"
  13501. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13502. */
  13503. function guid() {
  13504. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13505. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13506. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13507. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13508. var uuid = [];
  13509. radix = radix || chars.length;
  13510. if (len) {
  13511. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13512. for (var i = 0; i < len; i++) {
  13513. uuid[i] = chars[0 | Math.random() * radix];
  13514. }
  13515. } else {
  13516. var r;
  13517. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13518. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13519. uuid[14] = '4';
  13520. for (var _i = 0; _i < 36; _i++) {
  13521. if (!uuid[_i]) {
  13522. r = 0 | Math.random() * 16;
  13523. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13524. }
  13525. }
  13526. }
  13527. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13528. if (firstU) {
  13529. uuid.shift();
  13530. return "u".concat(uuid.join(''));
  13531. }
  13532. return uuid.join('');
  13533. }
  13534. /**
  13535. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13536. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13537. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13538. 值(默认为undefined),就是查找最顶层的$parent
  13539. * @param {string|undefined} name 父组件的参数名
  13540. */
  13541. function $parent() {
  13542. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13543. var parent = this.$parent;
  13544. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13545. while (parent) {
  13546. // 父组件
  13547. if (parent.$options && parent.$options.name !== name) {
  13548. // 如果组件的name不相等,继续上一级寻找
  13549. parent = parent.$parent;
  13550. } else {
  13551. return parent;
  13552. }
  13553. }
  13554. return false;
  13555. }
  13556. /**
  13557. * @description 样式转换
  13558. * 对象转字符串,或者字符串转对象
  13559. * @param {object | string} customStyle 需要转换的目标
  13560. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13561. * @returns {object|string}
  13562. */
  13563. function addStyle(customStyle) {
  13564. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13565. // 字符串转字符串,对象转对象情形,直接返回
  13566. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13567. return customStyle;
  13568. }
  13569. // 字符串转对象
  13570. if (target === 'object') {
  13571. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13572. customStyle = trim(customStyle);
  13573. // 根据";"将字符串转为数组形式
  13574. var styleArray = customStyle.split(';');
  13575. var style = {};
  13576. // 历遍数组,拼接成对象
  13577. for (var i = 0; i < styleArray.length; i++) {
  13578. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13579. if (styleArray[i]) {
  13580. var item = styleArray[i].split(':');
  13581. style[trim(item[0])] = trim(item[1]);
  13582. }
  13583. }
  13584. return style;
  13585. }
  13586. // 这里为对象转字符串形式
  13587. var string = '';
  13588. for (var _i2 in customStyle) {
  13589. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13590. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13591. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13592. }
  13593. // 去除两端空格
  13594. return trim(string);
  13595. }
  13596. /**
  13597. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13598. * @param {string|number} value 需要添加单位的值
  13599. * @param {string} unit 添加的单位名 比如px
  13600. */
  13601. function addUnit() {
  13602. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13603. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13604. 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';
  13605. value = String(value);
  13606. // 用uView内置验证规则中的number判断是否为数值
  13607. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13608. }
  13609. /**
  13610. * @description 深度克隆
  13611. * @param {object} obj 需要深度克隆的对象
  13612. * @param cache 缓存
  13613. * @returns {*} 克隆后的对象或者原值(不是对象)
  13614. */
  13615. function deepClone(obj) {
  13616. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13617. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13618. if (cache.has(obj)) return cache.get(obj);
  13619. var clone;
  13620. if (obj instanceof Date) {
  13621. clone = new Date(obj.getTime());
  13622. } else if (obj instanceof RegExp) {
  13623. clone = new RegExp(obj);
  13624. } else if (obj instanceof Map) {
  13625. clone = new Map(Array.from(obj, function (_ref) {
  13626. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13627. key = _ref2[0],
  13628. value = _ref2[1];
  13629. return [key, deepClone(value, cache)];
  13630. }));
  13631. } else if (obj instanceof Set) {
  13632. clone = new Set(Array.from(obj, function (value) {
  13633. return deepClone(value, cache);
  13634. }));
  13635. } else if (Array.isArray(obj)) {
  13636. clone = obj.map(function (value) {
  13637. return deepClone(value, cache);
  13638. });
  13639. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13640. clone = Object.create(Object.getPrototypeOf(obj));
  13641. cache.set(obj, clone);
  13642. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13643. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13644. key = _Object$entries$_i[0],
  13645. value = _Object$entries$_i[1];
  13646. clone[key] = deepClone(value, cache);
  13647. }
  13648. } else {
  13649. clone = Object.assign({}, obj);
  13650. }
  13651. cache.set(obj, clone);
  13652. return clone;
  13653. }
  13654. /**
  13655. * @description JS对象深度合并
  13656. * @param {object} target 需要拷贝的对象
  13657. * @param {object} source 拷贝的来源对象
  13658. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13659. */
  13660. function deepMerge() {
  13661. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13662. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13663. target = deepClone(target);
  13664. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13665. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13666. for (var prop in source) {
  13667. if (!source.hasOwnProperty(prop)) continue;
  13668. var sourceValue = source[prop];
  13669. var targetValue = merged[prop];
  13670. if (sourceValue instanceof Date) {
  13671. merged[prop] = new Date(sourceValue);
  13672. } else if (sourceValue instanceof RegExp) {
  13673. merged[prop] = new RegExp(sourceValue);
  13674. } else if (sourceValue instanceof Map) {
  13675. merged[prop] = new Map(sourceValue);
  13676. } else if (sourceValue instanceof Set) {
  13677. merged[prop] = new Set(sourceValue);
  13678. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13679. merged[prop] = deepMerge(targetValue, sourceValue);
  13680. } else {
  13681. merged[prop] = sourceValue;
  13682. }
  13683. }
  13684. return merged;
  13685. }
  13686. /**
  13687. * @description error提示
  13688. * @param {*} err 错误内容
  13689. */
  13690. function error(err) {
  13691. // 开发环境才提示,生产环境不会提示
  13692. if (true) {
  13693. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13694. }
  13695. }
  13696. /**
  13697. * @description 打乱数组
  13698. * @param {array} array 需要打乱的数组
  13699. * @returns {array} 打乱后的数组
  13700. */
  13701. function randomArray() {
  13702. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13703. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13704. return array.sort(function () {
  13705. return Math.random() - 0.5;
  13706. });
  13707. }
  13708. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13709. // 所以这里做一个兼容polyfill的兼容处理
  13710. if (!String.prototype.padStart) {
  13711. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13712. String.prototype.padStart = function (maxLength) {
  13713. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13714. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13715. throw new TypeError('fillString must be String');
  13716. }
  13717. var str = this;
  13718. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13719. if (str.length >= maxLength) return String(str);
  13720. var fillLength = maxLength - str.length;
  13721. var times = Math.ceil(fillLength / fillString.length);
  13722. while (times >>= 1) {
  13723. fillString += fillString;
  13724. if (times === 1) {
  13725. fillString += fillString;
  13726. }
  13727. }
  13728. return fillString.slice(0, fillLength) + str;
  13729. };
  13730. }
  13731. /**
  13732. * @description 格式化时间
  13733. * @param {String|Number} dateTime 需要格式化的时间戳
  13734. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13735. * @returns {string} 返回格式化后的字符串
  13736. */
  13737. function timeFormat() {
  13738. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13739. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13740. var date;
  13741. // 若传入时间为假值,则取当前时间
  13742. if (!dateTime) {
  13743. date = new Date();
  13744. }
  13745. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13746. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13747. date = new Date(dateTime * 1000);
  13748. }
  13749. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13750. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13751. date = new Date(Number(dateTime));
  13752. }
  13753. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13754. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13755. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13756. date = new Date(dateTime.replace(/-/g, '/'));
  13757. }
  13758. // 其他都认为符合 RFC 2822 规范
  13759. else {
  13760. date = new Date(dateTime);
  13761. }
  13762. var timeSource = {
  13763. 'y': date.getFullYear().toString(),
  13764. // 年
  13765. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13766. // 月
  13767. 'd': date.getDate().toString().padStart(2, '0'),
  13768. // 日
  13769. 'h': date.getHours().toString().padStart(2, '0'),
  13770. // 时
  13771. 'M': date.getMinutes().toString().padStart(2, '0'),
  13772. // 分
  13773. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13774. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13775. };
  13776. for (var key in timeSource) {
  13777. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13778. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13779. ret = _ref4[0];
  13780. if (ret) {
  13781. // 年可能只需展示两位
  13782. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13783. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13784. }
  13785. }
  13786. return formatStr;
  13787. }
  13788. /**
  13789. * @description 时间戳转为多久之前
  13790. * @param {String|Number} timestamp 时间戳
  13791. * @param {String|Boolean} format
  13792. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13793. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13794. * @returns {string} 转化后的内容
  13795. */
  13796. function timeFrom() {
  13797. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13798. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13799. if (timestamp == null) timestamp = Number(new Date());
  13800. timestamp = parseInt(timestamp);
  13801. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13802. if (timestamp.toString().length == 10) timestamp *= 1000;
  13803. var timer = new Date().getTime() - timestamp;
  13804. timer = parseInt(timer / 1000);
  13805. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13806. var tips = '';
  13807. switch (true) {
  13808. case timer < 300:
  13809. tips = '刚刚';
  13810. break;
  13811. case timer >= 300 && timer < 3600:
  13812. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13813. break;
  13814. case timer >= 3600 && timer < 86400:
  13815. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13816. break;
  13817. case timer >= 86400 && timer < 2592000:
  13818. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13819. break;
  13820. default:
  13821. // 如果format为false,则无论什么时间戳,都显示xx之前
  13822. if (format === false) {
  13823. if (timer >= 2592000 && timer < 365 * 86400) {
  13824. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13825. } else {
  13826. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13827. }
  13828. } else {
  13829. tips = timeFormat(timestamp, format);
  13830. }
  13831. }
  13832. return tips;
  13833. }
  13834. /**
  13835. * @description 去除空格
  13836. * @param String str 需要去除空格的字符串
  13837. * @param String pos both(左右)|left|right|all 默认both
  13838. */
  13839. function trim(str) {
  13840. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13841. str = String(str);
  13842. if (pos == 'both') {
  13843. return str.replace(/^\s+|\s+$/g, '');
  13844. }
  13845. if (pos == 'left') {
  13846. return str.replace(/^\s*/, '');
  13847. }
  13848. if (pos == 'right') {
  13849. return str.replace(/(\s*$)/g, '');
  13850. }
  13851. if (pos == 'all') {
  13852. return str.replace(/\s+/g, '');
  13853. }
  13854. return str;
  13855. }
  13856. /**
  13857. * @description 对象转url参数
  13858. * @param {object} data,对象
  13859. * @param {Boolean} isPrefix,是否自动加上"?"
  13860. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13861. */
  13862. function queryParams() {
  13863. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13864. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13865. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13866. var prefix = isPrefix ? '?' : '';
  13867. var _result = [];
  13868. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13869. var _loop = function _loop(key) {
  13870. var value = data[key];
  13871. // 去掉为空的参数
  13872. if (['', undefined, null].indexOf(value) >= 0) {
  13873. return "continue";
  13874. }
  13875. // 如果值为数组,另行处理
  13876. if (value.constructor === Array) {
  13877. // e.g. {ids: [1, 2, 3]}
  13878. switch (arrayFormat) {
  13879. case 'indices':
  13880. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13881. for (var i = 0; i < value.length; i++) {
  13882. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13883. }
  13884. break;
  13885. case 'brackets':
  13886. // 结果: ids[]=1&ids[]=2&ids[]=3
  13887. value.forEach(function (_value) {
  13888. _result.push("".concat(key, "[]=").concat(_value));
  13889. });
  13890. break;
  13891. case 'repeat':
  13892. // 结果: ids=1&ids=2&ids=3
  13893. value.forEach(function (_value) {
  13894. _result.push("".concat(key, "=").concat(_value));
  13895. });
  13896. break;
  13897. case 'comma':
  13898. // 结果: ids=1,2,3
  13899. var commaStr = '';
  13900. value.forEach(function (_value) {
  13901. commaStr += (commaStr ? ',' : '') + _value;
  13902. });
  13903. _result.push("".concat(key, "=").concat(commaStr));
  13904. break;
  13905. default:
  13906. value.forEach(function (_value) {
  13907. _result.push("".concat(key, "[]=").concat(_value));
  13908. });
  13909. }
  13910. } else {
  13911. _result.push("".concat(key, "=").concat(value));
  13912. }
  13913. };
  13914. for (var key in data) {
  13915. var _ret = _loop(key);
  13916. if (_ret === "continue") continue;
  13917. }
  13918. return _result.length ? prefix + _result.join('&') : '';
  13919. }
  13920. /**
  13921. * 显示消息提示框
  13922. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13923. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13924. */
  13925. function toast(title) {
  13926. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13927. uni.showToast({
  13928. title: String(title),
  13929. icon: 'none',
  13930. duration: duration
  13931. });
  13932. }
  13933. /**
  13934. * @description 根据主题type值,获取对应的图标
  13935. * @param {String} type 主题名称,primary|info|error|warning|success
  13936. * @param {boolean} fill 是否使用fill填充实体的图标
  13937. */
  13938. function type2icon() {
  13939. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13940. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13941. // 如果非预置值,默认为success
  13942. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13943. var iconName = '';
  13944. // 目前(2019-12-12),info和primary使用同一个图标
  13945. switch (type) {
  13946. case 'primary':
  13947. iconName = 'info-circle';
  13948. break;
  13949. case 'info':
  13950. iconName = 'info-circle';
  13951. break;
  13952. case 'error':
  13953. iconName = 'close-circle';
  13954. break;
  13955. case 'warning':
  13956. iconName = 'error-circle';
  13957. break;
  13958. case 'success':
  13959. iconName = 'checkmark-circle';
  13960. break;
  13961. default:
  13962. iconName = 'checkmark-circle';
  13963. }
  13964. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13965. if (fill) iconName += '-fill';
  13966. return iconName;
  13967. }
  13968. /**
  13969. * @description 数字格式化
  13970. * @param {number|string} number 要格式化的数字
  13971. * @param {number} decimals 保留几位小数
  13972. * @param {string} decimalPoint 小数点符号
  13973. * @param {string} thousandsSeparator 千分位符号
  13974. * @returns {string} 格式化后的数字
  13975. */
  13976. function priceFormat(number) {
  13977. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13978. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13979. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13980. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13981. var n = !isFinite(+number) ? 0 : +number;
  13982. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13983. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13984. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13985. var s = '';
  13986. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13987. var re = /(-?\d+)(\d{3})/;
  13988. while (re.test(s[0])) {
  13989. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13990. }
  13991. if ((s[1] || '').length < prec) {
  13992. s[1] = s[1] || '';
  13993. s[1] += new Array(prec - s[1].length + 1).join('0');
  13994. }
  13995. return s.join(dec);
  13996. }
  13997. /**
  13998. * @description 获取duration值
  13999. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  14000. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  14001. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  14002. * @param {boolean} unit 提示: 如果是false 默认返回number
  14003. * @return {string|number}
  14004. */
  14005. function getDuration(value) {
  14006. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14007. var valueNum = parseInt(value);
  14008. if (unit) {
  14009. if (/s$/.test(value)) return value;
  14010. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  14011. }
  14012. if (/ms$/.test(value)) return valueNum;
  14013. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  14014. return valueNum;
  14015. }
  14016. /**
  14017. * @description 日期的月或日补零操作
  14018. * @param {String} value 需要补零的值
  14019. */
  14020. function padZero(value) {
  14021. return "00".concat(value).slice(-2);
  14022. }
  14023. /**
  14024. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  14025. * @param {*} instance
  14026. * @param {*} event
  14027. */
  14028. function formValidate(instance, event) {
  14029. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  14030. var form = uni.$u.$parent.call(instance, 'u-form');
  14031. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  14032. // 同时将form-item的pros传递给form,让其进行精确对象验证
  14033. if (formItem && form) {
  14034. form.validateField(formItem.prop, function () {}, event);
  14035. }
  14036. }
  14037. /**
  14038. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  14039. * @param {object} obj 对象
  14040. * @param {string} key 需要获取的属性字段
  14041. * @returns {*}
  14042. */
  14043. function getProperty(obj, key) {
  14044. if (!obj) {
  14045. return;
  14046. }
  14047. if (typeof key !== 'string' || key === '') {
  14048. return '';
  14049. }
  14050. if (key.indexOf('.') !== -1) {
  14051. var keys = key.split('.');
  14052. var firstObj = obj[keys[0]] || {};
  14053. for (var i = 1; i < keys.length; i++) {
  14054. if (firstObj) {
  14055. firstObj = firstObj[keys[i]];
  14056. }
  14057. }
  14058. return firstObj;
  14059. }
  14060. return obj[key];
  14061. }
  14062. /**
  14063. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  14064. * @param {object} obj 对象
  14065. * @param {string} key 需要设置的属性
  14066. * @param {string} value 设置的值
  14067. */
  14068. function setProperty(obj, key, value) {
  14069. if (!obj) {
  14070. return;
  14071. }
  14072. // 递归赋值
  14073. var inFn = function inFn(_obj, keys, v) {
  14074. // 最后一个属性key
  14075. if (keys.length === 1) {
  14076. _obj[keys[0]] = v;
  14077. return;
  14078. }
  14079. // 0~length-1个key
  14080. while (keys.length > 1) {
  14081. var k = keys[0];
  14082. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  14083. _obj[k] = {};
  14084. }
  14085. var _key = keys.shift();
  14086. // 自调用判断是否存在属性,不存在则自动创建对象
  14087. inFn(_obj[k], keys, v);
  14088. }
  14089. };
  14090. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  14091. // 支持多层级赋值操作
  14092. var keys = key.split('.');
  14093. inFn(obj, keys, value);
  14094. } else {
  14095. obj[key] = value;
  14096. }
  14097. }
  14098. /**
  14099. * @description 获取当前页面路径
  14100. */
  14101. function page() {
  14102. var _pages$route, _pages;
  14103. var pages = getCurrentPages();
  14104. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  14105. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  14106. }
  14107. /**
  14108. * @description 获取当前路由栈实例数组
  14109. */
  14110. function pages() {
  14111. var pages = getCurrentPages();
  14112. return pages;
  14113. }
  14114. /**
  14115. * 获取页面历史栈指定层实例
  14116. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  14117. */
  14118. function getHistoryPage() {
  14119. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14120. var pages = getCurrentPages();
  14121. var len = pages.length;
  14122. return pages[len - 1 + back];
  14123. }
  14124. /**
  14125. * @description 修改uView内置属性值
  14126. * @param {object} props 修改内置props属性
  14127. * @param {object} config 修改内置config属性
  14128. * @param {object} color 修改内置color属性
  14129. * @param {object} zIndex 修改内置zIndex属性
  14130. */
  14131. function setConfig(_ref5) {
  14132. var _ref5$props = _ref5.props,
  14133. props = _ref5$props === void 0 ? {} : _ref5$props,
  14134. _ref5$config = _ref5.config,
  14135. config = _ref5$config === void 0 ? {} : _ref5$config,
  14136. _ref5$color = _ref5.color,
  14137. color = _ref5$color === void 0 ? {} : _ref5$color,
  14138. _ref5$zIndex = _ref5.zIndex,
  14139. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  14140. var deepMerge = uni.$u.deepMerge;
  14141. uni.$u.config = deepMerge(uni.$u.config, config);
  14142. uni.$u.props = deepMerge(uni.$u.props, props);
  14143. uni.$u.color = deepMerge(uni.$u.color, color);
  14144. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14145. }
  14146. var _default = {
  14147. range: range,
  14148. getPx: getPx,
  14149. sleep: sleep,
  14150. os: os,
  14151. sys: sys,
  14152. random: random,
  14153. guid: guid,
  14154. $parent: $parent,
  14155. addStyle: addStyle,
  14156. addUnit: addUnit,
  14157. deepClone: deepClone,
  14158. deepMerge: deepMerge,
  14159. error: error,
  14160. randomArray: randomArray,
  14161. timeFormat: timeFormat,
  14162. timeFrom: timeFrom,
  14163. trim: trim,
  14164. queryParams: queryParams,
  14165. toast: toast,
  14166. type2icon: type2icon,
  14167. priceFormat: priceFormat,
  14168. getDuration: getDuration,
  14169. padZero: padZero,
  14170. formValidate: formValidate,
  14171. getProperty: getProperty,
  14172. setProperty: setProperty,
  14173. page: page,
  14174. pages: pages,
  14175. getHistoryPage: getHistoryPage,
  14176. setConfig: setConfig
  14177. };
  14178. exports.default = _default;
  14179. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  14180. /***/ }),
  14181. /* 67 */
  14182. /*!*******************************************************************************!*\
  14183. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/function/digit.js ***!
  14184. \*******************************************************************************/
  14185. /*! no static exports found */
  14186. /***/ (function(module, exports, __webpack_require__) {
  14187. "use strict";
  14188. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14189. Object.defineProperty(exports, "__esModule", {
  14190. value: true
  14191. });
  14192. exports.default = void 0;
  14193. exports.divide = divide;
  14194. exports.enableBoundaryChecking = enableBoundaryChecking;
  14195. exports.minus = minus;
  14196. exports.plus = plus;
  14197. exports.round = round;
  14198. exports.times = times;
  14199. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 68));
  14200. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14201. /**
  14202. * 把错误的数据转正
  14203. * @private
  14204. * @example strip(0.09999999999999998)=0.1
  14205. */
  14206. function strip(num) {
  14207. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14208. return +parseFloat(Number(num).toPrecision(precision));
  14209. }
  14210. /**
  14211. * Return digits length of a number
  14212. * @private
  14213. * @param {*number} num Input number
  14214. */
  14215. function digitLength(num) {
  14216. // Get digit length of e
  14217. var eSplit = num.toString().split(/[eE]/);
  14218. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14219. return len > 0 ? len : 0;
  14220. }
  14221. /**
  14222. * 把小数转成整数,如果是小数则放大成整数
  14223. * @private
  14224. * @param {*number} num 输入数
  14225. */
  14226. function float2Fixed(num) {
  14227. if (num.toString().indexOf('e') === -1) {
  14228. return Number(num.toString().replace('.', ''));
  14229. }
  14230. var dLen = digitLength(num);
  14231. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14232. }
  14233. /**
  14234. * 检测数字是否越界,如果越界给出提示
  14235. * @private
  14236. * @param {*number} num 输入数
  14237. */
  14238. function checkBoundary(num) {
  14239. if (_boundaryCheckingState) {
  14240. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14241. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14242. }
  14243. }
  14244. }
  14245. /**
  14246. * 把递归操作扁平迭代化
  14247. * @param {number[]} arr 要操作的数字数组
  14248. * @param {function} operation 迭代操作
  14249. * @private
  14250. */
  14251. function iteratorOperation(arr, operation) {
  14252. var _arr = (0, _toArray2.default)(arr),
  14253. num1 = _arr[0],
  14254. num2 = _arr[1],
  14255. others = _arr.slice(2);
  14256. var res = operation(num1, num2);
  14257. others.forEach(function (num) {
  14258. res = operation(res, num);
  14259. });
  14260. return res;
  14261. }
  14262. /**
  14263. * 高精度乘法
  14264. * @export
  14265. */
  14266. function times() {
  14267. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14268. nums[_key] = arguments[_key];
  14269. }
  14270. if (nums.length > 2) {
  14271. return iteratorOperation(nums, times);
  14272. }
  14273. var num1 = nums[0],
  14274. num2 = nums[1];
  14275. var num1Changed = float2Fixed(num1);
  14276. var num2Changed = float2Fixed(num2);
  14277. var baseNum = digitLength(num1) + digitLength(num2);
  14278. var leftValue = num1Changed * num2Changed;
  14279. checkBoundary(leftValue);
  14280. return leftValue / Math.pow(10, baseNum);
  14281. }
  14282. /**
  14283. * 高精度加法
  14284. * @export
  14285. */
  14286. function plus() {
  14287. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14288. nums[_key2] = arguments[_key2];
  14289. }
  14290. if (nums.length > 2) {
  14291. return iteratorOperation(nums, plus);
  14292. }
  14293. var num1 = nums[0],
  14294. num2 = nums[1];
  14295. // 取最大的小数位
  14296. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14297. // 把小数都转为整数然后再计算
  14298. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14299. }
  14300. /**
  14301. * 高精度减法
  14302. * @export
  14303. */
  14304. function minus() {
  14305. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14306. nums[_key3] = arguments[_key3];
  14307. }
  14308. if (nums.length > 2) {
  14309. return iteratorOperation(nums, minus);
  14310. }
  14311. var num1 = nums[0],
  14312. num2 = nums[1];
  14313. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14314. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14315. }
  14316. /**
  14317. * 高精度除法
  14318. * @export
  14319. */
  14320. function divide() {
  14321. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14322. nums[_key4] = arguments[_key4];
  14323. }
  14324. if (nums.length > 2) {
  14325. return iteratorOperation(nums, divide);
  14326. }
  14327. var num1 = nums[0],
  14328. num2 = nums[1];
  14329. var num1Changed = float2Fixed(num1);
  14330. var num2Changed = float2Fixed(num2);
  14331. checkBoundary(num1Changed);
  14332. checkBoundary(num2Changed);
  14333. // 重要,这里必须用strip进行修正
  14334. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14335. }
  14336. /**
  14337. * 四舍五入
  14338. * @export
  14339. */
  14340. function round(num, ratio) {
  14341. var base = Math.pow(10, ratio);
  14342. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14343. if (num < 0 && result !== 0) {
  14344. result = times(result, -1);
  14345. }
  14346. // 位数不足则补0
  14347. return result;
  14348. }
  14349. /**
  14350. * 是否进行边界检查,默认开启
  14351. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14352. * @export
  14353. */
  14354. function enableBoundaryChecking() {
  14355. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14356. _boundaryCheckingState = flag;
  14357. }
  14358. var _default = {
  14359. times: times,
  14360. plus: plus,
  14361. minus: minus,
  14362. divide: divide,
  14363. round: round,
  14364. enableBoundaryChecking: enableBoundaryChecking
  14365. };
  14366. exports.default = _default;
  14367. /***/ }),
  14368. /* 68 */
  14369. /*!********************************************************!*\
  14370. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14371. \********************************************************/
  14372. /*! no static exports found */
  14373. /***/ (function(module, exports, __webpack_require__) {
  14374. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14375. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14376. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14377. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14378. function _toArray(arr) {
  14379. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14380. }
  14381. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14382. /***/ }),
  14383. /* 69 */
  14384. /*!******************************************************************************!*\
  14385. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/config.js ***!
  14386. \******************************************************************************/
  14387. /*! no static exports found */
  14388. /***/ (function(module, exports, __webpack_require__) {
  14389. "use strict";
  14390. Object.defineProperty(exports, "__esModule", {
  14391. value: true
  14392. });
  14393. exports.default = void 0;
  14394. // 此版本发布于2023-03-27
  14395. var version = '2.0.36';
  14396. // 开发环境才提示,生产环境不会提示
  14397. if (true) {
  14398. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14399. }
  14400. var _default = {
  14401. v: version,
  14402. version: version,
  14403. // 主题名称
  14404. type: ['primary', 'success', 'info', 'error', 'warning'],
  14405. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14406. color: {
  14407. 'u-primary': '#2979ff',
  14408. 'u-warning': '#ff9900',
  14409. 'u-success': '#19be6b',
  14410. 'u-error': '#fa3534',
  14411. 'u-info': '#909399',
  14412. 'u-main-color': '#303133',
  14413. 'u-content-color': '#606266',
  14414. 'u-tips-color': '#909399',
  14415. 'u-light-color': '#c0c4cc'
  14416. },
  14417. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14418. unit: 'px'
  14419. };
  14420. exports.default = _default;
  14421. /***/ }),
  14422. /* 70 */
  14423. /*!*****************************************************************************!*\
  14424. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props.js ***!
  14425. \*****************************************************************************/
  14426. /*! no static exports found */
  14427. /***/ (function(module, exports, __webpack_require__) {
  14428. "use strict";
  14429. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14430. Object.defineProperty(exports, "__esModule", {
  14431. value: true
  14432. });
  14433. exports.default = void 0;
  14434. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14435. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 69));
  14436. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 71));
  14437. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 72));
  14438. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 73));
  14439. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 74));
  14440. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 75));
  14441. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 76));
  14442. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 77));
  14443. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 78));
  14444. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 79));
  14445. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 80));
  14446. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 81));
  14447. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 82));
  14448. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 83));
  14449. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 84));
  14450. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 85));
  14451. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 86));
  14452. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 87));
  14453. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 88));
  14454. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 89));
  14455. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 90));
  14456. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 91));
  14457. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 92));
  14458. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 93));
  14459. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 94));
  14460. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 95));
  14461. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 96));
  14462. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 97));
  14463. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 98));
  14464. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 99));
  14465. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 100));
  14466. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 101));
  14467. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 102));
  14468. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 103));
  14469. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 104));
  14470. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 105));
  14471. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 106));
  14472. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 107));
  14473. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 108));
  14474. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 109));
  14475. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 110));
  14476. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 111));
  14477. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 112));
  14478. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 113));
  14479. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 114));
  14480. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 115));
  14481. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 116));
  14482. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 117));
  14483. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 119));
  14484. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 120));
  14485. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 121));
  14486. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 122));
  14487. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 123));
  14488. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 124));
  14489. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 125));
  14490. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 126));
  14491. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 127));
  14492. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 128));
  14493. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 129));
  14494. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 130));
  14495. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 131));
  14496. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 132));
  14497. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 133));
  14498. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 134));
  14499. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 135));
  14500. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 136));
  14501. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 137));
  14502. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 138));
  14503. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 139));
  14504. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 140));
  14505. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 141));
  14506. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 142));
  14507. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 143));
  14508. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 144));
  14509. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 145));
  14510. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 146));
  14511. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 147));
  14512. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 148));
  14513. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 149));
  14514. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 150));
  14515. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 151));
  14516. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 152));
  14517. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 153));
  14518. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 154));
  14519. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 155));
  14520. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 156));
  14521. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 157));
  14522. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 158));
  14523. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 159));
  14524. 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; }
  14525. 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; }
  14526. var color = _config.default.color;
  14527. 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);
  14528. exports.default = _default;
  14529. /***/ }),
  14530. /* 71 */
  14531. /*!*****************************************************************************************!*\
  14532. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14533. \*****************************************************************************************/
  14534. /*! no static exports found */
  14535. /***/ (function(module, exports, __webpack_require__) {
  14536. "use strict";
  14537. Object.defineProperty(exports, "__esModule", {
  14538. value: true
  14539. });
  14540. exports.default = void 0;
  14541. /*
  14542. * @Author : LQ
  14543. * @Description :
  14544. * @version : 1.0
  14545. * @Date : 2021-08-20 16:44:21
  14546. * @LastAuthor : LQ
  14547. * @lastTime : 2021-08-20 16:44:35
  14548. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14549. */
  14550. var _default = {
  14551. // action-sheet组件
  14552. actionSheet: {
  14553. show: false,
  14554. title: '',
  14555. description: '',
  14556. actions: function actions() {
  14557. return [];
  14558. },
  14559. index: '',
  14560. cancelText: '',
  14561. closeOnClickAction: true,
  14562. safeAreaInsetBottom: true,
  14563. openType: '',
  14564. closeOnClickOverlay: true,
  14565. round: 0
  14566. }
  14567. };
  14568. exports.default = _default;
  14569. /***/ }),
  14570. /* 72 */
  14571. /*!***********************************************************************************!*\
  14572. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/album.js ***!
  14573. \***********************************************************************************/
  14574. /*! no static exports found */
  14575. /***/ (function(module, exports, __webpack_require__) {
  14576. "use strict";
  14577. Object.defineProperty(exports, "__esModule", {
  14578. value: true
  14579. });
  14580. exports.default = void 0;
  14581. /*
  14582. * @Author : LQ
  14583. * @Description :
  14584. * @version : 1.0
  14585. * @Date : 2021-08-20 16:44:21
  14586. * @LastAuthor : LQ
  14587. * @lastTime : 2021-08-20 16:47:24
  14588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14589. */
  14590. var _default = {
  14591. // album 组件
  14592. album: {
  14593. urls: function urls() {
  14594. return [];
  14595. },
  14596. keyName: '',
  14597. singleSize: 180,
  14598. multipleSize: 70,
  14599. space: 6,
  14600. singleMode: 'scaleToFill',
  14601. multipleMode: 'aspectFill',
  14602. maxCount: 9,
  14603. previewFullImage: true,
  14604. rowCount: 3,
  14605. showMore: true
  14606. }
  14607. };
  14608. exports.default = _default;
  14609. /***/ }),
  14610. /* 73 */
  14611. /*!***********************************************************************************!*\
  14612. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14613. \***********************************************************************************/
  14614. /*! no static exports found */
  14615. /***/ (function(module, exports, __webpack_require__) {
  14616. "use strict";
  14617. Object.defineProperty(exports, "__esModule", {
  14618. value: true
  14619. });
  14620. exports.default = void 0;
  14621. /*
  14622. * @Author : LQ
  14623. * @Description :
  14624. * @version : 1.0
  14625. * @Date : 2021-08-20 16:44:21
  14626. * @LastAuthor : LQ
  14627. * @lastTime : 2021-08-20 16:48:53
  14628. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14629. */
  14630. var _default = {
  14631. // alert警告组件
  14632. alert: {
  14633. title: '',
  14634. type: 'warning',
  14635. description: '',
  14636. closable: false,
  14637. showIcon: false,
  14638. effect: 'light',
  14639. center: false,
  14640. fontSize: 14
  14641. }
  14642. };
  14643. exports.default = _default;
  14644. /***/ }),
  14645. /* 74 */
  14646. /*!************************************************************************************!*\
  14647. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14648. \************************************************************************************/
  14649. /*! no static exports found */
  14650. /***/ (function(module, exports, __webpack_require__) {
  14651. "use strict";
  14652. Object.defineProperty(exports, "__esModule", {
  14653. value: true
  14654. });
  14655. exports.default = void 0;
  14656. /*
  14657. * @Author : LQ
  14658. * @Description :
  14659. * @version : 1.0
  14660. * @Date : 2021-08-20 16:44:21
  14661. * @LastAuthor : LQ
  14662. * @lastTime : 2021-08-20 16:49:22
  14663. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14664. */
  14665. var _default = {
  14666. // avatar 组件
  14667. avatar: {
  14668. src: '',
  14669. shape: 'circle',
  14670. size: 40,
  14671. mode: 'scaleToFill',
  14672. text: '',
  14673. bgColor: '#c0c4cc',
  14674. color: '#ffffff',
  14675. fontSize: 18,
  14676. icon: '',
  14677. mpAvatar: false,
  14678. randomBgColor: false,
  14679. defaultUrl: '',
  14680. colorIndex: '',
  14681. name: ''
  14682. }
  14683. };
  14684. exports.default = _default;
  14685. /***/ }),
  14686. /* 75 */
  14687. /*!*****************************************************************************************!*\
  14688. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14689. \*****************************************************************************************/
  14690. /*! no static exports found */
  14691. /***/ (function(module, exports, __webpack_require__) {
  14692. "use strict";
  14693. Object.defineProperty(exports, "__esModule", {
  14694. value: true
  14695. });
  14696. exports.default = void 0;
  14697. /*
  14698. * @Author : LQ
  14699. * @Description :
  14700. * @version : 1.0
  14701. * @Date : 2021-08-20 16:44:21
  14702. * @LastAuthor : LQ
  14703. * @lastTime : 2021-08-20 16:49:55
  14704. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14705. */
  14706. var _default = {
  14707. // avatarGroup 组件
  14708. avatarGroup: {
  14709. urls: function urls() {
  14710. return [];
  14711. },
  14712. maxCount: 5,
  14713. shape: 'circle',
  14714. mode: 'scaleToFill',
  14715. showMore: true,
  14716. size: 40,
  14717. keyName: '',
  14718. gap: 0.5,
  14719. extraValue: 0
  14720. }
  14721. };
  14722. exports.default = _default;
  14723. /***/ }),
  14724. /* 76 */
  14725. /*!*************************************************************************************!*\
  14726. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  14727. \*************************************************************************************/
  14728. /*! no static exports found */
  14729. /***/ (function(module, exports, __webpack_require__) {
  14730. "use strict";
  14731. Object.defineProperty(exports, "__esModule", {
  14732. value: true
  14733. });
  14734. exports.default = void 0;
  14735. /*
  14736. * @Author : LQ
  14737. * @Description :
  14738. * @version : 1.0
  14739. * @Date : 2021-08-20 16:44:21
  14740. * @LastAuthor : LQ
  14741. * @lastTime : 2021-08-20 16:50:18
  14742. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14743. */
  14744. var _default = {
  14745. // backtop组件
  14746. backtop: {
  14747. mode: 'circle',
  14748. icon: 'arrow-upward',
  14749. text: '',
  14750. duration: 100,
  14751. scrollTop: 0,
  14752. top: 400,
  14753. bottom: 100,
  14754. right: 20,
  14755. zIndex: 9,
  14756. iconStyle: function iconStyle() {
  14757. return {
  14758. color: '#909399',
  14759. fontSize: '19px'
  14760. };
  14761. }
  14762. }
  14763. };
  14764. exports.default = _default;
  14765. /***/ }),
  14766. /* 77 */
  14767. /*!***********************************************************************************!*\
  14768. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/badge.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-23 19:51:50
  14784. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14785. */
  14786. var _default = {
  14787. // 徽标数组件
  14788. badge: {
  14789. isDot: false,
  14790. value: '',
  14791. show: true,
  14792. max: 999,
  14793. type: 'error',
  14794. showZero: false,
  14795. bgColor: null,
  14796. color: null,
  14797. shape: 'circle',
  14798. numberType: 'overflow',
  14799. offset: function offset() {
  14800. return [];
  14801. },
  14802. inverted: false,
  14803. absolute: false
  14804. }
  14805. };
  14806. exports.default = _default;
  14807. /***/ }),
  14808. /* 78 */
  14809. /*!************************************************************************************!*\
  14810. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/button.js ***!
  14811. \************************************************************************************/
  14812. /*! no static exports found */
  14813. /***/ (function(module, exports, __webpack_require__) {
  14814. "use strict";
  14815. Object.defineProperty(exports, "__esModule", {
  14816. value: true
  14817. });
  14818. exports.default = void 0;
  14819. /*
  14820. * @Author : LQ
  14821. * @Description :
  14822. * @version : 1.0
  14823. * @Date : 2021-08-20 16:44:21
  14824. * @LastAuthor : LQ
  14825. * @lastTime : 2021-08-20 16:51:27
  14826. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14827. */
  14828. var _default = {
  14829. // button组件
  14830. button: {
  14831. hairline: false,
  14832. type: 'info',
  14833. size: 'normal',
  14834. shape: 'square',
  14835. plain: false,
  14836. disabled: false,
  14837. loading: false,
  14838. loadingText: '',
  14839. loadingMode: 'spinner',
  14840. loadingSize: 15,
  14841. openType: '',
  14842. formType: '',
  14843. appParameter: '',
  14844. hoverStopPropagation: true,
  14845. lang: 'en',
  14846. sessionFrom: '',
  14847. sendMessageTitle: '',
  14848. sendMessagePath: '',
  14849. sendMessageImg: '',
  14850. showMessageCard: false,
  14851. dataName: '',
  14852. throttleTime: 0,
  14853. hoverStartTime: 0,
  14854. hoverStayTime: 200,
  14855. text: '',
  14856. icon: '',
  14857. iconColor: '',
  14858. color: ''
  14859. }
  14860. };
  14861. exports.default = _default;
  14862. /***/ }),
  14863. /* 79 */
  14864. /*!**************************************************************************************!*\
  14865. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  14866. \**************************************************************************************/
  14867. /*! no static exports found */
  14868. /***/ (function(module, exports, __webpack_require__) {
  14869. "use strict";
  14870. Object.defineProperty(exports, "__esModule", {
  14871. value: true
  14872. });
  14873. exports.default = void 0;
  14874. /*
  14875. * @Author : LQ
  14876. * @Description :
  14877. * @version : 1.0
  14878. * @Date : 2021-08-20 16:44:21
  14879. * @LastAuthor : LQ
  14880. * @lastTime : 2021-08-20 16:52:43
  14881. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14882. */
  14883. var _default = {
  14884. // calendar 组件
  14885. calendar: {
  14886. title: '日期选择',
  14887. showTitle: true,
  14888. showSubtitle: true,
  14889. mode: 'single',
  14890. startText: '开始',
  14891. endText: '结束',
  14892. customList: function customList() {
  14893. return [];
  14894. },
  14895. color: '#3c9cff',
  14896. minDate: 0,
  14897. maxDate: 0,
  14898. defaultDate: null,
  14899. maxCount: Number.MAX_SAFE_INTEGER,
  14900. // Infinity
  14901. rowHeight: 56,
  14902. formatter: null,
  14903. showLunar: false,
  14904. showMark: true,
  14905. confirmText: '确定',
  14906. confirmDisabledText: '确定',
  14907. show: false,
  14908. closeOnClickOverlay: false,
  14909. readonly: false,
  14910. showConfirm: true,
  14911. maxRange: Number.MAX_SAFE_INTEGER,
  14912. // Infinity
  14913. rangePrompt: '',
  14914. showRangePrompt: true,
  14915. allowSameDay: false,
  14916. round: 0,
  14917. monthNum: 3
  14918. }
  14919. };
  14920. exports.default = _default;
  14921. /***/ }),
  14922. /* 80 */
  14923. /*!*****************************************************************************************!*\
  14924. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14925. \*****************************************************************************************/
  14926. /*! no static exports found */
  14927. /***/ (function(module, exports, __webpack_require__) {
  14928. "use strict";
  14929. Object.defineProperty(exports, "__esModule", {
  14930. value: true
  14931. });
  14932. exports.default = void 0;
  14933. /*
  14934. * @Author : LQ
  14935. * @Description :
  14936. * @version : 1.0
  14937. * @Date : 2021-08-20 16:44:21
  14938. * @LastAuthor : LQ
  14939. * @lastTime : 2021-08-20 16:53:20
  14940. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14941. */
  14942. var _default = {
  14943. // 车牌号键盘
  14944. carKeyboard: {
  14945. random: false
  14946. }
  14947. };
  14948. exports.default = _default;
  14949. /***/ }),
  14950. /* 81 */
  14951. /*!**********************************************************************************!*\
  14952. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14953. \**********************************************************************************/
  14954. /*! no static exports found */
  14955. /***/ (function(module, exports, __webpack_require__) {
  14956. "use strict";
  14957. Object.defineProperty(exports, "__esModule", {
  14958. value: true
  14959. });
  14960. exports.default = void 0;
  14961. /*
  14962. * @Author : LQ
  14963. * @Description :
  14964. * @version : 1.0
  14965. * @Date : 2021-08-20 16:44:21
  14966. * @LastAuthor : LQ
  14967. * @lastTime : 2021-08-23 20:53:09
  14968. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14969. */
  14970. var _default = {
  14971. // cell组件的props
  14972. cell: {
  14973. customClass: '',
  14974. title: '',
  14975. label: '',
  14976. value: '',
  14977. icon: '',
  14978. disabled: false,
  14979. border: true,
  14980. center: false,
  14981. url: '',
  14982. linkType: 'navigateTo',
  14983. clickable: false,
  14984. isLink: false,
  14985. required: false,
  14986. arrowDirection: '',
  14987. iconStyle: {},
  14988. rightIconStyle: {},
  14989. rightIcon: 'arrow-right',
  14990. titleStyle: {},
  14991. size: '',
  14992. stop: true,
  14993. name: ''
  14994. }
  14995. };
  14996. exports.default = _default;
  14997. /***/ }),
  14998. /* 82 */
  14999. /*!***************************************************************************************!*\
  15000. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  15001. \***************************************************************************************/
  15002. /*! no static exports found */
  15003. /***/ (function(module, exports, __webpack_require__) {
  15004. "use strict";
  15005. Object.defineProperty(exports, "__esModule", {
  15006. value: true
  15007. });
  15008. exports.default = void 0;
  15009. /*
  15010. * @Author : LQ
  15011. * @Description :
  15012. * @version : 1.0
  15013. * @Date : 2021-08-20 16:44:21
  15014. * @LastAuthor : LQ
  15015. * @lastTime : 2021-08-20 16:54:16
  15016. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  15017. */
  15018. var _default = {
  15019. // cell-group组件的props
  15020. cellGroup: {
  15021. title: '',
  15022. border: true,
  15023. customStyle: {}
  15024. }
  15025. };
  15026. exports.default = _default;
  15027. /***/ }),
  15028. /* 83 */
  15029. /*!**************************************************************************************!*\
  15030. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  15031. \**************************************************************************************/
  15032. /*! no static exports found */
  15033. /***/ (function(module, exports, __webpack_require__) {
  15034. "use strict";
  15035. Object.defineProperty(exports, "__esModule", {
  15036. value: true
  15037. });
  15038. exports.default = void 0;
  15039. /*
  15040. * @Author : LQ
  15041. * @Description :
  15042. * @version : 1.0
  15043. * @Date : 2021-08-20 16:44:21
  15044. * @LastAuthor : LQ
  15045. * @lastTime : 2021-08-23 21:06:59
  15046. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  15047. */
  15048. var _default = {
  15049. // checkbox组件
  15050. checkbox: {
  15051. name: '',
  15052. shape: '',
  15053. size: '',
  15054. checkbox: false,
  15055. disabled: '',
  15056. activeColor: '',
  15057. inactiveColor: '',
  15058. iconSize: '',
  15059. iconColor: '',
  15060. label: '',
  15061. labelSize: '',
  15062. labelColor: '',
  15063. labelDisabled: ''
  15064. }
  15065. };
  15066. exports.default = _default;
  15067. /***/ }),
  15068. /* 84 */
  15069. /*!*******************************************************************************************!*\
  15070. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  15071. \*******************************************************************************************/
  15072. /*! no static exports found */
  15073. /***/ (function(module, exports, __webpack_require__) {
  15074. "use strict";
  15075. Object.defineProperty(exports, "__esModule", {
  15076. value: true
  15077. });
  15078. exports.default = void 0;
  15079. /*
  15080. * @Author : LQ
  15081. * @Description :
  15082. * @version : 1.0
  15083. * @Date : 2021-08-20 16:44:21
  15084. * @LastAuthor : LQ
  15085. * @lastTime : 2021-08-20 16:54:47
  15086. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  15087. */
  15088. var _default = {
  15089. // checkbox-group组件
  15090. checkboxGroup: {
  15091. name: '',
  15092. value: function value() {
  15093. return [];
  15094. },
  15095. shape: 'square',
  15096. disabled: false,
  15097. activeColor: '#2979ff',
  15098. inactiveColor: '#c8c9cc',
  15099. size: 18,
  15100. placement: 'row',
  15101. labelSize: 14,
  15102. labelColor: '#303133',
  15103. labelDisabled: false,
  15104. iconColor: '#ffffff',
  15105. iconSize: 12,
  15106. iconPlacement: 'left',
  15107. borderBottom: false
  15108. }
  15109. };
  15110. exports.default = _default;
  15111. /***/ }),
  15112. /* 85 */
  15113. /*!********************************************************************************************!*\
  15114. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  15115. \********************************************************************************************/
  15116. /*! no static exports found */
  15117. /***/ (function(module, exports, __webpack_require__) {
  15118. "use strict";
  15119. Object.defineProperty(exports, "__esModule", {
  15120. value: true
  15121. });
  15122. exports.default = void 0;
  15123. /*
  15124. * @Author : LQ
  15125. * @Description :
  15126. * @version : 1.0
  15127. * @Date : 2021-08-20 16:44:21
  15128. * @LastAuthor : LQ
  15129. * @lastTime : 2021-08-20 16:55:02
  15130. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15131. */
  15132. var _default = {
  15133. // circleProgress 组件
  15134. circleProgress: {
  15135. percentage: 30
  15136. }
  15137. };
  15138. exports.default = _default;
  15139. /***/ }),
  15140. /* 86 */
  15141. /*!**********************************************************************************!*\
  15142. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/code.js ***!
  15143. \**********************************************************************************/
  15144. /*! no static exports found */
  15145. /***/ (function(module, exports, __webpack_require__) {
  15146. "use strict";
  15147. Object.defineProperty(exports, "__esModule", {
  15148. value: true
  15149. });
  15150. exports.default = void 0;
  15151. /*
  15152. * @Author : LQ
  15153. * @Description :
  15154. * @version : 1.0
  15155. * @Date : 2021-08-20 16:44:21
  15156. * @LastAuthor : LQ
  15157. * @lastTime : 2021-08-20 16:55:27
  15158. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15159. */
  15160. var _default = {
  15161. // code 组件
  15162. code: {
  15163. seconds: 60,
  15164. startText: '获取验证码',
  15165. changeText: 'X秒重新获取',
  15166. endText: '重新获取',
  15167. keepRunning: false,
  15168. uniqueKey: ''
  15169. }
  15170. };
  15171. exports.default = _default;
  15172. /***/ }),
  15173. /* 87 */
  15174. /*!***************************************************************************************!*\
  15175. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  15176. \***************************************************************************************/
  15177. /*! no static exports found */
  15178. /***/ (function(module, exports, __webpack_require__) {
  15179. "use strict";
  15180. Object.defineProperty(exports, "__esModule", {
  15181. value: true
  15182. });
  15183. exports.default = void 0;
  15184. /*
  15185. * @Author : LQ
  15186. * @Description :
  15187. * @version : 1.0
  15188. * @Date : 2021-08-20 16:44:21
  15189. * @LastAuthor : LQ
  15190. * @lastTime : 2021-08-20 16:55:58
  15191. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15192. */
  15193. var _default = {
  15194. // codeInput 组件
  15195. codeInput: {
  15196. adjustPosition: true,
  15197. maxlength: 6,
  15198. dot: false,
  15199. mode: 'box',
  15200. hairline: false,
  15201. space: 10,
  15202. value: '',
  15203. focus: false,
  15204. bold: false,
  15205. color: '#606266',
  15206. fontSize: 18,
  15207. size: 35,
  15208. disabledKeyboard: false,
  15209. borderColor: '#c9cacc',
  15210. disabledDot: true
  15211. }
  15212. };
  15213. exports.default = _default;
  15214. /***/ }),
  15215. /* 88 */
  15216. /*!*********************************************************************************!*\
  15217. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/col.js ***!
  15218. \*********************************************************************************/
  15219. /*! no static exports found */
  15220. /***/ (function(module, exports, __webpack_require__) {
  15221. "use strict";
  15222. Object.defineProperty(exports, "__esModule", {
  15223. value: true
  15224. });
  15225. exports.default = void 0;
  15226. /*
  15227. * @Author : LQ
  15228. * @Description :
  15229. * @version : 1.0
  15230. * @Date : 2021-08-20 16:44:21
  15231. * @LastAuthor : LQ
  15232. * @lastTime : 2021-08-20 16:56:12
  15233. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15234. */
  15235. var _default = {
  15236. // col 组件
  15237. col: {
  15238. span: 12,
  15239. offset: 0,
  15240. justify: 'start',
  15241. align: 'stretch',
  15242. textAlign: 'left'
  15243. }
  15244. };
  15245. exports.default = _default;
  15246. /***/ }),
  15247. /* 89 */
  15248. /*!**************************************************************************************!*\
  15249. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  15250. \**************************************************************************************/
  15251. /*! no static exports found */
  15252. /***/ (function(module, exports, __webpack_require__) {
  15253. "use strict";
  15254. Object.defineProperty(exports, "__esModule", {
  15255. value: true
  15256. });
  15257. exports.default = void 0;
  15258. /*
  15259. * @Author : LQ
  15260. * @Description :
  15261. * @version : 1.0
  15262. * @Date : 2021-08-20 16:44:21
  15263. * @LastAuthor : LQ
  15264. * @lastTime : 2021-08-20 16:56:30
  15265. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15266. */
  15267. var _default = {
  15268. // collapse 组件
  15269. collapse: {
  15270. value: null,
  15271. accordion: false,
  15272. border: true
  15273. }
  15274. };
  15275. exports.default = _default;
  15276. /***/ }),
  15277. /* 90 */
  15278. /*!******************************************************************************************!*\
  15279. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15280. \******************************************************************************************/
  15281. /*! no static exports found */
  15282. /***/ (function(module, exports, __webpack_require__) {
  15283. "use strict";
  15284. Object.defineProperty(exports, "__esModule", {
  15285. value: true
  15286. });
  15287. exports.default = void 0;
  15288. /*
  15289. * @Author : LQ
  15290. * @Description :
  15291. * @version : 1.0
  15292. * @Date : 2021-08-20 16:44:21
  15293. * @LastAuthor : LQ
  15294. * @lastTime : 2021-08-20 16:56:42
  15295. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15296. */
  15297. var _default = {
  15298. // collapseItem 组件
  15299. collapseItem: {
  15300. title: '',
  15301. value: '',
  15302. label: '',
  15303. disabled: false,
  15304. isLink: true,
  15305. clickable: true,
  15306. border: true,
  15307. align: 'left',
  15308. name: '',
  15309. icon: '',
  15310. duration: 300
  15311. }
  15312. };
  15313. exports.default = _default;
  15314. /***/ }),
  15315. /* 91 */
  15316. /*!******************************************************************************************!*\
  15317. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15318. \******************************************************************************************/
  15319. /*! no static exports found */
  15320. /***/ (function(module, exports, __webpack_require__) {
  15321. "use strict";
  15322. Object.defineProperty(exports, "__esModule", {
  15323. value: true
  15324. });
  15325. exports.default = void 0;
  15326. /*
  15327. * @Author : LQ
  15328. * @Description :
  15329. * @version : 1.0
  15330. * @Date : 2021-08-20 16:44:21
  15331. * @LastAuthor : LQ
  15332. * @lastTime : 2021-08-20 16:57:16
  15333. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15334. */
  15335. var _default = {
  15336. // columnNotice 组件
  15337. columnNotice: {
  15338. text: '',
  15339. icon: 'volume',
  15340. mode: '',
  15341. color: '#f9ae3d',
  15342. bgColor: '#fdf6ec',
  15343. fontSize: 14,
  15344. speed: 80,
  15345. step: false,
  15346. duration: 1500,
  15347. disableTouch: true
  15348. }
  15349. };
  15350. exports.default = _default;
  15351. /***/ }),
  15352. /* 92 */
  15353. /*!***************************************************************************************!*\
  15354. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  15355. \***************************************************************************************/
  15356. /*! no static exports found */
  15357. /***/ (function(module, exports, __webpack_require__) {
  15358. "use strict";
  15359. Object.defineProperty(exports, "__esModule", {
  15360. value: true
  15361. });
  15362. exports.default = void 0;
  15363. /*
  15364. * @Author : LQ
  15365. * @Description :
  15366. * @version : 1.0
  15367. * @Date : 2021-08-20 16:44:21
  15368. * @LastAuthor : LQ
  15369. * @lastTime : 2021-08-20 17:11:29
  15370. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15371. */
  15372. var _default = {
  15373. // u-count-down 计时器组件
  15374. countDown: {
  15375. time: 0,
  15376. format: 'HH:mm:ss',
  15377. autoStart: true,
  15378. millisecond: false
  15379. }
  15380. };
  15381. exports.default = _default;
  15382. /***/ }),
  15383. /* 93 */
  15384. /*!*************************************************************************************!*\
  15385. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15386. \*************************************************************************************/
  15387. /*! no static exports found */
  15388. /***/ (function(module, exports, __webpack_require__) {
  15389. "use strict";
  15390. Object.defineProperty(exports, "__esModule", {
  15391. value: true
  15392. });
  15393. exports.default = void 0;
  15394. /*
  15395. * @Author : LQ
  15396. * @Description :
  15397. * @version : 1.0
  15398. * @Date : 2021-08-20 16:44:21
  15399. * @LastAuthor : LQ
  15400. * @lastTime : 2021-08-20 16:57:32
  15401. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15402. */
  15403. var _default = {
  15404. // countTo 组件
  15405. countTo: {
  15406. startVal: 0,
  15407. endVal: 0,
  15408. duration: 2000,
  15409. autoplay: true,
  15410. decimals: 0,
  15411. useEasing: true,
  15412. decimal: '.',
  15413. color: '#606266',
  15414. fontSize: 22,
  15415. bold: false,
  15416. separator: ''
  15417. }
  15418. };
  15419. exports.default = _default;
  15420. /***/ }),
  15421. /* 94 */
  15422. /*!********************************************************************************************!*\
  15423. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15424. \********************************************************************************************/
  15425. /*! no static exports found */
  15426. /***/ (function(module, exports, __webpack_require__) {
  15427. "use strict";
  15428. Object.defineProperty(exports, "__esModule", {
  15429. value: true
  15430. });
  15431. exports.default = void 0;
  15432. /*
  15433. * @Author : LQ
  15434. * @Description :
  15435. * @version : 1.0
  15436. * @Date : 2021-08-20 16:44:21
  15437. * @LastAuthor : LQ
  15438. * @lastTime : 2021-08-20 16:57:48
  15439. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15440. */
  15441. var _default = {
  15442. // datetimePicker 组件
  15443. datetimePicker: {
  15444. show: false,
  15445. showToolbar: true,
  15446. value: '',
  15447. title: '',
  15448. mode: 'datetime',
  15449. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15450. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15451. minHour: 0,
  15452. maxHour: 23,
  15453. minMinute: 0,
  15454. maxMinute: 59,
  15455. filter: null,
  15456. formatter: null,
  15457. loading: false,
  15458. itemHeight: 44,
  15459. cancelText: '取消',
  15460. confirmText: '确认',
  15461. cancelColor: '#909193',
  15462. confirmColor: '#3c9cff',
  15463. visibleItemCount: 5,
  15464. closeOnClickOverlay: false,
  15465. defaultIndex: function defaultIndex() {
  15466. return [];
  15467. }
  15468. }
  15469. };
  15470. exports.default = _default;
  15471. /***/ }),
  15472. /* 95 */
  15473. /*!*************************************************************************************!*\
  15474. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15475. \*************************************************************************************/
  15476. /*! no static exports found */
  15477. /***/ (function(module, exports, __webpack_require__) {
  15478. "use strict";
  15479. Object.defineProperty(exports, "__esModule", {
  15480. value: true
  15481. });
  15482. exports.default = void 0;
  15483. /*
  15484. * @Author : LQ
  15485. * @Description :
  15486. * @version : 1.0
  15487. * @Date : 2021-08-20 16:44:21
  15488. * @LastAuthor : LQ
  15489. * @lastTime : 2021-08-20 16:58:03
  15490. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15491. */
  15492. var _default = {
  15493. // divider组件
  15494. divider: {
  15495. dashed: false,
  15496. hairline: true,
  15497. dot: false,
  15498. textPosition: 'center',
  15499. text: '',
  15500. textSize: 14,
  15501. textColor: '#909399',
  15502. lineColor: '#dcdfe6'
  15503. }
  15504. };
  15505. exports.default = _default;
  15506. /***/ }),
  15507. /* 96 */
  15508. /*!***********************************************************************************!*\
  15509. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15510. \***********************************************************************************/
  15511. /*! no static exports found */
  15512. /***/ (function(module, exports, __webpack_require__) {
  15513. "use strict";
  15514. Object.defineProperty(exports, "__esModule", {
  15515. value: true
  15516. });
  15517. exports.default = void 0;
  15518. /*
  15519. * @Author : LQ
  15520. * @Description :
  15521. * @version : 1.0
  15522. * @Date : 2021-08-20 16:44:21
  15523. * @LastAuthor : LQ
  15524. * @lastTime : 2021-08-20 17:03:27
  15525. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15526. */
  15527. var _default = {
  15528. // empty组件
  15529. empty: {
  15530. icon: '',
  15531. text: '',
  15532. textColor: '#c0c4cc',
  15533. textSize: 14,
  15534. iconColor: '#c0c4cc',
  15535. iconSize: 90,
  15536. mode: 'data',
  15537. width: 160,
  15538. height: 160,
  15539. show: true,
  15540. marginTop: 0
  15541. }
  15542. };
  15543. exports.default = _default;
  15544. /***/ }),
  15545. /* 97 */
  15546. /*!**********************************************************************************!*\
  15547. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/form.js ***!
  15548. \**********************************************************************************/
  15549. /*! no static exports found */
  15550. /***/ (function(module, exports, __webpack_require__) {
  15551. "use strict";
  15552. Object.defineProperty(exports, "__esModule", {
  15553. value: true
  15554. });
  15555. exports.default = void 0;
  15556. /*
  15557. * @Author : LQ
  15558. * @Description :
  15559. * @version : 1.0
  15560. * @Date : 2021-08-20 16:44:21
  15561. * @LastAuthor : LQ
  15562. * @lastTime : 2021-08-20 17:03:49
  15563. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15564. */
  15565. var _default = {
  15566. // form 组件
  15567. form: {
  15568. model: function model() {
  15569. return {};
  15570. },
  15571. rules: function rules() {
  15572. return {};
  15573. },
  15574. errorType: 'message',
  15575. borderBottom: true,
  15576. labelPosition: 'left',
  15577. labelWidth: 45,
  15578. labelAlign: 'left',
  15579. labelStyle: function labelStyle() {
  15580. return {};
  15581. }
  15582. }
  15583. };
  15584. exports.default = _default;
  15585. /***/ }),
  15586. /* 98 */
  15587. /*!**************************************************************************************!*\
  15588. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15589. \**************************************************************************************/
  15590. /*! no static exports found */
  15591. /***/ (function(module, exports, __webpack_require__) {
  15592. "use strict";
  15593. Object.defineProperty(exports, "__esModule", {
  15594. value: true
  15595. });
  15596. exports.default = void 0;
  15597. /*
  15598. * @Author : LQ
  15599. * @Description :
  15600. * @version : 1.0
  15601. * @Date : 2021-08-20 16:44:21
  15602. * @LastAuthor : LQ
  15603. * @lastTime : 2021-08-20 17:04:32
  15604. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15605. */
  15606. var _default = {
  15607. // formItem 组件
  15608. formItem: {
  15609. label: '',
  15610. prop: '',
  15611. borderBottom: '',
  15612. labelPosition: '',
  15613. labelWidth: '',
  15614. rightIcon: '',
  15615. leftIcon: '',
  15616. required: false,
  15617. leftIconStyle: ''
  15618. }
  15619. };
  15620. exports.default = _default;
  15621. /***/ }),
  15622. /* 99 */
  15623. /*!*********************************************************************************!*\
  15624. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15625. \*********************************************************************************/
  15626. /*! no static exports found */
  15627. /***/ (function(module, exports, __webpack_require__) {
  15628. "use strict";
  15629. Object.defineProperty(exports, "__esModule", {
  15630. value: true
  15631. });
  15632. exports.default = void 0;
  15633. /*
  15634. * @Author : LQ
  15635. * @Description :
  15636. * @version : 1.0
  15637. * @Date : 2021-08-20 16:44:21
  15638. * @LastAuthor : LQ
  15639. * @lastTime : 2021-08-20 17:05:25
  15640. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15641. */
  15642. var _default = {
  15643. // gap组件
  15644. gap: {
  15645. bgColor: 'transparent',
  15646. height: 20,
  15647. marginTop: 0,
  15648. marginBottom: 0,
  15649. customStyle: {}
  15650. }
  15651. };
  15652. exports.default = _default;
  15653. /***/ }),
  15654. /* 100 */
  15655. /*!**********************************************************************************!*\
  15656. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15657. \**********************************************************************************/
  15658. /*! no static exports found */
  15659. /***/ (function(module, exports, __webpack_require__) {
  15660. "use strict";
  15661. Object.defineProperty(exports, "__esModule", {
  15662. value: true
  15663. });
  15664. exports.default = void 0;
  15665. /*
  15666. * @Author : LQ
  15667. * @Description :
  15668. * @version : 1.0
  15669. * @Date : 2021-08-20 16:44:21
  15670. * @LastAuthor : LQ
  15671. * @lastTime : 2021-08-20 17:05:57
  15672. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15673. */
  15674. var _default = {
  15675. // grid组件
  15676. grid: {
  15677. col: 3,
  15678. border: false,
  15679. align: 'left'
  15680. }
  15681. };
  15682. exports.default = _default;
  15683. /***/ }),
  15684. /* 101 */
  15685. /*!**************************************************************************************!*\
  15686. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15687. \**************************************************************************************/
  15688. /*! no static exports found */
  15689. /***/ (function(module, exports, __webpack_require__) {
  15690. "use strict";
  15691. Object.defineProperty(exports, "__esModule", {
  15692. value: true
  15693. });
  15694. exports.default = void 0;
  15695. /*
  15696. * @Author : LQ
  15697. * @Description :
  15698. * @version : 1.0
  15699. * @Date : 2021-08-20 16:44:21
  15700. * @LastAuthor : LQ
  15701. * @lastTime : 2021-08-20 17:06:13
  15702. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15703. */
  15704. var _default = {
  15705. // grid-item组件
  15706. gridItem: {
  15707. name: null,
  15708. bgColor: 'transparent'
  15709. }
  15710. };
  15711. exports.default = _default;
  15712. /***/ }),
  15713. /* 102 */
  15714. /*!**********************************************************************************!*\
  15715. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15716. \**********************************************************************************/
  15717. /*! no static exports found */
  15718. /***/ (function(module, exports, __webpack_require__) {
  15719. "use strict";
  15720. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15721. Object.defineProperty(exports, "__esModule", {
  15722. value: true
  15723. });
  15724. exports.default = void 0;
  15725. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  15726. /*
  15727. * @Author : LQ
  15728. * @Description :
  15729. * @version : 1.0
  15730. * @Date : 2021-08-20 16:44:21
  15731. * @LastAuthor : LQ
  15732. * @lastTime : 2021-08-20 18:00:14
  15733. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15734. */
  15735. var color = _config.default.color;
  15736. var _default = {
  15737. // icon组件
  15738. icon: {
  15739. name: '',
  15740. color: color['u-content-color'],
  15741. size: '16px',
  15742. bold: false,
  15743. index: '',
  15744. hoverClass: '',
  15745. customPrefix: 'uicon',
  15746. label: '',
  15747. labelPos: 'right',
  15748. labelSize: '15px',
  15749. labelColor: color['u-content-color'],
  15750. space: '3px',
  15751. imgMode: '',
  15752. width: '',
  15753. height: '',
  15754. top: 0,
  15755. stop: false
  15756. }
  15757. };
  15758. exports.default = _default;
  15759. /***/ }),
  15760. /* 103 */
  15761. /*!***********************************************************************************!*\
  15762. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/image.js ***!
  15763. \***********************************************************************************/
  15764. /*! no static exports found */
  15765. /***/ (function(module, exports, __webpack_require__) {
  15766. "use strict";
  15767. Object.defineProperty(exports, "__esModule", {
  15768. value: true
  15769. });
  15770. exports.default = void 0;
  15771. /*
  15772. * @Author : LQ
  15773. * @Description :
  15774. * @version : 1.0
  15775. * @Date : 2021-08-20 16:44:21
  15776. * @LastAuthor : LQ
  15777. * @lastTime : 2021-08-20 17:01:51
  15778. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15779. */
  15780. var _default = {
  15781. // image组件
  15782. image: {
  15783. src: '',
  15784. mode: 'aspectFill',
  15785. width: '300',
  15786. height: '225',
  15787. shape: 'square',
  15788. radius: 0,
  15789. lazyLoad: true,
  15790. showMenuByLongpress: true,
  15791. loadingIcon: 'photo',
  15792. errorIcon: 'error-circle',
  15793. showLoading: true,
  15794. showError: true,
  15795. fade: true,
  15796. webp: false,
  15797. duration: 500,
  15798. bgColor: '#f3f4f6'
  15799. }
  15800. };
  15801. exports.default = _default;
  15802. /***/ }),
  15803. /* 104 */
  15804. /*!*****************************************************************************************!*\
  15805. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15806. \*****************************************************************************************/
  15807. /*! no static exports found */
  15808. /***/ (function(module, exports, __webpack_require__) {
  15809. "use strict";
  15810. Object.defineProperty(exports, "__esModule", {
  15811. value: true
  15812. });
  15813. exports.default = void 0;
  15814. /*
  15815. * @Author : LQ
  15816. * @Description :
  15817. * @version : 1.0
  15818. * @Date : 2021-08-20 16:44:21
  15819. * @LastAuthor : LQ
  15820. * @lastTime : 2021-08-20 17:13:15
  15821. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15822. */
  15823. var _default = {
  15824. // indexAnchor 组件
  15825. indexAnchor: {
  15826. text: '',
  15827. color: '#606266',
  15828. size: 14,
  15829. bgColor: '#dedede',
  15830. height: 32
  15831. }
  15832. };
  15833. exports.default = _default;
  15834. /***/ }),
  15835. /* 105 */
  15836. /*!***************************************************************************************!*\
  15837. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15838. \***************************************************************************************/
  15839. /*! no static exports found */
  15840. /***/ (function(module, exports, __webpack_require__) {
  15841. "use strict";
  15842. Object.defineProperty(exports, "__esModule", {
  15843. value: true
  15844. });
  15845. exports.default = void 0;
  15846. /*
  15847. * @Author : LQ
  15848. * @Description :
  15849. * @version : 1.0
  15850. * @Date : 2021-08-20 16:44:21
  15851. * @LastAuthor : LQ
  15852. * @lastTime : 2021-08-20 17:13:35
  15853. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15854. */
  15855. var _default = {
  15856. // indexList 组件
  15857. indexList: {
  15858. inactiveColor: '#606266',
  15859. activeColor: '#5677fc',
  15860. indexList: function indexList() {
  15861. return [];
  15862. },
  15863. sticky: true,
  15864. customNavHeight: 0
  15865. }
  15866. };
  15867. exports.default = _default;
  15868. /***/ }),
  15869. /* 106 */
  15870. /*!***********************************************************************************!*\
  15871. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/input.js ***!
  15872. \***********************************************************************************/
  15873. /*! no static exports found */
  15874. /***/ (function(module, exports, __webpack_require__) {
  15875. "use strict";
  15876. Object.defineProperty(exports, "__esModule", {
  15877. value: true
  15878. });
  15879. exports.default = void 0;
  15880. /*
  15881. * @Author : LQ
  15882. * @Description :
  15883. * @version : 1.0
  15884. * @Date : 2021-08-20 16:44:21
  15885. * @LastAuthor : LQ
  15886. * @lastTime : 2021-08-20 17:13:55
  15887. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15888. */
  15889. var _default = {
  15890. // index 组件
  15891. input: {
  15892. value: '',
  15893. type: 'text',
  15894. fixed: false,
  15895. disabled: false,
  15896. disabledColor: '#f5f7fa',
  15897. clearable: false,
  15898. password: false,
  15899. maxlength: -1,
  15900. placeholder: null,
  15901. placeholderClass: 'input-placeholder',
  15902. placeholderStyle: 'color: #c0c4cc',
  15903. showWordLimit: false,
  15904. confirmType: 'done',
  15905. confirmHold: false,
  15906. holdKeyboard: false,
  15907. focus: false,
  15908. autoBlur: false,
  15909. disableDefaultPadding: false,
  15910. cursor: -1,
  15911. cursorSpacing: 30,
  15912. selectionStart: -1,
  15913. selectionEnd: -1,
  15914. adjustPosition: true,
  15915. inputAlign: 'left',
  15916. fontSize: '15px',
  15917. color: '#303133',
  15918. prefixIcon: '',
  15919. prefixIconStyle: '',
  15920. suffixIcon: '',
  15921. suffixIconStyle: '',
  15922. border: 'surround',
  15923. readonly: false,
  15924. shape: 'square',
  15925. formatter: null
  15926. }
  15927. };
  15928. exports.default = _default;
  15929. /***/ }),
  15930. /* 107 */
  15931. /*!**************************************************************************************!*\
  15932. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15933. \**************************************************************************************/
  15934. /*! no static exports found */
  15935. /***/ (function(module, exports, __webpack_require__) {
  15936. "use strict";
  15937. Object.defineProperty(exports, "__esModule", {
  15938. value: true
  15939. });
  15940. exports.default = void 0;
  15941. /*
  15942. * @Author : LQ
  15943. * @Description :
  15944. * @version : 1.0
  15945. * @Date : 2021-08-20 16:44:21
  15946. * @LastAuthor : LQ
  15947. * @lastTime : 2021-08-20 17:07:49
  15948. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15949. */
  15950. var _default = {
  15951. // 键盘组件
  15952. keyboard: {
  15953. mode: 'number',
  15954. dotDisabled: false,
  15955. tooltip: true,
  15956. showTips: true,
  15957. tips: '',
  15958. showCancel: true,
  15959. showConfirm: true,
  15960. random: false,
  15961. safeAreaInsetBottom: true,
  15962. closeOnClickOverlay: true,
  15963. show: false,
  15964. overlay: true,
  15965. zIndex: 10075,
  15966. cancelText: '取消',
  15967. confirmText: '确定',
  15968. autoChange: false
  15969. }
  15970. };
  15971. exports.default = _default;
  15972. /***/ }),
  15973. /* 108 */
  15974. /*!**********************************************************************************!*\
  15975. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/line.js ***!
  15976. \**********************************************************************************/
  15977. /*! no static exports found */
  15978. /***/ (function(module, exports, __webpack_require__) {
  15979. "use strict";
  15980. Object.defineProperty(exports, "__esModule", {
  15981. value: true
  15982. });
  15983. exports.default = void 0;
  15984. /*
  15985. * @Author : LQ
  15986. * @Description :
  15987. * @version : 1.0
  15988. * @Date : 2021-08-20 16:44:21
  15989. * @LastAuthor : LQ
  15990. * @lastTime : 2021-08-20 17:04:49
  15991. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15992. */
  15993. var _default = {
  15994. // line组件
  15995. line: {
  15996. color: '#d6d7d9',
  15997. length: '100%',
  15998. direction: 'row',
  15999. hairline: true,
  16000. margin: 0,
  16001. dashed: false
  16002. }
  16003. };
  16004. exports.default = _default;
  16005. /***/ }),
  16006. /* 109 */
  16007. /*!******************************************************************************************!*\
  16008. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  16009. \******************************************************************************************/
  16010. /*! no static exports found */
  16011. /***/ (function(module, exports, __webpack_require__) {
  16012. "use strict";
  16013. Object.defineProperty(exports, "__esModule", {
  16014. value: true
  16015. });
  16016. exports.default = void 0;
  16017. /*
  16018. * @Author : LQ
  16019. * @Description :
  16020. * @version : 1.0
  16021. * @Date : 2021-08-20 16:44:21
  16022. * @LastAuthor : LQ
  16023. * @lastTime : 2021-08-20 17:14:11
  16024. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  16025. */
  16026. var _default = {
  16027. // lineProgress 组件
  16028. lineProgress: {
  16029. activeColor: '#19be6b',
  16030. inactiveColor: '#ececec',
  16031. percentage: 0,
  16032. showText: true,
  16033. height: 12
  16034. }
  16035. };
  16036. exports.default = _default;
  16037. /***/ }),
  16038. /* 110 */
  16039. /*!**********************************************************************************!*\
  16040. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/link.js ***!
  16041. \**********************************************************************************/
  16042. /*! no static exports found */
  16043. /***/ (function(module, exports, __webpack_require__) {
  16044. "use strict";
  16045. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16046. Object.defineProperty(exports, "__esModule", {
  16047. value: true
  16048. });
  16049. exports.default = void 0;
  16050. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  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:45:36
  16058. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  16059. */
  16060. var color = _config.default.color;
  16061. var _default = {
  16062. // link超链接组件props参数
  16063. link: {
  16064. color: color['u-primary'],
  16065. fontSize: 15,
  16066. underLine: false,
  16067. href: '',
  16068. mpTips: '链接已复制,请在浏览器打开',
  16069. lineColor: '',
  16070. text: ''
  16071. }
  16072. };
  16073. exports.default = _default;
  16074. /***/ }),
  16075. /* 111 */
  16076. /*!**********************************************************************************!*\
  16077. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/list.js ***!
  16078. \**********************************************************************************/
  16079. /*! no static exports found */
  16080. /***/ (function(module, exports, __webpack_require__) {
  16081. "use strict";
  16082. Object.defineProperty(exports, "__esModule", {
  16083. value: true
  16084. });
  16085. exports.default = void 0;
  16086. /*
  16087. * @Author : LQ
  16088. * @Description :
  16089. * @version : 1.0
  16090. * @Date : 2021-08-20 16:44:21
  16091. * @LastAuthor : LQ
  16092. * @lastTime : 2021-08-20 17:14:53
  16093. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  16094. */
  16095. var _default = {
  16096. // list 组件
  16097. list: {
  16098. showScrollbar: false,
  16099. lowerThreshold: 50,
  16100. upperThreshold: 0,
  16101. scrollTop: 0,
  16102. offsetAccuracy: 10,
  16103. enableFlex: false,
  16104. pagingEnabled: false,
  16105. scrollable: true,
  16106. scrollIntoView: '',
  16107. scrollWithAnimation: false,
  16108. enableBackToTop: false,
  16109. height: 0,
  16110. width: 0,
  16111. preLoadScreen: 1
  16112. }
  16113. };
  16114. exports.default = _default;
  16115. /***/ }),
  16116. /* 112 */
  16117. /*!**************************************************************************************!*\
  16118. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  16119. \**************************************************************************************/
  16120. /*! no static exports found */
  16121. /***/ (function(module, exports, __webpack_require__) {
  16122. "use strict";
  16123. Object.defineProperty(exports, "__esModule", {
  16124. value: true
  16125. });
  16126. exports.default = void 0;
  16127. /*
  16128. * @Author : LQ
  16129. * @Description :
  16130. * @version : 1.0
  16131. * @Date : 2021-08-20 16:44:21
  16132. * @LastAuthor : LQ
  16133. * @lastTime : 2021-08-20 17:15:40
  16134. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  16135. */
  16136. var _default = {
  16137. // listItem 组件
  16138. listItem: {
  16139. anchor: ''
  16140. }
  16141. };
  16142. exports.default = _default;
  16143. /***/ }),
  16144. /* 113 */
  16145. /*!*****************************************************************************************!*\
  16146. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  16147. \*****************************************************************************************/
  16148. /*! no static exports found */
  16149. /***/ (function(module, exports, __webpack_require__) {
  16150. "use strict";
  16151. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16152. Object.defineProperty(exports, "__esModule", {
  16153. value: true
  16154. });
  16155. exports.default = void 0;
  16156. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  16157. /*
  16158. * @Author : LQ
  16159. * @Description :
  16160. * @version : 1.0
  16161. * @Date : 2021-08-20 16:44:21
  16162. * @LastAuthor : LQ
  16163. * @lastTime : 2021-08-20 17:45:47
  16164. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  16165. */
  16166. var color = _config.default.color;
  16167. var _default = {
  16168. // loading-icon加载中图标组件
  16169. loadingIcon: {
  16170. show: true,
  16171. color: color['u-tips-color'],
  16172. textColor: color['u-tips-color'],
  16173. vertical: false,
  16174. mode: 'spinner',
  16175. size: 24,
  16176. textSize: 15,
  16177. text: '',
  16178. timingFunction: 'ease-in-out',
  16179. duration: 1200,
  16180. inactiveColor: ''
  16181. }
  16182. };
  16183. exports.default = _default;
  16184. /***/ }),
  16185. /* 114 */
  16186. /*!*****************************************************************************************!*\
  16187. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  16188. \*****************************************************************************************/
  16189. /*! no static exports found */
  16190. /***/ (function(module, exports, __webpack_require__) {
  16191. "use strict";
  16192. Object.defineProperty(exports, "__esModule", {
  16193. value: true
  16194. });
  16195. exports.default = void 0;
  16196. /*
  16197. * @Author : LQ
  16198. * @Description :
  16199. * @version : 1.0
  16200. * @Date : 2021-08-20 16:44:21
  16201. * @LastAuthor : LQ
  16202. * @lastTime : 2021-08-20 17:00:23
  16203. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16204. */
  16205. var _default = {
  16206. // loading-page组件
  16207. loadingPage: {
  16208. loadingText: '正在加载',
  16209. image: '',
  16210. loadingMode: 'circle',
  16211. loading: false,
  16212. bgColor: '#ffffff',
  16213. color: '#C8C8C8',
  16214. fontSize: 19,
  16215. iconSize: 28,
  16216. loadingColor: '#C8C8C8'
  16217. }
  16218. };
  16219. exports.default = _default;
  16220. /***/ }),
  16221. /* 115 */
  16222. /*!**************************************************************************************!*\
  16223. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  16224. \**************************************************************************************/
  16225. /*! no static exports found */
  16226. /***/ (function(module, exports, __webpack_require__) {
  16227. "use strict";
  16228. Object.defineProperty(exports, "__esModule", {
  16229. value: true
  16230. });
  16231. exports.default = void 0;
  16232. /*
  16233. * @Author : LQ
  16234. * @Description :
  16235. * @version : 1.0
  16236. * @Date : 2021-08-20 16:44:21
  16237. * @LastAuthor : LQ
  16238. * @lastTime : 2021-08-20 17:15:26
  16239. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16240. */
  16241. var _default = {
  16242. // loadmore 组件
  16243. loadmore: {
  16244. status: 'loadmore',
  16245. bgColor: 'transparent',
  16246. icon: true,
  16247. fontSize: 14,
  16248. iconSize: 17,
  16249. color: '#606266',
  16250. loadingIcon: 'spinner',
  16251. loadmoreText: '加载更多',
  16252. loadingText: '正在加载...',
  16253. nomoreText: '没有更多了',
  16254. isDot: false,
  16255. iconColor: '#b7b7b7',
  16256. marginTop: 10,
  16257. marginBottom: 10,
  16258. height: 'auto',
  16259. line: false,
  16260. lineColor: '#E6E8EB',
  16261. dashed: false
  16262. }
  16263. };
  16264. exports.default = _default;
  16265. /***/ }),
  16266. /* 116 */
  16267. /*!***********************************************************************************!*\
  16268. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/modal.js ***!
  16269. \***********************************************************************************/
  16270. /*! no static exports found */
  16271. /***/ (function(module, exports, __webpack_require__) {
  16272. "use strict";
  16273. Object.defineProperty(exports, "__esModule", {
  16274. value: true
  16275. });
  16276. exports.default = void 0;
  16277. /*
  16278. * @Author : LQ
  16279. * @Description :
  16280. * @version : 1.0
  16281. * @Date : 2021-08-20 16:44:21
  16282. * @LastAuthor : LQ
  16283. * @lastTime : 2021-08-20 17:15:59
  16284. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16285. */
  16286. var _default = {
  16287. // modal 组件
  16288. modal: {
  16289. show: false,
  16290. title: '',
  16291. content: '',
  16292. confirmText: '确认',
  16293. cancelText: '取消',
  16294. showConfirmButton: true,
  16295. showCancelButton: false,
  16296. confirmColor: '#2979ff',
  16297. cancelColor: '#606266',
  16298. buttonReverse: false,
  16299. zoom: true,
  16300. asyncClose: false,
  16301. closeOnClickOverlay: false,
  16302. negativeTop: 0,
  16303. width: '650rpx',
  16304. confirmButtonShape: ''
  16305. }
  16306. };
  16307. exports.default = _default;
  16308. /***/ }),
  16309. /* 117 */
  16310. /*!************************************************************************************!*\
  16311. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  16312. \************************************************************************************/
  16313. /*! no static exports found */
  16314. /***/ (function(module, exports, __webpack_require__) {
  16315. "use strict";
  16316. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16317. Object.defineProperty(exports, "__esModule", {
  16318. value: true
  16319. });
  16320. exports.default = void 0;
  16321. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 118));
  16322. /*
  16323. * @Author : LQ
  16324. * @Description :
  16325. * @version : 1.0
  16326. * @Date : 2021-08-20 16:44:21
  16327. * @LastAuthor : LQ
  16328. * @lastTime : 2021-08-20 17:16:18
  16329. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16330. */
  16331. var _default = {
  16332. // navbar 组件
  16333. navbar: {
  16334. safeAreaInsetTop: true,
  16335. placeholder: false,
  16336. fixed: true,
  16337. border: false,
  16338. leftIcon: 'arrow-left',
  16339. leftText: '',
  16340. rightText: '',
  16341. rightIcon: '',
  16342. title: '',
  16343. bgColor: '#ffffff',
  16344. titleWidth: '400rpx',
  16345. height: '44px',
  16346. leftIconSize: 20,
  16347. leftIconColor: _color.default.mainColor,
  16348. autoBack: false,
  16349. titleStyle: ''
  16350. }
  16351. };
  16352. exports.default = _default;
  16353. /***/ }),
  16354. /* 118 */
  16355. /*!*****************************************************************************!*\
  16356. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/color.js ***!
  16357. \*****************************************************************************/
  16358. /*! no static exports found */
  16359. /***/ (function(module, exports, __webpack_require__) {
  16360. "use strict";
  16361. Object.defineProperty(exports, "__esModule", {
  16362. value: true
  16363. });
  16364. exports.default = void 0;
  16365. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16366. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16367. var color = {
  16368. primary: '#3c9cff',
  16369. info: '#909399',
  16370. default: '#909399',
  16371. warning: '#f9ae3d',
  16372. error: '#f56c6c',
  16373. success: '#5ac725',
  16374. mainColor: '#303133',
  16375. contentColor: '#606266',
  16376. tipsColor: '#909399',
  16377. lightColor: '#c0c4cc',
  16378. borderColor: '#e4e7ed'
  16379. };
  16380. var _default = color;
  16381. exports.default = _default;
  16382. /***/ }),
  16383. /* 119 */
  16384. /*!***************************************************************************************!*\
  16385. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16386. \***************************************************************************************/
  16387. /*! no static exports found */
  16388. /***/ (function(module, exports, __webpack_require__) {
  16389. "use strict";
  16390. Object.defineProperty(exports, "__esModule", {
  16391. value: true
  16392. });
  16393. exports.default = void 0;
  16394. /*
  16395. * @Author : LQ
  16396. * @Description :
  16397. * @version : 1.0
  16398. * @Date : 2021-08-20 16:44:21
  16399. * @LastAuthor : LQ
  16400. * @lastTime : 2021-08-20 17:16:39
  16401. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16402. */
  16403. var _default = {
  16404. // noNetwork
  16405. noNetwork: {
  16406. tips: '哎呀,网络信号丢失',
  16407. zIndex: '',
  16408. 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'
  16409. }
  16410. };
  16411. exports.default = _default;
  16412. /***/ }),
  16413. /* 120 */
  16414. /*!***************************************************************************************!*\
  16415. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16416. \***************************************************************************************/
  16417. /*! no static exports found */
  16418. /***/ (function(module, exports, __webpack_require__) {
  16419. "use strict";
  16420. Object.defineProperty(exports, "__esModule", {
  16421. value: true
  16422. });
  16423. exports.default = void 0;
  16424. /*
  16425. * @Author : LQ
  16426. * @Description :
  16427. * @version : 1.0
  16428. * @Date : 2021-08-20 16:44:21
  16429. * @LastAuthor : LQ
  16430. * @lastTime : 2021-08-20 17:17:13
  16431. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16432. */
  16433. var _default = {
  16434. // noticeBar
  16435. noticeBar: {
  16436. text: function text() {
  16437. return [];
  16438. },
  16439. direction: 'row',
  16440. step: false,
  16441. icon: 'volume',
  16442. mode: '',
  16443. color: '#f9ae3d',
  16444. bgColor: '#fdf6ec',
  16445. speed: 80,
  16446. fontSize: 14,
  16447. duration: 2000,
  16448. disableTouch: true,
  16449. url: '',
  16450. linkType: 'navigateTo'
  16451. }
  16452. };
  16453. exports.default = _default;
  16454. /***/ }),
  16455. /* 121 */
  16456. /*!************************************************************************************!*\
  16457. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16458. \************************************************************************************/
  16459. /*! no static exports found */
  16460. /***/ (function(module, exports, __webpack_require__) {
  16461. "use strict";
  16462. Object.defineProperty(exports, "__esModule", {
  16463. value: true
  16464. });
  16465. exports.default = void 0;
  16466. /*
  16467. * @Author : LQ
  16468. * @Description :
  16469. * @version : 1.0
  16470. * @Date : 2021-08-20 16:44:21
  16471. * @LastAuthor : LQ
  16472. * @lastTime : 2021-08-20 17:10:21
  16473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16474. */
  16475. var _default = {
  16476. // notify组件
  16477. notify: {
  16478. top: 0,
  16479. type: 'primary',
  16480. color: '#ffffff',
  16481. bgColor: '',
  16482. message: '',
  16483. duration: 3000,
  16484. fontSize: 15,
  16485. safeAreaInsetTop: false
  16486. }
  16487. };
  16488. exports.default = _default;
  16489. /***/ }),
  16490. /* 122 */
  16491. /*!***************************************************************************************!*\
  16492. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16493. \***************************************************************************************/
  16494. /*! no static exports found */
  16495. /***/ (function(module, exports, __webpack_require__) {
  16496. "use strict";
  16497. Object.defineProperty(exports, "__esModule", {
  16498. value: true
  16499. });
  16500. exports.default = void 0;
  16501. /*
  16502. * @Author : LQ
  16503. * @Description :
  16504. * @version : 1.0
  16505. * @Date : 2021-08-20 16:44:21
  16506. * @LastAuthor : LQ
  16507. * @lastTime : 2021-08-20 17:11:46
  16508. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16509. */
  16510. var _default = {
  16511. // 步进器组件
  16512. numberBox: {
  16513. name: '',
  16514. value: 0,
  16515. min: 1,
  16516. max: Number.MAX_SAFE_INTEGER,
  16517. step: 1,
  16518. integer: false,
  16519. disabled: false,
  16520. disabledInput: false,
  16521. asyncChange: false,
  16522. inputWidth: 35,
  16523. showMinus: true,
  16524. showPlus: true,
  16525. decimalLength: null,
  16526. longPress: true,
  16527. color: '#323233',
  16528. buttonSize: 30,
  16529. bgColor: '#EBECEE',
  16530. cursorSpacing: 100,
  16531. disableMinus: false,
  16532. disablePlus: false,
  16533. iconStyle: ''
  16534. }
  16535. };
  16536. exports.default = _default;
  16537. /***/ }),
  16538. /* 123 */
  16539. /*!********************************************************************************************!*\
  16540. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16541. \********************************************************************************************/
  16542. /*! no static exports found */
  16543. /***/ (function(module, exports, __webpack_require__) {
  16544. "use strict";
  16545. Object.defineProperty(exports, "__esModule", {
  16546. value: true
  16547. });
  16548. exports.default = void 0;
  16549. /*
  16550. * @Author : LQ
  16551. * @Description :
  16552. * @version : 1.0
  16553. * @Date : 2021-08-20 16:44:21
  16554. * @LastAuthor : LQ
  16555. * @lastTime : 2021-08-20 17:08:05
  16556. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16557. */
  16558. var _default = {
  16559. // 数字键盘
  16560. numberKeyboard: {
  16561. mode: 'number',
  16562. dotDisabled: false,
  16563. random: false
  16564. }
  16565. };
  16566. exports.default = _default;
  16567. /***/ }),
  16568. /* 124 */
  16569. /*!*************************************************************************************!*\
  16570. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16571. \*************************************************************************************/
  16572. /*! no static exports found */
  16573. /***/ (function(module, exports, __webpack_require__) {
  16574. "use strict";
  16575. Object.defineProperty(exports, "__esModule", {
  16576. value: true
  16577. });
  16578. exports.default = void 0;
  16579. /*
  16580. * @Author : LQ
  16581. * @Description :
  16582. * @version : 1.0
  16583. * @Date : 2021-08-20 16:44:21
  16584. * @LastAuthor : LQ
  16585. * @lastTime : 2021-08-20 17:06:50
  16586. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16587. */
  16588. var _default = {
  16589. // overlay组件
  16590. overlay: {
  16591. show: false,
  16592. zIndex: 10070,
  16593. duration: 300,
  16594. opacity: 0.5
  16595. }
  16596. };
  16597. exports.default = _default;
  16598. /***/ }),
  16599. /* 125 */
  16600. /*!***********************************************************************************!*\
  16601. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16602. \***********************************************************************************/
  16603. /*! no static exports found */
  16604. /***/ (function(module, exports, __webpack_require__) {
  16605. "use strict";
  16606. Object.defineProperty(exports, "__esModule", {
  16607. value: true
  16608. });
  16609. exports.default = void 0;
  16610. /*
  16611. * @Author : LQ
  16612. * @Description :
  16613. * @version : 1.0
  16614. * @Date : 2021-08-20 16:44:21
  16615. * @LastAuthor : LQ
  16616. * @lastTime : 2021-08-20 17:17:33
  16617. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16618. */
  16619. var _default = {
  16620. // parse
  16621. parse: {
  16622. copyLink: true,
  16623. errorImg: '',
  16624. lazyLoad: false,
  16625. loadingImg: '',
  16626. pauseVideo: true,
  16627. previewImg: true,
  16628. setTitle: true,
  16629. showImgMenu: true
  16630. }
  16631. };
  16632. exports.default = _default;
  16633. /***/ }),
  16634. /* 126 */
  16635. /*!************************************************************************************!*\
  16636. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16637. \************************************************************************************/
  16638. /*! no static exports found */
  16639. /***/ (function(module, exports, __webpack_require__) {
  16640. "use strict";
  16641. Object.defineProperty(exports, "__esModule", {
  16642. value: true
  16643. });
  16644. exports.default = void 0;
  16645. /*
  16646. * @Author : LQ
  16647. * @Description :
  16648. * @version : 1.0
  16649. * @Date : 2021-08-20 16:44:21
  16650. * @LastAuthor : LQ
  16651. * @lastTime : 2021-08-20 17:18:20
  16652. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16653. */
  16654. var _default = {
  16655. // picker
  16656. picker: {
  16657. show: false,
  16658. showToolbar: true,
  16659. title: '',
  16660. columns: function columns() {
  16661. return [];
  16662. },
  16663. loading: false,
  16664. itemHeight: 44,
  16665. cancelText: '取消',
  16666. confirmText: '确定',
  16667. cancelColor: '#909193',
  16668. confirmColor: '#3c9cff',
  16669. visibleItemCount: 5,
  16670. keyName: 'text',
  16671. closeOnClickOverlay: false,
  16672. defaultIndex: function defaultIndex() {
  16673. return [];
  16674. },
  16675. immediateChange: false
  16676. }
  16677. };
  16678. exports.default = _default;
  16679. /***/ }),
  16680. /* 127 */
  16681. /*!***********************************************************************************!*\
  16682. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16683. \***********************************************************************************/
  16684. /*! no static exports found */
  16685. /***/ (function(module, exports, __webpack_require__) {
  16686. "use strict";
  16687. Object.defineProperty(exports, "__esModule", {
  16688. value: true
  16689. });
  16690. exports.default = void 0;
  16691. /*
  16692. * @Author : LQ
  16693. * @Description :
  16694. * @version : 1.0
  16695. * @Date : 2021-08-20 16:44:21
  16696. * @LastAuthor : LQ
  16697. * @lastTime : 2021-08-20 17:06:33
  16698. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16699. */
  16700. var _default = {
  16701. // popup组件
  16702. popup: {
  16703. show: false,
  16704. overlay: true,
  16705. mode: 'bottom',
  16706. duration: 300,
  16707. closeable: false,
  16708. overlayStyle: function overlayStyle() {},
  16709. closeOnClickOverlay: true,
  16710. zIndex: 10075,
  16711. safeAreaInsetBottom: true,
  16712. safeAreaInsetTop: false,
  16713. closeIconPos: 'top-right',
  16714. round: 0,
  16715. zoom: true,
  16716. bgColor: '',
  16717. overlayOpacity: 0.5
  16718. }
  16719. };
  16720. exports.default = _default;
  16721. /***/ }),
  16722. /* 128 */
  16723. /*!***********************************************************************************!*\
  16724. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16725. \***********************************************************************************/
  16726. /*! no static exports found */
  16727. /***/ (function(module, exports, __webpack_require__) {
  16728. "use strict";
  16729. Object.defineProperty(exports, "__esModule", {
  16730. value: true
  16731. });
  16732. exports.default = void 0;
  16733. /*
  16734. * @Author : LQ
  16735. * @Description :
  16736. * @version : 1.0
  16737. * @Date : 2021-08-20 16:44:21
  16738. * @LastAuthor : LQ
  16739. * @lastTime : 2021-08-20 17:02:34
  16740. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16741. */
  16742. var _default = {
  16743. // radio组件
  16744. radio: {
  16745. name: '',
  16746. shape: '',
  16747. disabled: '',
  16748. labelDisabled: '',
  16749. activeColor: '',
  16750. inactiveColor: '',
  16751. iconSize: '',
  16752. labelSize: '',
  16753. label: '',
  16754. labelColor: '',
  16755. size: '',
  16756. iconColor: '',
  16757. placement: ''
  16758. }
  16759. };
  16760. exports.default = _default;
  16761. /***/ }),
  16762. /* 129 */
  16763. /*!****************************************************************************************!*\
  16764. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16765. \****************************************************************************************/
  16766. /*! no static exports found */
  16767. /***/ (function(module, exports, __webpack_require__) {
  16768. "use strict";
  16769. Object.defineProperty(exports, "__esModule", {
  16770. value: true
  16771. });
  16772. exports.default = void 0;
  16773. /*
  16774. * @Author : LQ
  16775. * @Description :
  16776. * @version : 1.0
  16777. * @Date : 2021-08-20 16:44:21
  16778. * @LastAuthor : LQ
  16779. * @lastTime : 2021-08-20 17:03:12
  16780. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16781. */
  16782. var _default = {
  16783. // radio-group组件
  16784. radioGroup: {
  16785. value: '',
  16786. disabled: false,
  16787. shape: 'circle',
  16788. activeColor: '#2979ff',
  16789. inactiveColor: '#c8c9cc',
  16790. name: '',
  16791. size: 18,
  16792. placement: 'row',
  16793. label: '',
  16794. labelColor: '#303133',
  16795. labelSize: 14,
  16796. labelDisabled: false,
  16797. iconColor: '#ffffff',
  16798. iconSize: 12,
  16799. borderBottom: false,
  16800. iconPlacement: 'left'
  16801. }
  16802. };
  16803. exports.default = _default;
  16804. /***/ }),
  16805. /* 130 */
  16806. /*!**********************************************************************************!*\
  16807. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16808. \**********************************************************************************/
  16809. /*! no static exports found */
  16810. /***/ (function(module, exports, __webpack_require__) {
  16811. "use strict";
  16812. Object.defineProperty(exports, "__esModule", {
  16813. value: true
  16814. });
  16815. exports.default = void 0;
  16816. /*
  16817. * @Author : LQ
  16818. * @Description :
  16819. * @version : 1.0
  16820. * @Date : 2021-08-20 16:44:21
  16821. * @LastAuthor : LQ
  16822. * @lastTime : 2021-08-20 17:05:09
  16823. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16824. */
  16825. var _default = {
  16826. // rate组件
  16827. rate: {
  16828. value: 1,
  16829. count: 5,
  16830. disabled: false,
  16831. size: 18,
  16832. inactiveColor: '#b2b2b2',
  16833. activeColor: '#FA3534',
  16834. gutter: 4,
  16835. minCount: 1,
  16836. allowHalf: false,
  16837. activeIcon: 'star-fill',
  16838. inactiveIcon: 'star',
  16839. touchable: true
  16840. }
  16841. };
  16842. exports.default = _default;
  16843. /***/ }),
  16844. /* 131 */
  16845. /*!**************************************************************************************!*\
  16846. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16847. \**************************************************************************************/
  16848. /*! no static exports found */
  16849. /***/ (function(module, exports, __webpack_require__) {
  16850. "use strict";
  16851. Object.defineProperty(exports, "__esModule", {
  16852. value: true
  16853. });
  16854. exports.default = void 0;
  16855. /*
  16856. * @Author : LQ
  16857. * @Description :
  16858. * @version : 1.0
  16859. * @Date : 2021-08-20 16:44:21
  16860. * @LastAuthor : LQ
  16861. * @lastTime : 2021-08-20 17:18:41
  16862. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16863. */
  16864. var _default = {
  16865. // readMore
  16866. readMore: {
  16867. showHeight: 400,
  16868. toggle: false,
  16869. closeText: '展开阅读全文',
  16870. openText: '收起',
  16871. color: '#2979ff',
  16872. fontSize: 14,
  16873. textIndent: '2em',
  16874. name: ''
  16875. }
  16876. };
  16877. exports.default = _default;
  16878. /***/ }),
  16879. /* 132 */
  16880. /*!*********************************************************************************!*\
  16881. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/row.js ***!
  16882. \*********************************************************************************/
  16883. /*! no static exports found */
  16884. /***/ (function(module, exports, __webpack_require__) {
  16885. "use strict";
  16886. Object.defineProperty(exports, "__esModule", {
  16887. value: true
  16888. });
  16889. exports.default = void 0;
  16890. /*
  16891. * @Author : LQ
  16892. * @Description :
  16893. * @version : 1.0
  16894. * @Date : 2021-08-20 16:44:21
  16895. * @LastAuthor : LQ
  16896. * @lastTime : 2021-08-20 17:18:58
  16897. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16898. */
  16899. var _default = {
  16900. // row
  16901. row: {
  16902. gutter: 0,
  16903. justify: 'start',
  16904. align: 'center'
  16905. }
  16906. };
  16907. exports.default = _default;
  16908. /***/ }),
  16909. /* 133 */
  16910. /*!***************************************************************************************!*\
  16911. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16912. \***************************************************************************************/
  16913. /*! no static exports found */
  16914. /***/ (function(module, exports, __webpack_require__) {
  16915. "use strict";
  16916. Object.defineProperty(exports, "__esModule", {
  16917. value: true
  16918. });
  16919. exports.default = void 0;
  16920. /*
  16921. * @Author : LQ
  16922. * @Description :
  16923. * @version : 1.0
  16924. * @Date : 2021-08-20 16:44:21
  16925. * @LastAuthor : LQ
  16926. * @lastTime : 2021-08-20 17:19:13
  16927. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16928. */
  16929. var _default = {
  16930. // rowNotice
  16931. rowNotice: {
  16932. text: '',
  16933. icon: 'volume',
  16934. mode: '',
  16935. color: '#f9ae3d',
  16936. bgColor: '#fdf6ec',
  16937. fontSize: 14,
  16938. speed: 80
  16939. }
  16940. };
  16941. exports.default = _default;
  16942. /***/ }),
  16943. /* 134 */
  16944. /*!****************************************************************************************!*\
  16945. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16946. \****************************************************************************************/
  16947. /*! no static exports found */
  16948. /***/ (function(module, exports, __webpack_require__) {
  16949. "use strict";
  16950. Object.defineProperty(exports, "__esModule", {
  16951. value: true
  16952. });
  16953. exports.default = void 0;
  16954. /*
  16955. * @Author : LQ
  16956. * @Description :
  16957. * @version : 1.0
  16958. * @Date : 2021-08-20 16:44:21
  16959. * @LastAuthor : LQ
  16960. * @lastTime : 2021-08-20 17:19:28
  16961. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16962. */
  16963. var _default = {
  16964. // scrollList
  16965. scrollList: {
  16966. indicatorWidth: 50,
  16967. indicatorBarWidth: 20,
  16968. indicator: true,
  16969. indicatorColor: '#f2f2f2',
  16970. indicatorActiveColor: '#3c9cff',
  16971. indicatorStyle: ''
  16972. }
  16973. };
  16974. exports.default = _default;
  16975. /***/ }),
  16976. /* 135 */
  16977. /*!************************************************************************************!*\
  16978. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/search.js ***!
  16979. \************************************************************************************/
  16980. /*! no static exports found */
  16981. /***/ (function(module, exports, __webpack_require__) {
  16982. "use strict";
  16983. Object.defineProperty(exports, "__esModule", {
  16984. value: true
  16985. });
  16986. exports.default = void 0;
  16987. /*
  16988. * @Author : LQ
  16989. * @Description :
  16990. * @version : 1.0
  16991. * @Date : 2021-08-20 16:44:21
  16992. * @LastAuthor : LQ
  16993. * @lastTime : 2021-08-20 17:19:45
  16994. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16995. */
  16996. var _default = {
  16997. // search
  16998. search: {
  16999. shape: 'round',
  17000. bgColor: '#f2f2f2',
  17001. placeholder: '请输入关键字',
  17002. clearabled: true,
  17003. focus: false,
  17004. showAction: true,
  17005. actionStyle: function actionStyle() {
  17006. return {};
  17007. },
  17008. actionText: '搜索',
  17009. inputAlign: 'left',
  17010. inputStyle: function inputStyle() {
  17011. return {};
  17012. },
  17013. disabled: false,
  17014. borderColor: 'transparent',
  17015. searchIconColor: '#909399',
  17016. searchIconSize: 22,
  17017. color: '#606266',
  17018. placeholderColor: '#909399',
  17019. searchIcon: 'search',
  17020. margin: '0',
  17021. animation: false,
  17022. value: '',
  17023. maxlength: '-1',
  17024. height: 32,
  17025. label: null
  17026. }
  17027. };
  17028. exports.default = _default;
  17029. /***/ }),
  17030. /* 136 */
  17031. /*!*************************************************************************************!*\
  17032. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/section.js ***!
  17033. \*************************************************************************************/
  17034. /*! no static exports found */
  17035. /***/ (function(module, exports, __webpack_require__) {
  17036. "use strict";
  17037. Object.defineProperty(exports, "__esModule", {
  17038. value: true
  17039. });
  17040. exports.default = void 0;
  17041. /*
  17042. * @Author : LQ
  17043. * @Description :
  17044. * @version : 1.0
  17045. * @Date : 2021-08-20 16:44:21
  17046. * @LastAuthor : LQ
  17047. * @lastTime : 2021-08-20 17:07:33
  17048. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  17049. */
  17050. var _default = {
  17051. // u-section组件
  17052. section: {
  17053. title: '',
  17054. subTitle: '更多',
  17055. right: true,
  17056. fontSize: 15,
  17057. bold: true,
  17058. color: '#303133',
  17059. subColor: '#909399',
  17060. showLine: true,
  17061. lineColor: '',
  17062. arrow: true
  17063. }
  17064. };
  17065. exports.default = _default;
  17066. /***/ }),
  17067. /* 137 */
  17068. /*!**************************************************************************************!*\
  17069. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  17070. \**************************************************************************************/
  17071. /*! no static exports found */
  17072. /***/ (function(module, exports, __webpack_require__) {
  17073. "use strict";
  17074. Object.defineProperty(exports, "__esModule", {
  17075. value: true
  17076. });
  17077. exports.default = void 0;
  17078. /*
  17079. * @Author : LQ
  17080. * @Description :
  17081. * @version : 1.0
  17082. * @Date : 2021-08-20 16:44:21
  17083. * @LastAuthor : LQ
  17084. * @lastTime : 2021-08-20 17:20:14
  17085. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  17086. */
  17087. var _default = {
  17088. // skeleton
  17089. skeleton: {
  17090. loading: true,
  17091. animate: true,
  17092. rows: 0,
  17093. rowsWidth: '100%',
  17094. rowsHeight: 18,
  17095. title: true,
  17096. titleWidth: '50%',
  17097. titleHeight: 18,
  17098. avatar: false,
  17099. avatarSize: 32,
  17100. avatarShape: 'circle'
  17101. }
  17102. };
  17103. exports.default = _default;
  17104. /***/ }),
  17105. /* 138 */
  17106. /*!************************************************************************************!*\
  17107. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/slider.js ***!
  17108. \************************************************************************************/
  17109. /*! no static exports found */
  17110. /***/ (function(module, exports, __webpack_require__) {
  17111. "use strict";
  17112. Object.defineProperty(exports, "__esModule", {
  17113. value: true
  17114. });
  17115. exports.default = void 0;
  17116. /*
  17117. * @Author : LQ
  17118. * @Description :
  17119. * @version : 1.0
  17120. * @Date : 2021-08-20 16:44:21
  17121. * @LastAuthor : LQ
  17122. * @lastTime : 2021-08-20 17:08:25
  17123. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  17124. */
  17125. var _default = {
  17126. // slider组件
  17127. slider: {
  17128. value: 0,
  17129. blockSize: 18,
  17130. min: 0,
  17131. max: 100,
  17132. step: 1,
  17133. activeColor: '#2979ff',
  17134. inactiveColor: '#c0c4cc',
  17135. blockColor: '#ffffff',
  17136. showValue: false,
  17137. disabled: false,
  17138. blockStyle: function blockStyle() {}
  17139. }
  17140. };
  17141. exports.default = _default;
  17142. /***/ }),
  17143. /* 139 */
  17144. /*!***************************************************************************************!*\
  17145. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  17146. \***************************************************************************************/
  17147. /*! no static exports found */
  17148. /***/ (function(module, exports, __webpack_require__) {
  17149. "use strict";
  17150. Object.defineProperty(exports, "__esModule", {
  17151. value: true
  17152. });
  17153. exports.default = void 0;
  17154. /*
  17155. * @Author : LQ
  17156. * @Description :
  17157. * @version : 1.0
  17158. * @Date : 2021-08-20 16:44:21
  17159. * @LastAuthor : LQ
  17160. * @lastTime : 2021-08-20 17:20:39
  17161. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  17162. */
  17163. var _default = {
  17164. // statusBar
  17165. statusBar: {
  17166. bgColor: 'transparent'
  17167. }
  17168. };
  17169. exports.default = _default;
  17170. /***/ }),
  17171. /* 140 */
  17172. /*!***********************************************************************************!*\
  17173. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/steps.js ***!
  17174. \***********************************************************************************/
  17175. /*! no static exports found */
  17176. /***/ (function(module, exports, __webpack_require__) {
  17177. "use strict";
  17178. Object.defineProperty(exports, "__esModule", {
  17179. value: true
  17180. });
  17181. exports.default = void 0;
  17182. /*
  17183. * @Author : LQ
  17184. * @Description :
  17185. * @version : 1.0
  17186. * @Date : 2021-08-20 16:44:21
  17187. * @LastAuthor : LQ
  17188. * @lastTime : 2021-08-20 17:12:37
  17189. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  17190. */
  17191. var _default = {
  17192. // steps组件
  17193. steps: {
  17194. direction: 'row',
  17195. current: 0,
  17196. activeColor: '#3c9cff',
  17197. inactiveColor: '#969799',
  17198. activeIcon: '',
  17199. inactiveIcon: '',
  17200. dot: false
  17201. }
  17202. };
  17203. exports.default = _default;
  17204. /***/ }),
  17205. /* 141 */
  17206. /*!***************************************************************************************!*\
  17207. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17208. \***************************************************************************************/
  17209. /*! no static exports found */
  17210. /***/ (function(module, exports, __webpack_require__) {
  17211. "use strict";
  17212. Object.defineProperty(exports, "__esModule", {
  17213. value: true
  17214. });
  17215. exports.default = void 0;
  17216. /*
  17217. * @Author : LQ
  17218. * @Description :
  17219. * @version : 1.0
  17220. * @Date : 2021-08-20 16:44:21
  17221. * @LastAuthor : LQ
  17222. * @lastTime : 2021-08-20 17:12:55
  17223. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17224. */
  17225. var _default = {
  17226. // steps-item组件
  17227. stepsItem: {
  17228. title: '',
  17229. desc: '',
  17230. iconSize: 17,
  17231. error: false
  17232. }
  17233. };
  17234. exports.default = _default;
  17235. /***/ }),
  17236. /* 142 */
  17237. /*!************************************************************************************!*\
  17238. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  17239. \************************************************************************************/
  17240. /*! no static exports found */
  17241. /***/ (function(module, exports, __webpack_require__) {
  17242. "use strict";
  17243. Object.defineProperty(exports, "__esModule", {
  17244. value: true
  17245. });
  17246. exports.default = void 0;
  17247. /*
  17248. * @Author : LQ
  17249. * @Description :
  17250. * @version : 1.0
  17251. * @Date : 2021-08-20 16:44:21
  17252. * @LastAuthor : LQ
  17253. * @lastTime : 2021-08-20 17:01:30
  17254. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17255. */
  17256. var _default = {
  17257. // sticky组件
  17258. sticky: {
  17259. offsetTop: 0,
  17260. customNavHeight: 0,
  17261. disabled: false,
  17262. bgColor: 'transparent',
  17263. zIndex: '',
  17264. index: ''
  17265. }
  17266. };
  17267. exports.default = _default;
  17268. /***/ }),
  17269. /* 143 */
  17270. /*!****************************************************************************************!*\
  17271. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  17272. \****************************************************************************************/
  17273. /*! no static exports found */
  17274. /***/ (function(module, exports, __webpack_require__) {
  17275. "use strict";
  17276. Object.defineProperty(exports, "__esModule", {
  17277. value: true
  17278. });
  17279. exports.default = void 0;
  17280. /*
  17281. * @Author : LQ
  17282. * @Description :
  17283. * @version : 1.0
  17284. * @Date : 2021-08-20 16:44:21
  17285. * @LastAuthor : LQ
  17286. * @lastTime : 2021-08-20 17:12:20
  17287. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17288. */
  17289. var _default = {
  17290. // subsection组件
  17291. subsection: {
  17292. list: [],
  17293. current: 0,
  17294. activeColor: '#3c9cff',
  17295. inactiveColor: '#303133',
  17296. mode: 'button',
  17297. fontSize: 12,
  17298. bold: true,
  17299. bgColor: '#eeeeef',
  17300. keyName: 'name'
  17301. }
  17302. };
  17303. exports.default = _default;
  17304. /***/ }),
  17305. /* 144 */
  17306. /*!*****************************************************************************************!*\
  17307. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17308. \*****************************************************************************************/
  17309. /*! no static exports found */
  17310. /***/ (function(module, exports, __webpack_require__) {
  17311. "use strict";
  17312. Object.defineProperty(exports, "__esModule", {
  17313. value: true
  17314. });
  17315. exports.default = void 0;
  17316. /*
  17317. * @Author : LQ
  17318. * @Description :
  17319. * @version : 1.0
  17320. * @Date : 2021-08-20 16:44:21
  17321. * @LastAuthor : LQ
  17322. * @lastTime : 2021-08-20 17:00:42
  17323. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17324. */
  17325. var _default = {
  17326. // swipe-action组件
  17327. swipeAction: {
  17328. autoClose: true
  17329. }
  17330. };
  17331. exports.default = _default;
  17332. /***/ }),
  17333. /* 145 */
  17334. /*!*********************************************************************************************!*\
  17335. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17336. \*********************************************************************************************/
  17337. /*! no static exports found */
  17338. /***/ (function(module, exports, __webpack_require__) {
  17339. "use strict";
  17340. Object.defineProperty(exports, "__esModule", {
  17341. value: true
  17342. });
  17343. exports.default = void 0;
  17344. /*
  17345. * @Author : LQ
  17346. * @Description :
  17347. * @version : 1.0
  17348. * @Date : 2021-08-20 16:44:21
  17349. * @LastAuthor : LQ
  17350. * @lastTime : 2021-08-20 17:01:13
  17351. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17352. */
  17353. var _default = {
  17354. // swipeActionItem 组件
  17355. swipeActionItem: {
  17356. show: false,
  17357. name: '',
  17358. disabled: false,
  17359. threshold: 20,
  17360. autoClose: true,
  17361. options: [],
  17362. duration: 300
  17363. }
  17364. };
  17365. exports.default = _default;
  17366. /***/ }),
  17367. /* 146 */
  17368. /*!************************************************************************************!*\
  17369. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  17370. \************************************************************************************/
  17371. /*! no static exports found */
  17372. /***/ (function(module, exports, __webpack_require__) {
  17373. "use strict";
  17374. Object.defineProperty(exports, "__esModule", {
  17375. value: true
  17376. });
  17377. exports.default = void 0;
  17378. /*
  17379. * @Author : LQ
  17380. * @Description :
  17381. * @version : 1.0
  17382. * @Date : 2021-08-20 16:44:21
  17383. * @LastAuthor : LQ
  17384. * @lastTime : 2021-08-20 17:21:38
  17385. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17386. */
  17387. var _default = {
  17388. // swiper 组件
  17389. swiper: {
  17390. list: function list() {
  17391. return [];
  17392. },
  17393. indicator: false,
  17394. indicatorActiveColor: '#FFFFFF',
  17395. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17396. indicatorStyle: '',
  17397. indicatorMode: 'line',
  17398. autoplay: true,
  17399. current: 0,
  17400. currentItemId: '',
  17401. interval: 3000,
  17402. duration: 300,
  17403. circular: false,
  17404. previousMargin: 0,
  17405. nextMargin: 0,
  17406. acceleration: false,
  17407. displayMultipleItems: 1,
  17408. easingFunction: 'default',
  17409. keyName: 'url',
  17410. imgMode: 'aspectFill',
  17411. height: 130,
  17412. bgColor: '#f3f4f6',
  17413. radius: 4,
  17414. loading: false,
  17415. showTitle: false
  17416. }
  17417. };
  17418. exports.default = _default;
  17419. /***/ }),
  17420. /* 147 */
  17421. /*!**********************************************************************************************!*\
  17422. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17423. \**********************************************************************************************/
  17424. /*! no static exports found */
  17425. /***/ (function(module, exports, __webpack_require__) {
  17426. "use strict";
  17427. Object.defineProperty(exports, "__esModule", {
  17428. value: true
  17429. });
  17430. exports.default = void 0;
  17431. /*
  17432. * @Author : LQ
  17433. * @Description :
  17434. * @version : 1.0
  17435. * @Date : 2021-08-20 16:44:21
  17436. * @LastAuthor : LQ
  17437. * @lastTime : 2021-08-20 17:22:07
  17438. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17439. */
  17440. var _default = {
  17441. // swiperIndicator 组件
  17442. swiperIndicator: {
  17443. length: 0,
  17444. current: 0,
  17445. indicatorActiveColor: '',
  17446. indicatorInactiveColor: '',
  17447. indicatorMode: 'line'
  17448. }
  17449. };
  17450. exports.default = _default;
  17451. /***/ }),
  17452. /* 148 */
  17453. /*!************************************************************************************!*\
  17454. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17455. \************************************************************************************/
  17456. /*! no static exports found */
  17457. /***/ (function(module, exports, __webpack_require__) {
  17458. "use strict";
  17459. Object.defineProperty(exports, "__esModule", {
  17460. value: true
  17461. });
  17462. exports.default = void 0;
  17463. /*
  17464. * @Author : LQ
  17465. * @Description :
  17466. * @version : 1.0
  17467. * @Date : 2021-08-20 16:44:21
  17468. * @LastAuthor : LQ
  17469. * @lastTime : 2021-08-20 17:22:24
  17470. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17471. */
  17472. var _default = {
  17473. // switch
  17474. switch: {
  17475. loading: false,
  17476. disabled: false,
  17477. size: 25,
  17478. activeColor: '#2979ff',
  17479. inactiveColor: '#ffffff',
  17480. value: false,
  17481. activeValue: true,
  17482. inactiveValue: false,
  17483. asyncChange: false,
  17484. space: 0
  17485. }
  17486. };
  17487. exports.default = _default;
  17488. /***/ }),
  17489. /* 149 */
  17490. /*!************************************************************************************!*\
  17491. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17492. \************************************************************************************/
  17493. /*! no static exports found */
  17494. /***/ (function(module, exports, __webpack_require__) {
  17495. "use strict";
  17496. Object.defineProperty(exports, "__esModule", {
  17497. value: true
  17498. });
  17499. exports.default = void 0;
  17500. /*
  17501. * @Author : LQ
  17502. * @Description :
  17503. * @version : 1.0
  17504. * @Date : 2021-08-20 16:44:21
  17505. * @LastAuthor : LQ
  17506. * @lastTime : 2021-08-20 17:22:40
  17507. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17508. */
  17509. var _default = {
  17510. // tabbar
  17511. tabbar: {
  17512. value: null,
  17513. safeAreaInsetBottom: true,
  17514. border: true,
  17515. zIndex: 1,
  17516. activeColor: '#1989fa',
  17517. inactiveColor: '#7d7e80',
  17518. fixed: true,
  17519. placeholder: true
  17520. }
  17521. };
  17522. exports.default = _default;
  17523. /***/ }),
  17524. /* 150 */
  17525. /*!****************************************************************************************!*\
  17526. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17527. \****************************************************************************************/
  17528. /*! no static exports found */
  17529. /***/ (function(module, exports, __webpack_require__) {
  17530. "use strict";
  17531. Object.defineProperty(exports, "__esModule", {
  17532. value: true
  17533. });
  17534. exports.default = void 0;
  17535. /*
  17536. * @Author : LQ
  17537. * @Description :
  17538. * @version : 1.0
  17539. * @Date : 2021-08-20 16:44:21
  17540. * @LastAuthor : LQ
  17541. * @lastTime : 2021-08-20 17:22:55
  17542. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17543. */
  17544. var _default = {
  17545. //
  17546. tabbarItem: {
  17547. name: null,
  17548. icon: '',
  17549. badge: null,
  17550. dot: false,
  17551. text: '',
  17552. badgeStyle: 'top: 6px;right:2px;'
  17553. }
  17554. };
  17555. exports.default = _default;
  17556. /***/ }),
  17557. /* 151 */
  17558. /*!**********************************************************************************!*\
  17559. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17560. \**********************************************************************************/
  17561. /*! no static exports found */
  17562. /***/ (function(module, exports, __webpack_require__) {
  17563. "use strict";
  17564. Object.defineProperty(exports, "__esModule", {
  17565. value: true
  17566. });
  17567. exports.default = void 0;
  17568. /*
  17569. * @Author : LQ
  17570. * @Description :
  17571. * @version : 1.0
  17572. * @Date : 2021-08-20 16:44:21
  17573. * @LastAuthor : LQ
  17574. * @lastTime : 2021-08-20 17:23:14
  17575. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17576. */
  17577. var _default = {
  17578. //
  17579. tabs: {
  17580. duration: 300,
  17581. list: function list() {
  17582. return [];
  17583. },
  17584. lineColor: '#3c9cff',
  17585. activeStyle: function activeStyle() {
  17586. return {
  17587. color: '#303133'
  17588. };
  17589. },
  17590. inactiveStyle: function inactiveStyle() {
  17591. return {
  17592. color: '#606266'
  17593. };
  17594. },
  17595. lineWidth: 20,
  17596. lineHeight: 3,
  17597. lineBgSize: 'cover',
  17598. itemStyle: function itemStyle() {
  17599. return {
  17600. height: '44px'
  17601. };
  17602. },
  17603. scrollable: true,
  17604. current: 0,
  17605. keyName: 'name'
  17606. }
  17607. };
  17608. exports.default = _default;
  17609. /***/ }),
  17610. /* 152 */
  17611. /*!*********************************************************************************!*\
  17612. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17613. \*********************************************************************************/
  17614. /*! no static exports found */
  17615. /***/ (function(module, exports, __webpack_require__) {
  17616. "use strict";
  17617. Object.defineProperty(exports, "__esModule", {
  17618. value: true
  17619. });
  17620. exports.default = void 0;
  17621. /*
  17622. * @Author : LQ
  17623. * @Description :
  17624. * @version : 1.0
  17625. * @Date : 2021-08-20 16:44:21
  17626. * @LastAuthor : LQ
  17627. * @lastTime : 2021-08-20 17:23:37
  17628. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17629. */
  17630. var _default = {
  17631. // tag 组件
  17632. tag: {
  17633. type: 'primary',
  17634. disabled: false,
  17635. size: 'medium',
  17636. shape: 'square',
  17637. text: '',
  17638. bgColor: '',
  17639. color: '',
  17640. borderColor: '',
  17641. closeColor: '#C6C7CB',
  17642. name: '',
  17643. plainFill: false,
  17644. plain: false,
  17645. closable: false,
  17646. show: true,
  17647. icon: ''
  17648. }
  17649. };
  17650. exports.default = _default;
  17651. /***/ }),
  17652. /* 153 */
  17653. /*!**********************************************************************************!*\
  17654. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/text.js ***!
  17655. \**********************************************************************************/
  17656. /*! no static exports found */
  17657. /***/ (function(module, exports, __webpack_require__) {
  17658. "use strict";
  17659. Object.defineProperty(exports, "__esModule", {
  17660. value: true
  17661. });
  17662. exports.default = void 0;
  17663. /*
  17664. * @Author : LQ
  17665. * @Description :
  17666. * @version : 1.0
  17667. * @Date : 2021-08-20 16:44:21
  17668. * @LastAuthor : LQ
  17669. * @lastTime : 2021-08-20 17:23:58
  17670. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17671. */
  17672. var _default = {
  17673. // text 组件
  17674. text: {
  17675. type: '',
  17676. show: true,
  17677. text: '',
  17678. prefixIcon: '',
  17679. suffixIcon: '',
  17680. mode: '',
  17681. href: '',
  17682. format: '',
  17683. call: false,
  17684. openType: '',
  17685. bold: false,
  17686. block: false,
  17687. lines: '',
  17688. color: '#303133',
  17689. size: 15,
  17690. iconStyle: function iconStyle() {
  17691. return {
  17692. fontSize: '15px'
  17693. };
  17694. },
  17695. decoration: 'none',
  17696. margin: 0,
  17697. lineHeight: '',
  17698. align: 'left',
  17699. wordWrap: 'normal'
  17700. }
  17701. };
  17702. exports.default = _default;
  17703. /***/ }),
  17704. /* 154 */
  17705. /*!**************************************************************************************!*\
  17706. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17707. \**************************************************************************************/
  17708. /*! no static exports found */
  17709. /***/ (function(module, exports, __webpack_require__) {
  17710. "use strict";
  17711. Object.defineProperty(exports, "__esModule", {
  17712. value: true
  17713. });
  17714. exports.default = void 0;
  17715. /*
  17716. * @Author : LQ
  17717. * @Description :
  17718. * @version : 1.0
  17719. * @Date : 2021-08-20 16:44:21
  17720. * @LastAuthor : LQ
  17721. * @lastTime : 2021-08-20 17:24:32
  17722. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17723. */
  17724. var _default = {
  17725. // textarea 组件
  17726. textarea: {
  17727. value: '',
  17728. placeholder: '',
  17729. placeholderClass: 'textarea-placeholder',
  17730. placeholderStyle: 'color: #c0c4cc',
  17731. height: 70,
  17732. confirmType: 'done',
  17733. disabled: false,
  17734. count: false,
  17735. focus: false,
  17736. autoHeight: false,
  17737. fixed: false,
  17738. cursorSpacing: 0,
  17739. cursor: '',
  17740. showConfirmBar: true,
  17741. selectionStart: -1,
  17742. selectionEnd: -1,
  17743. adjustPosition: true,
  17744. disableDefaultPadding: false,
  17745. holdKeyboard: false,
  17746. maxlength: 140,
  17747. border: 'surround',
  17748. formatter: null
  17749. }
  17750. };
  17751. exports.default = _default;
  17752. /***/ }),
  17753. /* 155 */
  17754. /*!***********************************************************************************!*\
  17755. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17756. \***********************************************************************************/
  17757. /*! no static exports found */
  17758. /***/ (function(module, exports, __webpack_require__) {
  17759. "use strict";
  17760. Object.defineProperty(exports, "__esModule", {
  17761. value: true
  17762. });
  17763. exports.default = void 0;
  17764. /*
  17765. * @Author : LQ
  17766. * @Description :
  17767. * @version : 1.0
  17768. * @Date : 2021-08-20 16:44:21
  17769. * @LastAuthor : LQ
  17770. * @lastTime : 2021-08-20 17:07:07
  17771. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17772. */
  17773. var _default = {
  17774. // toast组件
  17775. toast: {
  17776. zIndex: 10090,
  17777. loading: false,
  17778. text: '',
  17779. icon: '',
  17780. type: '',
  17781. loadingMode: '',
  17782. show: '',
  17783. overlay: false,
  17784. position: 'center',
  17785. params: function params() {},
  17786. duration: 2000,
  17787. isTab: false,
  17788. url: '',
  17789. callback: null,
  17790. back: false
  17791. }
  17792. };
  17793. exports.default = _default;
  17794. /***/ }),
  17795. /* 156 */
  17796. /*!*************************************************************************************!*\
  17797. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17798. \*************************************************************************************/
  17799. /*! no static exports found */
  17800. /***/ (function(module, exports, __webpack_require__) {
  17801. "use strict";
  17802. Object.defineProperty(exports, "__esModule", {
  17803. value: true
  17804. });
  17805. exports.default = void 0;
  17806. /*
  17807. * @Author : LQ
  17808. * @Description :
  17809. * @version : 1.0
  17810. * @Date : 2021-08-20 16:44:21
  17811. * @LastAuthor : LQ
  17812. * @lastTime : 2021-08-20 17:24:55
  17813. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17814. */
  17815. var _default = {
  17816. // toolbar 组件
  17817. toolbar: {
  17818. show: true,
  17819. cancelText: '取消',
  17820. confirmText: '确认',
  17821. cancelColor: '#909193',
  17822. confirmColor: '#3c9cff',
  17823. title: ''
  17824. }
  17825. };
  17826. exports.default = _default;
  17827. /***/ }),
  17828. /* 157 */
  17829. /*!*************************************************************************************!*\
  17830. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17831. \*************************************************************************************/
  17832. /*! no static exports found */
  17833. /***/ (function(module, exports, __webpack_require__) {
  17834. "use strict";
  17835. Object.defineProperty(exports, "__esModule", {
  17836. value: true
  17837. });
  17838. exports.default = void 0;
  17839. /*
  17840. * @Author : LQ
  17841. * @Description :
  17842. * @version : 1.0
  17843. * @Date : 2021-08-20 16:44:21
  17844. * @LastAuthor : LQ
  17845. * @lastTime : 2021-08-20 17:25:14
  17846. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17847. */
  17848. var _default = {
  17849. // tooltip 组件
  17850. tooltip: {
  17851. text: '',
  17852. copyText: '',
  17853. size: 14,
  17854. color: '#606266',
  17855. bgColor: 'transparent',
  17856. direction: 'top',
  17857. zIndex: 10071,
  17858. showCopy: true,
  17859. buttons: function buttons() {
  17860. return [];
  17861. },
  17862. overlay: true,
  17863. showToast: true
  17864. }
  17865. };
  17866. exports.default = _default;
  17867. /***/ }),
  17868. /* 158 */
  17869. /*!****************************************************************************************!*\
  17870. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17871. \****************************************************************************************/
  17872. /*! no static exports found */
  17873. /***/ (function(module, exports, __webpack_require__) {
  17874. "use strict";
  17875. Object.defineProperty(exports, "__esModule", {
  17876. value: true
  17877. });
  17878. exports.default = void 0;
  17879. /*
  17880. * @Author : LQ
  17881. * @Description :
  17882. * @version : 1.0
  17883. * @Date : 2021-08-20 16:44:21
  17884. * @LastAuthor : LQ
  17885. * @lastTime : 2021-08-20 16:59:00
  17886. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17887. */
  17888. var _default = {
  17889. // transition动画组件的props
  17890. transition: {
  17891. show: false,
  17892. mode: 'fade',
  17893. duration: '300',
  17894. timingFunction: 'ease-out'
  17895. }
  17896. };
  17897. exports.default = _default;
  17898. /***/ }),
  17899. /* 159 */
  17900. /*!************************************************************************************!*\
  17901. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17902. \************************************************************************************/
  17903. /*! no static exports found */
  17904. /***/ (function(module, exports, __webpack_require__) {
  17905. "use strict";
  17906. Object.defineProperty(exports, "__esModule", {
  17907. value: true
  17908. });
  17909. exports.default = void 0;
  17910. /*
  17911. * @Author : LQ
  17912. * @Description :
  17913. * @version : 1.0
  17914. * @Date : 2021-08-20 16:44:21
  17915. * @LastAuthor : LQ
  17916. * @lastTime : 2021-08-20 17:09:50
  17917. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17918. */
  17919. var _default = {
  17920. // upload组件
  17921. upload: {
  17922. accept: 'image',
  17923. capture: function capture() {
  17924. return ['album', 'camera'];
  17925. },
  17926. compressed: true,
  17927. camera: 'back',
  17928. maxDuration: 60,
  17929. uploadIcon: 'camera-fill',
  17930. uploadIconColor: '#D3D4D6',
  17931. useBeforeRead: false,
  17932. previewFullImage: true,
  17933. maxCount: 52,
  17934. disabled: false,
  17935. imageMode: 'aspectFill',
  17936. name: '',
  17937. sizeType: function sizeType() {
  17938. return ['original', 'compressed'];
  17939. },
  17940. multiple: false,
  17941. deletable: true,
  17942. maxSize: Number.MAX_VALUE,
  17943. fileList: function fileList() {
  17944. return [];
  17945. },
  17946. uploadText: '',
  17947. width: 80,
  17948. height: 80,
  17949. previewImage: true
  17950. }
  17951. };
  17952. exports.default = _default;
  17953. /***/ }),
  17954. /* 160 */
  17955. /*!******************************************************************************!*\
  17956. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17957. \******************************************************************************/
  17958. /*! no static exports found */
  17959. /***/ (function(module, exports, __webpack_require__) {
  17960. "use strict";
  17961. Object.defineProperty(exports, "__esModule", {
  17962. value: true
  17963. });
  17964. exports.default = void 0;
  17965. // uniapp在H5中各API的z-index值如下:
  17966. /**
  17967. * actionsheet: 999
  17968. * modal: 999
  17969. * navigate: 998
  17970. * tabbar: 998
  17971. * toast: 999
  17972. */
  17973. var _default = {
  17974. toast: 10090,
  17975. noNetwork: 10080,
  17976. // popup包含popup,actionsheet,keyboard,picker的值
  17977. popup: 10075,
  17978. mask: 10070,
  17979. navbar: 980,
  17980. topTips: 975,
  17981. sticky: 970,
  17982. indexListSticky: 965
  17983. };
  17984. exports.default = _default;
  17985. /***/ }),
  17986. /* 161 */
  17987. /*!**********************************************************************************!*\
  17988. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/function/platform.js ***!
  17989. \**********************************************************************************/
  17990. /*! no static exports found */
  17991. /***/ (function(module, exports, __webpack_require__) {
  17992. "use strict";
  17993. Object.defineProperty(exports, "__esModule", {
  17994. value: true
  17995. });
  17996. exports.default = void 0;
  17997. /**
  17998. * 注意:
  17999. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  18000. * module.exports = {
  18001. * transpileDependencies: ['uview-v2']
  18002. * }
  18003. */
  18004. var platform = 'none';
  18005. platform = 'vue2';
  18006. platform = 'weixin';
  18007. platform = 'mp';
  18008. var _default = platform;
  18009. exports.default = _default;
  18010. /***/ }),
  18011. /* 162 */,
  18012. /* 163 */,
  18013. /* 164 */,
  18014. /* 165 */,
  18015. /* 166 */,
  18016. /* 167 */,
  18017. /* 168 */
  18018. /*!***********************************************!*\
  18019. !*** F:/项目/HBuilderProjects/test/api/shop.js ***!
  18020. \***********************************************/
  18021. /*! no static exports found */
  18022. /***/ (function(module, exports, __webpack_require__) {
  18023. "use strict";
  18024. Object.defineProperty(exports, "__esModule", {
  18025. value: true
  18026. });
  18027. exports.search = search;
  18028. exports.shopDetail = shopDetail;
  18029. var _request = __webpack_require__(/*! @/utils/request.js */ 31);
  18030. // 首页 分类列表 推荐列表
  18031. function search(data) {
  18032. return (0, _request.request)({
  18033. url: '/zswl-cloud-shop/shopInfo/mainSearch',
  18034. data: data
  18035. });
  18036. }
  18037. // 店铺详情
  18038. function shopDetail(data) {
  18039. return (0, _request.request)({
  18040. url: '/zswl-cloud-shop/shopInfo/detail',
  18041. data: data
  18042. });
  18043. }
  18044. /***/ }),
  18045. /* 169 */
  18046. /*!**************************************************************!*\
  18047. !*** F:/项目/HBuilderProjects/test/libs/qqmap-wx-jssdk.min.js ***!
  18048. \**************************************************************/
  18049. /*! no static exports found */
  18050. /***/ (function(module, exports, __webpack_require__) {
  18051. /* WEBPACK VAR INJECTION */(function(wx) {var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  18052. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  18053. var ERROR_CONF = {
  18054. KEY_ERR: 311,
  18055. KEY_ERR_MSG: 'key格式错误',
  18056. PARAM_ERR: 310,
  18057. PARAM_ERR_MSG: '请求参数信息有误',
  18058. SYSTEM_ERR: 600,
  18059. SYSTEM_ERR_MSG: '系统错误',
  18060. WX_ERR_CODE: 1000,
  18061. WX_OK_CODE: 200
  18062. };
  18063. var BASE_URL = 'https://apis.map.qq.com/ws/';
  18064. var URL_SEARCH = BASE_URL + 'place/v1/search';
  18065. var URL_SUGGESTION = BASE_URL + 'place/v1/suggestion';
  18066. var URL_GET_GEOCODER = BASE_URL + 'geocoder/v1/';
  18067. var URL_CITY_LIST = BASE_URL + 'district/v1/list';
  18068. var URL_AREA_LIST = BASE_URL + 'district/v1/getchildren';
  18069. var URL_DISTANCE = BASE_URL + 'distance/v1/';
  18070. var URL_DIRECTION = BASE_URL + 'direction/v1/';
  18071. var MODE = {
  18072. driving: 'driving',
  18073. transit: 'transit'
  18074. };
  18075. var EARTH_RADIUS = 6378136.49;
  18076. var Utils = {
  18077. safeAdd: function safeAdd(x, y) {
  18078. var lsw = (x & 0xffff) + (y & 0xffff);
  18079. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  18080. return msw << 16 | lsw & 0xffff;
  18081. },
  18082. bitRotateLeft: function bitRotateLeft(num, cnt) {
  18083. return num << cnt | num >>> 32 - cnt;
  18084. },
  18085. md5cmn: function md5cmn(q, a, b, x, s, t) {
  18086. return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(a, q), this.safeAdd(x, t)), s), b);
  18087. },
  18088. md5ff: function md5ff(a, b, c, d, x, s, t) {
  18089. return this.md5cmn(b & c | ~b & d, a, b, x, s, t);
  18090. },
  18091. md5gg: function md5gg(a, b, c, d, x, s, t) {
  18092. return this.md5cmn(b & d | c & ~d, a, b, x, s, t);
  18093. },
  18094. md5hh: function md5hh(a, b, c, d, x, s, t) {
  18095. return this.md5cmn(b ^ c ^ d, a, b, x, s, t);
  18096. },
  18097. md5ii: function md5ii(a, b, c, d, x, s, t) {
  18098. return this.md5cmn(c ^ (b | ~d), a, b, x, s, t);
  18099. },
  18100. binlMD5: function binlMD5(x, len) {
  18101. x[len >> 5] |= 0x80 << len % 32;
  18102. x[(len + 64 >>> 9 << 4) + 14] = len;
  18103. var i;
  18104. var olda;
  18105. var oldb;
  18106. var oldc;
  18107. var oldd;
  18108. var a = 1732584193;
  18109. var b = -271733879;
  18110. var c = -1732584194;
  18111. var d = 271733878;
  18112. for (i = 0; i < x.length; i += 16) {
  18113. olda = a;
  18114. oldb = b;
  18115. oldc = c;
  18116. oldd = d;
  18117. a = this.md5ff(a, b, c, d, x[i], 7, -680876936);
  18118. d = this.md5ff(d, a, b, c, x[i + 1], 12, -389564586);
  18119. c = this.md5ff(c, d, a, b, x[i + 2], 17, 606105819);
  18120. b = this.md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
  18121. a = this.md5ff(a, b, c, d, x[i + 4], 7, -176418897);
  18122. d = this.md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
  18123. c = this.md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
  18124. b = this.md5ff(b, c, d, a, x[i + 7], 22, -45705983);
  18125. a = this.md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
  18126. d = this.md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
  18127. c = this.md5ff(c, d, a, b, x[i + 10], 17, -42063);
  18128. b = this.md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
  18129. a = this.md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
  18130. d = this.md5ff(d, a, b, c, x[i + 13], 12, -40341101);
  18131. c = this.md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
  18132. b = this.md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
  18133. a = this.md5gg(a, b, c, d, x[i + 1], 5, -165796510);
  18134. d = this.md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
  18135. c = this.md5gg(c, d, a, b, x[i + 11], 14, 643717713);
  18136. b = this.md5gg(b, c, d, a, x[i], 20, -373897302);
  18137. a = this.md5gg(a, b, c, d, x[i + 5], 5, -701558691);
  18138. d = this.md5gg(d, a, b, c, x[i + 10], 9, 38016083);
  18139. c = this.md5gg(c, d, a, b, x[i + 15], 14, -660478335);
  18140. b = this.md5gg(b, c, d, a, x[i + 4], 20, -405537848);
  18141. a = this.md5gg(a, b, c, d, x[i + 9], 5, 568446438);
  18142. d = this.md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
  18143. c = this.md5gg(c, d, a, b, x[i + 3], 14, -187363961);
  18144. b = this.md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
  18145. a = this.md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
  18146. d = this.md5gg(d, a, b, c, x[i + 2], 9, -51403784);
  18147. c = this.md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
  18148. b = this.md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
  18149. a = this.md5hh(a, b, c, d, x[i + 5], 4, -378558);
  18150. d = this.md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
  18151. c = this.md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
  18152. b = this.md5hh(b, c, d, a, x[i + 14], 23, -35309556);
  18153. a = this.md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
  18154. d = this.md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
  18155. c = this.md5hh(c, d, a, b, x[i + 7], 16, -155497632);
  18156. b = this.md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
  18157. a = this.md5hh(a, b, c, d, x[i + 13], 4, 681279174);
  18158. d = this.md5hh(d, a, b, c, x[i], 11, -358537222);
  18159. c = this.md5hh(c, d, a, b, x[i + 3], 16, -722521979);
  18160. b = this.md5hh(b, c, d, a, x[i + 6], 23, 76029189);
  18161. a = this.md5hh(a, b, c, d, x[i + 9], 4, -640364487);
  18162. d = this.md5hh(d, a, b, c, x[i + 12], 11, -421815835);
  18163. c = this.md5hh(c, d, a, b, x[i + 15], 16, 530742520);
  18164. b = this.md5hh(b, c, d, a, x[i + 2], 23, -995338651);
  18165. a = this.md5ii(a, b, c, d, x[i], 6, -198630844);
  18166. d = this.md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
  18167. c = this.md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
  18168. b = this.md5ii(b, c, d, a, x[i + 5], 21, -57434055);
  18169. a = this.md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
  18170. d = this.md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
  18171. c = this.md5ii(c, d, a, b, x[i + 10], 15, -1051523);
  18172. b = this.md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
  18173. a = this.md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
  18174. d = this.md5ii(d, a, b, c, x[i + 15], 10, -30611744);
  18175. c = this.md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
  18176. b = this.md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
  18177. a = this.md5ii(a, b, c, d, x[i + 4], 6, -145523070);
  18178. d = this.md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
  18179. c = this.md5ii(c, d, a, b, x[i + 2], 15, 718787259);
  18180. b = this.md5ii(b, c, d, a, x[i + 9], 21, -343485551);
  18181. a = this.safeAdd(a, olda);
  18182. b = this.safeAdd(b, oldb);
  18183. c = this.safeAdd(c, oldc);
  18184. d = this.safeAdd(d, oldd);
  18185. }
  18186. return [a, b, c, d];
  18187. },
  18188. binl2rstr: function binl2rstr(input) {
  18189. var i;
  18190. var output = '';
  18191. var length32 = input.length * 32;
  18192. for (i = 0; i < length32; i += 8) {
  18193. output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);
  18194. }
  18195. return output;
  18196. },
  18197. rstr2binl: function rstr2binl(input) {
  18198. var i;
  18199. var output = [];
  18200. output[(input.length >> 2) - 1] = undefined;
  18201. for (i = 0; i < output.length; i += 1) {
  18202. output[i] = 0;
  18203. }
  18204. var length8 = input.length * 8;
  18205. for (i = 0; i < length8; i += 8) {
  18206. output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
  18207. }
  18208. return output;
  18209. },
  18210. rstrMD5: function rstrMD5(s) {
  18211. return this.binl2rstr(this.binlMD5(this.rstr2binl(s), s.length * 8));
  18212. },
  18213. rstrHMACMD5: function rstrHMACMD5(key, data) {
  18214. var i;
  18215. var bkey = this.rstr2binl(key);
  18216. var ipad = [];
  18217. var opad = [];
  18218. var hash;
  18219. ipad[15] = opad[15] = undefined;
  18220. if (bkey.length > 16) {
  18221. bkey = this.binlMD5(bkey, key.length * 8);
  18222. }
  18223. for (i = 0; i < 16; i += 1) {
  18224. ipad[i] = bkey[i] ^ 0x36363636;
  18225. opad[i] = bkey[i] ^ 0x5c5c5c5c;
  18226. }
  18227. hash = this.binlMD5(ipad.concat(this.rstr2binl(data)), 512 + data.length * 8);
  18228. return this.binl2rstr(this.binlMD5(opad.concat(hash), 512 + 128));
  18229. },
  18230. rstr2hex: function rstr2hex(input) {
  18231. var hexTab = '0123456789abcdef';
  18232. var output = '';
  18233. var x;
  18234. var i;
  18235. for (i = 0; i < input.length; i += 1) {
  18236. x = input.charCodeAt(i);
  18237. output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);
  18238. }
  18239. return output;
  18240. },
  18241. str2rstrUTF8: function str2rstrUTF8(input) {
  18242. return unescape(encodeURIComponent(input));
  18243. },
  18244. rawMD5: function rawMD5(s) {
  18245. return this.rstrMD5(this.str2rstrUTF8(s));
  18246. },
  18247. hexMD5: function hexMD5(s) {
  18248. return this.rstr2hex(this.rawMD5(s));
  18249. },
  18250. rawHMACMD5: function rawHMACMD5(k, d) {
  18251. return this.rstrHMACMD5(this.str2rstrUTF8(k), str2rstrUTF8(d));
  18252. },
  18253. hexHMACMD5: function hexHMACMD5(k, d) {
  18254. return this.rstr2hex(this.rawHMACMD5(k, d));
  18255. },
  18256. md5: function md5(string, key, raw) {
  18257. if (!key) {
  18258. if (!raw) {
  18259. return this.hexMD5(string);
  18260. }
  18261. return this.rawMD5(string);
  18262. }
  18263. if (!raw) {
  18264. return this.hexHMACMD5(key, string);
  18265. }
  18266. return this.rawHMACMD5(key, string);
  18267. },
  18268. getSig: function getSig(requestParam, sk, feature, mode) {
  18269. var sig = null;
  18270. var requestArr = [];
  18271. Object.keys(requestParam).sort().forEach(function (key) {
  18272. requestArr.push(key + '=' + requestParam[key]);
  18273. });
  18274. if (feature == 'search') {
  18275. sig = '/ws/place/v1/search?' + requestArr.join('&') + sk;
  18276. }
  18277. if (feature == 'suggest') {
  18278. sig = '/ws/place/v1/suggestion?' + requestArr.join('&') + sk;
  18279. }
  18280. if (feature == 'reverseGeocoder') {
  18281. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  18282. }
  18283. if (feature == 'geocoder') {
  18284. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  18285. }
  18286. if (feature == 'getCityList') {
  18287. sig = '/ws/district/v1/list?' + requestArr.join('&') + sk;
  18288. }
  18289. if (feature == 'getDistrictByCityId') {
  18290. sig = '/ws/district/v1/getchildren?' + requestArr.join('&') + sk;
  18291. }
  18292. if (feature == 'calculateDistance') {
  18293. sig = '/ws/distance/v1/?' + requestArr.join('&') + sk;
  18294. }
  18295. if (feature == 'direction') {
  18296. sig = '/ws/direction/v1/' + mode + '?' + requestArr.join('&') + sk;
  18297. }
  18298. sig = this.md5(sig);
  18299. return sig;
  18300. },
  18301. location2query: function location2query(data) {
  18302. if (typeof data == 'string') {
  18303. return data;
  18304. }
  18305. var query = '';
  18306. for (var i = 0; i < data.length; i++) {
  18307. var d = data[i];
  18308. if (!!query) {
  18309. query += ';';
  18310. }
  18311. if (d.location) {
  18312. query = query + d.location.lat + ',' + d.location.lng;
  18313. }
  18314. if (d.latitude && d.longitude) {
  18315. query = query + d.latitude + ',' + d.longitude;
  18316. }
  18317. }
  18318. return query;
  18319. },
  18320. rad: function rad(d) {
  18321. return d * Math.PI / 180.0;
  18322. },
  18323. getEndLocation: function getEndLocation(location) {
  18324. var to = location.split(';');
  18325. var endLocation = [];
  18326. for (var i = 0; i < to.length; i++) {
  18327. endLocation.push({
  18328. lat: parseFloat(to[i].split(',')[0]),
  18329. lng: parseFloat(to[i].split(',')[1])
  18330. });
  18331. }
  18332. return endLocation;
  18333. },
  18334. getDistance: function getDistance(latFrom, lngFrom, latTo, lngTo) {
  18335. var radLatFrom = this.rad(latFrom);
  18336. var radLatTo = this.rad(latTo);
  18337. var a = radLatFrom - radLatTo;
  18338. var b = this.rad(lngFrom) - this.rad(lngTo);
  18339. var distance = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLatFrom) * Math.cos(radLatTo) * Math.pow(Math.sin(b / 2), 2)));
  18340. distance = distance * EARTH_RADIUS;
  18341. distance = Math.round(distance * 10000) / 10000;
  18342. return parseFloat(distance.toFixed(0));
  18343. },
  18344. getWXLocation: function getWXLocation(success, fail, complete) {
  18345. wx.getLocation({
  18346. type: 'gcj02',
  18347. success: success,
  18348. fail: fail,
  18349. complete: complete
  18350. });
  18351. },
  18352. getLocationParam: function getLocationParam(location) {
  18353. if (typeof location == 'string') {
  18354. var locationArr = location.split(',');
  18355. if (locationArr.length === 2) {
  18356. location = {
  18357. latitude: location.split(',')[0],
  18358. longitude: location.split(',')[1]
  18359. };
  18360. } else {
  18361. location = {};
  18362. }
  18363. }
  18364. return location;
  18365. },
  18366. polyfillParam: function polyfillParam(param) {
  18367. param.success = param.success || function () {};
  18368. param.fail = param.fail || function () {};
  18369. param.complete = param.complete || function () {};
  18370. },
  18371. checkParamKeyEmpty: function checkParamKeyEmpty(param, key) {
  18372. if (!param[key]) {
  18373. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + key + '参数格式有误');
  18374. param.fail(errconf);
  18375. param.complete(errconf);
  18376. return true;
  18377. }
  18378. return false;
  18379. },
  18380. checkKeyword: function checkKeyword(param) {
  18381. return !this.checkParamKeyEmpty(param, 'keyword');
  18382. },
  18383. checkLocation: function checkLocation(param) {
  18384. var location = this.getLocationParam(param.location);
  18385. if (!location || !location.latitude || !location.longitude) {
  18386. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + ' location参数格式有误');
  18387. param.fail(errconf);
  18388. param.complete(errconf);
  18389. return false;
  18390. }
  18391. return true;
  18392. },
  18393. buildErrorConfig: function buildErrorConfig(errCode, errMsg) {
  18394. return {
  18395. status: errCode,
  18396. message: errMsg
  18397. };
  18398. },
  18399. handleData: function handleData(param, data, feature) {
  18400. if (feature == 'search') {
  18401. var searchResult = data.data;
  18402. var searchSimplify = [];
  18403. for (var i = 0; i < searchResult.length; i++) {
  18404. searchSimplify.push({
  18405. id: searchResult[i].id || null,
  18406. title: searchResult[i].title || null,
  18407. latitude: searchResult[i].location && searchResult[i].location.lat || null,
  18408. longitude: searchResult[i].location && searchResult[i].location.lng || null,
  18409. address: searchResult[i].address || null,
  18410. category: searchResult[i].category || null,
  18411. tel: searchResult[i].tel || null,
  18412. adcode: searchResult[i].ad_info && searchResult[i].ad_info.adcode || null,
  18413. city: searchResult[i].ad_info && searchResult[i].ad_info.city || null,
  18414. district: searchResult[i].ad_info && searchResult[i].ad_info.district || null,
  18415. province: searchResult[i].ad_info && searchResult[i].ad_info.province || null
  18416. });
  18417. }
  18418. param.success(data, {
  18419. searchResult: searchResult,
  18420. searchSimplify: searchSimplify
  18421. });
  18422. } else if (feature == 'suggest') {
  18423. var suggestResult = data.data;
  18424. var suggestSimplify = [];
  18425. for (var i = 0; i < suggestResult.length; i++) {
  18426. suggestSimplify.push({
  18427. adcode: suggestResult[i].adcode || null,
  18428. address: suggestResult[i].address || null,
  18429. category: suggestResult[i].category || null,
  18430. city: suggestResult[i].city || null,
  18431. district: suggestResult[i].district || null,
  18432. id: suggestResult[i].id || null,
  18433. latitude: suggestResult[i].location && suggestResult[i].location.lat || null,
  18434. longitude: suggestResult[i].location && suggestResult[i].location.lng || null,
  18435. province: suggestResult[i].province || null,
  18436. title: suggestResult[i].title || null,
  18437. type: suggestResult[i].type || null
  18438. });
  18439. }
  18440. param.success(data, {
  18441. suggestResult: suggestResult,
  18442. suggestSimplify: suggestSimplify
  18443. });
  18444. } else if (feature == 'reverseGeocoder') {
  18445. var reverseGeocoderResult = data.result;
  18446. var reverseGeocoderSimplify = {
  18447. address: reverseGeocoderResult.address || null,
  18448. latitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lat || null,
  18449. longitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lng || null,
  18450. adcode: reverseGeocoderResult.ad_info && reverseGeocoderResult.ad_info.adcode || null,
  18451. city: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.city || null,
  18452. district: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.district || null,
  18453. nation: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.nation || null,
  18454. province: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.province || null,
  18455. street: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street || null,
  18456. street_number: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street_number || null,
  18457. recommend: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.recommend || null,
  18458. rough: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.rough || null
  18459. };
  18460. if (reverseGeocoderResult.pois) {
  18461. var pois = reverseGeocoderResult.pois;
  18462. var poisSimplify = [];
  18463. for (var i = 0; i < pois.length; i++) {
  18464. poisSimplify.push({
  18465. id: pois[i].id || null,
  18466. title: pois[i].title || null,
  18467. latitude: pois[i].location && pois[i].location.lat || null,
  18468. longitude: pois[i].location && pois[i].location.lng || null,
  18469. address: pois[i].address || null,
  18470. category: pois[i].category || null,
  18471. adcode: pois[i].ad_info && pois[i].ad_info.adcode || null,
  18472. city: pois[i].ad_info && pois[i].ad_info.city || null,
  18473. district: pois[i].ad_info && pois[i].ad_info.district || null,
  18474. province: pois[i].ad_info && pois[i].ad_info.province || null
  18475. });
  18476. }
  18477. param.success(data, {
  18478. reverseGeocoderResult: reverseGeocoderResult,
  18479. reverseGeocoderSimplify: reverseGeocoderSimplify,
  18480. pois: pois,
  18481. poisSimplify: poisSimplify
  18482. });
  18483. } else {
  18484. param.success(data, {
  18485. reverseGeocoderResult: reverseGeocoderResult,
  18486. reverseGeocoderSimplify: reverseGeocoderSimplify
  18487. });
  18488. }
  18489. } else if (feature == 'geocoder') {
  18490. var geocoderResult = data.result;
  18491. var geocoderSimplify = {
  18492. title: geocoderResult.title || null,
  18493. latitude: geocoderResult.location && geocoderResult.location.lat || null,
  18494. longitude: geocoderResult.location && geocoderResult.location.lng || null,
  18495. adcode: geocoderResult.ad_info && geocoderResult.ad_info.adcode || null,
  18496. province: geocoderResult.address_components && geocoderResult.address_components.province || null,
  18497. city: geocoderResult.address_components && geocoderResult.address_components.city || null,
  18498. district: geocoderResult.address_components && geocoderResult.address_components.district || null,
  18499. street: geocoderResult.address_components && geocoderResult.address_components.street || null,
  18500. street_number: geocoderResult.address_components && geocoderResult.address_components.street_number || null,
  18501. level: geocoderResult.level || null
  18502. };
  18503. param.success(data, {
  18504. geocoderResult: geocoderResult,
  18505. geocoderSimplify: geocoderSimplify
  18506. });
  18507. } else if (feature == 'getCityList') {
  18508. var provinceResult = data.result[0];
  18509. var cityResult = data.result[1];
  18510. var districtResult = data.result[2];
  18511. param.success(data, {
  18512. provinceResult: provinceResult,
  18513. cityResult: cityResult,
  18514. districtResult: districtResult
  18515. });
  18516. } else if (feature == 'getDistrictByCityId') {
  18517. var districtByCity = data.result[0];
  18518. param.success(data, districtByCity);
  18519. } else if (feature == 'calculateDistance') {
  18520. var calculateDistanceResult = data.result.elements;
  18521. var distance = [];
  18522. for (var i = 0; i < calculateDistanceResult.length; i++) {
  18523. distance.push(calculateDistanceResult[i].distance);
  18524. }
  18525. param.success(data, {
  18526. calculateDistanceResult: calculateDistanceResult,
  18527. distance: distance
  18528. });
  18529. } else if (feature == 'direction') {
  18530. var direction = data.result.routes;
  18531. param.success(data, direction);
  18532. } else {
  18533. param.success(data);
  18534. }
  18535. },
  18536. buildWxRequestConfig: function buildWxRequestConfig(param, options, feature) {
  18537. var that = this;
  18538. options.header = {
  18539. "content-type": "application/json"
  18540. };
  18541. options.method = 'GET';
  18542. options.success = function (res) {
  18543. var data = res.data;
  18544. if (data.status === 0) {
  18545. that.handleData(param, data, feature);
  18546. } else {
  18547. param.fail(data);
  18548. }
  18549. };
  18550. options.fail = function (res) {
  18551. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  18552. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18553. };
  18554. options.complete = function (res) {
  18555. var statusCode = +res.statusCode;
  18556. switch (statusCode) {
  18557. case ERROR_CONF.WX_ERR_CODE:
  18558. {
  18559. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18560. break;
  18561. }
  18562. case ERROR_CONF.WX_OK_CODE:
  18563. {
  18564. var data = res.data;
  18565. if (data.status === 0) {
  18566. param.complete(data);
  18567. } else {
  18568. param.complete(that.buildErrorConfig(data.status, data.message));
  18569. }
  18570. break;
  18571. }
  18572. default:
  18573. {
  18574. param.complete(that.buildErrorConfig(ERROR_CONF.SYSTEM_ERR, ERROR_CONF.SYSTEM_ERR_MSG));
  18575. }
  18576. }
  18577. };
  18578. return options;
  18579. },
  18580. locationProcess: function locationProcess(param, locationsuccess, locationfail, locationcomplete) {
  18581. var that = this;
  18582. locationfail = locationfail || function (res) {
  18583. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  18584. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18585. };
  18586. locationcomplete = locationcomplete || function (res) {
  18587. if (res.statusCode == ERROR_CONF.WX_ERR_CODE) {
  18588. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18589. }
  18590. };
  18591. if (!param.location) {
  18592. that.getWXLocation(locationsuccess, locationfail, locationcomplete);
  18593. } else if (that.checkLocation(param)) {
  18594. var location = Utils.getLocationParam(param.location);
  18595. locationsuccess(location);
  18596. }
  18597. }
  18598. };
  18599. var QQMapWX = /*#__PURE__*/function () {
  18600. "use strict";
  18601. function QQMapWX(options) {
  18602. _classCallCheck(this, QQMapWX);
  18603. if (!options.key) {
  18604. throw Error('key值不能为空');
  18605. }
  18606. this.key = options.key;
  18607. }
  18608. _createClass(QQMapWX, [{
  18609. key: "search",
  18610. value: function search(options) {
  18611. var that = this;
  18612. options = options || {};
  18613. Utils.polyfillParam(options);
  18614. if (!Utils.checkKeyword(options)) {
  18615. return;
  18616. }
  18617. var requestParam = {
  18618. keyword: options.keyword,
  18619. orderby: options.orderby || '_distance',
  18620. page_size: options.page_size || 10,
  18621. page_index: options.page_index || 1,
  18622. output: 'json',
  18623. key: that.key
  18624. };
  18625. if (options.address_format) {
  18626. requestParam.address_format = options.address_format;
  18627. }
  18628. if (options.filter) {
  18629. requestParam.filter = options.filter;
  18630. }
  18631. var distance = options.distance || "1000";
  18632. var auto_extend = options.auto_extend || 1;
  18633. var region = null;
  18634. var rectangle = null;
  18635. if (options.region) {
  18636. region = options.region;
  18637. }
  18638. if (options.rectangle) {
  18639. rectangle = options.rectangle;
  18640. }
  18641. var locationsuccess = function locationsuccess(result) {
  18642. if (region && !rectangle) {
  18643. requestParam.boundary = "region(" + region + "," + auto_extend + "," + result.latitude + "," + result.longitude + ")";
  18644. if (options.sig) {
  18645. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  18646. }
  18647. } else if (rectangle && !region) {
  18648. requestParam.boundary = "rectangle(" + rectangle + ")";
  18649. if (options.sig) {
  18650. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  18651. }
  18652. } else {
  18653. requestParam.boundary = "nearby(" + result.latitude + "," + result.longitude + "," + distance + "," + auto_extend + ")";
  18654. if (options.sig) {
  18655. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  18656. }
  18657. }
  18658. wx.request(Utils.buildWxRequestConfig(options, {
  18659. url: URL_SEARCH,
  18660. data: requestParam
  18661. }, 'search'));
  18662. };
  18663. Utils.locationProcess(options, locationsuccess);
  18664. }
  18665. }, {
  18666. key: "getSuggestion",
  18667. value: function getSuggestion(options) {
  18668. var that = this;
  18669. options = options || {};
  18670. Utils.polyfillParam(options);
  18671. if (!Utils.checkKeyword(options)) {
  18672. return;
  18673. }
  18674. var requestParam = {
  18675. keyword: options.keyword,
  18676. region: options.region || '全国',
  18677. region_fix: options.region_fix || 0,
  18678. policy: options.policy || 0,
  18679. page_size: options.page_size || 10,
  18680. page_index: options.page_index || 1,
  18681. get_subpois: options.get_subpois || 0,
  18682. output: 'json',
  18683. key: that.key
  18684. };
  18685. if (options.address_format) {
  18686. requestParam.address_format = options.address_format;
  18687. }
  18688. if (options.filter) {
  18689. requestParam.filter = options.filter;
  18690. }
  18691. if (options.location) {
  18692. var locationsuccess = function locationsuccess(result) {
  18693. requestParam.location = result.latitude + ',' + result.longitude;
  18694. if (options.sig) {
  18695. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  18696. }
  18697. wx.request(Utils.buildWxRequestConfig(options, {
  18698. url: URL_SUGGESTION,
  18699. data: requestParam
  18700. }, "suggest"));
  18701. };
  18702. Utils.locationProcess(options, locationsuccess);
  18703. } else {
  18704. if (options.sig) {
  18705. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  18706. }
  18707. wx.request(Utils.buildWxRequestConfig(options, {
  18708. url: URL_SUGGESTION,
  18709. data: requestParam
  18710. }, "suggest"));
  18711. }
  18712. }
  18713. }, {
  18714. key: "reverseGeocoder",
  18715. value: function reverseGeocoder(options) {
  18716. var that = this;
  18717. options = options || {};
  18718. Utils.polyfillParam(options);
  18719. var requestParam = {
  18720. coord_type: options.coord_type || 5,
  18721. get_poi: options.get_poi || 0,
  18722. output: 'json',
  18723. key: that.key
  18724. };
  18725. if (options.poi_options) {
  18726. requestParam.poi_options = options.poi_options;
  18727. }
  18728. var locationsuccess = function locationsuccess(result) {
  18729. requestParam.location = result.latitude + ',' + result.longitude;
  18730. if (options.sig) {
  18731. requestParam.sig = Utils.getSig(requestParam, options.sig, 'reverseGeocoder');
  18732. }
  18733. wx.request(Utils.buildWxRequestConfig(options, {
  18734. url: URL_GET_GEOCODER,
  18735. data: requestParam
  18736. }, 'reverseGeocoder'));
  18737. };
  18738. Utils.locationProcess(options, locationsuccess);
  18739. }
  18740. }, {
  18741. key: "geocoder",
  18742. value: function geocoder(options) {
  18743. var that = this;
  18744. options = options || {};
  18745. Utils.polyfillParam(options);
  18746. if (Utils.checkParamKeyEmpty(options, 'address')) {
  18747. return;
  18748. }
  18749. var requestParam = {
  18750. address: options.address,
  18751. output: 'json',
  18752. key: that.key
  18753. };
  18754. if (options.region) {
  18755. requestParam.region = options.region;
  18756. }
  18757. if (options.sig) {
  18758. requestParam.sig = Utils.getSig(requestParam, options.sig, 'geocoder');
  18759. }
  18760. wx.request(Utils.buildWxRequestConfig(options, {
  18761. url: URL_GET_GEOCODER,
  18762. data: requestParam
  18763. }, 'geocoder'));
  18764. }
  18765. }, {
  18766. key: "getCityList",
  18767. value: function getCityList(options) {
  18768. var that = this;
  18769. options = options || {};
  18770. Utils.polyfillParam(options);
  18771. var requestParam = {
  18772. output: 'json',
  18773. key: that.key
  18774. };
  18775. if (options.sig) {
  18776. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getCityList');
  18777. }
  18778. wx.request(Utils.buildWxRequestConfig(options, {
  18779. url: URL_CITY_LIST,
  18780. data: requestParam
  18781. }, 'getCityList'));
  18782. }
  18783. }, {
  18784. key: "getDistrictByCityId",
  18785. value: function getDistrictByCityId(options) {
  18786. var that = this;
  18787. options = options || {};
  18788. Utils.polyfillParam(options);
  18789. if (Utils.checkParamKeyEmpty(options, 'id')) {
  18790. return;
  18791. }
  18792. var requestParam = {
  18793. id: options.id || '',
  18794. output: 'json',
  18795. key: that.key
  18796. };
  18797. if (options.sig) {
  18798. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getDistrictByCityId');
  18799. }
  18800. wx.request(Utils.buildWxRequestConfig(options, {
  18801. url: URL_AREA_LIST,
  18802. data: requestParam
  18803. }, 'getDistrictByCityId'));
  18804. }
  18805. }, {
  18806. key: "calculateDistance",
  18807. value: function calculateDistance(options) {
  18808. var that = this;
  18809. options = options || {};
  18810. Utils.polyfillParam(options);
  18811. if (Utils.checkParamKeyEmpty(options, 'to')) {
  18812. return;
  18813. }
  18814. var requestParam = {
  18815. mode: options.mode || 'walking',
  18816. to: Utils.location2query(options.to),
  18817. output: 'json',
  18818. key: that.key
  18819. };
  18820. if (options.from) {
  18821. options.location = options.from;
  18822. }
  18823. if (requestParam.mode == 'straight') {
  18824. var locationsuccess = function locationsuccess(result) {
  18825. var locationTo = Utils.getEndLocation(requestParam.to);
  18826. var data = {
  18827. message: "query ok",
  18828. result: {
  18829. elements: []
  18830. },
  18831. status: 0
  18832. };
  18833. for (var i = 0; i < locationTo.length; i++) {
  18834. data.result.elements.push({
  18835. distance: Utils.getDistance(result.latitude, result.longitude, locationTo[i].lat, locationTo[i].lng),
  18836. duration: 0,
  18837. from: {
  18838. lat: result.latitude,
  18839. lng: result.longitude
  18840. },
  18841. to: {
  18842. lat: locationTo[i].lat,
  18843. lng: locationTo[i].lng
  18844. }
  18845. });
  18846. }
  18847. var calculateResult = data.result.elements;
  18848. var distanceResult = [];
  18849. for (var i = 0; i < calculateResult.length; i++) {
  18850. distanceResult.push(calculateResult[i].distance);
  18851. }
  18852. return options.success(data, {
  18853. calculateResult: calculateResult,
  18854. distanceResult: distanceResult
  18855. });
  18856. };
  18857. Utils.locationProcess(options, locationsuccess);
  18858. } else {
  18859. var locationsuccess = function locationsuccess(result) {
  18860. requestParam.from = result.latitude + ',' + result.longitude;
  18861. if (options.sig) {
  18862. requestParam.sig = Utils.getSig(requestParam, options.sig, 'calculateDistance');
  18863. }
  18864. wx.request(Utils.buildWxRequestConfig(options, {
  18865. url: URL_DISTANCE,
  18866. data: requestParam
  18867. }, 'calculateDistance'));
  18868. };
  18869. Utils.locationProcess(options, locationsuccess);
  18870. }
  18871. }
  18872. }, {
  18873. key: "direction",
  18874. value: function direction(options) {
  18875. var that = this;
  18876. options = options || {};
  18877. Utils.polyfillParam(options);
  18878. if (Utils.checkParamKeyEmpty(options, 'to')) {
  18879. return;
  18880. }
  18881. var requestParam = {
  18882. output: 'json',
  18883. key: that.key
  18884. };
  18885. if (typeof options.to == 'string') {
  18886. requestParam.to = options.to;
  18887. } else {
  18888. requestParam.to = options.to.latitude + ',' + options.to.longitude;
  18889. }
  18890. var SET_URL_DIRECTION = null;
  18891. options.mode = options.mode || MODE.driving;
  18892. SET_URL_DIRECTION = URL_DIRECTION + options.mode;
  18893. if (options.from) {
  18894. options.location = options.from;
  18895. }
  18896. if (options.mode == MODE.driving) {
  18897. if (options.from_poi) {
  18898. requestParam.from_poi = options.from_poi;
  18899. }
  18900. if (options.heading) {
  18901. requestParam.heading = options.heading;
  18902. }
  18903. if (options.speed) {
  18904. requestParam.speed = options.speed;
  18905. }
  18906. if (options.accuracy) {
  18907. requestParam.accuracy = options.accuracy;
  18908. }
  18909. if (options.road_type) {
  18910. requestParam.road_type = options.road_type;
  18911. }
  18912. if (options.to_poi) {
  18913. requestParam.to_poi = options.to_poi;
  18914. }
  18915. if (options.from_track) {
  18916. requestParam.from_track = options.from_track;
  18917. }
  18918. if (options.waypoints) {
  18919. requestParam.waypoints = options.waypoints;
  18920. }
  18921. if (options.policy) {
  18922. requestParam.policy = options.policy;
  18923. }
  18924. if (options.plate_number) {
  18925. requestParam.plate_number = options.plate_number;
  18926. }
  18927. }
  18928. if (options.mode == MODE.transit) {
  18929. if (options.departure_time) {
  18930. requestParam.departure_time = options.departure_time;
  18931. }
  18932. if (options.policy) {
  18933. requestParam.policy = options.policy;
  18934. }
  18935. }
  18936. var locationsuccess = function locationsuccess(result) {
  18937. requestParam.from = result.latitude + ',' + result.longitude;
  18938. if (options.sig) {
  18939. requestParam.sig = Utils.getSig(requestParam, options.sig, 'direction', options.mode);
  18940. }
  18941. wx.request(Utils.buildWxRequestConfig(options, {
  18942. url: SET_URL_DIRECTION,
  18943. data: requestParam
  18944. }, 'direction'));
  18945. };
  18946. Utils.locationProcess(options, locationsuccess);
  18947. }
  18948. }]);
  18949. return QQMapWX;
  18950. }();
  18951. ;
  18952. module.exports = QQMapWX;
  18953. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  18954. /***/ }),
  18955. /* 170 */,
  18956. /* 171 */,
  18957. /* 172 */,
  18958. /* 173 */,
  18959. /* 174 */,
  18960. /* 175 */,
  18961. /* 176 */,
  18962. /* 177 */,
  18963. /* 178 */,
  18964. /* 179 */,
  18965. /* 180 */,
  18966. /* 181 */,
  18967. /* 182 */,
  18968. /* 183 */,
  18969. /* 184 */,
  18970. /* 185 */,
  18971. /* 186 */,
  18972. /* 187 */,
  18973. /* 188 */,
  18974. /* 189 */,
  18975. /* 190 */,
  18976. /* 191 */,
  18977. /* 192 */,
  18978. /* 193 */,
  18979. /* 194 */,
  18980. /* 195 */,
  18981. /* 196 */,
  18982. /* 197 */,
  18983. /* 198 */,
  18984. /* 199 */,
  18985. /* 200 */,
  18986. /* 201 */,
  18987. /* 202 */,
  18988. /* 203 */,
  18989. /* 204 */,
  18990. /* 205 */,
  18991. /* 206 */,
  18992. /* 207 */,
  18993. /* 208 */,
  18994. /* 209 */,
  18995. /* 210 */
  18996. /*!************************************************************************!*\
  18997. !*** F:/项目/HBuilderProjects/test/components/city-select/citySelect.js ***!
  18998. \************************************************************************/
  18999. /*! no static exports found */
  19000. /***/ (function(module, exports, __webpack_require__) {
  19001. "use strict";
  19002. Object.defineProperty(exports, "__esModule", {
  19003. value: true
  19004. });
  19005. exports.default = void 0;
  19006. var citySelect = {
  19007. /* eslint-disable */
  19008. firstletter: 'YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYFZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJXDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLCYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNCMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY',
  19009. /**
  19010. * 获取汉字的拼音首字母
  19011. * @param str 汉字字符串,如果遇到非汉字则原样返回
  19012. * @return 返回对象 {unicode:NUmber,firstletter:String}
  19013. */
  19014. getFirstLetter: function getFirstLetter(str) {
  19015. if (!str || /^ +$/g.test(str)) {
  19016. return '';
  19017. }
  19018. // 使用首字母字典文件
  19019. if (citySelect.firstletter) {
  19020. var result = [];
  19021. var unicode = str.charCodeAt(0);
  19022. var ch = str.charAt(0);
  19023. if (unicode >= 19968 && unicode <= 40869) {
  19024. ch = citySelect.firstletter.charAt(unicode - 19968);
  19025. } else if (unicode >= 97 && unicode <= 122 || unicode >= 65 && unicode <= 90) {
  19026. ch = ch.toLocaleUpperCase();
  19027. } else {
  19028. ch = '#';
  19029. }
  19030. var obj = {
  19031. unicode: unicode,
  19032. firstletter: ch
  19033. };
  19034. return obj;
  19035. }
  19036. return '';
  19037. }
  19038. };
  19039. var _default = citySelect;
  19040. exports.default = _default;
  19041. /***/ }),
  19042. /* 211 */,
  19043. /* 212 */,
  19044. /* 213 */,
  19045. /* 214 */,
  19046. /* 215 */,
  19047. /* 216 */,
  19048. /* 217 */,
  19049. /* 218 */,
  19050. /* 219 */,
  19051. /* 220 */,
  19052. /* 221 */,
  19053. /* 222 */,
  19054. /* 223 */,
  19055. /* 224 */,
  19056. /* 225 */,
  19057. /* 226 */,
  19058. /* 227 */,
  19059. /* 228 */,
  19060. /* 229 */,
  19061. /* 230 */,
  19062. /* 231 */,
  19063. /* 232 */,
  19064. /* 233 */,
  19065. /* 234 */,
  19066. /* 235 */,
  19067. /* 236 */,
  19068. /* 237 */,
  19069. /* 238 */,
  19070. /* 239 */,
  19071. /* 240 */,
  19072. /* 241 */,
  19073. /* 242 */,
  19074. /* 243 */,
  19075. /* 244 */,
  19076. /* 245 */,
  19077. /* 246 */,
  19078. /* 247 */,
  19079. /* 248 */,
  19080. /* 249 */
  19081. /*!************************************************!*\
  19082. !*** F:/项目/HBuilderProjects/test/api/goods.js ***!
  19083. \************************************************/
  19084. /*! no static exports found */
  19085. /***/ (function(module, exports, __webpack_require__) {
  19086. "use strict";
  19087. Object.defineProperty(exports, "__esModule", {
  19088. value: true
  19089. });
  19090. exports.allCouponByUser = allCouponByUser;
  19091. exports.creat = creat;
  19092. exports.getCouponList = getCouponList;
  19093. exports.getCouponType = getCouponType;
  19094. exports.getVirtualInfo = getVirtualInfo;
  19095. exports.getVirtuallist = getVirtuallist;
  19096. exports.getWhetherCoupon = getWhetherCoupon;
  19097. var _request = __webpack_require__(/*! @/utils/request.js */ 31);
  19098. // 获取优惠券 店铺优惠券 多功能
  19099. function allCouponByUser(data) {
  19100. return (0, _request.request)({
  19101. url: '/zswl-cloud-shop/goodsCoupon/allCouponByUser',
  19102. data: data
  19103. });
  19104. }
  19105. // 购买商品
  19106. function creat(data) {
  19107. return (0, _request.request)({
  19108. url: '/paymentserver/order/creat',
  19109. method: 'post',
  19110. data: data
  19111. });
  19112. }
  19113. // 优惠券列表
  19114. function getWhetherCoupon(data) {
  19115. return (0, _request.request)({
  19116. url: '/zswl-cloud-shop/goodsCoupon/getWhetherCoupon',
  19117. data: data
  19118. });
  19119. }
  19120. // 可使用优惠券列表
  19121. function getCouponList(data) {
  19122. return (0, _request.request)({
  19123. url: '/zswl-cloud-shop/goodsCouponLog/couponList',
  19124. data: data
  19125. });
  19126. }
  19127. // 获取优惠券类型
  19128. function getCouponType(data) {
  19129. return (0, _request.request)({
  19130. url: '/zswl-cloud-shop/goodsCoupon/getGoodsCoupon',
  19131. data: data
  19132. });
  19133. }
  19134. // 获取虚拟商品列表
  19135. function getVirtuallist(data) {
  19136. return (0, _request.request)({
  19137. url: '/zswl-cloud-shop/yqd/list',
  19138. data: data
  19139. });
  19140. }
  19141. // 获取虚拟商品信息
  19142. function getVirtualInfo(data) {
  19143. return (0, _request.request)({
  19144. url: '/zswl-cloud-shop/yqd/info',
  19145. data: data
  19146. });
  19147. }
  19148. /***/ }),
  19149. /* 250 */
  19150. /*!*************************************************!*\
  19151. !*** F:/项目/HBuilderProjects/test/utils/guid.js ***!
  19152. \*************************************************/
  19153. /*! no static exports found */
  19154. /***/ (function(module, exports, __webpack_require__) {
  19155. "use strict";
  19156. Object.defineProperty(exports, "__esModule", {
  19157. value: true
  19158. });
  19159. exports.default = void 0;
  19160. /**
  19161. * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85
  19162. * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier)
  19163. * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
  19164. * 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
  19165. * v-for的时候,推荐使用后端返回的id而不是循环的index
  19166. * @param {Number} len uuid的长度
  19167. * @param {Boolean} firstU 将返回的首字母置为"u"
  19168. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  19169. */
  19170. function guid() {
  19171. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  19172. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  19173. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  19174. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  19175. var uuid = [];
  19176. radix = radix || chars.length;
  19177. if (len) {
  19178. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  19179. for (var i = 0; i < len; i++) {
  19180. uuid[i] = chars[0 | Math.random() * radix];
  19181. }
  19182. } else {
  19183. var r;
  19184. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  19185. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  19186. uuid[14] = '4';
  19187. for (var _i = 0; _i < 36; _i++) {
  19188. if (!uuid[_i]) {
  19189. r = 0 | Math.random() * 16;
  19190. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  19191. }
  19192. }
  19193. }
  19194. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  19195. if (firstU) {
  19196. uuid.shift();
  19197. return 'zs' + uuid.join('');
  19198. } else {
  19199. return uuid.join('');
  19200. }
  19201. }
  19202. var _default = guid;
  19203. exports.default = _default;
  19204. /***/ }),
  19205. /* 251 */
  19206. /*!*************************************************!*\
  19207. !*** F:/项目/HBuilderProjects/test/utils/tool.js ***!
  19208. \*************************************************/
  19209. /*! no static exports found */
  19210. /***/ (function(module, exports, __webpack_require__) {
  19211. "use strict";
  19212. /* WEBPACK VAR INJECTION */(function(uni) {
  19213. Object.defineProperty(exports, "__esModule", {
  19214. value: true
  19215. });
  19216. exports.debounce = debounce;
  19217. exports.rpxTopx = void 0;
  19218. //防抖debounce代码:
  19219. function debounce(fn) {
  19220. var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  19221. var timeout = null; // 创建一个标记用来存放定时器的返回值
  19222. return function (e) {
  19223. var _arguments = arguments,
  19224. _this = this;
  19225. // 每当用户输入的时候把前一个 setTimeout clear 掉
  19226. clearTimeout(timeout);
  19227. // 然后又创建一个新的 setTimeout, 这样就能保证interval 间隔内如果时间持续触发,就不会执行 fn 函数
  19228. timeout = setTimeout(function () {
  19229. fn.apply(_this, _arguments);
  19230. }, delay);
  19231. };
  19232. }
  19233. // 返回两个经纬度之间的距离 单位米
  19234. var earthDistance = function earthDistance(location1, location2) {
  19235. var lat1 = parseFloat(location1.lat);
  19236. var lng1 = parseFloat(location1.lng);
  19237. var lat2 = parseFloat(location2.lat);
  19238. var lng2 = parseFloat(location2.lng);
  19239. var EARTH_RADIUS = 6378137.0; //单位M
  19240. var PI = Math.PI;
  19241. function getRad(d) {
  19242. return d * PI / 180.0;
  19243. }
  19244. var f = getRad((lat1 + lat2) / 2);
  19245. var g = getRad((lat1 - lat2) / 2);
  19246. var l = getRad((lng1 - lng2) / 2);
  19247. var sg = Math.sin(g);
  19248. var sl = Math.sin(l);
  19249. var sf = Math.sin(f);
  19250. var s, c, w, r, d, h1, h2;
  19251. var a = EARTH_RADIUS;
  19252. var fl = 1 / 298.257;
  19253. sg = sg * sg;
  19254. sl = sl * sl;
  19255. sf = sf * sf;
  19256. s = sg * (1 - sl) + (1 - sf) * sl;
  19257. c = (1 - sg) * (1 - sl) + sf * sl;
  19258. w = Math.atan(Math.sqrt(s / c));
  19259. r = Math.sqrt(s * c) / w;
  19260. d = 2 * w * a;
  19261. h1 = (3 * r - 1) / 2 / c;
  19262. h2 = (3 * r + 1) / 2 / s;
  19263. return d * (1 + fl * (h1 * sf * (1 - sg) - h2 * (1 - sf) * sg));
  19264. };
  19265. //rpx转换px px=rpx * (屏幕宽度 / 750)
  19266. var rpxTopx = function rpxTopx(rpx) {
  19267. var width = uni.getWindowInfo().screenWidth;
  19268. var px = rpx * (width / 750);
  19269. return px;
  19270. };
  19271. exports.rpxTopx = rpxTopx;
  19272. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19273. /***/ }),
  19274. /* 252 */,
  19275. /* 253 */,
  19276. /* 254 */,
  19277. /* 255 */,
  19278. /* 256 */,
  19279. /* 257 */,
  19280. /* 258 */,
  19281. /* 259 */,
  19282. /* 260 */,
  19283. /* 261 */,
  19284. /* 262 */,
  19285. /* 263 */,
  19286. /* 264 */,
  19287. /* 265 */,
  19288. /* 266 */,
  19289. /* 267 */,
  19290. /* 268 */,
  19291. /* 269 */,
  19292. /* 270 */,
  19293. /* 271 */,
  19294. /* 272 */,
  19295. /* 273 */,
  19296. /* 274 */,
  19297. /* 275 */,
  19298. /* 276 */,
  19299. /* 277 */,
  19300. /* 278 */,
  19301. /* 279 */,
  19302. /* 280 */,
  19303. /* 281 */,
  19304. /* 282 */,
  19305. /* 283 */,
  19306. /* 284 */,
  19307. /* 285 */,
  19308. /* 286 */,
  19309. /* 287 */,
  19310. /* 288 */,
  19311. /* 289 */,
  19312. /* 290 */,
  19313. /* 291 */,
  19314. /* 292 */,
  19315. /* 293 */,
  19316. /* 294 */,
  19317. /* 295 */,
  19318. /* 296 */,
  19319. /* 297 */,
  19320. /* 298 */,
  19321. /* 299 */,
  19322. /* 300 */,
  19323. /* 301 */,
  19324. /* 302 */,
  19325. /* 303 */,
  19326. /* 304 */,
  19327. /* 305 */,
  19328. /* 306 */,
  19329. /* 307 */,
  19330. /* 308 */
  19331. /*!*******************************************************************!*\
  19332. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/index.js ***!
  19333. \*******************************************************************/
  19334. /*! no static exports found */
  19335. /***/ (function(module, exports, __webpack_require__) {
  19336. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19337. ;
  19338. (function (root, factory, undef) {
  19339. if (( false ? undefined : _typeof(exports)) === "object") {
  19340. // CommonJS
  19341. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311), __webpack_require__(/*! ./lib-typedarrays */ 312), __webpack_require__(/*! ./enc-utf16 */ 313), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./enc-base64url */ 315), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./sha1 */ 317), __webpack_require__(/*! ./sha256 */ 318), __webpack_require__(/*! ./sha224 */ 319), __webpack_require__(/*! ./sha512 */ 320), __webpack_require__(/*! ./sha384 */ 321), __webpack_require__(/*! ./sha3 */ 322), __webpack_require__(/*! ./ripemd160 */ 323), __webpack_require__(/*! ./hmac */ 324), __webpack_require__(/*! ./pbkdf2 */ 325), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327), __webpack_require__(/*! ./mode-cfb */ 328), __webpack_require__(/*! ./mode-ctr */ 329), __webpack_require__(/*! ./mode-ctr-gladman */ 330), __webpack_require__(/*! ./mode-ofb */ 331), __webpack_require__(/*! ./mode-ecb */ 332), __webpack_require__(/*! ./pad-ansix923 */ 333), __webpack_require__(/*! ./pad-iso10126 */ 334), __webpack_require__(/*! ./pad-iso97971 */ 335), __webpack_require__(/*! ./pad-zeropadding */ 336), __webpack_require__(/*! ./pad-nopadding */ 337), __webpack_require__(/*! ./format-hex */ 338), __webpack_require__(/*! ./aes */ 339), __webpack_require__(/*! ./tripledes */ 340), __webpack_require__(/*! ./rc4 */ 341), __webpack_require__(/*! ./rabbit */ 342), __webpack_require__(/*! ./rabbit-legacy */ 343));
  19342. } else if (true) {
  19343. // AMD
  19344. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311), __webpack_require__(/*! ./lib-typedarrays */ 312), __webpack_require__(/*! ./enc-utf16 */ 313), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./enc-base64url */ 315), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./sha1 */ 317), __webpack_require__(/*! ./sha256 */ 318), __webpack_require__(/*! ./sha224 */ 319), __webpack_require__(/*! ./sha512 */ 320), __webpack_require__(/*! ./sha384 */ 321), __webpack_require__(/*! ./sha3 */ 322), __webpack_require__(/*! ./ripemd160 */ 323), __webpack_require__(/*! ./hmac */ 324), __webpack_require__(/*! ./pbkdf2 */ 325), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327), __webpack_require__(/*! ./mode-cfb */ 328), __webpack_require__(/*! ./mode-ctr */ 329), __webpack_require__(/*! ./mode-ctr-gladman */ 330), __webpack_require__(/*! ./mode-ofb */ 331), __webpack_require__(/*! ./mode-ecb */ 332), __webpack_require__(/*! ./pad-ansix923 */ 333), __webpack_require__(/*! ./pad-iso10126 */ 334), __webpack_require__(/*! ./pad-iso97971 */ 335), __webpack_require__(/*! ./pad-zeropadding */ 336), __webpack_require__(/*! ./pad-nopadding */ 337), __webpack_require__(/*! ./format-hex */ 338), __webpack_require__(/*! ./aes */ 339), __webpack_require__(/*! ./tripledes */ 340), __webpack_require__(/*! ./rc4 */ 341), __webpack_require__(/*! ./rabbit */ 342), __webpack_require__(/*! ./rabbit-legacy */ 343)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19345. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19346. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19347. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  19348. } else {}
  19349. })(this, function (CryptoJS) {
  19350. return CryptoJS;
  19351. });
  19352. /***/ }),
  19353. /* 309 */
  19354. /*!******************************************************************!*\
  19355. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/core.js ***!
  19356. \******************************************************************/
  19357. /*! no static exports found */
  19358. /***/ (function(module, exports, __webpack_require__) {
  19359. /* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19360. ;
  19361. (function (root, factory) {
  19362. if (( false ? undefined : _typeof(exports)) === "object") {
  19363. // CommonJS
  19364. module.exports = exports = factory();
  19365. } else if (true) {
  19366. // AMD
  19367. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19368. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19369. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19370. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  19371. } else {}
  19372. })(this, function () {
  19373. /*globals window, global, require*/
  19374. /**
  19375. * CryptoJS core components.
  19376. */
  19377. var CryptoJS = CryptoJS || function (Math, undefined) {
  19378. var crypto;
  19379. // Native crypto from window (Browser)
  19380. if (typeof window !== 'undefined' && window.crypto) {
  19381. crypto = window.crypto;
  19382. }
  19383. // Native crypto in web worker (Browser)
  19384. if (typeof self !== 'undefined' && self.crypto) {
  19385. crypto = self.crypto;
  19386. }
  19387. // Native crypto from worker
  19388. if (typeof globalThis !== 'undefined' && globalThis.crypto) {
  19389. crypto = globalThis.crypto;
  19390. }
  19391. // Native (experimental IE 11) crypto from window (Browser)
  19392. if (!crypto && typeof window !== 'undefined' && window.msCrypto) {
  19393. crypto = window.msCrypto;
  19394. }
  19395. // Native crypto from global (NodeJS)
  19396. if (!crypto && typeof global !== 'undefined' && global.crypto) {
  19397. crypto = global.crypto;
  19398. }
  19399. // Native crypto import via require (NodeJS)
  19400. if (!crypto && "function" === 'function') {
  19401. try {
  19402. crypto = __webpack_require__(/*! crypto */ 310);
  19403. } catch (err) {}
  19404. }
  19405. /*
  19406. * Cryptographically secure pseudorandom number generator
  19407. *
  19408. * As Math.random() is cryptographically not safe to use
  19409. */
  19410. var cryptoSecureRandomInt = function cryptoSecureRandomInt() {
  19411. if (crypto) {
  19412. // Use getRandomValues method (Browser)
  19413. if (typeof crypto.getRandomValues === 'function') {
  19414. try {
  19415. return crypto.getRandomValues(new Uint32Array(1))[0];
  19416. } catch (err) {}
  19417. }
  19418. // Use randomBytes method (NodeJS)
  19419. if (typeof crypto.randomBytes === 'function') {
  19420. try {
  19421. return crypto.randomBytes(4).readInt32LE();
  19422. } catch (err) {}
  19423. }
  19424. }
  19425. throw new Error('Native crypto module could not be used to get secure random number.');
  19426. };
  19427. /*
  19428. * Local polyfill of Object.create
  19429. */
  19430. var create = Object.create || function () {
  19431. function F() {}
  19432. return function (obj) {
  19433. var subtype;
  19434. F.prototype = obj;
  19435. subtype = new F();
  19436. F.prototype = null;
  19437. return subtype;
  19438. };
  19439. }();
  19440. /**
  19441. * CryptoJS namespace.
  19442. */
  19443. var C = {};
  19444. /**
  19445. * Library namespace.
  19446. */
  19447. var C_lib = C.lib = {};
  19448. /**
  19449. * Base object for prototypal inheritance.
  19450. */
  19451. var Base = C_lib.Base = function () {
  19452. return {
  19453. /**
  19454. * Creates a new object that inherits from this object.
  19455. *
  19456. * @param {Object} overrides Properties to copy into the new object.
  19457. *
  19458. * @return {Object} The new object.
  19459. *
  19460. * @static
  19461. *
  19462. * @example
  19463. *
  19464. * var MyType = CryptoJS.lib.Base.extend({
  19465. * field: 'value',
  19466. *
  19467. * method: function () {
  19468. * }
  19469. * });
  19470. */
  19471. extend: function extend(overrides) {
  19472. // Spawn
  19473. var subtype = create(this);
  19474. // Augment
  19475. if (overrides) {
  19476. subtype.mixIn(overrides);
  19477. }
  19478. // Create default initializer
  19479. if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {
  19480. subtype.init = function () {
  19481. subtype.$super.init.apply(this, arguments);
  19482. };
  19483. }
  19484. // Initializer's prototype is the subtype object
  19485. subtype.init.prototype = subtype;
  19486. // Reference supertype
  19487. subtype.$super = this;
  19488. return subtype;
  19489. },
  19490. /**
  19491. * Extends this object and runs the init method.
  19492. * Arguments to create() will be passed to init().
  19493. *
  19494. * @return {Object} The new object.
  19495. *
  19496. * @static
  19497. *
  19498. * @example
  19499. *
  19500. * var instance = MyType.create();
  19501. */
  19502. create: function create() {
  19503. var instance = this.extend();
  19504. instance.init.apply(instance, arguments);
  19505. return instance;
  19506. },
  19507. /**
  19508. * Initializes a newly created object.
  19509. * Override this method to add some logic when your objects are created.
  19510. *
  19511. * @example
  19512. *
  19513. * var MyType = CryptoJS.lib.Base.extend({
  19514. * init: function () {
  19515. * // ...
  19516. * }
  19517. * });
  19518. */
  19519. init: function init() {},
  19520. /**
  19521. * Copies properties into this object.
  19522. *
  19523. * @param {Object} properties The properties to mix in.
  19524. *
  19525. * @example
  19526. *
  19527. * MyType.mixIn({
  19528. * field: 'value'
  19529. * });
  19530. */
  19531. mixIn: function mixIn(properties) {
  19532. for (var propertyName in properties) {
  19533. if (properties.hasOwnProperty(propertyName)) {
  19534. this[propertyName] = properties[propertyName];
  19535. }
  19536. }
  19537. // IE won't copy toString using the loop above
  19538. if (properties.hasOwnProperty('toString')) {
  19539. this.toString = properties.toString;
  19540. }
  19541. },
  19542. /**
  19543. * Creates a copy of this object.
  19544. *
  19545. * @return {Object} The clone.
  19546. *
  19547. * @example
  19548. *
  19549. * var clone = instance.clone();
  19550. */
  19551. clone: function clone() {
  19552. return this.init.prototype.extend(this);
  19553. }
  19554. };
  19555. }();
  19556. /**
  19557. * An array of 32-bit words.
  19558. *
  19559. * @property {Array} words The array of 32-bit words.
  19560. * @property {number} sigBytes The number of significant bytes in this word array.
  19561. */
  19562. var WordArray = C_lib.WordArray = Base.extend({
  19563. /**
  19564. * Initializes a newly created word array.
  19565. *
  19566. * @param {Array} words (Optional) An array of 32-bit words.
  19567. * @param {number} sigBytes (Optional) The number of significant bytes in the words.
  19568. *
  19569. * @example
  19570. *
  19571. * var wordArray = CryptoJS.lib.WordArray.create();
  19572. * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
  19573. * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
  19574. */
  19575. init: function init(words, sigBytes) {
  19576. words = this.words = words || [];
  19577. if (sigBytes != undefined) {
  19578. this.sigBytes = sigBytes;
  19579. } else {
  19580. this.sigBytes = words.length * 4;
  19581. }
  19582. },
  19583. /**
  19584. * Converts this word array to a string.
  19585. *
  19586. * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
  19587. *
  19588. * @return {string} The stringified word array.
  19589. *
  19590. * @example
  19591. *
  19592. * var string = wordArray + '';
  19593. * var string = wordArray.toString();
  19594. * var string = wordArray.toString(CryptoJS.enc.Utf8);
  19595. */
  19596. toString: function toString(encoder) {
  19597. return (encoder || Hex).stringify(this);
  19598. },
  19599. /**
  19600. * Concatenates a word array to this word array.
  19601. *
  19602. * @param {WordArray} wordArray The word array to append.
  19603. *
  19604. * @return {WordArray} This word array.
  19605. *
  19606. * @example
  19607. *
  19608. * wordArray1.concat(wordArray2);
  19609. */
  19610. concat: function concat(wordArray) {
  19611. // Shortcuts
  19612. var thisWords = this.words;
  19613. var thatWords = wordArray.words;
  19614. var thisSigBytes = this.sigBytes;
  19615. var thatSigBytes = wordArray.sigBytes;
  19616. // Clamp excess bits
  19617. this.clamp();
  19618. // Concat
  19619. if (thisSigBytes % 4) {
  19620. // Copy one byte at a time
  19621. for (var i = 0; i < thatSigBytes; i++) {
  19622. var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  19623. thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8;
  19624. }
  19625. } else {
  19626. // Copy one word at a time
  19627. for (var j = 0; j < thatSigBytes; j += 4) {
  19628. thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2];
  19629. }
  19630. }
  19631. this.sigBytes += thatSigBytes;
  19632. // Chainable
  19633. return this;
  19634. },
  19635. /**
  19636. * Removes insignificant bits.
  19637. *
  19638. * @example
  19639. *
  19640. * wordArray.clamp();
  19641. */
  19642. clamp: function clamp() {
  19643. // Shortcuts
  19644. var words = this.words;
  19645. var sigBytes = this.sigBytes;
  19646. // Clamp
  19647. words[sigBytes >>> 2] &= 0xffffffff << 32 - sigBytes % 4 * 8;
  19648. words.length = Math.ceil(sigBytes / 4);
  19649. },
  19650. /**
  19651. * Creates a copy of this word array.
  19652. *
  19653. * @return {WordArray} The clone.
  19654. *
  19655. * @example
  19656. *
  19657. * var clone = wordArray.clone();
  19658. */
  19659. clone: function clone() {
  19660. var clone = Base.clone.call(this);
  19661. clone.words = this.words.slice(0);
  19662. return clone;
  19663. },
  19664. /**
  19665. * Creates a word array filled with random bytes.
  19666. *
  19667. * @param {number} nBytes The number of random bytes to generate.
  19668. *
  19669. * @return {WordArray} The random word array.
  19670. *
  19671. * @static
  19672. *
  19673. * @example
  19674. *
  19675. * var wordArray = CryptoJS.lib.WordArray.random(16);
  19676. */
  19677. random: function random(nBytes) {
  19678. var words = [];
  19679. for (var i = 0; i < nBytes; i += 4) {
  19680. words.push(cryptoSecureRandomInt());
  19681. }
  19682. return new WordArray.init(words, nBytes);
  19683. }
  19684. });
  19685. /**
  19686. * Encoder namespace.
  19687. */
  19688. var C_enc = C.enc = {};
  19689. /**
  19690. * Hex encoding strategy.
  19691. */
  19692. var Hex = C_enc.Hex = {
  19693. /**
  19694. * Converts a word array to a hex string.
  19695. *
  19696. * @param {WordArray} wordArray The word array.
  19697. *
  19698. * @return {string} The hex string.
  19699. *
  19700. * @static
  19701. *
  19702. * @example
  19703. *
  19704. * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
  19705. */
  19706. stringify: function stringify(wordArray) {
  19707. // Shortcuts
  19708. var words = wordArray.words;
  19709. var sigBytes = wordArray.sigBytes;
  19710. // Convert
  19711. var hexChars = [];
  19712. for (var i = 0; i < sigBytes; i++) {
  19713. var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  19714. hexChars.push((bite >>> 4).toString(16));
  19715. hexChars.push((bite & 0x0f).toString(16));
  19716. }
  19717. return hexChars.join('');
  19718. },
  19719. /**
  19720. * Converts a hex string to a word array.
  19721. *
  19722. * @param {string} hexStr The hex string.
  19723. *
  19724. * @return {WordArray} The word array.
  19725. *
  19726. * @static
  19727. *
  19728. * @example
  19729. *
  19730. * var wordArray = CryptoJS.enc.Hex.parse(hexString);
  19731. */
  19732. parse: function parse(hexStr) {
  19733. // Shortcut
  19734. var hexStrLength = hexStr.length;
  19735. // Convert
  19736. var words = [];
  19737. for (var i = 0; i < hexStrLength; i += 2) {
  19738. words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4;
  19739. }
  19740. return new WordArray.init(words, hexStrLength / 2);
  19741. }
  19742. };
  19743. /**
  19744. * Latin1 encoding strategy.
  19745. */
  19746. var Latin1 = C_enc.Latin1 = {
  19747. /**
  19748. * Converts a word array to a Latin1 string.
  19749. *
  19750. * @param {WordArray} wordArray The word array.
  19751. *
  19752. * @return {string} The Latin1 string.
  19753. *
  19754. * @static
  19755. *
  19756. * @example
  19757. *
  19758. * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
  19759. */
  19760. stringify: function stringify(wordArray) {
  19761. // Shortcuts
  19762. var words = wordArray.words;
  19763. var sigBytes = wordArray.sigBytes;
  19764. // Convert
  19765. var latin1Chars = [];
  19766. for (var i = 0; i < sigBytes; i++) {
  19767. var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  19768. latin1Chars.push(String.fromCharCode(bite));
  19769. }
  19770. return latin1Chars.join('');
  19771. },
  19772. /**
  19773. * Converts a Latin1 string to a word array.
  19774. *
  19775. * @param {string} latin1Str The Latin1 string.
  19776. *
  19777. * @return {WordArray} The word array.
  19778. *
  19779. * @static
  19780. *
  19781. * @example
  19782. *
  19783. * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
  19784. */
  19785. parse: function parse(latin1Str) {
  19786. // Shortcut
  19787. var latin1StrLength = latin1Str.length;
  19788. // Convert
  19789. var words = [];
  19790. for (var i = 0; i < latin1StrLength; i++) {
  19791. words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << 24 - i % 4 * 8;
  19792. }
  19793. return new WordArray.init(words, latin1StrLength);
  19794. }
  19795. };
  19796. /**
  19797. * UTF-8 encoding strategy.
  19798. */
  19799. var Utf8 = C_enc.Utf8 = {
  19800. /**
  19801. * Converts a word array to a UTF-8 string.
  19802. *
  19803. * @param {WordArray} wordArray The word array.
  19804. *
  19805. * @return {string} The UTF-8 string.
  19806. *
  19807. * @static
  19808. *
  19809. * @example
  19810. *
  19811. * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
  19812. */
  19813. stringify: function stringify(wordArray) {
  19814. try {
  19815. return decodeURIComponent(escape(Latin1.stringify(wordArray)));
  19816. } catch (e) {
  19817. throw new Error('Malformed UTF-8 data');
  19818. }
  19819. },
  19820. /**
  19821. * Converts a UTF-8 string to a word array.
  19822. *
  19823. * @param {string} utf8Str The UTF-8 string.
  19824. *
  19825. * @return {WordArray} The word array.
  19826. *
  19827. * @static
  19828. *
  19829. * @example
  19830. *
  19831. * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
  19832. */
  19833. parse: function parse(utf8Str) {
  19834. return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
  19835. }
  19836. };
  19837. /**
  19838. * Abstract buffered block algorithm template.
  19839. *
  19840. * The property blockSize must be implemented in a concrete subtype.
  19841. *
  19842. * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
  19843. */
  19844. var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
  19845. /**
  19846. * Resets this block algorithm's data buffer to its initial state.
  19847. *
  19848. * @example
  19849. *
  19850. * bufferedBlockAlgorithm.reset();
  19851. */
  19852. reset: function reset() {
  19853. // Initial values
  19854. this._data = new WordArray.init();
  19855. this._nDataBytes = 0;
  19856. },
  19857. /**
  19858. * Adds new data to this block algorithm's buffer.
  19859. *
  19860. * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
  19861. *
  19862. * @example
  19863. *
  19864. * bufferedBlockAlgorithm._append('data');
  19865. * bufferedBlockAlgorithm._append(wordArray);
  19866. */
  19867. _append: function _append(data) {
  19868. // Convert string to WordArray, else assume WordArray already
  19869. if (typeof data == 'string') {
  19870. data = Utf8.parse(data);
  19871. }
  19872. // Append
  19873. this._data.concat(data);
  19874. this._nDataBytes += data.sigBytes;
  19875. },
  19876. /**
  19877. * Processes available data blocks.
  19878. *
  19879. * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
  19880. *
  19881. * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
  19882. *
  19883. * @return {WordArray} The processed data.
  19884. *
  19885. * @example
  19886. *
  19887. * var processedData = bufferedBlockAlgorithm._process();
  19888. * var processedData = bufferedBlockAlgorithm._process(!!'flush');
  19889. */
  19890. _process: function _process(doFlush) {
  19891. var processedWords;
  19892. // Shortcuts
  19893. var data = this._data;
  19894. var dataWords = data.words;
  19895. var dataSigBytes = data.sigBytes;
  19896. var blockSize = this.blockSize;
  19897. var blockSizeBytes = blockSize * 4;
  19898. // Count blocks ready
  19899. var nBlocksReady = dataSigBytes / blockSizeBytes;
  19900. if (doFlush) {
  19901. // Round up to include partial blocks
  19902. nBlocksReady = Math.ceil(nBlocksReady);
  19903. } else {
  19904. // Round down to include only full blocks,
  19905. // less the number of blocks that must remain in the buffer
  19906. nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
  19907. }
  19908. // Count words ready
  19909. var nWordsReady = nBlocksReady * blockSize;
  19910. // Count bytes ready
  19911. var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);
  19912. // Process blocks
  19913. if (nWordsReady) {
  19914. for (var offset = 0; offset < nWordsReady; offset += blockSize) {
  19915. // Perform concrete-algorithm logic
  19916. this._doProcessBlock(dataWords, offset);
  19917. }
  19918. // Remove processed words
  19919. processedWords = dataWords.splice(0, nWordsReady);
  19920. data.sigBytes -= nBytesReady;
  19921. }
  19922. // Return processed words
  19923. return new WordArray.init(processedWords, nBytesReady);
  19924. },
  19925. /**
  19926. * Creates a copy of this object.
  19927. *
  19928. * @return {Object} The clone.
  19929. *
  19930. * @example
  19931. *
  19932. * var clone = bufferedBlockAlgorithm.clone();
  19933. */
  19934. clone: function clone() {
  19935. var clone = Base.clone.call(this);
  19936. clone._data = this._data.clone();
  19937. return clone;
  19938. },
  19939. _minBufferSize: 0
  19940. });
  19941. /**
  19942. * Abstract hasher template.
  19943. *
  19944. * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
  19945. */
  19946. var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
  19947. /**
  19948. * Configuration options.
  19949. */
  19950. cfg: Base.extend(),
  19951. /**
  19952. * Initializes a newly created hasher.
  19953. *
  19954. * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
  19955. *
  19956. * @example
  19957. *
  19958. * var hasher = CryptoJS.algo.SHA256.create();
  19959. */
  19960. init: function init(cfg) {
  19961. // Apply config defaults
  19962. this.cfg = this.cfg.extend(cfg);
  19963. // Set initial values
  19964. this.reset();
  19965. },
  19966. /**
  19967. * Resets this hasher to its initial state.
  19968. *
  19969. * @example
  19970. *
  19971. * hasher.reset();
  19972. */
  19973. reset: function reset() {
  19974. // Reset data buffer
  19975. BufferedBlockAlgorithm.reset.call(this);
  19976. // Perform concrete-hasher logic
  19977. this._doReset();
  19978. },
  19979. /**
  19980. * Updates this hasher with a message.
  19981. *
  19982. * @param {WordArray|string} messageUpdate The message to append.
  19983. *
  19984. * @return {Hasher} This hasher.
  19985. *
  19986. * @example
  19987. *
  19988. * hasher.update('message');
  19989. * hasher.update(wordArray);
  19990. */
  19991. update: function update(messageUpdate) {
  19992. // Append
  19993. this._append(messageUpdate);
  19994. // Update the hash
  19995. this._process();
  19996. // Chainable
  19997. return this;
  19998. },
  19999. /**
  20000. * Finalizes the hash computation.
  20001. * Note that the finalize operation is effectively a destructive, read-once operation.
  20002. *
  20003. * @param {WordArray|string} messageUpdate (Optional) A final message update.
  20004. *
  20005. * @return {WordArray} The hash.
  20006. *
  20007. * @example
  20008. *
  20009. * var hash = hasher.finalize();
  20010. * var hash = hasher.finalize('message');
  20011. * var hash = hasher.finalize(wordArray);
  20012. */
  20013. finalize: function finalize(messageUpdate) {
  20014. // Final message update
  20015. if (messageUpdate) {
  20016. this._append(messageUpdate);
  20017. }
  20018. // Perform concrete-hasher logic
  20019. var hash = this._doFinalize();
  20020. return hash;
  20021. },
  20022. blockSize: 512 / 32,
  20023. /**
  20024. * Creates a shortcut function to a hasher's object interface.
  20025. *
  20026. * @param {Hasher} hasher The hasher to create a helper for.
  20027. *
  20028. * @return {Function} The shortcut function.
  20029. *
  20030. * @static
  20031. *
  20032. * @example
  20033. *
  20034. * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
  20035. */
  20036. _createHelper: function _createHelper(hasher) {
  20037. return function (message, cfg) {
  20038. return new hasher.init(cfg).finalize(message);
  20039. };
  20040. },
  20041. /**
  20042. * Creates a shortcut function to the HMAC's object interface.
  20043. *
  20044. * @param {Hasher} hasher The hasher to use in this HMAC helper.
  20045. *
  20046. * @return {Function} The shortcut function.
  20047. *
  20048. * @static
  20049. *
  20050. * @example
  20051. *
  20052. * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
  20053. */
  20054. _createHmacHelper: function _createHmacHelper(hasher) {
  20055. return function (message, key) {
  20056. return new C_algo.HMAC.init(hasher, key).finalize(message);
  20057. };
  20058. }
  20059. });
  20060. /**
  20061. * Algorithm namespace.
  20062. */
  20063. var C_algo = C.algo = {};
  20064. return C;
  20065. }(Math);
  20066. return CryptoJS;
  20067. });
  20068. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! (webpack)/buildin/global.js */ 3)))
  20069. /***/ }),
  20070. /* 310 */
  20071. /*!************************!*\
  20072. !*** crypto (ignored) ***!
  20073. \************************/
  20074. /*! no static exports found */
  20075. /***/ (function(module, exports) {
  20076. /* (ignored) */
  20077. /***/ }),
  20078. /* 311 */
  20079. /*!**********************************************************************!*\
  20080. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/x64-core.js ***!
  20081. \**********************************************************************/
  20082. /*! no static exports found */
  20083. /***/ (function(module, exports, __webpack_require__) {
  20084. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20085. ;
  20086. (function (root, factory) {
  20087. if (( false ? undefined : _typeof(exports)) === "object") {
  20088. // CommonJS
  20089. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  20090. } else if (true) {
  20091. // AMD
  20092. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20093. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20094. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20095. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20096. } else {}
  20097. })(this, function (CryptoJS) {
  20098. (function (undefined) {
  20099. // Shortcuts
  20100. var C = CryptoJS;
  20101. var C_lib = C.lib;
  20102. var Base = C_lib.Base;
  20103. var X32WordArray = C_lib.WordArray;
  20104. /**
  20105. * x64 namespace.
  20106. */
  20107. var C_x64 = C.x64 = {};
  20108. /**
  20109. * A 64-bit word.
  20110. */
  20111. var X64Word = C_x64.Word = Base.extend({
  20112. /**
  20113. * Initializes a newly created 64-bit word.
  20114. *
  20115. * @param {number} high The high 32 bits.
  20116. * @param {number} low The low 32 bits.
  20117. *
  20118. * @example
  20119. *
  20120. * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
  20121. */
  20122. init: function init(high, low) {
  20123. this.high = high;
  20124. this.low = low;
  20125. }
  20126. /**
  20127. * Bitwise NOTs this word.
  20128. *
  20129. * @return {X64Word} A new x64-Word object after negating.
  20130. *
  20131. * @example
  20132. *
  20133. * var negated = x64Word.not();
  20134. */
  20135. // not: function () {
  20136. // var high = ~this.high;
  20137. // var low = ~this.low;
  20138. // return X64Word.create(high, low);
  20139. // },
  20140. /**
  20141. * Bitwise ANDs this word with the passed word.
  20142. *
  20143. * @param {X64Word} word The x64-Word to AND with this word.
  20144. *
  20145. * @return {X64Word} A new x64-Word object after ANDing.
  20146. *
  20147. * @example
  20148. *
  20149. * var anded = x64Word.and(anotherX64Word);
  20150. */
  20151. // and: function (word) {
  20152. // var high = this.high & word.high;
  20153. // var low = this.low & word.low;
  20154. // return X64Word.create(high, low);
  20155. // },
  20156. /**
  20157. * Bitwise ORs this word with the passed word.
  20158. *
  20159. * @param {X64Word} word The x64-Word to OR with this word.
  20160. *
  20161. * @return {X64Word} A new x64-Word object after ORing.
  20162. *
  20163. * @example
  20164. *
  20165. * var ored = x64Word.or(anotherX64Word);
  20166. */
  20167. // or: function (word) {
  20168. // var high = this.high | word.high;
  20169. // var low = this.low | word.low;
  20170. // return X64Word.create(high, low);
  20171. // },
  20172. /**
  20173. * Bitwise XORs this word with the passed word.
  20174. *
  20175. * @param {X64Word} word The x64-Word to XOR with this word.
  20176. *
  20177. * @return {X64Word} A new x64-Word object after XORing.
  20178. *
  20179. * @example
  20180. *
  20181. * var xored = x64Word.xor(anotherX64Word);
  20182. */
  20183. // xor: function (word) {
  20184. // var high = this.high ^ word.high;
  20185. // var low = this.low ^ word.low;
  20186. // return X64Word.create(high, low);
  20187. // },
  20188. /**
  20189. * Shifts this word n bits to the left.
  20190. *
  20191. * @param {number} n The number of bits to shift.
  20192. *
  20193. * @return {X64Word} A new x64-Word object after shifting.
  20194. *
  20195. * @example
  20196. *
  20197. * var shifted = x64Word.shiftL(25);
  20198. */
  20199. // shiftL: function (n) {
  20200. // if (n < 32) {
  20201. // var high = (this.high << n) | (this.low >>> (32 - n));
  20202. // var low = this.low << n;
  20203. // } else {
  20204. // var high = this.low << (n - 32);
  20205. // var low = 0;
  20206. // }
  20207. // return X64Word.create(high, low);
  20208. // },
  20209. /**
  20210. * Shifts this word n bits to the right.
  20211. *
  20212. * @param {number} n The number of bits to shift.
  20213. *
  20214. * @return {X64Word} A new x64-Word object after shifting.
  20215. *
  20216. * @example
  20217. *
  20218. * var shifted = x64Word.shiftR(7);
  20219. */
  20220. // shiftR: function (n) {
  20221. // if (n < 32) {
  20222. // var low = (this.low >>> n) | (this.high << (32 - n));
  20223. // var high = this.high >>> n;
  20224. // } else {
  20225. // var low = this.high >>> (n - 32);
  20226. // var high = 0;
  20227. // }
  20228. // return X64Word.create(high, low);
  20229. // },
  20230. /**
  20231. * Rotates this word n bits to the left.
  20232. *
  20233. * @param {number} n The number of bits to rotate.
  20234. *
  20235. * @return {X64Word} A new x64-Word object after rotating.
  20236. *
  20237. * @example
  20238. *
  20239. * var rotated = x64Word.rotL(25);
  20240. */
  20241. // rotL: function (n) {
  20242. // return this.shiftL(n).or(this.shiftR(64 - n));
  20243. // },
  20244. /**
  20245. * Rotates this word n bits to the right.
  20246. *
  20247. * @param {number} n The number of bits to rotate.
  20248. *
  20249. * @return {X64Word} A new x64-Word object after rotating.
  20250. *
  20251. * @example
  20252. *
  20253. * var rotated = x64Word.rotR(7);
  20254. */
  20255. // rotR: function (n) {
  20256. // return this.shiftR(n).or(this.shiftL(64 - n));
  20257. // },
  20258. /**
  20259. * Adds this word with the passed word.
  20260. *
  20261. * @param {X64Word} word The x64-Word to add with this word.
  20262. *
  20263. * @return {X64Word} A new x64-Word object after adding.
  20264. *
  20265. * @example
  20266. *
  20267. * var added = x64Word.add(anotherX64Word);
  20268. */
  20269. // add: function (word) {
  20270. // var low = (this.low + word.low) | 0;
  20271. // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
  20272. // var high = (this.high + word.high + carry) | 0;
  20273. // return X64Word.create(high, low);
  20274. // }
  20275. });
  20276. /**
  20277. * An array of 64-bit words.
  20278. *
  20279. * @property {Array} words The array of CryptoJS.x64.Word objects.
  20280. * @property {number} sigBytes The number of significant bytes in this word array.
  20281. */
  20282. var X64WordArray = C_x64.WordArray = Base.extend({
  20283. /**
  20284. * Initializes a newly created word array.
  20285. *
  20286. * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
  20287. * @param {number} sigBytes (Optional) The number of significant bytes in the words.
  20288. *
  20289. * @example
  20290. *
  20291. * var wordArray = CryptoJS.x64.WordArray.create();
  20292. *
  20293. * var wordArray = CryptoJS.x64.WordArray.create([
  20294. * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
  20295. * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
  20296. * ]);
  20297. *
  20298. * var wordArray = CryptoJS.x64.WordArray.create([
  20299. * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
  20300. * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
  20301. * ], 10);
  20302. */
  20303. init: function init(words, sigBytes) {
  20304. words = this.words = words || [];
  20305. if (sigBytes != undefined) {
  20306. this.sigBytes = sigBytes;
  20307. } else {
  20308. this.sigBytes = words.length * 8;
  20309. }
  20310. },
  20311. /**
  20312. * Converts this 64-bit word array to a 32-bit word array.
  20313. *
  20314. * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
  20315. *
  20316. * @example
  20317. *
  20318. * var x32WordArray = x64WordArray.toX32();
  20319. */
  20320. toX32: function toX32() {
  20321. // Shortcuts
  20322. var x64Words = this.words;
  20323. var x64WordsLength = x64Words.length;
  20324. // Convert
  20325. var x32Words = [];
  20326. for (var i = 0; i < x64WordsLength; i++) {
  20327. var x64Word = x64Words[i];
  20328. x32Words.push(x64Word.high);
  20329. x32Words.push(x64Word.low);
  20330. }
  20331. return X32WordArray.create(x32Words, this.sigBytes);
  20332. },
  20333. /**
  20334. * Creates a copy of this word array.
  20335. *
  20336. * @return {X64WordArray} The clone.
  20337. *
  20338. * @example
  20339. *
  20340. * var clone = x64WordArray.clone();
  20341. */
  20342. clone: function clone() {
  20343. var clone = Base.clone.call(this);
  20344. // Clone "words" array
  20345. var words = clone.words = this.words.slice(0);
  20346. // Clone each X64Word object
  20347. var wordsLength = words.length;
  20348. for (var i = 0; i < wordsLength; i++) {
  20349. words[i] = words[i].clone();
  20350. }
  20351. return clone;
  20352. }
  20353. });
  20354. })();
  20355. return CryptoJS;
  20356. });
  20357. /***/ }),
  20358. /* 312 */
  20359. /*!*****************************************************************************!*\
  20360. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/lib-typedarrays.js ***!
  20361. \*****************************************************************************/
  20362. /*! no static exports found */
  20363. /***/ (function(module, exports, __webpack_require__) {
  20364. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20365. ;
  20366. (function (root, factory) {
  20367. if (( false ? undefined : _typeof(exports)) === "object") {
  20368. // CommonJS
  20369. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  20370. } else if (true) {
  20371. // AMD
  20372. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20373. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20374. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20375. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20376. } else {}
  20377. })(this, function (CryptoJS) {
  20378. (function () {
  20379. // Check if typed arrays are supported
  20380. if (typeof ArrayBuffer != 'function') {
  20381. return;
  20382. }
  20383. // Shortcuts
  20384. var C = CryptoJS;
  20385. var C_lib = C.lib;
  20386. var WordArray = C_lib.WordArray;
  20387. // Reference original init
  20388. var superInit = WordArray.init;
  20389. // Augment WordArray.init to handle typed arrays
  20390. var subInit = WordArray.init = function (typedArray) {
  20391. // Convert buffers to uint8
  20392. if (typedArray instanceof ArrayBuffer) {
  20393. typedArray = new Uint8Array(typedArray);
  20394. }
  20395. // Convert other array views to uint8
  20396. if (typedArray instanceof Int8Array || typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray || typedArray instanceof Int16Array || typedArray instanceof Uint16Array || typedArray instanceof Int32Array || typedArray instanceof Uint32Array || typedArray instanceof Float32Array || typedArray instanceof Float64Array) {
  20397. typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
  20398. }
  20399. // Handle Uint8Array
  20400. if (typedArray instanceof Uint8Array) {
  20401. // Shortcut
  20402. var typedArrayByteLength = typedArray.byteLength;
  20403. // Extract bytes
  20404. var words = [];
  20405. for (var i = 0; i < typedArrayByteLength; i++) {
  20406. words[i >>> 2] |= typedArray[i] << 24 - i % 4 * 8;
  20407. }
  20408. // Initialize this word array
  20409. superInit.call(this, words, typedArrayByteLength);
  20410. } else {
  20411. // Else call normal init
  20412. superInit.apply(this, arguments);
  20413. }
  20414. };
  20415. subInit.prototype = WordArray;
  20416. })();
  20417. return CryptoJS.lib.WordArray;
  20418. });
  20419. /***/ }),
  20420. /* 313 */
  20421. /*!***********************************************************************!*\
  20422. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/enc-utf16.js ***!
  20423. \***********************************************************************/
  20424. /*! no static exports found */
  20425. /***/ (function(module, exports, __webpack_require__) {
  20426. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20427. ;
  20428. (function (root, factory) {
  20429. if (( false ? undefined : _typeof(exports)) === "object") {
  20430. // CommonJS
  20431. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  20432. } else if (true) {
  20433. // AMD
  20434. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20435. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20436. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20437. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20438. } else {}
  20439. })(this, function (CryptoJS) {
  20440. (function () {
  20441. // Shortcuts
  20442. var C = CryptoJS;
  20443. var C_lib = C.lib;
  20444. var WordArray = C_lib.WordArray;
  20445. var C_enc = C.enc;
  20446. /**
  20447. * UTF-16 BE encoding strategy.
  20448. */
  20449. var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {
  20450. /**
  20451. * Converts a word array to a UTF-16 BE string.
  20452. *
  20453. * @param {WordArray} wordArray The word array.
  20454. *
  20455. * @return {string} The UTF-16 BE string.
  20456. *
  20457. * @static
  20458. *
  20459. * @example
  20460. *
  20461. * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
  20462. */
  20463. stringify: function stringify(wordArray) {
  20464. // Shortcuts
  20465. var words = wordArray.words;
  20466. var sigBytes = wordArray.sigBytes;
  20467. // Convert
  20468. var utf16Chars = [];
  20469. for (var i = 0; i < sigBytes; i += 2) {
  20470. var codePoint = words[i >>> 2] >>> 16 - i % 4 * 8 & 0xffff;
  20471. utf16Chars.push(String.fromCharCode(codePoint));
  20472. }
  20473. return utf16Chars.join('');
  20474. },
  20475. /**
  20476. * Converts a UTF-16 BE string to a word array.
  20477. *
  20478. * @param {string} utf16Str The UTF-16 BE string.
  20479. *
  20480. * @return {WordArray} The word array.
  20481. *
  20482. * @static
  20483. *
  20484. * @example
  20485. *
  20486. * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
  20487. */
  20488. parse: function parse(utf16Str) {
  20489. // Shortcut
  20490. var utf16StrLength = utf16Str.length;
  20491. // Convert
  20492. var words = [];
  20493. for (var i = 0; i < utf16StrLength; i++) {
  20494. words[i >>> 1] |= utf16Str.charCodeAt(i) << 16 - i % 2 * 16;
  20495. }
  20496. return WordArray.create(words, utf16StrLength * 2);
  20497. }
  20498. };
  20499. /**
  20500. * UTF-16 LE encoding strategy.
  20501. */
  20502. C_enc.Utf16LE = {
  20503. /**
  20504. * Converts a word array to a UTF-16 LE string.
  20505. *
  20506. * @param {WordArray} wordArray The word array.
  20507. *
  20508. * @return {string} The UTF-16 LE string.
  20509. *
  20510. * @static
  20511. *
  20512. * @example
  20513. *
  20514. * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
  20515. */
  20516. stringify: function stringify(wordArray) {
  20517. // Shortcuts
  20518. var words = wordArray.words;
  20519. var sigBytes = wordArray.sigBytes;
  20520. // Convert
  20521. var utf16Chars = [];
  20522. for (var i = 0; i < sigBytes; i += 2) {
  20523. var codePoint = swapEndian(words[i >>> 2] >>> 16 - i % 4 * 8 & 0xffff);
  20524. utf16Chars.push(String.fromCharCode(codePoint));
  20525. }
  20526. return utf16Chars.join('');
  20527. },
  20528. /**
  20529. * Converts a UTF-16 LE string to a word array.
  20530. *
  20531. * @param {string} utf16Str The UTF-16 LE string.
  20532. *
  20533. * @return {WordArray} The word array.
  20534. *
  20535. * @static
  20536. *
  20537. * @example
  20538. *
  20539. * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
  20540. */
  20541. parse: function parse(utf16Str) {
  20542. // Shortcut
  20543. var utf16StrLength = utf16Str.length;
  20544. // Convert
  20545. var words = [];
  20546. for (var i = 0; i < utf16StrLength; i++) {
  20547. words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << 16 - i % 2 * 16);
  20548. }
  20549. return WordArray.create(words, utf16StrLength * 2);
  20550. }
  20551. };
  20552. function swapEndian(word) {
  20553. return word << 8 & 0xff00ff00 | word >>> 8 & 0x00ff00ff;
  20554. }
  20555. })();
  20556. return CryptoJS.enc.Utf16;
  20557. });
  20558. /***/ }),
  20559. /* 314 */
  20560. /*!************************************************************************!*\
  20561. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/enc-base64.js ***!
  20562. \************************************************************************/
  20563. /*! no static exports found */
  20564. /***/ (function(module, exports, __webpack_require__) {
  20565. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20566. ;
  20567. (function (root, factory) {
  20568. if (( false ? undefined : _typeof(exports)) === "object") {
  20569. // CommonJS
  20570. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  20571. } else if (true) {
  20572. // AMD
  20573. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20574. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20575. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20576. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20577. } else {}
  20578. })(this, function (CryptoJS) {
  20579. (function () {
  20580. // Shortcuts
  20581. var C = CryptoJS;
  20582. var C_lib = C.lib;
  20583. var WordArray = C_lib.WordArray;
  20584. var C_enc = C.enc;
  20585. /**
  20586. * Base64 encoding strategy.
  20587. */
  20588. var Base64 = C_enc.Base64 = {
  20589. /**
  20590. * Converts a word array to a Base64 string.
  20591. *
  20592. * @param {WordArray} wordArray The word array.
  20593. *
  20594. * @return {string} The Base64 string.
  20595. *
  20596. * @static
  20597. *
  20598. * @example
  20599. *
  20600. * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
  20601. */
  20602. stringify: function stringify(wordArray) {
  20603. // Shortcuts
  20604. var words = wordArray.words;
  20605. var sigBytes = wordArray.sigBytes;
  20606. var map = this._map;
  20607. // Clamp excess bits
  20608. wordArray.clamp();
  20609. // Convert
  20610. var base64Chars = [];
  20611. for (var i = 0; i < sigBytes; i += 3) {
  20612. var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  20613. var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
  20614. var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
  20615. var triplet = byte1 << 16 | byte2 << 8 | byte3;
  20616. for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
  20617. base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
  20618. }
  20619. }
  20620. // Add padding
  20621. var paddingChar = map.charAt(64);
  20622. if (paddingChar) {
  20623. while (base64Chars.length % 4) {
  20624. base64Chars.push(paddingChar);
  20625. }
  20626. }
  20627. return base64Chars.join('');
  20628. },
  20629. /**
  20630. * Converts a Base64 string to a word array.
  20631. *
  20632. * @param {string} base64Str The Base64 string.
  20633. *
  20634. * @return {WordArray} The word array.
  20635. *
  20636. * @static
  20637. *
  20638. * @example
  20639. *
  20640. * var wordArray = CryptoJS.enc.Base64.parse(base64String);
  20641. */
  20642. parse: function parse(base64Str) {
  20643. // Shortcuts
  20644. var base64StrLength = base64Str.length;
  20645. var map = this._map;
  20646. var reverseMap = this._reverseMap;
  20647. if (!reverseMap) {
  20648. reverseMap = this._reverseMap = [];
  20649. for (var j = 0; j < map.length; j++) {
  20650. reverseMap[map.charCodeAt(j)] = j;
  20651. }
  20652. }
  20653. // Ignore padding
  20654. var paddingChar = map.charAt(64);
  20655. if (paddingChar) {
  20656. var paddingIndex = base64Str.indexOf(paddingChar);
  20657. if (paddingIndex !== -1) {
  20658. base64StrLength = paddingIndex;
  20659. }
  20660. }
  20661. // Convert
  20662. return parseLoop(base64Str, base64StrLength, reverseMap);
  20663. },
  20664. _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
  20665. };
  20666. function parseLoop(base64Str, base64StrLength, reverseMap) {
  20667. var words = [];
  20668. var nBytes = 0;
  20669. for (var i = 0; i < base64StrLength; i++) {
  20670. if (i % 4) {
  20671. var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
  20672. var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
  20673. var bitsCombined = bits1 | bits2;
  20674. words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
  20675. nBytes++;
  20676. }
  20677. }
  20678. return WordArray.create(words, nBytes);
  20679. }
  20680. })();
  20681. return CryptoJS.enc.Base64;
  20682. });
  20683. /***/ }),
  20684. /* 315 */
  20685. /*!***************************************************************************!*\
  20686. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/enc-base64url.js ***!
  20687. \***************************************************************************/
  20688. /*! no static exports found */
  20689. /***/ (function(module, exports, __webpack_require__) {
  20690. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20691. ;
  20692. (function (root, factory) {
  20693. if (( false ? undefined : _typeof(exports)) === "object") {
  20694. // CommonJS
  20695. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  20696. } else if (true) {
  20697. // AMD
  20698. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20699. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20700. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20701. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20702. } else {}
  20703. })(this, function (CryptoJS) {
  20704. (function () {
  20705. // Shortcuts
  20706. var C = CryptoJS;
  20707. var C_lib = C.lib;
  20708. var WordArray = C_lib.WordArray;
  20709. var C_enc = C.enc;
  20710. /**
  20711. * Base64url encoding strategy.
  20712. */
  20713. var Base64url = C_enc.Base64url = {
  20714. /**
  20715. * Converts a word array to a Base64url string.
  20716. *
  20717. * @param {WordArray} wordArray The word array.
  20718. *
  20719. * @param {boolean} urlSafe Whether to use url safe
  20720. *
  20721. * @return {string} The Base64url string.
  20722. *
  20723. * @static
  20724. *
  20725. * @example
  20726. *
  20727. * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
  20728. */
  20729. stringify: function stringify(wordArray) {
  20730. var urlSafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  20731. // Shortcuts
  20732. var words = wordArray.words;
  20733. var sigBytes = wordArray.sigBytes;
  20734. var map = urlSafe ? this._safe_map : this._map;
  20735. // Clamp excess bits
  20736. wordArray.clamp();
  20737. // Convert
  20738. var base64Chars = [];
  20739. for (var i = 0; i < sigBytes; i += 3) {
  20740. var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  20741. var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
  20742. var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
  20743. var triplet = byte1 << 16 | byte2 << 8 | byte3;
  20744. for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
  20745. base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
  20746. }
  20747. }
  20748. // Add padding
  20749. var paddingChar = map.charAt(64);
  20750. if (paddingChar) {
  20751. while (base64Chars.length % 4) {
  20752. base64Chars.push(paddingChar);
  20753. }
  20754. }
  20755. return base64Chars.join('');
  20756. },
  20757. /**
  20758. * Converts a Base64url string to a word array.
  20759. *
  20760. * @param {string} base64Str The Base64url string.
  20761. *
  20762. * @param {boolean} urlSafe Whether to use url safe
  20763. *
  20764. * @return {WordArray} The word array.
  20765. *
  20766. * @static
  20767. *
  20768. * @example
  20769. *
  20770. * var wordArray = CryptoJS.enc.Base64url.parse(base64String);
  20771. */
  20772. parse: function parse(base64Str) {
  20773. var urlSafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  20774. // Shortcuts
  20775. var base64StrLength = base64Str.length;
  20776. var map = urlSafe ? this._safe_map : this._map;
  20777. var reverseMap = this._reverseMap;
  20778. if (!reverseMap) {
  20779. reverseMap = this._reverseMap = [];
  20780. for (var j = 0; j < map.length; j++) {
  20781. reverseMap[map.charCodeAt(j)] = j;
  20782. }
  20783. }
  20784. // Ignore padding
  20785. var paddingChar = map.charAt(64);
  20786. if (paddingChar) {
  20787. var paddingIndex = base64Str.indexOf(paddingChar);
  20788. if (paddingIndex !== -1) {
  20789. base64StrLength = paddingIndex;
  20790. }
  20791. }
  20792. // Convert
  20793. return parseLoop(base64Str, base64StrLength, reverseMap);
  20794. },
  20795. _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
  20796. _safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'
  20797. };
  20798. function parseLoop(base64Str, base64StrLength, reverseMap) {
  20799. var words = [];
  20800. var nBytes = 0;
  20801. for (var i = 0; i < base64StrLength; i++) {
  20802. if (i % 4) {
  20803. var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
  20804. var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
  20805. var bitsCombined = bits1 | bits2;
  20806. words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
  20807. nBytes++;
  20808. }
  20809. }
  20810. return WordArray.create(words, nBytes);
  20811. }
  20812. })();
  20813. return CryptoJS.enc.Base64url;
  20814. });
  20815. /***/ }),
  20816. /* 316 */
  20817. /*!*****************************************************************!*\
  20818. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/md5.js ***!
  20819. \*****************************************************************/
  20820. /*! no static exports found */
  20821. /***/ (function(module, exports, __webpack_require__) {
  20822. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20823. ;
  20824. (function (root, factory) {
  20825. if (( false ? undefined : _typeof(exports)) === "object") {
  20826. // CommonJS
  20827. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  20828. } else if (true) {
  20829. // AMD
  20830. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20831. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20832. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20833. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20834. } else {}
  20835. })(this, function (CryptoJS) {
  20836. (function (Math) {
  20837. // Shortcuts
  20838. var C = CryptoJS;
  20839. var C_lib = C.lib;
  20840. var WordArray = C_lib.WordArray;
  20841. var Hasher = C_lib.Hasher;
  20842. var C_algo = C.algo;
  20843. // Constants table
  20844. var T = [];
  20845. // Compute constants
  20846. (function () {
  20847. for (var i = 0; i < 64; i++) {
  20848. T[i] = Math.abs(Math.sin(i + 1)) * 0x100000000 | 0;
  20849. }
  20850. })();
  20851. /**
  20852. * MD5 hash algorithm.
  20853. */
  20854. var MD5 = C_algo.MD5 = Hasher.extend({
  20855. _doReset: function _doReset() {
  20856. this._hash = new WordArray.init([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476]);
  20857. },
  20858. _doProcessBlock: function _doProcessBlock(M, offset) {
  20859. // Swap endian
  20860. for (var i = 0; i < 16; i++) {
  20861. // Shortcuts
  20862. var offset_i = offset + i;
  20863. var M_offset_i = M[offset_i];
  20864. M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 0x00ff00ff | (M_offset_i << 24 | M_offset_i >>> 8) & 0xff00ff00;
  20865. }
  20866. // Shortcuts
  20867. var H = this._hash.words;
  20868. var M_offset_0 = M[offset + 0];
  20869. var M_offset_1 = M[offset + 1];
  20870. var M_offset_2 = M[offset + 2];
  20871. var M_offset_3 = M[offset + 3];
  20872. var M_offset_4 = M[offset + 4];
  20873. var M_offset_5 = M[offset + 5];
  20874. var M_offset_6 = M[offset + 6];
  20875. var M_offset_7 = M[offset + 7];
  20876. var M_offset_8 = M[offset + 8];
  20877. var M_offset_9 = M[offset + 9];
  20878. var M_offset_10 = M[offset + 10];
  20879. var M_offset_11 = M[offset + 11];
  20880. var M_offset_12 = M[offset + 12];
  20881. var M_offset_13 = M[offset + 13];
  20882. var M_offset_14 = M[offset + 14];
  20883. var M_offset_15 = M[offset + 15];
  20884. // Working varialbes
  20885. var a = H[0];
  20886. var b = H[1];
  20887. var c = H[2];
  20888. var d = H[3];
  20889. // Computation
  20890. a = FF(a, b, c, d, M_offset_0, 7, T[0]);
  20891. d = FF(d, a, b, c, M_offset_1, 12, T[1]);
  20892. c = FF(c, d, a, b, M_offset_2, 17, T[2]);
  20893. b = FF(b, c, d, a, M_offset_3, 22, T[3]);
  20894. a = FF(a, b, c, d, M_offset_4, 7, T[4]);
  20895. d = FF(d, a, b, c, M_offset_5, 12, T[5]);
  20896. c = FF(c, d, a, b, M_offset_6, 17, T[6]);
  20897. b = FF(b, c, d, a, M_offset_7, 22, T[7]);
  20898. a = FF(a, b, c, d, M_offset_8, 7, T[8]);
  20899. d = FF(d, a, b, c, M_offset_9, 12, T[9]);
  20900. c = FF(c, d, a, b, M_offset_10, 17, T[10]);
  20901. b = FF(b, c, d, a, M_offset_11, 22, T[11]);
  20902. a = FF(a, b, c, d, M_offset_12, 7, T[12]);
  20903. d = FF(d, a, b, c, M_offset_13, 12, T[13]);
  20904. c = FF(c, d, a, b, M_offset_14, 17, T[14]);
  20905. b = FF(b, c, d, a, M_offset_15, 22, T[15]);
  20906. a = GG(a, b, c, d, M_offset_1, 5, T[16]);
  20907. d = GG(d, a, b, c, M_offset_6, 9, T[17]);
  20908. c = GG(c, d, a, b, M_offset_11, 14, T[18]);
  20909. b = GG(b, c, d, a, M_offset_0, 20, T[19]);
  20910. a = GG(a, b, c, d, M_offset_5, 5, T[20]);
  20911. d = GG(d, a, b, c, M_offset_10, 9, T[21]);
  20912. c = GG(c, d, a, b, M_offset_15, 14, T[22]);
  20913. b = GG(b, c, d, a, M_offset_4, 20, T[23]);
  20914. a = GG(a, b, c, d, M_offset_9, 5, T[24]);
  20915. d = GG(d, a, b, c, M_offset_14, 9, T[25]);
  20916. c = GG(c, d, a, b, M_offset_3, 14, T[26]);
  20917. b = GG(b, c, d, a, M_offset_8, 20, T[27]);
  20918. a = GG(a, b, c, d, M_offset_13, 5, T[28]);
  20919. d = GG(d, a, b, c, M_offset_2, 9, T[29]);
  20920. c = GG(c, d, a, b, M_offset_7, 14, T[30]);
  20921. b = GG(b, c, d, a, M_offset_12, 20, T[31]);
  20922. a = HH(a, b, c, d, M_offset_5, 4, T[32]);
  20923. d = HH(d, a, b, c, M_offset_8, 11, T[33]);
  20924. c = HH(c, d, a, b, M_offset_11, 16, T[34]);
  20925. b = HH(b, c, d, a, M_offset_14, 23, T[35]);
  20926. a = HH(a, b, c, d, M_offset_1, 4, T[36]);
  20927. d = HH(d, a, b, c, M_offset_4, 11, T[37]);
  20928. c = HH(c, d, a, b, M_offset_7, 16, T[38]);
  20929. b = HH(b, c, d, a, M_offset_10, 23, T[39]);
  20930. a = HH(a, b, c, d, M_offset_13, 4, T[40]);
  20931. d = HH(d, a, b, c, M_offset_0, 11, T[41]);
  20932. c = HH(c, d, a, b, M_offset_3, 16, T[42]);
  20933. b = HH(b, c, d, a, M_offset_6, 23, T[43]);
  20934. a = HH(a, b, c, d, M_offset_9, 4, T[44]);
  20935. d = HH(d, a, b, c, M_offset_12, 11, T[45]);
  20936. c = HH(c, d, a, b, M_offset_15, 16, T[46]);
  20937. b = HH(b, c, d, a, M_offset_2, 23, T[47]);
  20938. a = II(a, b, c, d, M_offset_0, 6, T[48]);
  20939. d = II(d, a, b, c, M_offset_7, 10, T[49]);
  20940. c = II(c, d, a, b, M_offset_14, 15, T[50]);
  20941. b = II(b, c, d, a, M_offset_5, 21, T[51]);
  20942. a = II(a, b, c, d, M_offset_12, 6, T[52]);
  20943. d = II(d, a, b, c, M_offset_3, 10, T[53]);
  20944. c = II(c, d, a, b, M_offset_10, 15, T[54]);
  20945. b = II(b, c, d, a, M_offset_1, 21, T[55]);
  20946. a = II(a, b, c, d, M_offset_8, 6, T[56]);
  20947. d = II(d, a, b, c, M_offset_15, 10, T[57]);
  20948. c = II(c, d, a, b, M_offset_6, 15, T[58]);
  20949. b = II(b, c, d, a, M_offset_13, 21, T[59]);
  20950. a = II(a, b, c, d, M_offset_4, 6, T[60]);
  20951. d = II(d, a, b, c, M_offset_11, 10, T[61]);
  20952. c = II(c, d, a, b, M_offset_2, 15, T[62]);
  20953. b = II(b, c, d, a, M_offset_9, 21, T[63]);
  20954. // Intermediate hash value
  20955. H[0] = H[0] + a | 0;
  20956. H[1] = H[1] + b | 0;
  20957. H[2] = H[2] + c | 0;
  20958. H[3] = H[3] + d | 0;
  20959. },
  20960. _doFinalize: function _doFinalize() {
  20961. // Shortcuts
  20962. var data = this._data;
  20963. var dataWords = data.words;
  20964. var nBitsTotal = this._nDataBytes * 8;
  20965. var nBitsLeft = data.sigBytes * 8;
  20966. // Add padding
  20967. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  20968. var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);
  20969. var nBitsTotalL = nBitsTotal;
  20970. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 0x00ff00ff | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 0xff00ff00;
  20971. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 0x00ff00ff | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 0xff00ff00;
  20972. data.sigBytes = (dataWords.length + 1) * 4;
  20973. // Hash final blocks
  20974. this._process();
  20975. // Shortcuts
  20976. var hash = this._hash;
  20977. var H = hash.words;
  20978. // Swap endian
  20979. for (var i = 0; i < 4; i++) {
  20980. // Shortcut
  20981. var H_i = H[i];
  20982. H[i] = (H_i << 8 | H_i >>> 24) & 0x00ff00ff | (H_i << 24 | H_i >>> 8) & 0xff00ff00;
  20983. }
  20984. // Return final computed hash
  20985. return hash;
  20986. },
  20987. clone: function clone() {
  20988. var clone = Hasher.clone.call(this);
  20989. clone._hash = this._hash.clone();
  20990. return clone;
  20991. }
  20992. });
  20993. function FF(a, b, c, d, x, s, t) {
  20994. var n = a + (b & c | ~b & d) + x + t;
  20995. return (n << s | n >>> 32 - s) + b;
  20996. }
  20997. function GG(a, b, c, d, x, s, t) {
  20998. var n = a + (b & d | c & ~d) + x + t;
  20999. return (n << s | n >>> 32 - s) + b;
  21000. }
  21001. function HH(a, b, c, d, x, s, t) {
  21002. var n = a + (b ^ c ^ d) + x + t;
  21003. return (n << s | n >>> 32 - s) + b;
  21004. }
  21005. function II(a, b, c, d, x, s, t) {
  21006. var n = a + (c ^ (b | ~d)) + x + t;
  21007. return (n << s | n >>> 32 - s) + b;
  21008. }
  21009. /**
  21010. * Shortcut function to the hasher's object interface.
  21011. *
  21012. * @param {WordArray|string} message The message to hash.
  21013. *
  21014. * @return {WordArray} The hash.
  21015. *
  21016. * @static
  21017. *
  21018. * @example
  21019. *
  21020. * var hash = CryptoJS.MD5('message');
  21021. * var hash = CryptoJS.MD5(wordArray);
  21022. */
  21023. C.MD5 = Hasher._createHelper(MD5);
  21024. /**
  21025. * Shortcut function to the HMAC's object interface.
  21026. *
  21027. * @param {WordArray|string} message The message to hash.
  21028. * @param {WordArray|string} key The secret key.
  21029. *
  21030. * @return {WordArray} The HMAC.
  21031. *
  21032. * @static
  21033. *
  21034. * @example
  21035. *
  21036. * var hmac = CryptoJS.HmacMD5(message, key);
  21037. */
  21038. C.HmacMD5 = Hasher._createHmacHelper(MD5);
  21039. })(Math);
  21040. return CryptoJS.MD5;
  21041. });
  21042. /***/ }),
  21043. /* 317 */
  21044. /*!******************************************************************!*\
  21045. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/sha1.js ***!
  21046. \******************************************************************/
  21047. /*! no static exports found */
  21048. /***/ (function(module, exports, __webpack_require__) {
  21049. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21050. ;
  21051. (function (root, factory) {
  21052. if (( false ? undefined : _typeof(exports)) === "object") {
  21053. // CommonJS
  21054. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  21055. } else if (true) {
  21056. // AMD
  21057. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21058. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21059. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21060. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  21061. } else {}
  21062. })(this, function (CryptoJS) {
  21063. (function () {
  21064. // Shortcuts
  21065. var C = CryptoJS;
  21066. var C_lib = C.lib;
  21067. var WordArray = C_lib.WordArray;
  21068. var Hasher = C_lib.Hasher;
  21069. var C_algo = C.algo;
  21070. // Reusable object
  21071. var W = [];
  21072. /**
  21073. * SHA-1 hash algorithm.
  21074. */
  21075. var SHA1 = C_algo.SHA1 = Hasher.extend({
  21076. _doReset: function _doReset() {
  21077. this._hash = new WordArray.init([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]);
  21078. },
  21079. _doProcessBlock: function _doProcessBlock(M, offset) {
  21080. // Shortcut
  21081. var H = this._hash.words;
  21082. // Working variables
  21083. var a = H[0];
  21084. var b = H[1];
  21085. var c = H[2];
  21086. var d = H[3];
  21087. var e = H[4];
  21088. // Computation
  21089. for (var i = 0; i < 80; i++) {
  21090. if (i < 16) {
  21091. W[i] = M[offset + i] | 0;
  21092. } else {
  21093. var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
  21094. W[i] = n << 1 | n >>> 31;
  21095. }
  21096. var t = (a << 5 | a >>> 27) + e + W[i];
  21097. if (i < 20) {
  21098. t += (b & c | ~b & d) + 0x5a827999;
  21099. } else if (i < 40) {
  21100. t += (b ^ c ^ d) + 0x6ed9eba1;
  21101. } else if (i < 60) {
  21102. t += (b & c | b & d | c & d) - 0x70e44324;
  21103. } else /* if (i < 80) */{
  21104. t += (b ^ c ^ d) - 0x359d3e2a;
  21105. }
  21106. e = d;
  21107. d = c;
  21108. c = b << 30 | b >>> 2;
  21109. b = a;
  21110. a = t;
  21111. }
  21112. // Intermediate hash value
  21113. H[0] = H[0] + a | 0;
  21114. H[1] = H[1] + b | 0;
  21115. H[2] = H[2] + c | 0;
  21116. H[3] = H[3] + d | 0;
  21117. H[4] = H[4] + e | 0;
  21118. },
  21119. _doFinalize: function _doFinalize() {
  21120. // Shortcuts
  21121. var data = this._data;
  21122. var dataWords = data.words;
  21123. var nBitsTotal = this._nDataBytes * 8;
  21124. var nBitsLeft = data.sigBytes * 8;
  21125. // Add padding
  21126. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  21127. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
  21128. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;
  21129. data.sigBytes = dataWords.length * 4;
  21130. // Hash final blocks
  21131. this._process();
  21132. // Return final computed hash
  21133. return this._hash;
  21134. },
  21135. clone: function clone() {
  21136. var clone = Hasher.clone.call(this);
  21137. clone._hash = this._hash.clone();
  21138. return clone;
  21139. }
  21140. });
  21141. /**
  21142. * Shortcut function to the hasher's object interface.
  21143. *
  21144. * @param {WordArray|string} message The message to hash.
  21145. *
  21146. * @return {WordArray} The hash.
  21147. *
  21148. * @static
  21149. *
  21150. * @example
  21151. *
  21152. * var hash = CryptoJS.SHA1('message');
  21153. * var hash = CryptoJS.SHA1(wordArray);
  21154. */
  21155. C.SHA1 = Hasher._createHelper(SHA1);
  21156. /**
  21157. * Shortcut function to the HMAC's object interface.
  21158. *
  21159. * @param {WordArray|string} message The message to hash.
  21160. * @param {WordArray|string} key The secret key.
  21161. *
  21162. * @return {WordArray} The HMAC.
  21163. *
  21164. * @static
  21165. *
  21166. * @example
  21167. *
  21168. * var hmac = CryptoJS.HmacSHA1(message, key);
  21169. */
  21170. C.HmacSHA1 = Hasher._createHmacHelper(SHA1);
  21171. })();
  21172. return CryptoJS.SHA1;
  21173. });
  21174. /***/ }),
  21175. /* 318 */
  21176. /*!********************************************************************!*\
  21177. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/sha256.js ***!
  21178. \********************************************************************/
  21179. /*! no static exports found */
  21180. /***/ (function(module, exports, __webpack_require__) {
  21181. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21182. ;
  21183. (function (root, factory) {
  21184. if (( false ? undefined : _typeof(exports)) === "object") {
  21185. // CommonJS
  21186. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  21187. } else if (true) {
  21188. // AMD
  21189. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21190. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21191. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21192. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  21193. } else {}
  21194. })(this, function (CryptoJS) {
  21195. (function (Math) {
  21196. // Shortcuts
  21197. var C = CryptoJS;
  21198. var C_lib = C.lib;
  21199. var WordArray = C_lib.WordArray;
  21200. var Hasher = C_lib.Hasher;
  21201. var C_algo = C.algo;
  21202. // Initialization and round constants tables
  21203. var H = [];
  21204. var K = [];
  21205. // Compute constants
  21206. (function () {
  21207. function isPrime(n) {
  21208. var sqrtN = Math.sqrt(n);
  21209. for (var factor = 2; factor <= sqrtN; factor++) {
  21210. if (!(n % factor)) {
  21211. return false;
  21212. }
  21213. }
  21214. return true;
  21215. }
  21216. function getFractionalBits(n) {
  21217. return (n - (n | 0)) * 0x100000000 | 0;
  21218. }
  21219. var n = 2;
  21220. var nPrime = 0;
  21221. while (nPrime < 64) {
  21222. if (isPrime(n)) {
  21223. if (nPrime < 8) {
  21224. H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));
  21225. }
  21226. K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));
  21227. nPrime++;
  21228. }
  21229. n++;
  21230. }
  21231. })();
  21232. // Reusable object
  21233. var W = [];
  21234. /**
  21235. * SHA-256 hash algorithm.
  21236. */
  21237. var SHA256 = C_algo.SHA256 = Hasher.extend({
  21238. _doReset: function _doReset() {
  21239. this._hash = new WordArray.init(H.slice(0));
  21240. },
  21241. _doProcessBlock: function _doProcessBlock(M, offset) {
  21242. // Shortcut
  21243. var H = this._hash.words;
  21244. // Working variables
  21245. var a = H[0];
  21246. var b = H[1];
  21247. var c = H[2];
  21248. var d = H[3];
  21249. var e = H[4];
  21250. var f = H[5];
  21251. var g = H[6];
  21252. var h = H[7];
  21253. // Computation
  21254. for (var i = 0; i < 64; i++) {
  21255. if (i < 16) {
  21256. W[i] = M[offset + i] | 0;
  21257. } else {
  21258. var gamma0x = W[i - 15];
  21259. var gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3;
  21260. var gamma1x = W[i - 2];
  21261. var gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10;
  21262. W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
  21263. }
  21264. var ch = e & f ^ ~e & g;
  21265. var maj = a & b ^ a & c ^ b & c;
  21266. var sigma0 = (a << 30 | a >>> 2) ^ (a << 19 | a >>> 13) ^ (a << 10 | a >>> 22);
  21267. var sigma1 = (e << 26 | e >>> 6) ^ (e << 21 | e >>> 11) ^ (e << 7 | e >>> 25);
  21268. var t1 = h + sigma1 + ch + K[i] + W[i];
  21269. var t2 = sigma0 + maj;
  21270. h = g;
  21271. g = f;
  21272. f = e;
  21273. e = d + t1 | 0;
  21274. d = c;
  21275. c = b;
  21276. b = a;
  21277. a = t1 + t2 | 0;
  21278. }
  21279. // Intermediate hash value
  21280. H[0] = H[0] + a | 0;
  21281. H[1] = H[1] + b | 0;
  21282. H[2] = H[2] + c | 0;
  21283. H[3] = H[3] + d | 0;
  21284. H[4] = H[4] + e | 0;
  21285. H[5] = H[5] + f | 0;
  21286. H[6] = H[6] + g | 0;
  21287. H[7] = H[7] + h | 0;
  21288. },
  21289. _doFinalize: function _doFinalize() {
  21290. // Shortcuts
  21291. var data = this._data;
  21292. var dataWords = data.words;
  21293. var nBitsTotal = this._nDataBytes * 8;
  21294. var nBitsLeft = data.sigBytes * 8;
  21295. // Add padding
  21296. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  21297. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
  21298. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;
  21299. data.sigBytes = dataWords.length * 4;
  21300. // Hash final blocks
  21301. this._process();
  21302. // Return final computed hash
  21303. return this._hash;
  21304. },
  21305. clone: function clone() {
  21306. var clone = Hasher.clone.call(this);
  21307. clone._hash = this._hash.clone();
  21308. return clone;
  21309. }
  21310. });
  21311. /**
  21312. * Shortcut function to the hasher's object interface.
  21313. *
  21314. * @param {WordArray|string} message The message to hash.
  21315. *
  21316. * @return {WordArray} The hash.
  21317. *
  21318. * @static
  21319. *
  21320. * @example
  21321. *
  21322. * var hash = CryptoJS.SHA256('message');
  21323. * var hash = CryptoJS.SHA256(wordArray);
  21324. */
  21325. C.SHA256 = Hasher._createHelper(SHA256);
  21326. /**
  21327. * Shortcut function to the HMAC's object interface.
  21328. *
  21329. * @param {WordArray|string} message The message to hash.
  21330. * @param {WordArray|string} key The secret key.
  21331. *
  21332. * @return {WordArray} The HMAC.
  21333. *
  21334. * @static
  21335. *
  21336. * @example
  21337. *
  21338. * var hmac = CryptoJS.HmacSHA256(message, key);
  21339. */
  21340. C.HmacSHA256 = Hasher._createHmacHelper(SHA256);
  21341. })(Math);
  21342. return CryptoJS.SHA256;
  21343. });
  21344. /***/ }),
  21345. /* 319 */
  21346. /*!********************************************************************!*\
  21347. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/sha224.js ***!
  21348. \********************************************************************/
  21349. /*! no static exports found */
  21350. /***/ (function(module, exports, __webpack_require__) {
  21351. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21352. ;
  21353. (function (root, factory, undef) {
  21354. if (( false ? undefined : _typeof(exports)) === "object") {
  21355. // CommonJS
  21356. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./sha256 */ 318));
  21357. } else if (true) {
  21358. // AMD
  21359. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./sha256 */ 318)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21360. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21361. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21362. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  21363. } else {}
  21364. })(this, function (CryptoJS) {
  21365. (function () {
  21366. // Shortcuts
  21367. var C = CryptoJS;
  21368. var C_lib = C.lib;
  21369. var WordArray = C_lib.WordArray;
  21370. var C_algo = C.algo;
  21371. var SHA256 = C_algo.SHA256;
  21372. /**
  21373. * SHA-224 hash algorithm.
  21374. */
  21375. var SHA224 = C_algo.SHA224 = SHA256.extend({
  21376. _doReset: function _doReset() {
  21377. this._hash = new WordArray.init([0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4]);
  21378. },
  21379. _doFinalize: function _doFinalize() {
  21380. var hash = SHA256._doFinalize.call(this);
  21381. hash.sigBytes -= 4;
  21382. return hash;
  21383. }
  21384. });
  21385. /**
  21386. * Shortcut function to the hasher's object interface.
  21387. *
  21388. * @param {WordArray|string} message The message to hash.
  21389. *
  21390. * @return {WordArray} The hash.
  21391. *
  21392. * @static
  21393. *
  21394. * @example
  21395. *
  21396. * var hash = CryptoJS.SHA224('message');
  21397. * var hash = CryptoJS.SHA224(wordArray);
  21398. */
  21399. C.SHA224 = SHA256._createHelper(SHA224);
  21400. /**
  21401. * Shortcut function to the HMAC's object interface.
  21402. *
  21403. * @param {WordArray|string} message The message to hash.
  21404. * @param {WordArray|string} key The secret key.
  21405. *
  21406. * @return {WordArray} The HMAC.
  21407. *
  21408. * @static
  21409. *
  21410. * @example
  21411. *
  21412. * var hmac = CryptoJS.HmacSHA224(message, key);
  21413. */
  21414. C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
  21415. })();
  21416. return CryptoJS.SHA224;
  21417. });
  21418. /***/ }),
  21419. /* 320 */
  21420. /*!********************************************************************!*\
  21421. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/sha512.js ***!
  21422. \********************************************************************/
  21423. /*! no static exports found */
  21424. /***/ (function(module, exports, __webpack_require__) {
  21425. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21426. ;
  21427. (function (root, factory, undef) {
  21428. if (( false ? undefined : _typeof(exports)) === "object") {
  21429. // CommonJS
  21430. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311));
  21431. } else if (true) {
  21432. // AMD
  21433. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21434. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21435. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21436. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  21437. } else {}
  21438. })(this, function (CryptoJS) {
  21439. (function () {
  21440. // Shortcuts
  21441. var C = CryptoJS;
  21442. var C_lib = C.lib;
  21443. var Hasher = C_lib.Hasher;
  21444. var C_x64 = C.x64;
  21445. var X64Word = C_x64.Word;
  21446. var X64WordArray = C_x64.WordArray;
  21447. var C_algo = C.algo;
  21448. function X64Word_create() {
  21449. return X64Word.create.apply(X64Word, arguments);
  21450. }
  21451. // Constants
  21452. var K = [X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd), X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc), X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019), X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118), X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe), X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2), X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1), X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694), X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3), X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65), X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483), X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5), X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210), X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4), X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725), X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70), X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926), X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df), X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8), X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b), X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001), X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30), X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910), X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8), X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53), X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8), X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb), X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3), X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60), X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec), X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9), X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b), X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207), X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178), X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6), X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b), X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493), X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c), X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a), X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)];
  21453. // Reusable objects
  21454. var W = [];
  21455. (function () {
  21456. for (var i = 0; i < 80; i++) {
  21457. W[i] = X64Word_create();
  21458. }
  21459. })();
  21460. /**
  21461. * SHA-512 hash algorithm.
  21462. */
  21463. var SHA512 = C_algo.SHA512 = Hasher.extend({
  21464. _doReset: function _doReset() {
  21465. this._hash = new X64WordArray.init([new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b), new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1), new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f), new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)]);
  21466. },
  21467. _doProcessBlock: function _doProcessBlock(M, offset) {
  21468. // Shortcuts
  21469. var H = this._hash.words;
  21470. var H0 = H[0];
  21471. var H1 = H[1];
  21472. var H2 = H[2];
  21473. var H3 = H[3];
  21474. var H4 = H[4];
  21475. var H5 = H[5];
  21476. var H6 = H[6];
  21477. var H7 = H[7];
  21478. var H0h = H0.high;
  21479. var H0l = H0.low;
  21480. var H1h = H1.high;
  21481. var H1l = H1.low;
  21482. var H2h = H2.high;
  21483. var H2l = H2.low;
  21484. var H3h = H3.high;
  21485. var H3l = H3.low;
  21486. var H4h = H4.high;
  21487. var H4l = H4.low;
  21488. var H5h = H5.high;
  21489. var H5l = H5.low;
  21490. var H6h = H6.high;
  21491. var H6l = H6.low;
  21492. var H7h = H7.high;
  21493. var H7l = H7.low;
  21494. // Working variables
  21495. var ah = H0h;
  21496. var al = H0l;
  21497. var bh = H1h;
  21498. var bl = H1l;
  21499. var ch = H2h;
  21500. var cl = H2l;
  21501. var dh = H3h;
  21502. var dl = H3l;
  21503. var eh = H4h;
  21504. var el = H4l;
  21505. var fh = H5h;
  21506. var fl = H5l;
  21507. var gh = H6h;
  21508. var gl = H6l;
  21509. var hh = H7h;
  21510. var hl = H7l;
  21511. // Rounds
  21512. for (var i = 0; i < 80; i++) {
  21513. var Wil;
  21514. var Wih;
  21515. // Shortcut
  21516. var Wi = W[i];
  21517. // Extend message
  21518. if (i < 16) {
  21519. Wih = Wi.high = M[offset + i * 2] | 0;
  21520. Wil = Wi.low = M[offset + i * 2 + 1] | 0;
  21521. } else {
  21522. // Gamma0
  21523. var gamma0x = W[i - 15];
  21524. var gamma0xh = gamma0x.high;
  21525. var gamma0xl = gamma0x.low;
  21526. var gamma0h = (gamma0xh >>> 1 | gamma0xl << 31) ^ (gamma0xh >>> 8 | gamma0xl << 24) ^ gamma0xh >>> 7;
  21527. var gamma0l = (gamma0xl >>> 1 | gamma0xh << 31) ^ (gamma0xl >>> 8 | gamma0xh << 24) ^ (gamma0xl >>> 7 | gamma0xh << 25);
  21528. // Gamma1
  21529. var gamma1x = W[i - 2];
  21530. var gamma1xh = gamma1x.high;
  21531. var gamma1xl = gamma1x.low;
  21532. var gamma1h = (gamma1xh >>> 19 | gamma1xl << 13) ^ (gamma1xh << 3 | gamma1xl >>> 29) ^ gamma1xh >>> 6;
  21533. var gamma1l = (gamma1xl >>> 19 | gamma1xh << 13) ^ (gamma1xl << 3 | gamma1xh >>> 29) ^ (gamma1xl >>> 6 | gamma1xh << 26);
  21534. // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
  21535. var Wi7 = W[i - 7];
  21536. var Wi7h = Wi7.high;
  21537. var Wi7l = Wi7.low;
  21538. var Wi16 = W[i - 16];
  21539. var Wi16h = Wi16.high;
  21540. var Wi16l = Wi16.low;
  21541. Wil = gamma0l + Wi7l;
  21542. Wih = gamma0h + Wi7h + (Wil >>> 0 < gamma0l >>> 0 ? 1 : 0);
  21543. Wil = Wil + gamma1l;
  21544. Wih = Wih + gamma1h + (Wil >>> 0 < gamma1l >>> 0 ? 1 : 0);
  21545. Wil = Wil + Wi16l;
  21546. Wih = Wih + Wi16h + (Wil >>> 0 < Wi16l >>> 0 ? 1 : 0);
  21547. Wi.high = Wih;
  21548. Wi.low = Wil;
  21549. }
  21550. var chh = eh & fh ^ ~eh & gh;
  21551. var chl = el & fl ^ ~el & gl;
  21552. var majh = ah & bh ^ ah & ch ^ bh & ch;
  21553. var majl = al & bl ^ al & cl ^ bl & cl;
  21554. var sigma0h = (ah >>> 28 | al << 4) ^ (ah << 30 | al >>> 2) ^ (ah << 25 | al >>> 7);
  21555. var sigma0l = (al >>> 28 | ah << 4) ^ (al << 30 | ah >>> 2) ^ (al << 25 | ah >>> 7);
  21556. var sigma1h = (eh >>> 14 | el << 18) ^ (eh >>> 18 | el << 14) ^ (eh << 23 | el >>> 9);
  21557. var sigma1l = (el >>> 14 | eh << 18) ^ (el >>> 18 | eh << 14) ^ (el << 23 | eh >>> 9);
  21558. // t1 = h + sigma1 + ch + K[i] + W[i]
  21559. var Ki = K[i];
  21560. var Kih = Ki.high;
  21561. var Kil = Ki.low;
  21562. var t1l = hl + sigma1l;
  21563. var t1h = hh + sigma1h + (t1l >>> 0 < hl >>> 0 ? 1 : 0);
  21564. var t1l = t1l + chl;
  21565. var t1h = t1h + chh + (t1l >>> 0 < chl >>> 0 ? 1 : 0);
  21566. var t1l = t1l + Kil;
  21567. var t1h = t1h + Kih + (t1l >>> 0 < Kil >>> 0 ? 1 : 0);
  21568. var t1l = t1l + Wil;
  21569. var t1h = t1h + Wih + (t1l >>> 0 < Wil >>> 0 ? 1 : 0);
  21570. // t2 = sigma0 + maj
  21571. var t2l = sigma0l + majl;
  21572. var t2h = sigma0h + majh + (t2l >>> 0 < sigma0l >>> 0 ? 1 : 0);
  21573. // Update working variables
  21574. hh = gh;
  21575. hl = gl;
  21576. gh = fh;
  21577. gl = fl;
  21578. fh = eh;
  21579. fl = el;
  21580. el = dl + t1l | 0;
  21581. eh = dh + t1h + (el >>> 0 < dl >>> 0 ? 1 : 0) | 0;
  21582. dh = ch;
  21583. dl = cl;
  21584. ch = bh;
  21585. cl = bl;
  21586. bh = ah;
  21587. bl = al;
  21588. al = t1l + t2l | 0;
  21589. ah = t1h + t2h + (al >>> 0 < t1l >>> 0 ? 1 : 0) | 0;
  21590. }
  21591. // Intermediate hash value
  21592. H0l = H0.low = H0l + al;
  21593. H0.high = H0h + ah + (H0l >>> 0 < al >>> 0 ? 1 : 0);
  21594. H1l = H1.low = H1l + bl;
  21595. H1.high = H1h + bh + (H1l >>> 0 < bl >>> 0 ? 1 : 0);
  21596. H2l = H2.low = H2l + cl;
  21597. H2.high = H2h + ch + (H2l >>> 0 < cl >>> 0 ? 1 : 0);
  21598. H3l = H3.low = H3l + dl;
  21599. H3.high = H3h + dh + (H3l >>> 0 < dl >>> 0 ? 1 : 0);
  21600. H4l = H4.low = H4l + el;
  21601. H4.high = H4h + eh + (H4l >>> 0 < el >>> 0 ? 1 : 0);
  21602. H5l = H5.low = H5l + fl;
  21603. H5.high = H5h + fh + (H5l >>> 0 < fl >>> 0 ? 1 : 0);
  21604. H6l = H6.low = H6l + gl;
  21605. H6.high = H6h + gh + (H6l >>> 0 < gl >>> 0 ? 1 : 0);
  21606. H7l = H7.low = H7l + hl;
  21607. H7.high = H7h + hh + (H7l >>> 0 < hl >>> 0 ? 1 : 0);
  21608. },
  21609. _doFinalize: function _doFinalize() {
  21610. // Shortcuts
  21611. var data = this._data;
  21612. var dataWords = data.words;
  21613. var nBitsTotal = this._nDataBytes * 8;
  21614. var nBitsLeft = data.sigBytes * 8;
  21615. // Add padding
  21616. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  21617. dataWords[(nBitsLeft + 128 >>> 10 << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);
  21618. dataWords[(nBitsLeft + 128 >>> 10 << 5) + 31] = nBitsTotal;
  21619. data.sigBytes = dataWords.length * 4;
  21620. // Hash final blocks
  21621. this._process();
  21622. // Convert hash to 32-bit word array before returning
  21623. var hash = this._hash.toX32();
  21624. // Return final computed hash
  21625. return hash;
  21626. },
  21627. clone: function clone() {
  21628. var clone = Hasher.clone.call(this);
  21629. clone._hash = this._hash.clone();
  21630. return clone;
  21631. },
  21632. blockSize: 1024 / 32
  21633. });
  21634. /**
  21635. * Shortcut function to the hasher's object interface.
  21636. *
  21637. * @param {WordArray|string} message The message to hash.
  21638. *
  21639. * @return {WordArray} The hash.
  21640. *
  21641. * @static
  21642. *
  21643. * @example
  21644. *
  21645. * var hash = CryptoJS.SHA512('message');
  21646. * var hash = CryptoJS.SHA512(wordArray);
  21647. */
  21648. C.SHA512 = Hasher._createHelper(SHA512);
  21649. /**
  21650. * Shortcut function to the HMAC's object interface.
  21651. *
  21652. * @param {WordArray|string} message The message to hash.
  21653. * @param {WordArray|string} key The secret key.
  21654. *
  21655. * @return {WordArray} The HMAC.
  21656. *
  21657. * @static
  21658. *
  21659. * @example
  21660. *
  21661. * var hmac = CryptoJS.HmacSHA512(message, key);
  21662. */
  21663. C.HmacSHA512 = Hasher._createHmacHelper(SHA512);
  21664. })();
  21665. return CryptoJS.SHA512;
  21666. });
  21667. /***/ }),
  21668. /* 321 */
  21669. /*!********************************************************************!*\
  21670. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/sha384.js ***!
  21671. \********************************************************************/
  21672. /*! no static exports found */
  21673. /***/ (function(module, exports, __webpack_require__) {
  21674. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21675. ;
  21676. (function (root, factory, undef) {
  21677. if (( false ? undefined : _typeof(exports)) === "object") {
  21678. // CommonJS
  21679. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311), __webpack_require__(/*! ./sha512 */ 320));
  21680. } else if (true) {
  21681. // AMD
  21682. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311), __webpack_require__(/*! ./sha512 */ 320)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21683. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21684. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21685. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  21686. } else {}
  21687. })(this, function (CryptoJS) {
  21688. (function () {
  21689. // Shortcuts
  21690. var C = CryptoJS;
  21691. var C_x64 = C.x64;
  21692. var X64Word = C_x64.Word;
  21693. var X64WordArray = C_x64.WordArray;
  21694. var C_algo = C.algo;
  21695. var SHA512 = C_algo.SHA512;
  21696. /**
  21697. * SHA-384 hash algorithm.
  21698. */
  21699. var SHA384 = C_algo.SHA384 = SHA512.extend({
  21700. _doReset: function _doReset() {
  21701. this._hash = new X64WordArray.init([new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507), new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939), new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511), new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)]);
  21702. },
  21703. _doFinalize: function _doFinalize() {
  21704. var hash = SHA512._doFinalize.call(this);
  21705. hash.sigBytes -= 16;
  21706. return hash;
  21707. }
  21708. });
  21709. /**
  21710. * Shortcut function to the hasher's object interface.
  21711. *
  21712. * @param {WordArray|string} message The message to hash.
  21713. *
  21714. * @return {WordArray} The hash.
  21715. *
  21716. * @static
  21717. *
  21718. * @example
  21719. *
  21720. * var hash = CryptoJS.SHA384('message');
  21721. * var hash = CryptoJS.SHA384(wordArray);
  21722. */
  21723. C.SHA384 = SHA512._createHelper(SHA384);
  21724. /**
  21725. * Shortcut function to the HMAC's object interface.
  21726. *
  21727. * @param {WordArray|string} message The message to hash.
  21728. * @param {WordArray|string} key The secret key.
  21729. *
  21730. * @return {WordArray} The HMAC.
  21731. *
  21732. * @static
  21733. *
  21734. * @example
  21735. *
  21736. * var hmac = CryptoJS.HmacSHA384(message, key);
  21737. */
  21738. C.HmacSHA384 = SHA512._createHmacHelper(SHA384);
  21739. })();
  21740. return CryptoJS.SHA384;
  21741. });
  21742. /***/ }),
  21743. /* 322 */
  21744. /*!******************************************************************!*\
  21745. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/sha3.js ***!
  21746. \******************************************************************/
  21747. /*! no static exports found */
  21748. /***/ (function(module, exports, __webpack_require__) {
  21749. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21750. ;
  21751. (function (root, factory, undef) {
  21752. if (( false ? undefined : _typeof(exports)) === "object") {
  21753. // CommonJS
  21754. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311));
  21755. } else if (true) {
  21756. // AMD
  21757. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./x64-core */ 311)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21758. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21759. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21760. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  21761. } else {}
  21762. })(this, function (CryptoJS) {
  21763. (function (Math) {
  21764. // Shortcuts
  21765. var C = CryptoJS;
  21766. var C_lib = C.lib;
  21767. var WordArray = C_lib.WordArray;
  21768. var Hasher = C_lib.Hasher;
  21769. var C_x64 = C.x64;
  21770. var X64Word = C_x64.Word;
  21771. var C_algo = C.algo;
  21772. // Constants tables
  21773. var RHO_OFFSETS = [];
  21774. var PI_INDEXES = [];
  21775. var ROUND_CONSTANTS = [];
  21776. // Compute Constants
  21777. (function () {
  21778. // Compute rho offset constants
  21779. var x = 1,
  21780. y = 0;
  21781. for (var t = 0; t < 24; t++) {
  21782. RHO_OFFSETS[x + 5 * y] = (t + 1) * (t + 2) / 2 % 64;
  21783. var newX = y % 5;
  21784. var newY = (2 * x + 3 * y) % 5;
  21785. x = newX;
  21786. y = newY;
  21787. }
  21788. // Compute pi index constants
  21789. for (var x = 0; x < 5; x++) {
  21790. for (var y = 0; y < 5; y++) {
  21791. PI_INDEXES[x + 5 * y] = y + (2 * x + 3 * y) % 5 * 5;
  21792. }
  21793. }
  21794. // Compute round constants
  21795. var LFSR = 0x01;
  21796. for (var i = 0; i < 24; i++) {
  21797. var roundConstantMsw = 0;
  21798. var roundConstantLsw = 0;
  21799. for (var j = 0; j < 7; j++) {
  21800. if (LFSR & 0x01) {
  21801. var bitPosition = (1 << j) - 1;
  21802. if (bitPosition < 32) {
  21803. roundConstantLsw ^= 1 << bitPosition;
  21804. } else /* if (bitPosition >= 32) */{
  21805. roundConstantMsw ^= 1 << bitPosition - 32;
  21806. }
  21807. }
  21808. // Compute next LFSR
  21809. if (LFSR & 0x80) {
  21810. // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
  21811. LFSR = LFSR << 1 ^ 0x71;
  21812. } else {
  21813. LFSR <<= 1;
  21814. }
  21815. }
  21816. ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);
  21817. }
  21818. })();
  21819. // Reusable objects for temporary values
  21820. var T = [];
  21821. (function () {
  21822. for (var i = 0; i < 25; i++) {
  21823. T[i] = X64Word.create();
  21824. }
  21825. })();
  21826. /**
  21827. * SHA-3 hash algorithm.
  21828. */
  21829. var SHA3 = C_algo.SHA3 = Hasher.extend({
  21830. /**
  21831. * Configuration options.
  21832. *
  21833. * @property {number} outputLength
  21834. * The desired number of bits in the output hash.
  21835. * Only values permitted are: 224, 256, 384, 512.
  21836. * Default: 512
  21837. */
  21838. cfg: Hasher.cfg.extend({
  21839. outputLength: 512
  21840. }),
  21841. _doReset: function _doReset() {
  21842. var state = this._state = [];
  21843. for (var i = 0; i < 25; i++) {
  21844. state[i] = new X64Word.init();
  21845. }
  21846. this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
  21847. },
  21848. _doProcessBlock: function _doProcessBlock(M, offset) {
  21849. // Shortcuts
  21850. var state = this._state;
  21851. var nBlockSizeLanes = this.blockSize / 2;
  21852. // Absorb
  21853. for (var i = 0; i < nBlockSizeLanes; i++) {
  21854. // Shortcuts
  21855. var M2i = M[offset + 2 * i];
  21856. var M2i1 = M[offset + 2 * i + 1];
  21857. // Swap endian
  21858. M2i = (M2i << 8 | M2i >>> 24) & 0x00ff00ff | (M2i << 24 | M2i >>> 8) & 0xff00ff00;
  21859. M2i1 = (M2i1 << 8 | M2i1 >>> 24) & 0x00ff00ff | (M2i1 << 24 | M2i1 >>> 8) & 0xff00ff00;
  21860. // Absorb message into state
  21861. var lane = state[i];
  21862. lane.high ^= M2i1;
  21863. lane.low ^= M2i;
  21864. }
  21865. // Rounds
  21866. for (var round = 0; round < 24; round++) {
  21867. // Theta
  21868. for (var x = 0; x < 5; x++) {
  21869. // Mix column lanes
  21870. var tMsw = 0,
  21871. tLsw = 0;
  21872. for (var y = 0; y < 5; y++) {
  21873. var lane = state[x + 5 * y];
  21874. tMsw ^= lane.high;
  21875. tLsw ^= lane.low;
  21876. }
  21877. // Temporary values
  21878. var Tx = T[x];
  21879. Tx.high = tMsw;
  21880. Tx.low = tLsw;
  21881. }
  21882. for (var x = 0; x < 5; x++) {
  21883. // Shortcuts
  21884. var Tx4 = T[(x + 4) % 5];
  21885. var Tx1 = T[(x + 1) % 5];
  21886. var Tx1Msw = Tx1.high;
  21887. var Tx1Lsw = Tx1.low;
  21888. // Mix surrounding columns
  21889. var tMsw = Tx4.high ^ (Tx1Msw << 1 | Tx1Lsw >>> 31);
  21890. var tLsw = Tx4.low ^ (Tx1Lsw << 1 | Tx1Msw >>> 31);
  21891. for (var y = 0; y < 5; y++) {
  21892. var lane = state[x + 5 * y];
  21893. lane.high ^= tMsw;
  21894. lane.low ^= tLsw;
  21895. }
  21896. }
  21897. // Rho Pi
  21898. for (var laneIndex = 1; laneIndex < 25; laneIndex++) {
  21899. var tMsw;
  21900. var tLsw;
  21901. // Shortcuts
  21902. var lane = state[laneIndex];
  21903. var laneMsw = lane.high;
  21904. var laneLsw = lane.low;
  21905. var rhoOffset = RHO_OFFSETS[laneIndex];
  21906. // Rotate lanes
  21907. if (rhoOffset < 32) {
  21908. tMsw = laneMsw << rhoOffset | laneLsw >>> 32 - rhoOffset;
  21909. tLsw = laneLsw << rhoOffset | laneMsw >>> 32 - rhoOffset;
  21910. } else /* if (rhoOffset >= 32) */{
  21911. tMsw = laneLsw << rhoOffset - 32 | laneMsw >>> 64 - rhoOffset;
  21912. tLsw = laneMsw << rhoOffset - 32 | laneLsw >>> 64 - rhoOffset;
  21913. }
  21914. // Transpose lanes
  21915. var TPiLane = T[PI_INDEXES[laneIndex]];
  21916. TPiLane.high = tMsw;
  21917. TPiLane.low = tLsw;
  21918. }
  21919. // Rho pi at x = y = 0
  21920. var T0 = T[0];
  21921. var state0 = state[0];
  21922. T0.high = state0.high;
  21923. T0.low = state0.low;
  21924. // Chi
  21925. for (var x = 0; x < 5; x++) {
  21926. for (var y = 0; y < 5; y++) {
  21927. // Shortcuts
  21928. var laneIndex = x + 5 * y;
  21929. var lane = state[laneIndex];
  21930. var TLane = T[laneIndex];
  21931. var Tx1Lane = T[(x + 1) % 5 + 5 * y];
  21932. var Tx2Lane = T[(x + 2) % 5 + 5 * y];
  21933. // Mix rows
  21934. lane.high = TLane.high ^ ~Tx1Lane.high & Tx2Lane.high;
  21935. lane.low = TLane.low ^ ~Tx1Lane.low & Tx2Lane.low;
  21936. }
  21937. }
  21938. // Iota
  21939. var lane = state[0];
  21940. var roundConstant = ROUND_CONSTANTS[round];
  21941. lane.high ^= roundConstant.high;
  21942. lane.low ^= roundConstant.low;
  21943. }
  21944. },
  21945. _doFinalize: function _doFinalize() {
  21946. // Shortcuts
  21947. var data = this._data;
  21948. var dataWords = data.words;
  21949. var nBitsTotal = this._nDataBytes * 8;
  21950. var nBitsLeft = data.sigBytes * 8;
  21951. var blockSizeBits = this.blockSize * 32;
  21952. // Add padding
  21953. dataWords[nBitsLeft >>> 5] |= 0x1 << 24 - nBitsLeft % 32;
  21954. dataWords[(Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits >>> 5) - 1] |= 0x80;
  21955. data.sigBytes = dataWords.length * 4;
  21956. // Hash final blocks
  21957. this._process();
  21958. // Shortcuts
  21959. var state = this._state;
  21960. var outputLengthBytes = this.cfg.outputLength / 8;
  21961. var outputLengthLanes = outputLengthBytes / 8;
  21962. // Squeeze
  21963. var hashWords = [];
  21964. for (var i = 0; i < outputLengthLanes; i++) {
  21965. // Shortcuts
  21966. var lane = state[i];
  21967. var laneMsw = lane.high;
  21968. var laneLsw = lane.low;
  21969. // Swap endian
  21970. laneMsw = (laneMsw << 8 | laneMsw >>> 24) & 0x00ff00ff | (laneMsw << 24 | laneMsw >>> 8) & 0xff00ff00;
  21971. laneLsw = (laneLsw << 8 | laneLsw >>> 24) & 0x00ff00ff | (laneLsw << 24 | laneLsw >>> 8) & 0xff00ff00;
  21972. // Squeeze state to retrieve hash
  21973. hashWords.push(laneLsw);
  21974. hashWords.push(laneMsw);
  21975. }
  21976. // Return final computed hash
  21977. return new WordArray.init(hashWords, outputLengthBytes);
  21978. },
  21979. clone: function clone() {
  21980. var clone = Hasher.clone.call(this);
  21981. var state = clone._state = this._state.slice(0);
  21982. for (var i = 0; i < 25; i++) {
  21983. state[i] = state[i].clone();
  21984. }
  21985. return clone;
  21986. }
  21987. });
  21988. /**
  21989. * Shortcut function to the hasher's object interface.
  21990. *
  21991. * @param {WordArray|string} message The message to hash.
  21992. *
  21993. * @return {WordArray} The hash.
  21994. *
  21995. * @static
  21996. *
  21997. * @example
  21998. *
  21999. * var hash = CryptoJS.SHA3('message');
  22000. * var hash = CryptoJS.SHA3(wordArray);
  22001. */
  22002. C.SHA3 = Hasher._createHelper(SHA3);
  22003. /**
  22004. * Shortcut function to the HMAC's object interface.
  22005. *
  22006. * @param {WordArray|string} message The message to hash.
  22007. * @param {WordArray|string} key The secret key.
  22008. *
  22009. * @return {WordArray} The HMAC.
  22010. *
  22011. * @static
  22012. *
  22013. * @example
  22014. *
  22015. * var hmac = CryptoJS.HmacSHA3(message, key);
  22016. */
  22017. C.HmacSHA3 = Hasher._createHmacHelper(SHA3);
  22018. })(Math);
  22019. return CryptoJS.SHA3;
  22020. });
  22021. /***/ }),
  22022. /* 323 */
  22023. /*!***********************************************************************!*\
  22024. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/ripemd160.js ***!
  22025. \***********************************************************************/
  22026. /*! no static exports found */
  22027. /***/ (function(module, exports, __webpack_require__) {
  22028. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22029. ;
  22030. (function (root, factory) {
  22031. if (( false ? undefined : _typeof(exports)) === "object") {
  22032. // CommonJS
  22033. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  22034. } else if (true) {
  22035. // AMD
  22036. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22037. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22038. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22039. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  22040. } else {}
  22041. })(this, function (CryptoJS) {
  22042. /** @preserve
  22043. (c) 2012 by Cédric Mesnil. All rights reserved.
  22044. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  22045. - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  22046. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  22047. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  22048. */
  22049. (function (Math) {
  22050. // Shortcuts
  22051. var C = CryptoJS;
  22052. var C_lib = C.lib;
  22053. var WordArray = C_lib.WordArray;
  22054. var Hasher = C_lib.Hasher;
  22055. var C_algo = C.algo;
  22056. // Constants table
  22057. var _zl = WordArray.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);
  22058. var _zr = WordArray.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);
  22059. var _sl = WordArray.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]);
  22060. var _sr = WordArray.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]);
  22061. var _hl = WordArray.create([0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);
  22062. var _hr = WordArray.create([0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
  22063. /**
  22064. * RIPEMD160 hash algorithm.
  22065. */
  22066. var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({
  22067. _doReset: function _doReset() {
  22068. this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
  22069. },
  22070. _doProcessBlock: function _doProcessBlock(M, offset) {
  22071. // Swap endian
  22072. for (var i = 0; i < 16; i++) {
  22073. // Shortcuts
  22074. var offset_i = offset + i;
  22075. var M_offset_i = M[offset_i];
  22076. // Swap
  22077. M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 0x00ff00ff | (M_offset_i << 24 | M_offset_i >>> 8) & 0xff00ff00;
  22078. }
  22079. // Shortcut
  22080. var H = this._hash.words;
  22081. var hl = _hl.words;
  22082. var hr = _hr.words;
  22083. var zl = _zl.words;
  22084. var zr = _zr.words;
  22085. var sl = _sl.words;
  22086. var sr = _sr.words;
  22087. // Working variables
  22088. var al, bl, cl, dl, el;
  22089. var ar, br, cr, dr, er;
  22090. ar = al = H[0];
  22091. br = bl = H[1];
  22092. cr = cl = H[2];
  22093. dr = dl = H[3];
  22094. er = el = H[4];
  22095. // Computation
  22096. var t;
  22097. for (var i = 0; i < 80; i += 1) {
  22098. t = al + M[offset + zl[i]] | 0;
  22099. if (i < 16) {
  22100. t += f1(bl, cl, dl) + hl[0];
  22101. } else if (i < 32) {
  22102. t += f2(bl, cl, dl) + hl[1];
  22103. } else if (i < 48) {
  22104. t += f3(bl, cl, dl) + hl[2];
  22105. } else if (i < 64) {
  22106. t += f4(bl, cl, dl) + hl[3];
  22107. } else {
  22108. // if (i<80) {
  22109. t += f5(bl, cl, dl) + hl[4];
  22110. }
  22111. t = t | 0;
  22112. t = rotl(t, sl[i]);
  22113. t = t + el | 0;
  22114. al = el;
  22115. el = dl;
  22116. dl = rotl(cl, 10);
  22117. cl = bl;
  22118. bl = t;
  22119. t = ar + M[offset + zr[i]] | 0;
  22120. if (i < 16) {
  22121. t += f5(br, cr, dr) + hr[0];
  22122. } else if (i < 32) {
  22123. t += f4(br, cr, dr) + hr[1];
  22124. } else if (i < 48) {
  22125. t += f3(br, cr, dr) + hr[2];
  22126. } else if (i < 64) {
  22127. t += f2(br, cr, dr) + hr[3];
  22128. } else {
  22129. // if (i<80) {
  22130. t += f1(br, cr, dr) + hr[4];
  22131. }
  22132. t = t | 0;
  22133. t = rotl(t, sr[i]);
  22134. t = t + er | 0;
  22135. ar = er;
  22136. er = dr;
  22137. dr = rotl(cr, 10);
  22138. cr = br;
  22139. br = t;
  22140. }
  22141. // Intermediate hash value
  22142. t = H[1] + cl + dr | 0;
  22143. H[1] = H[2] + dl + er | 0;
  22144. H[2] = H[3] + el + ar | 0;
  22145. H[3] = H[4] + al + br | 0;
  22146. H[4] = H[0] + bl + cr | 0;
  22147. H[0] = t;
  22148. },
  22149. _doFinalize: function _doFinalize() {
  22150. // Shortcuts
  22151. var data = this._data;
  22152. var dataWords = data.words;
  22153. var nBitsTotal = this._nDataBytes * 8;
  22154. var nBitsLeft = data.sigBytes * 8;
  22155. // Add padding
  22156. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  22157. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotal << 8 | nBitsTotal >>> 24) & 0x00ff00ff | (nBitsTotal << 24 | nBitsTotal >>> 8) & 0xff00ff00;
  22158. data.sigBytes = (dataWords.length + 1) * 4;
  22159. // Hash final blocks
  22160. this._process();
  22161. // Shortcuts
  22162. var hash = this._hash;
  22163. var H = hash.words;
  22164. // Swap endian
  22165. for (var i = 0; i < 5; i++) {
  22166. // Shortcut
  22167. var H_i = H[i];
  22168. // Swap
  22169. H[i] = (H_i << 8 | H_i >>> 24) & 0x00ff00ff | (H_i << 24 | H_i >>> 8) & 0xff00ff00;
  22170. }
  22171. // Return final computed hash
  22172. return hash;
  22173. },
  22174. clone: function clone() {
  22175. var clone = Hasher.clone.call(this);
  22176. clone._hash = this._hash.clone();
  22177. return clone;
  22178. }
  22179. });
  22180. function f1(x, y, z) {
  22181. return x ^ y ^ z;
  22182. }
  22183. function f2(x, y, z) {
  22184. return x & y | ~x & z;
  22185. }
  22186. function f3(x, y, z) {
  22187. return (x | ~y) ^ z;
  22188. }
  22189. function f4(x, y, z) {
  22190. return x & z | y & ~z;
  22191. }
  22192. function f5(x, y, z) {
  22193. return x ^ (y | ~z);
  22194. }
  22195. function rotl(x, n) {
  22196. return x << n | x >>> 32 - n;
  22197. }
  22198. /**
  22199. * Shortcut function to the hasher's object interface.
  22200. *
  22201. * @param {WordArray|string} message The message to hash.
  22202. *
  22203. * @return {WordArray} The hash.
  22204. *
  22205. * @static
  22206. *
  22207. * @example
  22208. *
  22209. * var hash = CryptoJS.RIPEMD160('message');
  22210. * var hash = CryptoJS.RIPEMD160(wordArray);
  22211. */
  22212. C.RIPEMD160 = Hasher._createHelper(RIPEMD160);
  22213. /**
  22214. * Shortcut function to the HMAC's object interface.
  22215. *
  22216. * @param {WordArray|string} message The message to hash.
  22217. * @param {WordArray|string} key The secret key.
  22218. *
  22219. * @return {WordArray} The HMAC.
  22220. *
  22221. * @static
  22222. *
  22223. * @example
  22224. *
  22225. * var hmac = CryptoJS.HmacRIPEMD160(message, key);
  22226. */
  22227. C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);
  22228. })(Math);
  22229. return CryptoJS.RIPEMD160;
  22230. });
  22231. /***/ }),
  22232. /* 324 */
  22233. /*!******************************************************************!*\
  22234. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/hmac.js ***!
  22235. \******************************************************************/
  22236. /*! no static exports found */
  22237. /***/ (function(module, exports, __webpack_require__) {
  22238. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22239. ;
  22240. (function (root, factory) {
  22241. if (( false ? undefined : _typeof(exports)) === "object") {
  22242. // CommonJS
  22243. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309));
  22244. } else if (true) {
  22245. // AMD
  22246. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22247. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22248. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22249. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  22250. } else {}
  22251. })(this, function (CryptoJS) {
  22252. (function () {
  22253. // Shortcuts
  22254. var C = CryptoJS;
  22255. var C_lib = C.lib;
  22256. var Base = C_lib.Base;
  22257. var C_enc = C.enc;
  22258. var Utf8 = C_enc.Utf8;
  22259. var C_algo = C.algo;
  22260. /**
  22261. * HMAC algorithm.
  22262. */
  22263. var HMAC = C_algo.HMAC = Base.extend({
  22264. /**
  22265. * Initializes a newly created HMAC.
  22266. *
  22267. * @param {Hasher} hasher The hash algorithm to use.
  22268. * @param {WordArray|string} key The secret key.
  22269. *
  22270. * @example
  22271. *
  22272. * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
  22273. */
  22274. init: function init(hasher, key) {
  22275. // Init hasher
  22276. hasher = this._hasher = new hasher.init();
  22277. // Convert string to WordArray, else assume WordArray already
  22278. if (typeof key == 'string') {
  22279. key = Utf8.parse(key);
  22280. }
  22281. // Shortcuts
  22282. var hasherBlockSize = hasher.blockSize;
  22283. var hasherBlockSizeBytes = hasherBlockSize * 4;
  22284. // Allow arbitrary length keys
  22285. if (key.sigBytes > hasherBlockSizeBytes) {
  22286. key = hasher.finalize(key);
  22287. }
  22288. // Clamp excess bits
  22289. key.clamp();
  22290. // Clone key for inner and outer pads
  22291. var oKey = this._oKey = key.clone();
  22292. var iKey = this._iKey = key.clone();
  22293. // Shortcuts
  22294. var oKeyWords = oKey.words;
  22295. var iKeyWords = iKey.words;
  22296. // XOR keys with pad constants
  22297. for (var i = 0; i < hasherBlockSize; i++) {
  22298. oKeyWords[i] ^= 0x5c5c5c5c;
  22299. iKeyWords[i] ^= 0x36363636;
  22300. }
  22301. oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;
  22302. // Set initial values
  22303. this.reset();
  22304. },
  22305. /**
  22306. * Resets this HMAC to its initial state.
  22307. *
  22308. * @example
  22309. *
  22310. * hmacHasher.reset();
  22311. */
  22312. reset: function reset() {
  22313. // Shortcut
  22314. var hasher = this._hasher;
  22315. // Reset
  22316. hasher.reset();
  22317. hasher.update(this._iKey);
  22318. },
  22319. /**
  22320. * Updates this HMAC with a message.
  22321. *
  22322. * @param {WordArray|string} messageUpdate The message to append.
  22323. *
  22324. * @return {HMAC} This HMAC instance.
  22325. *
  22326. * @example
  22327. *
  22328. * hmacHasher.update('message');
  22329. * hmacHasher.update(wordArray);
  22330. */
  22331. update: function update(messageUpdate) {
  22332. this._hasher.update(messageUpdate);
  22333. // Chainable
  22334. return this;
  22335. },
  22336. /**
  22337. * Finalizes the HMAC computation.
  22338. * Note that the finalize operation is effectively a destructive, read-once operation.
  22339. *
  22340. * @param {WordArray|string} messageUpdate (Optional) A final message update.
  22341. *
  22342. * @return {WordArray} The HMAC.
  22343. *
  22344. * @example
  22345. *
  22346. * var hmac = hmacHasher.finalize();
  22347. * var hmac = hmacHasher.finalize('message');
  22348. * var hmac = hmacHasher.finalize(wordArray);
  22349. */
  22350. finalize: function finalize(messageUpdate) {
  22351. // Shortcut
  22352. var hasher = this._hasher;
  22353. // Compute HMAC
  22354. var innerHash = hasher.finalize(messageUpdate);
  22355. hasher.reset();
  22356. var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));
  22357. return hmac;
  22358. }
  22359. });
  22360. })();
  22361. });
  22362. /***/ }),
  22363. /* 325 */
  22364. /*!********************************************************************!*\
  22365. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/pbkdf2.js ***!
  22366. \********************************************************************/
  22367. /*! no static exports found */
  22368. /***/ (function(module, exports, __webpack_require__) {
  22369. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22370. ;
  22371. (function (root, factory, undef) {
  22372. if (( false ? undefined : _typeof(exports)) === "object") {
  22373. // CommonJS
  22374. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./sha1 */ 317), __webpack_require__(/*! ./hmac */ 324));
  22375. } else if (true) {
  22376. // AMD
  22377. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./sha1 */ 317), __webpack_require__(/*! ./hmac */ 324)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22378. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22379. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22380. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  22381. } else {}
  22382. })(this, function (CryptoJS) {
  22383. (function () {
  22384. // Shortcuts
  22385. var C = CryptoJS;
  22386. var C_lib = C.lib;
  22387. var Base = C_lib.Base;
  22388. var WordArray = C_lib.WordArray;
  22389. var C_algo = C.algo;
  22390. var SHA1 = C_algo.SHA1;
  22391. var HMAC = C_algo.HMAC;
  22392. /**
  22393. * Password-Based Key Derivation Function 2 algorithm.
  22394. */
  22395. var PBKDF2 = C_algo.PBKDF2 = Base.extend({
  22396. /**
  22397. * Configuration options.
  22398. *
  22399. * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
  22400. * @property {Hasher} hasher The hasher to use. Default: SHA1
  22401. * @property {number} iterations The number of iterations to perform. Default: 1
  22402. */
  22403. cfg: Base.extend({
  22404. keySize: 128 / 32,
  22405. hasher: SHA1,
  22406. iterations: 1
  22407. }),
  22408. /**
  22409. * Initializes a newly created key derivation function.
  22410. *
  22411. * @param {Object} cfg (Optional) The configuration options to use for the derivation.
  22412. *
  22413. * @example
  22414. *
  22415. * var kdf = CryptoJS.algo.PBKDF2.create();
  22416. * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
  22417. * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
  22418. */
  22419. init: function init(cfg) {
  22420. this.cfg = this.cfg.extend(cfg);
  22421. },
  22422. /**
  22423. * Computes the Password-Based Key Derivation Function 2.
  22424. *
  22425. * @param {WordArray|string} password The password.
  22426. * @param {WordArray|string} salt A salt.
  22427. *
  22428. * @return {WordArray} The derived key.
  22429. *
  22430. * @example
  22431. *
  22432. * var key = kdf.compute(password, salt);
  22433. */
  22434. compute: function compute(password, salt) {
  22435. // Shortcut
  22436. var cfg = this.cfg;
  22437. // Init HMAC
  22438. var hmac = HMAC.create(cfg.hasher, password);
  22439. // Initial values
  22440. var derivedKey = WordArray.create();
  22441. var blockIndex = WordArray.create([0x00000001]);
  22442. // Shortcuts
  22443. var derivedKeyWords = derivedKey.words;
  22444. var blockIndexWords = blockIndex.words;
  22445. var keySize = cfg.keySize;
  22446. var iterations = cfg.iterations;
  22447. // Generate key
  22448. while (derivedKeyWords.length < keySize) {
  22449. var block = hmac.update(salt).finalize(blockIndex);
  22450. hmac.reset();
  22451. // Shortcuts
  22452. var blockWords = block.words;
  22453. var blockWordsLength = blockWords.length;
  22454. // Iterations
  22455. var intermediate = block;
  22456. for (var i = 1; i < iterations; i++) {
  22457. intermediate = hmac.finalize(intermediate);
  22458. hmac.reset();
  22459. // Shortcut
  22460. var intermediateWords = intermediate.words;
  22461. // XOR intermediate with block
  22462. for (var j = 0; j < blockWordsLength; j++) {
  22463. blockWords[j] ^= intermediateWords[j];
  22464. }
  22465. }
  22466. derivedKey.concat(block);
  22467. blockIndexWords[0]++;
  22468. }
  22469. derivedKey.sigBytes = keySize * 4;
  22470. return derivedKey;
  22471. }
  22472. });
  22473. /**
  22474. * Computes the Password-Based Key Derivation Function 2.
  22475. *
  22476. * @param {WordArray|string} password The password.
  22477. * @param {WordArray|string} salt A salt.
  22478. * @param {Object} cfg (Optional) The configuration options to use for this computation.
  22479. *
  22480. * @return {WordArray} The derived key.
  22481. *
  22482. * @static
  22483. *
  22484. * @example
  22485. *
  22486. * var key = CryptoJS.PBKDF2(password, salt);
  22487. * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
  22488. * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
  22489. */
  22490. C.PBKDF2 = function (password, salt, cfg) {
  22491. return PBKDF2.create(cfg).compute(password, salt);
  22492. };
  22493. })();
  22494. return CryptoJS.PBKDF2;
  22495. });
  22496. /***/ }),
  22497. /* 326 */
  22498. /*!********************************************************************!*\
  22499. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/evpkdf.js ***!
  22500. \********************************************************************/
  22501. /*! no static exports found */
  22502. /***/ (function(module, exports, __webpack_require__) {
  22503. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22504. ;
  22505. (function (root, factory, undef) {
  22506. if (( false ? undefined : _typeof(exports)) === "object") {
  22507. // CommonJS
  22508. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./sha1 */ 317), __webpack_require__(/*! ./hmac */ 324));
  22509. } else if (true) {
  22510. // AMD
  22511. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./sha1 */ 317), __webpack_require__(/*! ./hmac */ 324)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22512. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22513. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22514. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  22515. } else {}
  22516. })(this, function (CryptoJS) {
  22517. (function () {
  22518. // Shortcuts
  22519. var C = CryptoJS;
  22520. var C_lib = C.lib;
  22521. var Base = C_lib.Base;
  22522. var WordArray = C_lib.WordArray;
  22523. var C_algo = C.algo;
  22524. var MD5 = C_algo.MD5;
  22525. /**
  22526. * This key derivation function is meant to conform with EVP_BytesToKey.
  22527. * www.openssl.org/docs/crypto/EVP_BytesToKey.html
  22528. */
  22529. var EvpKDF = C_algo.EvpKDF = Base.extend({
  22530. /**
  22531. * Configuration options.
  22532. *
  22533. * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
  22534. * @property {Hasher} hasher The hash algorithm to use. Default: MD5
  22535. * @property {number} iterations The number of iterations to perform. Default: 1
  22536. */
  22537. cfg: Base.extend({
  22538. keySize: 128 / 32,
  22539. hasher: MD5,
  22540. iterations: 1
  22541. }),
  22542. /**
  22543. * Initializes a newly created key derivation function.
  22544. *
  22545. * @param {Object} cfg (Optional) The configuration options to use for the derivation.
  22546. *
  22547. * @example
  22548. *
  22549. * var kdf = CryptoJS.algo.EvpKDF.create();
  22550. * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
  22551. * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
  22552. */
  22553. init: function init(cfg) {
  22554. this.cfg = this.cfg.extend(cfg);
  22555. },
  22556. /**
  22557. * Derives a key from a password.
  22558. *
  22559. * @param {WordArray|string} password The password.
  22560. * @param {WordArray|string} salt A salt.
  22561. *
  22562. * @return {WordArray} The derived key.
  22563. *
  22564. * @example
  22565. *
  22566. * var key = kdf.compute(password, salt);
  22567. */
  22568. compute: function compute(password, salt) {
  22569. var block;
  22570. // Shortcut
  22571. var cfg = this.cfg;
  22572. // Init hasher
  22573. var hasher = cfg.hasher.create();
  22574. // Initial values
  22575. var derivedKey = WordArray.create();
  22576. // Shortcuts
  22577. var derivedKeyWords = derivedKey.words;
  22578. var keySize = cfg.keySize;
  22579. var iterations = cfg.iterations;
  22580. // Generate key
  22581. while (derivedKeyWords.length < keySize) {
  22582. if (block) {
  22583. hasher.update(block);
  22584. }
  22585. block = hasher.update(password).finalize(salt);
  22586. hasher.reset();
  22587. // Iterations
  22588. for (var i = 1; i < iterations; i++) {
  22589. block = hasher.finalize(block);
  22590. hasher.reset();
  22591. }
  22592. derivedKey.concat(block);
  22593. }
  22594. derivedKey.sigBytes = keySize * 4;
  22595. return derivedKey;
  22596. }
  22597. });
  22598. /**
  22599. * Derives a key from a password.
  22600. *
  22601. * @param {WordArray|string} password The password.
  22602. * @param {WordArray|string} salt A salt.
  22603. * @param {Object} cfg (Optional) The configuration options to use for this computation.
  22604. *
  22605. * @return {WordArray} The derived key.
  22606. *
  22607. * @static
  22608. *
  22609. * @example
  22610. *
  22611. * var key = CryptoJS.EvpKDF(password, salt);
  22612. * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
  22613. * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
  22614. */
  22615. C.EvpKDF = function (password, salt, cfg) {
  22616. return EvpKDF.create(cfg).compute(password, salt);
  22617. };
  22618. })();
  22619. return CryptoJS.EvpKDF;
  22620. });
  22621. /***/ }),
  22622. /* 327 */
  22623. /*!*************************************************************************!*\
  22624. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/cipher-core.js ***!
  22625. \*************************************************************************/
  22626. /*! no static exports found */
  22627. /***/ (function(module, exports, __webpack_require__) {
  22628. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22629. ;
  22630. (function (root, factory, undef) {
  22631. if (( false ? undefined : _typeof(exports)) === "object") {
  22632. // CommonJS
  22633. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./evpkdf */ 326));
  22634. } else if (true) {
  22635. // AMD
  22636. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./evpkdf */ 326)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22637. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22638. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22639. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  22640. } else {}
  22641. })(this, function (CryptoJS) {
  22642. /**
  22643. * Cipher core components.
  22644. */
  22645. CryptoJS.lib.Cipher || function (undefined) {
  22646. // Shortcuts
  22647. var C = CryptoJS;
  22648. var C_lib = C.lib;
  22649. var Base = C_lib.Base;
  22650. var WordArray = C_lib.WordArray;
  22651. var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
  22652. var C_enc = C.enc;
  22653. var Utf8 = C_enc.Utf8;
  22654. var Base64 = C_enc.Base64;
  22655. var C_algo = C.algo;
  22656. var EvpKDF = C_algo.EvpKDF;
  22657. /**
  22658. * Abstract base cipher template.
  22659. *
  22660. * @property {number} keySize This cipher's key size. Default: 4 (128 bits)
  22661. * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
  22662. * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
  22663. * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
  22664. */
  22665. var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
  22666. /**
  22667. * Configuration options.
  22668. *
  22669. * @property {WordArray} iv The IV to use for this operation.
  22670. */
  22671. cfg: Base.extend(),
  22672. /**
  22673. * Creates this cipher in encryption mode.
  22674. *
  22675. * @param {WordArray} key The key.
  22676. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  22677. *
  22678. * @return {Cipher} A cipher instance.
  22679. *
  22680. * @static
  22681. *
  22682. * @example
  22683. *
  22684. * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
  22685. */
  22686. createEncryptor: function createEncryptor(key, cfg) {
  22687. return this.create(this._ENC_XFORM_MODE, key, cfg);
  22688. },
  22689. /**
  22690. * Creates this cipher in decryption mode.
  22691. *
  22692. * @param {WordArray} key The key.
  22693. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  22694. *
  22695. * @return {Cipher} A cipher instance.
  22696. *
  22697. * @static
  22698. *
  22699. * @example
  22700. *
  22701. * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
  22702. */
  22703. createDecryptor: function createDecryptor(key, cfg) {
  22704. return this.create(this._DEC_XFORM_MODE, key, cfg);
  22705. },
  22706. /**
  22707. * Initializes a newly created cipher.
  22708. *
  22709. * @param {number} xformMode Either the encryption or decryption transormation mode constant.
  22710. * @param {WordArray} key The key.
  22711. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  22712. *
  22713. * @example
  22714. *
  22715. * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
  22716. */
  22717. init: function init(xformMode, key, cfg) {
  22718. // Apply config defaults
  22719. this.cfg = this.cfg.extend(cfg);
  22720. // Store transform mode and key
  22721. this._xformMode = xformMode;
  22722. this._key = key;
  22723. // Set initial values
  22724. this.reset();
  22725. },
  22726. /**
  22727. * Resets this cipher to its initial state.
  22728. *
  22729. * @example
  22730. *
  22731. * cipher.reset();
  22732. */
  22733. reset: function reset() {
  22734. // Reset data buffer
  22735. BufferedBlockAlgorithm.reset.call(this);
  22736. // Perform concrete-cipher logic
  22737. this._doReset();
  22738. },
  22739. /**
  22740. * Adds data to be encrypted or decrypted.
  22741. *
  22742. * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
  22743. *
  22744. * @return {WordArray} The data after processing.
  22745. *
  22746. * @example
  22747. *
  22748. * var encrypted = cipher.process('data');
  22749. * var encrypted = cipher.process(wordArray);
  22750. */
  22751. process: function process(dataUpdate) {
  22752. // Append
  22753. this._append(dataUpdate);
  22754. // Process available blocks
  22755. return this._process();
  22756. },
  22757. /**
  22758. * Finalizes the encryption or decryption process.
  22759. * Note that the finalize operation is effectively a destructive, read-once operation.
  22760. *
  22761. * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
  22762. *
  22763. * @return {WordArray} The data after final processing.
  22764. *
  22765. * @example
  22766. *
  22767. * var encrypted = cipher.finalize();
  22768. * var encrypted = cipher.finalize('data');
  22769. * var encrypted = cipher.finalize(wordArray);
  22770. */
  22771. finalize: function finalize(dataUpdate) {
  22772. // Final data update
  22773. if (dataUpdate) {
  22774. this._append(dataUpdate);
  22775. }
  22776. // Perform concrete-cipher logic
  22777. var finalProcessedData = this._doFinalize();
  22778. return finalProcessedData;
  22779. },
  22780. keySize: 128 / 32,
  22781. ivSize: 128 / 32,
  22782. _ENC_XFORM_MODE: 1,
  22783. _DEC_XFORM_MODE: 2,
  22784. /**
  22785. * Creates shortcut functions to a cipher's object interface.
  22786. *
  22787. * @param {Cipher} cipher The cipher to create a helper for.
  22788. *
  22789. * @return {Object} An object with encrypt and decrypt shortcut functions.
  22790. *
  22791. * @static
  22792. *
  22793. * @example
  22794. *
  22795. * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
  22796. */
  22797. _createHelper: function () {
  22798. function selectCipherStrategy(key) {
  22799. if (typeof key == 'string') {
  22800. return PasswordBasedCipher;
  22801. } else {
  22802. return SerializableCipher;
  22803. }
  22804. }
  22805. return function (cipher) {
  22806. return {
  22807. encrypt: function encrypt(message, key, cfg) {
  22808. return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
  22809. },
  22810. decrypt: function decrypt(ciphertext, key, cfg) {
  22811. return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
  22812. }
  22813. };
  22814. };
  22815. }()
  22816. });
  22817. /**
  22818. * Abstract base stream cipher template.
  22819. *
  22820. * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
  22821. */
  22822. var StreamCipher = C_lib.StreamCipher = Cipher.extend({
  22823. _doFinalize: function _doFinalize() {
  22824. // Process partial blocks
  22825. var finalProcessedBlocks = this._process(!!'flush');
  22826. return finalProcessedBlocks;
  22827. },
  22828. blockSize: 1
  22829. });
  22830. /**
  22831. * Mode namespace.
  22832. */
  22833. var C_mode = C.mode = {};
  22834. /**
  22835. * Abstract base block cipher mode template.
  22836. */
  22837. var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
  22838. /**
  22839. * Creates this mode for encryption.
  22840. *
  22841. * @param {Cipher} cipher A block cipher instance.
  22842. * @param {Array} iv The IV words.
  22843. *
  22844. * @static
  22845. *
  22846. * @example
  22847. *
  22848. * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
  22849. */
  22850. createEncryptor: function createEncryptor(cipher, iv) {
  22851. return this.Encryptor.create(cipher, iv);
  22852. },
  22853. /**
  22854. * Creates this mode for decryption.
  22855. *
  22856. * @param {Cipher} cipher A block cipher instance.
  22857. * @param {Array} iv The IV words.
  22858. *
  22859. * @static
  22860. *
  22861. * @example
  22862. *
  22863. * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
  22864. */
  22865. createDecryptor: function createDecryptor(cipher, iv) {
  22866. return this.Decryptor.create(cipher, iv);
  22867. },
  22868. /**
  22869. * Initializes a newly created mode.
  22870. *
  22871. * @param {Cipher} cipher A block cipher instance.
  22872. * @param {Array} iv The IV words.
  22873. *
  22874. * @example
  22875. *
  22876. * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
  22877. */
  22878. init: function init(cipher, iv) {
  22879. this._cipher = cipher;
  22880. this._iv = iv;
  22881. }
  22882. });
  22883. /**
  22884. * Cipher Block Chaining mode.
  22885. */
  22886. var CBC = C_mode.CBC = function () {
  22887. /**
  22888. * Abstract base CBC mode.
  22889. */
  22890. var CBC = BlockCipherMode.extend();
  22891. /**
  22892. * CBC encryptor.
  22893. */
  22894. CBC.Encryptor = CBC.extend({
  22895. /**
  22896. * Processes the data block at offset.
  22897. *
  22898. * @param {Array} words The data words to operate on.
  22899. * @param {number} offset The offset where the block starts.
  22900. *
  22901. * @example
  22902. *
  22903. * mode.processBlock(data.words, offset);
  22904. */
  22905. processBlock: function processBlock(words, offset) {
  22906. // Shortcuts
  22907. var cipher = this._cipher;
  22908. var blockSize = cipher.blockSize;
  22909. // XOR and encrypt
  22910. xorBlock.call(this, words, offset, blockSize);
  22911. cipher.encryptBlock(words, offset);
  22912. // Remember this block to use with next block
  22913. this._prevBlock = words.slice(offset, offset + blockSize);
  22914. }
  22915. });
  22916. /**
  22917. * CBC decryptor.
  22918. */
  22919. CBC.Decryptor = CBC.extend({
  22920. /**
  22921. * Processes the data block at offset.
  22922. *
  22923. * @param {Array} words The data words to operate on.
  22924. * @param {number} offset The offset where the block starts.
  22925. *
  22926. * @example
  22927. *
  22928. * mode.processBlock(data.words, offset);
  22929. */
  22930. processBlock: function processBlock(words, offset) {
  22931. // Shortcuts
  22932. var cipher = this._cipher;
  22933. var blockSize = cipher.blockSize;
  22934. // Remember this block to use with next block
  22935. var thisBlock = words.slice(offset, offset + blockSize);
  22936. // Decrypt and XOR
  22937. cipher.decryptBlock(words, offset);
  22938. xorBlock.call(this, words, offset, blockSize);
  22939. // This block becomes the previous block
  22940. this._prevBlock = thisBlock;
  22941. }
  22942. });
  22943. function xorBlock(words, offset, blockSize) {
  22944. var block;
  22945. // Shortcut
  22946. var iv = this._iv;
  22947. // Choose mixing block
  22948. if (iv) {
  22949. block = iv;
  22950. // Remove IV for subsequent blocks
  22951. this._iv = undefined;
  22952. } else {
  22953. block = this._prevBlock;
  22954. }
  22955. // XOR blocks
  22956. for (var i = 0; i < blockSize; i++) {
  22957. words[offset + i] ^= block[i];
  22958. }
  22959. }
  22960. return CBC;
  22961. }();
  22962. /**
  22963. * Padding namespace.
  22964. */
  22965. var C_pad = C.pad = {};
  22966. /**
  22967. * PKCS #5/7 padding strategy.
  22968. */
  22969. var Pkcs7 = C_pad.Pkcs7 = {
  22970. /**
  22971. * Pads data using the algorithm defined in PKCS #5/7.
  22972. *
  22973. * @param {WordArray} data The data to pad.
  22974. * @param {number} blockSize The multiple that the data should be padded to.
  22975. *
  22976. * @static
  22977. *
  22978. * @example
  22979. *
  22980. * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
  22981. */
  22982. pad: function pad(data, blockSize) {
  22983. // Shortcut
  22984. var blockSizeBytes = blockSize * 4;
  22985. // Count padding bytes
  22986. var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
  22987. // Create padding word
  22988. var paddingWord = nPaddingBytes << 24 | nPaddingBytes << 16 | nPaddingBytes << 8 | nPaddingBytes;
  22989. // Create padding
  22990. var paddingWords = [];
  22991. for (var i = 0; i < nPaddingBytes; i += 4) {
  22992. paddingWords.push(paddingWord);
  22993. }
  22994. var padding = WordArray.create(paddingWords, nPaddingBytes);
  22995. // Add padding
  22996. data.concat(padding);
  22997. },
  22998. /**
  22999. * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
  23000. *
  23001. * @param {WordArray} data The data to unpad.
  23002. *
  23003. * @static
  23004. *
  23005. * @example
  23006. *
  23007. * CryptoJS.pad.Pkcs7.unpad(wordArray);
  23008. */
  23009. unpad: function unpad(data) {
  23010. // Get number of padding bytes from last byte
  23011. var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff;
  23012. // Remove padding
  23013. data.sigBytes -= nPaddingBytes;
  23014. }
  23015. };
  23016. /**
  23017. * Abstract base block cipher template.
  23018. *
  23019. * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
  23020. */
  23021. var BlockCipher = C_lib.BlockCipher = Cipher.extend({
  23022. /**
  23023. * Configuration options.
  23024. *
  23025. * @property {Mode} mode The block mode to use. Default: CBC
  23026. * @property {Padding} padding The padding strategy to use. Default: Pkcs7
  23027. */
  23028. cfg: Cipher.cfg.extend({
  23029. mode: CBC,
  23030. padding: Pkcs7
  23031. }),
  23032. reset: function reset() {
  23033. var modeCreator;
  23034. // Reset cipher
  23035. Cipher.reset.call(this);
  23036. // Shortcuts
  23037. var cfg = this.cfg;
  23038. var iv = cfg.iv;
  23039. var mode = cfg.mode;
  23040. // Reset block mode
  23041. if (this._xformMode == this._ENC_XFORM_MODE) {
  23042. modeCreator = mode.createEncryptor;
  23043. } else /* if (this._xformMode == this._DEC_XFORM_MODE) */{
  23044. modeCreator = mode.createDecryptor;
  23045. // Keep at least one block in the buffer for unpadding
  23046. this._minBufferSize = 1;
  23047. }
  23048. if (this._mode && this._mode.__creator == modeCreator) {
  23049. this._mode.init(this, iv && iv.words);
  23050. } else {
  23051. this._mode = modeCreator.call(mode, this, iv && iv.words);
  23052. this._mode.__creator = modeCreator;
  23053. }
  23054. },
  23055. _doProcessBlock: function _doProcessBlock(words, offset) {
  23056. this._mode.processBlock(words, offset);
  23057. },
  23058. _doFinalize: function _doFinalize() {
  23059. var finalProcessedBlocks;
  23060. // Shortcut
  23061. var padding = this.cfg.padding;
  23062. // Finalize
  23063. if (this._xformMode == this._ENC_XFORM_MODE) {
  23064. // Pad data
  23065. padding.pad(this._data, this.blockSize);
  23066. // Process final blocks
  23067. finalProcessedBlocks = this._process(!!'flush');
  23068. } else /* if (this._xformMode == this._DEC_XFORM_MODE) */{
  23069. // Process final blocks
  23070. finalProcessedBlocks = this._process(!!'flush');
  23071. // Unpad data
  23072. padding.unpad(finalProcessedBlocks);
  23073. }
  23074. return finalProcessedBlocks;
  23075. },
  23076. blockSize: 128 / 32
  23077. });
  23078. /**
  23079. * A collection of cipher parameters.
  23080. *
  23081. * @property {WordArray} ciphertext The raw ciphertext.
  23082. * @property {WordArray} key The key to this ciphertext.
  23083. * @property {WordArray} iv The IV used in the ciphering operation.
  23084. * @property {WordArray} salt The salt used with a key derivation function.
  23085. * @property {Cipher} algorithm The cipher algorithm.
  23086. * @property {Mode} mode The block mode used in the ciphering operation.
  23087. * @property {Padding} padding The padding scheme used in the ciphering operation.
  23088. * @property {number} blockSize The block size of the cipher.
  23089. * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
  23090. */
  23091. var CipherParams = C_lib.CipherParams = Base.extend({
  23092. /**
  23093. * Initializes a newly created cipher params object.
  23094. *
  23095. * @param {Object} cipherParams An object with any of the possible cipher parameters.
  23096. *
  23097. * @example
  23098. *
  23099. * var cipherParams = CryptoJS.lib.CipherParams.create({
  23100. * ciphertext: ciphertextWordArray,
  23101. * key: keyWordArray,
  23102. * iv: ivWordArray,
  23103. * salt: saltWordArray,
  23104. * algorithm: CryptoJS.algo.AES,
  23105. * mode: CryptoJS.mode.CBC,
  23106. * padding: CryptoJS.pad.PKCS7,
  23107. * blockSize: 4,
  23108. * formatter: CryptoJS.format.OpenSSL
  23109. * });
  23110. */
  23111. init: function init(cipherParams) {
  23112. this.mixIn(cipherParams);
  23113. },
  23114. /**
  23115. * Converts this cipher params object to a string.
  23116. *
  23117. * @param {Format} formatter (Optional) The formatting strategy to use.
  23118. *
  23119. * @return {string} The stringified cipher params.
  23120. *
  23121. * @throws Error If neither the formatter nor the default formatter is set.
  23122. *
  23123. * @example
  23124. *
  23125. * var string = cipherParams + '';
  23126. * var string = cipherParams.toString();
  23127. * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
  23128. */
  23129. toString: function toString(formatter) {
  23130. return (formatter || this.formatter).stringify(this);
  23131. }
  23132. });
  23133. /**
  23134. * Format namespace.
  23135. */
  23136. var C_format = C.format = {};
  23137. /**
  23138. * OpenSSL formatting strategy.
  23139. */
  23140. var OpenSSLFormatter = C_format.OpenSSL = {
  23141. /**
  23142. * Converts a cipher params object to an OpenSSL-compatible string.
  23143. *
  23144. * @param {CipherParams} cipherParams The cipher params object.
  23145. *
  23146. * @return {string} The OpenSSL-compatible string.
  23147. *
  23148. * @static
  23149. *
  23150. * @example
  23151. *
  23152. * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
  23153. */
  23154. stringify: function stringify(cipherParams) {
  23155. var wordArray;
  23156. // Shortcuts
  23157. var ciphertext = cipherParams.ciphertext;
  23158. var salt = cipherParams.salt;
  23159. // Format
  23160. if (salt) {
  23161. wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);
  23162. } else {
  23163. wordArray = ciphertext;
  23164. }
  23165. return wordArray.toString(Base64);
  23166. },
  23167. /**
  23168. * Converts an OpenSSL-compatible string to a cipher params object.
  23169. *
  23170. * @param {string} openSSLStr The OpenSSL-compatible string.
  23171. *
  23172. * @return {CipherParams} The cipher params object.
  23173. *
  23174. * @static
  23175. *
  23176. * @example
  23177. *
  23178. * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
  23179. */
  23180. parse: function parse(openSSLStr) {
  23181. var salt;
  23182. // Parse base64
  23183. var ciphertext = Base64.parse(openSSLStr);
  23184. // Shortcut
  23185. var ciphertextWords = ciphertext.words;
  23186. // Test for salt
  23187. if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {
  23188. // Extract salt
  23189. salt = WordArray.create(ciphertextWords.slice(2, 4));
  23190. // Remove salt from ciphertext
  23191. ciphertextWords.splice(0, 4);
  23192. ciphertext.sigBytes -= 16;
  23193. }
  23194. return CipherParams.create({
  23195. ciphertext: ciphertext,
  23196. salt: salt
  23197. });
  23198. }
  23199. };
  23200. /**
  23201. * A cipher wrapper that returns ciphertext as a serializable cipher params object.
  23202. */
  23203. var SerializableCipher = C_lib.SerializableCipher = Base.extend({
  23204. /**
  23205. * Configuration options.
  23206. *
  23207. * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
  23208. */
  23209. cfg: Base.extend({
  23210. format: OpenSSLFormatter
  23211. }),
  23212. /**
  23213. * Encrypts a message.
  23214. *
  23215. * @param {Cipher} cipher The cipher algorithm to use.
  23216. * @param {WordArray|string} message The message to encrypt.
  23217. * @param {WordArray} key The key.
  23218. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  23219. *
  23220. * @return {CipherParams} A cipher params object.
  23221. *
  23222. * @static
  23223. *
  23224. * @example
  23225. *
  23226. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
  23227. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
  23228. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  23229. */
  23230. encrypt: function encrypt(cipher, message, key, cfg) {
  23231. // Apply config defaults
  23232. cfg = this.cfg.extend(cfg);
  23233. // Encrypt
  23234. var encryptor = cipher.createEncryptor(key, cfg);
  23235. var ciphertext = encryptor.finalize(message);
  23236. // Shortcut
  23237. var cipherCfg = encryptor.cfg;
  23238. // Create and return serializable cipher params
  23239. return CipherParams.create({
  23240. ciphertext: ciphertext,
  23241. key: key,
  23242. iv: cipherCfg.iv,
  23243. algorithm: cipher,
  23244. mode: cipherCfg.mode,
  23245. padding: cipherCfg.padding,
  23246. blockSize: cipher.blockSize,
  23247. formatter: cfg.format
  23248. });
  23249. },
  23250. /**
  23251. * Decrypts serialized ciphertext.
  23252. *
  23253. * @param {Cipher} cipher The cipher algorithm to use.
  23254. * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
  23255. * @param {WordArray} key The key.
  23256. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  23257. *
  23258. * @return {WordArray} The plaintext.
  23259. *
  23260. * @static
  23261. *
  23262. * @example
  23263. *
  23264. * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  23265. * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  23266. */
  23267. decrypt: function decrypt(cipher, ciphertext, key, cfg) {
  23268. // Apply config defaults
  23269. cfg = this.cfg.extend(cfg);
  23270. // Convert string to CipherParams
  23271. ciphertext = this._parse(ciphertext, cfg.format);
  23272. // Decrypt
  23273. var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
  23274. return plaintext;
  23275. },
  23276. /**
  23277. * Converts serialized ciphertext to CipherParams,
  23278. * else assumed CipherParams already and returns ciphertext unchanged.
  23279. *
  23280. * @param {CipherParams|string} ciphertext The ciphertext.
  23281. * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
  23282. *
  23283. * @return {CipherParams} The unserialized ciphertext.
  23284. *
  23285. * @static
  23286. *
  23287. * @example
  23288. *
  23289. * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
  23290. */
  23291. _parse: function _parse(ciphertext, format) {
  23292. if (typeof ciphertext == 'string') {
  23293. return format.parse(ciphertext, this);
  23294. } else {
  23295. return ciphertext;
  23296. }
  23297. }
  23298. });
  23299. /**
  23300. * Key derivation function namespace.
  23301. */
  23302. var C_kdf = C.kdf = {};
  23303. /**
  23304. * OpenSSL key derivation function.
  23305. */
  23306. var OpenSSLKdf = C_kdf.OpenSSL = {
  23307. /**
  23308. * Derives a key and IV from a password.
  23309. *
  23310. * @param {string} password The password to derive from.
  23311. * @param {number} keySize The size in words of the key to generate.
  23312. * @param {number} ivSize The size in words of the IV to generate.
  23313. * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
  23314. *
  23315. * @return {CipherParams} A cipher params object with the key, IV, and salt.
  23316. *
  23317. * @static
  23318. *
  23319. * @example
  23320. *
  23321. * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
  23322. * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
  23323. */
  23324. execute: function execute(password, keySize, ivSize, salt) {
  23325. // Generate random salt
  23326. if (!salt) {
  23327. salt = WordArray.random(64 / 8);
  23328. }
  23329. // Derive key and IV
  23330. var key = EvpKDF.create({
  23331. keySize: keySize + ivSize
  23332. }).compute(password, salt);
  23333. // Separate key and IV
  23334. var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
  23335. key.sigBytes = keySize * 4;
  23336. // Return params
  23337. return CipherParams.create({
  23338. key: key,
  23339. iv: iv,
  23340. salt: salt
  23341. });
  23342. }
  23343. };
  23344. /**
  23345. * A serializable cipher wrapper that derives the key from a password,
  23346. * and returns ciphertext as a serializable cipher params object.
  23347. */
  23348. var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
  23349. /**
  23350. * Configuration options.
  23351. *
  23352. * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
  23353. */
  23354. cfg: SerializableCipher.cfg.extend({
  23355. kdf: OpenSSLKdf
  23356. }),
  23357. /**
  23358. * Encrypts a message using a password.
  23359. *
  23360. * @param {Cipher} cipher The cipher algorithm to use.
  23361. * @param {WordArray|string} message The message to encrypt.
  23362. * @param {string} password The password.
  23363. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  23364. *
  23365. * @return {CipherParams} A cipher params object.
  23366. *
  23367. * @static
  23368. *
  23369. * @example
  23370. *
  23371. * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
  23372. * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
  23373. */
  23374. encrypt: function encrypt(cipher, message, password, cfg) {
  23375. // Apply config defaults
  23376. cfg = this.cfg.extend(cfg);
  23377. // Derive key and other params
  23378. var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
  23379. // Add IV to config
  23380. cfg.iv = derivedParams.iv;
  23381. // Encrypt
  23382. var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
  23383. // Mix in derived params
  23384. ciphertext.mixIn(derivedParams);
  23385. return ciphertext;
  23386. },
  23387. /**
  23388. * Decrypts serialized ciphertext using a password.
  23389. *
  23390. * @param {Cipher} cipher The cipher algorithm to use.
  23391. * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
  23392. * @param {string} password The password.
  23393. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  23394. *
  23395. * @return {WordArray} The plaintext.
  23396. *
  23397. * @static
  23398. *
  23399. * @example
  23400. *
  23401. * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
  23402. * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
  23403. */
  23404. decrypt: function decrypt(cipher, ciphertext, password, cfg) {
  23405. // Apply config defaults
  23406. cfg = this.cfg.extend(cfg);
  23407. // Convert string to CipherParams
  23408. ciphertext = this._parse(ciphertext, cfg.format);
  23409. // Derive key and other params
  23410. var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
  23411. // Add IV to config
  23412. cfg.iv = derivedParams.iv;
  23413. // Decrypt
  23414. var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
  23415. return plaintext;
  23416. }
  23417. });
  23418. }();
  23419. });
  23420. /***/ }),
  23421. /* 328 */
  23422. /*!**********************************************************************!*\
  23423. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/mode-cfb.js ***!
  23424. \**********************************************************************/
  23425. /*! no static exports found */
  23426. /***/ (function(module, exports, __webpack_require__) {
  23427. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23428. ;
  23429. (function (root, factory, undef) {
  23430. if (( false ? undefined : _typeof(exports)) === "object") {
  23431. // CommonJS
  23432. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23433. } else if (true) {
  23434. // AMD
  23435. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23436. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23437. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23438. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23439. } else {}
  23440. })(this, function (CryptoJS) {
  23441. /**
  23442. * Cipher Feedback block mode.
  23443. */
  23444. CryptoJS.mode.CFB = function () {
  23445. var CFB = CryptoJS.lib.BlockCipherMode.extend();
  23446. CFB.Encryptor = CFB.extend({
  23447. processBlock: function processBlock(words, offset) {
  23448. // Shortcuts
  23449. var cipher = this._cipher;
  23450. var blockSize = cipher.blockSize;
  23451. generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
  23452. // Remember this block to use with next block
  23453. this._prevBlock = words.slice(offset, offset + blockSize);
  23454. }
  23455. });
  23456. CFB.Decryptor = CFB.extend({
  23457. processBlock: function processBlock(words, offset) {
  23458. // Shortcuts
  23459. var cipher = this._cipher;
  23460. var blockSize = cipher.blockSize;
  23461. // Remember this block to use with next block
  23462. var thisBlock = words.slice(offset, offset + blockSize);
  23463. generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
  23464. // This block becomes the previous block
  23465. this._prevBlock = thisBlock;
  23466. }
  23467. });
  23468. function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {
  23469. var keystream;
  23470. // Shortcut
  23471. var iv = this._iv;
  23472. // Generate keystream
  23473. if (iv) {
  23474. keystream = iv.slice(0);
  23475. // Remove IV for subsequent blocks
  23476. this._iv = undefined;
  23477. } else {
  23478. keystream = this._prevBlock;
  23479. }
  23480. cipher.encryptBlock(keystream, 0);
  23481. // Encrypt
  23482. for (var i = 0; i < blockSize; i++) {
  23483. words[offset + i] ^= keystream[i];
  23484. }
  23485. }
  23486. return CFB;
  23487. }();
  23488. return CryptoJS.mode.CFB;
  23489. });
  23490. /***/ }),
  23491. /* 329 */
  23492. /*!**********************************************************************!*\
  23493. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/mode-ctr.js ***!
  23494. \**********************************************************************/
  23495. /*! no static exports found */
  23496. /***/ (function(module, exports, __webpack_require__) {
  23497. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23498. ;
  23499. (function (root, factory, undef) {
  23500. if (( false ? undefined : _typeof(exports)) === "object") {
  23501. // CommonJS
  23502. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23503. } else if (true) {
  23504. // AMD
  23505. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23506. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23507. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23508. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23509. } else {}
  23510. })(this, function (CryptoJS) {
  23511. /**
  23512. * Counter block mode.
  23513. */
  23514. CryptoJS.mode.CTR = function () {
  23515. var CTR = CryptoJS.lib.BlockCipherMode.extend();
  23516. var Encryptor = CTR.Encryptor = CTR.extend({
  23517. processBlock: function processBlock(words, offset) {
  23518. // Shortcuts
  23519. var cipher = this._cipher;
  23520. var blockSize = cipher.blockSize;
  23521. var iv = this._iv;
  23522. var counter = this._counter;
  23523. // Generate keystream
  23524. if (iv) {
  23525. counter = this._counter = iv.slice(0);
  23526. // Remove IV for subsequent blocks
  23527. this._iv = undefined;
  23528. }
  23529. var keystream = counter.slice(0);
  23530. cipher.encryptBlock(keystream, 0);
  23531. // Increment counter
  23532. counter[blockSize - 1] = counter[blockSize - 1] + 1 | 0;
  23533. // Encrypt
  23534. for (var i = 0; i < blockSize; i++) {
  23535. words[offset + i] ^= keystream[i];
  23536. }
  23537. }
  23538. });
  23539. CTR.Decryptor = Encryptor;
  23540. return CTR;
  23541. }();
  23542. return CryptoJS.mode.CTR;
  23543. });
  23544. /***/ }),
  23545. /* 330 */
  23546. /*!******************************************************************************!*\
  23547. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/mode-ctr-gladman.js ***!
  23548. \******************************************************************************/
  23549. /*! no static exports found */
  23550. /***/ (function(module, exports, __webpack_require__) {
  23551. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23552. ;
  23553. (function (root, factory, undef) {
  23554. if (( false ? undefined : _typeof(exports)) === "object") {
  23555. // CommonJS
  23556. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23557. } else if (true) {
  23558. // AMD
  23559. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23560. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23561. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23562. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23563. } else {}
  23564. })(this, function (CryptoJS) {
  23565. /** @preserve
  23566. * Counter block mode compatible with Dr Brian Gladman fileenc.c
  23567. * derived from CryptoJS.mode.CTR
  23568. * Jan Hruby jhruby.web@gmail.com
  23569. */
  23570. CryptoJS.mode.CTRGladman = function () {
  23571. var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();
  23572. function incWord(word) {
  23573. if ((word >> 24 & 0xff) === 0xff) {
  23574. //overflow
  23575. var b1 = word >> 16 & 0xff;
  23576. var b2 = word >> 8 & 0xff;
  23577. var b3 = word & 0xff;
  23578. if (b1 === 0xff)
  23579. // overflow b1
  23580. {
  23581. b1 = 0;
  23582. if (b2 === 0xff) {
  23583. b2 = 0;
  23584. if (b3 === 0xff) {
  23585. b3 = 0;
  23586. } else {
  23587. ++b3;
  23588. }
  23589. } else {
  23590. ++b2;
  23591. }
  23592. } else {
  23593. ++b1;
  23594. }
  23595. word = 0;
  23596. word += b1 << 16;
  23597. word += b2 << 8;
  23598. word += b3;
  23599. } else {
  23600. word += 0x01 << 24;
  23601. }
  23602. return word;
  23603. }
  23604. function incCounter(counter) {
  23605. if ((counter[0] = incWord(counter[0])) === 0) {
  23606. // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
  23607. counter[1] = incWord(counter[1]);
  23608. }
  23609. return counter;
  23610. }
  23611. var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({
  23612. processBlock: function processBlock(words, offset) {
  23613. // Shortcuts
  23614. var cipher = this._cipher;
  23615. var blockSize = cipher.blockSize;
  23616. var iv = this._iv;
  23617. var counter = this._counter;
  23618. // Generate keystream
  23619. if (iv) {
  23620. counter = this._counter = iv.slice(0);
  23621. // Remove IV for subsequent blocks
  23622. this._iv = undefined;
  23623. }
  23624. incCounter(counter);
  23625. var keystream = counter.slice(0);
  23626. cipher.encryptBlock(keystream, 0);
  23627. // Encrypt
  23628. for (var i = 0; i < blockSize; i++) {
  23629. words[offset + i] ^= keystream[i];
  23630. }
  23631. }
  23632. });
  23633. CTRGladman.Decryptor = Encryptor;
  23634. return CTRGladman;
  23635. }();
  23636. return CryptoJS.mode.CTRGladman;
  23637. });
  23638. /***/ }),
  23639. /* 331 */
  23640. /*!**********************************************************************!*\
  23641. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/mode-ofb.js ***!
  23642. \**********************************************************************/
  23643. /*! no static exports found */
  23644. /***/ (function(module, exports, __webpack_require__) {
  23645. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23646. ;
  23647. (function (root, factory, undef) {
  23648. if (( false ? undefined : _typeof(exports)) === "object") {
  23649. // CommonJS
  23650. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23651. } else if (true) {
  23652. // AMD
  23653. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23654. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23655. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23656. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23657. } else {}
  23658. })(this, function (CryptoJS) {
  23659. /**
  23660. * Output Feedback block mode.
  23661. */
  23662. CryptoJS.mode.OFB = function () {
  23663. var OFB = CryptoJS.lib.BlockCipherMode.extend();
  23664. var Encryptor = OFB.Encryptor = OFB.extend({
  23665. processBlock: function processBlock(words, offset) {
  23666. // Shortcuts
  23667. var cipher = this._cipher;
  23668. var blockSize = cipher.blockSize;
  23669. var iv = this._iv;
  23670. var keystream = this._keystream;
  23671. // Generate keystream
  23672. if (iv) {
  23673. keystream = this._keystream = iv.slice(0);
  23674. // Remove IV for subsequent blocks
  23675. this._iv = undefined;
  23676. }
  23677. cipher.encryptBlock(keystream, 0);
  23678. // Encrypt
  23679. for (var i = 0; i < blockSize; i++) {
  23680. words[offset + i] ^= keystream[i];
  23681. }
  23682. }
  23683. });
  23684. OFB.Decryptor = Encryptor;
  23685. return OFB;
  23686. }();
  23687. return CryptoJS.mode.OFB;
  23688. });
  23689. /***/ }),
  23690. /* 332 */
  23691. /*!**********************************************************************!*\
  23692. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/mode-ecb.js ***!
  23693. \**********************************************************************/
  23694. /*! no static exports found */
  23695. /***/ (function(module, exports, __webpack_require__) {
  23696. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23697. ;
  23698. (function (root, factory, undef) {
  23699. if (( false ? undefined : _typeof(exports)) === "object") {
  23700. // CommonJS
  23701. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23702. } else if (true) {
  23703. // AMD
  23704. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23705. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23706. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23707. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23708. } else {}
  23709. })(this, function (CryptoJS) {
  23710. /**
  23711. * Electronic Codebook block mode.
  23712. */
  23713. CryptoJS.mode.ECB = function () {
  23714. var ECB = CryptoJS.lib.BlockCipherMode.extend();
  23715. ECB.Encryptor = ECB.extend({
  23716. processBlock: function processBlock(words, offset) {
  23717. this._cipher.encryptBlock(words, offset);
  23718. }
  23719. });
  23720. ECB.Decryptor = ECB.extend({
  23721. processBlock: function processBlock(words, offset) {
  23722. this._cipher.decryptBlock(words, offset);
  23723. }
  23724. });
  23725. return ECB;
  23726. }();
  23727. return CryptoJS.mode.ECB;
  23728. });
  23729. /***/ }),
  23730. /* 333 */
  23731. /*!**************************************************************************!*\
  23732. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/pad-ansix923.js ***!
  23733. \**************************************************************************/
  23734. /*! no static exports found */
  23735. /***/ (function(module, exports, __webpack_require__) {
  23736. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23737. ;
  23738. (function (root, factory, undef) {
  23739. if (( false ? undefined : _typeof(exports)) === "object") {
  23740. // CommonJS
  23741. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23742. } else if (true) {
  23743. // AMD
  23744. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23745. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23746. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23747. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23748. } else {}
  23749. })(this, function (CryptoJS) {
  23750. /**
  23751. * ANSI X.923 padding strategy.
  23752. */
  23753. CryptoJS.pad.AnsiX923 = {
  23754. pad: function pad(data, blockSize) {
  23755. // Shortcuts
  23756. var dataSigBytes = data.sigBytes;
  23757. var blockSizeBytes = blockSize * 4;
  23758. // Count padding bytes
  23759. var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;
  23760. // Compute last byte position
  23761. var lastBytePos = dataSigBytes + nPaddingBytes - 1;
  23762. // Pad
  23763. data.clamp();
  23764. data.words[lastBytePos >>> 2] |= nPaddingBytes << 24 - lastBytePos % 4 * 8;
  23765. data.sigBytes += nPaddingBytes;
  23766. },
  23767. unpad: function unpad(data) {
  23768. // Get number of padding bytes from last byte
  23769. var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff;
  23770. // Remove padding
  23771. data.sigBytes -= nPaddingBytes;
  23772. }
  23773. };
  23774. return CryptoJS.pad.Ansix923;
  23775. });
  23776. /***/ }),
  23777. /* 334 */
  23778. /*!**************************************************************************!*\
  23779. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/pad-iso10126.js ***!
  23780. \**************************************************************************/
  23781. /*! no static exports found */
  23782. /***/ (function(module, exports, __webpack_require__) {
  23783. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23784. ;
  23785. (function (root, factory, undef) {
  23786. if (( false ? undefined : _typeof(exports)) === "object") {
  23787. // CommonJS
  23788. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23789. } else if (true) {
  23790. // AMD
  23791. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23792. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23793. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23794. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23795. } else {}
  23796. })(this, function (CryptoJS) {
  23797. /**
  23798. * ISO 10126 padding strategy.
  23799. */
  23800. CryptoJS.pad.Iso10126 = {
  23801. pad: function pad(data, blockSize) {
  23802. // Shortcut
  23803. var blockSizeBytes = blockSize * 4;
  23804. // Count padding bytes
  23805. var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
  23806. // Pad
  23807. data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
  23808. },
  23809. unpad: function unpad(data) {
  23810. // Get number of padding bytes from last byte
  23811. var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff;
  23812. // Remove padding
  23813. data.sigBytes -= nPaddingBytes;
  23814. }
  23815. };
  23816. return CryptoJS.pad.Iso10126;
  23817. });
  23818. /***/ }),
  23819. /* 335 */
  23820. /*!**************************************************************************!*\
  23821. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/pad-iso97971.js ***!
  23822. \**************************************************************************/
  23823. /*! no static exports found */
  23824. /***/ (function(module, exports, __webpack_require__) {
  23825. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23826. ;
  23827. (function (root, factory, undef) {
  23828. if (( false ? undefined : _typeof(exports)) === "object") {
  23829. // CommonJS
  23830. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23831. } else if (true) {
  23832. // AMD
  23833. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23834. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23835. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23836. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23837. } else {}
  23838. })(this, function (CryptoJS) {
  23839. /**
  23840. * ISO/IEC 9797-1 Padding Method 2.
  23841. */
  23842. CryptoJS.pad.Iso97971 = {
  23843. pad: function pad(data, blockSize) {
  23844. // Add 0x80 byte
  23845. data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));
  23846. // Zero pad the rest
  23847. CryptoJS.pad.ZeroPadding.pad(data, blockSize);
  23848. },
  23849. unpad: function unpad(data) {
  23850. // Remove zero padding
  23851. CryptoJS.pad.ZeroPadding.unpad(data);
  23852. // Remove one more byte -- the 0x80 byte
  23853. data.sigBytes--;
  23854. }
  23855. };
  23856. return CryptoJS.pad.Iso97971;
  23857. });
  23858. /***/ }),
  23859. /* 336 */
  23860. /*!*****************************************************************************!*\
  23861. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/pad-zeropadding.js ***!
  23862. \*****************************************************************************/
  23863. /*! no static exports found */
  23864. /***/ (function(module, exports, __webpack_require__) {
  23865. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23866. ;
  23867. (function (root, factory, undef) {
  23868. if (( false ? undefined : _typeof(exports)) === "object") {
  23869. // CommonJS
  23870. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23871. } else if (true) {
  23872. // AMD
  23873. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23874. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23875. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23876. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23877. } else {}
  23878. })(this, function (CryptoJS) {
  23879. /**
  23880. * Zero padding strategy.
  23881. */
  23882. CryptoJS.pad.ZeroPadding = {
  23883. pad: function pad(data, blockSize) {
  23884. // Shortcut
  23885. var blockSizeBytes = blockSize * 4;
  23886. // Pad
  23887. data.clamp();
  23888. data.sigBytes += blockSizeBytes - (data.sigBytes % blockSizeBytes || blockSizeBytes);
  23889. },
  23890. unpad: function unpad(data) {
  23891. // Shortcut
  23892. var dataWords = data.words;
  23893. // Unpad
  23894. var i = data.sigBytes - 1;
  23895. for (var i = data.sigBytes - 1; i >= 0; i--) {
  23896. if (dataWords[i >>> 2] >>> 24 - i % 4 * 8 & 0xff) {
  23897. data.sigBytes = i + 1;
  23898. break;
  23899. }
  23900. }
  23901. }
  23902. };
  23903. return CryptoJS.pad.ZeroPadding;
  23904. });
  23905. /***/ }),
  23906. /* 337 */
  23907. /*!***************************************************************************!*\
  23908. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/pad-nopadding.js ***!
  23909. \***************************************************************************/
  23910. /*! no static exports found */
  23911. /***/ (function(module, exports, __webpack_require__) {
  23912. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23913. ;
  23914. (function (root, factory, undef) {
  23915. if (( false ? undefined : _typeof(exports)) === "object") {
  23916. // CommonJS
  23917. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23918. } else if (true) {
  23919. // AMD
  23920. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23921. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23922. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23923. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23924. } else {}
  23925. })(this, function (CryptoJS) {
  23926. /**
  23927. * A noop padding strategy.
  23928. */
  23929. CryptoJS.pad.NoPadding = {
  23930. pad: function pad() {},
  23931. unpad: function unpad() {}
  23932. };
  23933. return CryptoJS.pad.NoPadding;
  23934. });
  23935. /***/ }),
  23936. /* 338 */
  23937. /*!************************************************************************!*\
  23938. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/format-hex.js ***!
  23939. \************************************************************************/
  23940. /*! no static exports found */
  23941. /***/ (function(module, exports, __webpack_require__) {
  23942. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23943. ;
  23944. (function (root, factory, undef) {
  23945. if (( false ? undefined : _typeof(exports)) === "object") {
  23946. // CommonJS
  23947. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327));
  23948. } else if (true) {
  23949. // AMD
  23950. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23951. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23952. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23953. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23954. } else {}
  23955. })(this, function (CryptoJS) {
  23956. (function (undefined) {
  23957. // Shortcuts
  23958. var C = CryptoJS;
  23959. var C_lib = C.lib;
  23960. var CipherParams = C_lib.CipherParams;
  23961. var C_enc = C.enc;
  23962. var Hex = C_enc.Hex;
  23963. var C_format = C.format;
  23964. var HexFormatter = C_format.Hex = {
  23965. /**
  23966. * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
  23967. *
  23968. * @param {CipherParams} cipherParams The cipher params object.
  23969. *
  23970. * @return {string} The hexadecimally encoded string.
  23971. *
  23972. * @static
  23973. *
  23974. * @example
  23975. *
  23976. * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
  23977. */
  23978. stringify: function stringify(cipherParams) {
  23979. return cipherParams.ciphertext.toString(Hex);
  23980. },
  23981. /**
  23982. * Converts a hexadecimally encoded ciphertext string to a cipher params object.
  23983. *
  23984. * @param {string} input The hexadecimally encoded string.
  23985. *
  23986. * @return {CipherParams} The cipher params object.
  23987. *
  23988. * @static
  23989. *
  23990. * @example
  23991. *
  23992. * var cipherParams = CryptoJS.format.Hex.parse(hexString);
  23993. */
  23994. parse: function parse(input) {
  23995. var ciphertext = Hex.parse(input);
  23996. return CipherParams.create({
  23997. ciphertext: ciphertext
  23998. });
  23999. }
  24000. };
  24001. })();
  24002. return CryptoJS.format.Hex;
  24003. });
  24004. /***/ }),
  24005. /* 339 */
  24006. /*!*****************************************************************!*\
  24007. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/aes.js ***!
  24008. \*****************************************************************/
  24009. /*! no static exports found */
  24010. /***/ (function(module, exports, __webpack_require__) {
  24011. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24012. ;
  24013. (function (root, factory, undef) {
  24014. if (( false ? undefined : _typeof(exports)) === "object") {
  24015. // CommonJS
  24016. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327));
  24017. } else if (true) {
  24018. // AMD
  24019. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24020. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24021. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24022. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  24023. } else {}
  24024. })(this, function (CryptoJS) {
  24025. (function () {
  24026. // Shortcuts
  24027. var C = CryptoJS;
  24028. var C_lib = C.lib;
  24029. var BlockCipher = C_lib.BlockCipher;
  24030. var C_algo = C.algo;
  24031. // Lookup tables
  24032. var SBOX = [];
  24033. var INV_SBOX = [];
  24034. var SUB_MIX_0 = [];
  24035. var SUB_MIX_1 = [];
  24036. var SUB_MIX_2 = [];
  24037. var SUB_MIX_3 = [];
  24038. var INV_SUB_MIX_0 = [];
  24039. var INV_SUB_MIX_1 = [];
  24040. var INV_SUB_MIX_2 = [];
  24041. var INV_SUB_MIX_3 = [];
  24042. // Compute lookup tables
  24043. (function () {
  24044. // Compute double table
  24045. var d = [];
  24046. for (var i = 0; i < 256; i++) {
  24047. if (i < 128) {
  24048. d[i] = i << 1;
  24049. } else {
  24050. d[i] = i << 1 ^ 0x11b;
  24051. }
  24052. }
  24053. // Walk GF(2^8)
  24054. var x = 0;
  24055. var xi = 0;
  24056. for (var i = 0; i < 256; i++) {
  24057. // Compute sbox
  24058. var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4;
  24059. sx = sx >>> 8 ^ sx & 0xff ^ 0x63;
  24060. SBOX[x] = sx;
  24061. INV_SBOX[sx] = x;
  24062. // Compute multiplication
  24063. var x2 = d[x];
  24064. var x4 = d[x2];
  24065. var x8 = d[x4];
  24066. // Compute sub bytes, mix columns tables
  24067. var t = d[sx] * 0x101 ^ sx * 0x1010100;
  24068. SUB_MIX_0[x] = t << 24 | t >>> 8;
  24069. SUB_MIX_1[x] = t << 16 | t >>> 16;
  24070. SUB_MIX_2[x] = t << 8 | t >>> 24;
  24071. SUB_MIX_3[x] = t;
  24072. // Compute inv sub bytes, inv mix columns tables
  24073. var t = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100;
  24074. INV_SUB_MIX_0[sx] = t << 24 | t >>> 8;
  24075. INV_SUB_MIX_1[sx] = t << 16 | t >>> 16;
  24076. INV_SUB_MIX_2[sx] = t << 8 | t >>> 24;
  24077. INV_SUB_MIX_3[sx] = t;
  24078. // Compute next counter
  24079. if (!x) {
  24080. x = xi = 1;
  24081. } else {
  24082. x = x2 ^ d[d[d[x8 ^ x2]]];
  24083. xi ^= d[d[xi]];
  24084. }
  24085. }
  24086. })();
  24087. // Precomputed Rcon lookup
  24088. var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
  24089. /**
  24090. * AES block cipher algorithm.
  24091. */
  24092. var AES = C_algo.AES = BlockCipher.extend({
  24093. _doReset: function _doReset() {
  24094. var t;
  24095. // Skip reset of nRounds has been set before and key did not change
  24096. if (this._nRounds && this._keyPriorReset === this._key) {
  24097. return;
  24098. }
  24099. // Shortcuts
  24100. var key = this._keyPriorReset = this._key;
  24101. var keyWords = key.words;
  24102. var keySize = key.sigBytes / 4;
  24103. // Compute number of rounds
  24104. var nRounds = this._nRounds = keySize + 6;
  24105. // Compute number of key schedule rows
  24106. var ksRows = (nRounds + 1) * 4;
  24107. // Compute key schedule
  24108. var keySchedule = this._keySchedule = [];
  24109. for (var ksRow = 0; ksRow < ksRows; ksRow++) {
  24110. if (ksRow < keySize) {
  24111. keySchedule[ksRow] = keyWords[ksRow];
  24112. } else {
  24113. t = keySchedule[ksRow - 1];
  24114. if (!(ksRow % keySize)) {
  24115. // Rot word
  24116. t = t << 8 | t >>> 24;
  24117. // Sub word
  24118. t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff];
  24119. // Mix Rcon
  24120. t ^= RCON[ksRow / keySize | 0] << 24;
  24121. } else if (keySize > 6 && ksRow % keySize == 4) {
  24122. // Sub word
  24123. t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff];
  24124. }
  24125. keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
  24126. }
  24127. }
  24128. // Compute inv key schedule
  24129. var invKeySchedule = this._invKeySchedule = [];
  24130. for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {
  24131. var ksRow = ksRows - invKsRow;
  24132. if (invKsRow % 4) {
  24133. var t = keySchedule[ksRow];
  24134. } else {
  24135. var t = keySchedule[ksRow - 4];
  24136. }
  24137. if (invKsRow < 4 || ksRow <= 4) {
  24138. invKeySchedule[invKsRow] = t;
  24139. } else {
  24140. invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[t >>> 16 & 0xff]] ^ INV_SUB_MIX_2[SBOX[t >>> 8 & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
  24141. }
  24142. }
  24143. },
  24144. encryptBlock: function encryptBlock(M, offset) {
  24145. this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
  24146. },
  24147. decryptBlock: function decryptBlock(M, offset) {
  24148. // Swap 2nd and 4th rows
  24149. var t = M[offset + 1];
  24150. M[offset + 1] = M[offset + 3];
  24151. M[offset + 3] = t;
  24152. this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);
  24153. // Inv swap 2nd and 4th rows
  24154. var t = M[offset + 1];
  24155. M[offset + 1] = M[offset + 3];
  24156. M[offset + 3] = t;
  24157. },
  24158. _doCryptBlock: function _doCryptBlock(M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
  24159. // Shortcut
  24160. var nRounds = this._nRounds;
  24161. // Get input, add round key
  24162. var s0 = M[offset] ^ keySchedule[0];
  24163. var s1 = M[offset + 1] ^ keySchedule[1];
  24164. var s2 = M[offset + 2] ^ keySchedule[2];
  24165. var s3 = M[offset + 3] ^ keySchedule[3];
  24166. // Key schedule row counter
  24167. var ksRow = 4;
  24168. // Rounds
  24169. for (var round = 1; round < nRounds; round++) {
  24170. // Shift rows, sub bytes, mix columns, add round key
  24171. var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[s1 >>> 16 & 0xff] ^ SUB_MIX_2[s2 >>> 8 & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];
  24172. var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[s2 >>> 16 & 0xff] ^ SUB_MIX_2[s3 >>> 8 & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];
  24173. var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[s3 >>> 16 & 0xff] ^ SUB_MIX_2[s0 >>> 8 & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];
  24174. var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[s0 >>> 16 & 0xff] ^ SUB_MIX_2[s1 >>> 8 & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];
  24175. // Update state
  24176. s0 = t0;
  24177. s1 = t1;
  24178. s2 = t2;
  24179. s3 = t3;
  24180. }
  24181. // Shift rows, sub bytes, add round key
  24182. var t0 = (SBOX[s0 >>> 24] << 24 | SBOX[s1 >>> 16 & 0xff] << 16 | SBOX[s2 >>> 8 & 0xff] << 8 | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];
  24183. var t1 = (SBOX[s1 >>> 24] << 24 | SBOX[s2 >>> 16 & 0xff] << 16 | SBOX[s3 >>> 8 & 0xff] << 8 | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];
  24184. var t2 = (SBOX[s2 >>> 24] << 24 | SBOX[s3 >>> 16 & 0xff] << 16 | SBOX[s0 >>> 8 & 0xff] << 8 | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];
  24185. var t3 = (SBOX[s3 >>> 24] << 24 | SBOX[s0 >>> 16 & 0xff] << 16 | SBOX[s1 >>> 8 & 0xff] << 8 | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];
  24186. // Set output
  24187. M[offset] = t0;
  24188. M[offset + 1] = t1;
  24189. M[offset + 2] = t2;
  24190. M[offset + 3] = t3;
  24191. },
  24192. keySize: 256 / 32
  24193. });
  24194. /**
  24195. * Shortcut functions to the cipher's object interface.
  24196. *
  24197. * @example
  24198. *
  24199. * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
  24200. * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);
  24201. */
  24202. C.AES = BlockCipher._createHelper(AES);
  24203. })();
  24204. return CryptoJS.AES;
  24205. });
  24206. /***/ }),
  24207. /* 340 */
  24208. /*!***********************************************************************!*\
  24209. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/tripledes.js ***!
  24210. \***********************************************************************/
  24211. /*! no static exports found */
  24212. /***/ (function(module, exports, __webpack_require__) {
  24213. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24214. ;
  24215. (function (root, factory, undef) {
  24216. if (( false ? undefined : _typeof(exports)) === "object") {
  24217. // CommonJS
  24218. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327));
  24219. } else if (true) {
  24220. // AMD
  24221. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24222. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24223. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24224. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  24225. } else {}
  24226. })(this, function (CryptoJS) {
  24227. (function () {
  24228. // Shortcuts
  24229. var C = CryptoJS;
  24230. var C_lib = C.lib;
  24231. var WordArray = C_lib.WordArray;
  24232. var BlockCipher = C_lib.BlockCipher;
  24233. var C_algo = C.algo;
  24234. // Permuted Choice 1 constants
  24235. var PC1 = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4];
  24236. // Permuted Choice 2 constants
  24237. var PC2 = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32];
  24238. // Cumulative bit shift constants
  24239. var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
  24240. // SBOXes and round permutation constants
  24241. var SBOX_P = [{
  24242. 0x0: 0x808200,
  24243. 0x10000000: 0x8000,
  24244. 0x20000000: 0x808002,
  24245. 0x30000000: 0x2,
  24246. 0x40000000: 0x200,
  24247. 0x50000000: 0x808202,
  24248. 0x60000000: 0x800202,
  24249. 0x70000000: 0x800000,
  24250. 0x80000000: 0x202,
  24251. 0x90000000: 0x800200,
  24252. 0xa0000000: 0x8200,
  24253. 0xb0000000: 0x808000,
  24254. 0xc0000000: 0x8002,
  24255. 0xd0000000: 0x800002,
  24256. 0xe0000000: 0x0,
  24257. 0xf0000000: 0x8202,
  24258. 0x8000000: 0x0,
  24259. 0x18000000: 0x808202,
  24260. 0x28000000: 0x8202,
  24261. 0x38000000: 0x8000,
  24262. 0x48000000: 0x808200,
  24263. 0x58000000: 0x200,
  24264. 0x68000000: 0x808002,
  24265. 0x78000000: 0x2,
  24266. 0x88000000: 0x800200,
  24267. 0x98000000: 0x8200,
  24268. 0xa8000000: 0x808000,
  24269. 0xb8000000: 0x800202,
  24270. 0xc8000000: 0x800002,
  24271. 0xd8000000: 0x8002,
  24272. 0xe8000000: 0x202,
  24273. 0xf8000000: 0x800000,
  24274. 0x1: 0x8000,
  24275. 0x10000001: 0x2,
  24276. 0x20000001: 0x808200,
  24277. 0x30000001: 0x800000,
  24278. 0x40000001: 0x808002,
  24279. 0x50000001: 0x8200,
  24280. 0x60000001: 0x200,
  24281. 0x70000001: 0x800202,
  24282. 0x80000001: 0x808202,
  24283. 0x90000001: 0x808000,
  24284. 0xa0000001: 0x800002,
  24285. 0xb0000001: 0x8202,
  24286. 0xc0000001: 0x202,
  24287. 0xd0000001: 0x800200,
  24288. 0xe0000001: 0x8002,
  24289. 0xf0000001: 0x0,
  24290. 0x8000001: 0x808202,
  24291. 0x18000001: 0x808000,
  24292. 0x28000001: 0x800000,
  24293. 0x38000001: 0x200,
  24294. 0x48000001: 0x8000,
  24295. 0x58000001: 0x800002,
  24296. 0x68000001: 0x2,
  24297. 0x78000001: 0x8202,
  24298. 0x88000001: 0x8002,
  24299. 0x98000001: 0x800202,
  24300. 0xa8000001: 0x202,
  24301. 0xb8000001: 0x808200,
  24302. 0xc8000001: 0x800200,
  24303. 0xd8000001: 0x0,
  24304. 0xe8000001: 0x8200,
  24305. 0xf8000001: 0x808002
  24306. }, {
  24307. 0x0: 0x40084010,
  24308. 0x1000000: 0x4000,
  24309. 0x2000000: 0x80000,
  24310. 0x3000000: 0x40080010,
  24311. 0x4000000: 0x40000010,
  24312. 0x5000000: 0x40084000,
  24313. 0x6000000: 0x40004000,
  24314. 0x7000000: 0x10,
  24315. 0x8000000: 0x84000,
  24316. 0x9000000: 0x40004010,
  24317. 0xa000000: 0x40000000,
  24318. 0xb000000: 0x84010,
  24319. 0xc000000: 0x80010,
  24320. 0xd000000: 0x0,
  24321. 0xe000000: 0x4010,
  24322. 0xf000000: 0x40080000,
  24323. 0x800000: 0x40004000,
  24324. 0x1800000: 0x84010,
  24325. 0x2800000: 0x10,
  24326. 0x3800000: 0x40004010,
  24327. 0x4800000: 0x40084010,
  24328. 0x5800000: 0x40000000,
  24329. 0x6800000: 0x80000,
  24330. 0x7800000: 0x40080010,
  24331. 0x8800000: 0x80010,
  24332. 0x9800000: 0x0,
  24333. 0xa800000: 0x4000,
  24334. 0xb800000: 0x40080000,
  24335. 0xc800000: 0x40000010,
  24336. 0xd800000: 0x84000,
  24337. 0xe800000: 0x40084000,
  24338. 0xf800000: 0x4010,
  24339. 0x10000000: 0x0,
  24340. 0x11000000: 0x40080010,
  24341. 0x12000000: 0x40004010,
  24342. 0x13000000: 0x40084000,
  24343. 0x14000000: 0x40080000,
  24344. 0x15000000: 0x10,
  24345. 0x16000000: 0x84010,
  24346. 0x17000000: 0x4000,
  24347. 0x18000000: 0x4010,
  24348. 0x19000000: 0x80000,
  24349. 0x1a000000: 0x80010,
  24350. 0x1b000000: 0x40000010,
  24351. 0x1c000000: 0x84000,
  24352. 0x1d000000: 0x40004000,
  24353. 0x1e000000: 0x40000000,
  24354. 0x1f000000: 0x40084010,
  24355. 0x10800000: 0x84010,
  24356. 0x11800000: 0x80000,
  24357. 0x12800000: 0x40080000,
  24358. 0x13800000: 0x4000,
  24359. 0x14800000: 0x40004000,
  24360. 0x15800000: 0x40084010,
  24361. 0x16800000: 0x10,
  24362. 0x17800000: 0x40000000,
  24363. 0x18800000: 0x40084000,
  24364. 0x19800000: 0x40000010,
  24365. 0x1a800000: 0x40004010,
  24366. 0x1b800000: 0x80010,
  24367. 0x1c800000: 0x0,
  24368. 0x1d800000: 0x4010,
  24369. 0x1e800000: 0x40080010,
  24370. 0x1f800000: 0x84000
  24371. }, {
  24372. 0x0: 0x104,
  24373. 0x100000: 0x0,
  24374. 0x200000: 0x4000100,
  24375. 0x300000: 0x10104,
  24376. 0x400000: 0x10004,
  24377. 0x500000: 0x4000004,
  24378. 0x600000: 0x4010104,
  24379. 0x700000: 0x4010000,
  24380. 0x800000: 0x4000000,
  24381. 0x900000: 0x4010100,
  24382. 0xa00000: 0x10100,
  24383. 0xb00000: 0x4010004,
  24384. 0xc00000: 0x4000104,
  24385. 0xd00000: 0x10000,
  24386. 0xe00000: 0x4,
  24387. 0xf00000: 0x100,
  24388. 0x80000: 0x4010100,
  24389. 0x180000: 0x4010004,
  24390. 0x280000: 0x0,
  24391. 0x380000: 0x4000100,
  24392. 0x480000: 0x4000004,
  24393. 0x580000: 0x10000,
  24394. 0x680000: 0x10004,
  24395. 0x780000: 0x104,
  24396. 0x880000: 0x4,
  24397. 0x980000: 0x100,
  24398. 0xa80000: 0x4010000,
  24399. 0xb80000: 0x10104,
  24400. 0xc80000: 0x10100,
  24401. 0xd80000: 0x4000104,
  24402. 0xe80000: 0x4010104,
  24403. 0xf80000: 0x4000000,
  24404. 0x1000000: 0x4010100,
  24405. 0x1100000: 0x10004,
  24406. 0x1200000: 0x10000,
  24407. 0x1300000: 0x4000100,
  24408. 0x1400000: 0x100,
  24409. 0x1500000: 0x4010104,
  24410. 0x1600000: 0x4000004,
  24411. 0x1700000: 0x0,
  24412. 0x1800000: 0x4000104,
  24413. 0x1900000: 0x4000000,
  24414. 0x1a00000: 0x4,
  24415. 0x1b00000: 0x10100,
  24416. 0x1c00000: 0x4010000,
  24417. 0x1d00000: 0x104,
  24418. 0x1e00000: 0x10104,
  24419. 0x1f00000: 0x4010004,
  24420. 0x1080000: 0x4000000,
  24421. 0x1180000: 0x104,
  24422. 0x1280000: 0x4010100,
  24423. 0x1380000: 0x0,
  24424. 0x1480000: 0x10004,
  24425. 0x1580000: 0x4000100,
  24426. 0x1680000: 0x100,
  24427. 0x1780000: 0x4010004,
  24428. 0x1880000: 0x10000,
  24429. 0x1980000: 0x4010104,
  24430. 0x1a80000: 0x10104,
  24431. 0x1b80000: 0x4000004,
  24432. 0x1c80000: 0x4000104,
  24433. 0x1d80000: 0x4010000,
  24434. 0x1e80000: 0x4,
  24435. 0x1f80000: 0x10100
  24436. }, {
  24437. 0x0: 0x80401000,
  24438. 0x10000: 0x80001040,
  24439. 0x20000: 0x401040,
  24440. 0x30000: 0x80400000,
  24441. 0x40000: 0x0,
  24442. 0x50000: 0x401000,
  24443. 0x60000: 0x80000040,
  24444. 0x70000: 0x400040,
  24445. 0x80000: 0x80000000,
  24446. 0x90000: 0x400000,
  24447. 0xa0000: 0x40,
  24448. 0xb0000: 0x80001000,
  24449. 0xc0000: 0x80400040,
  24450. 0xd0000: 0x1040,
  24451. 0xe0000: 0x1000,
  24452. 0xf0000: 0x80401040,
  24453. 0x8000: 0x80001040,
  24454. 0x18000: 0x40,
  24455. 0x28000: 0x80400040,
  24456. 0x38000: 0x80001000,
  24457. 0x48000: 0x401000,
  24458. 0x58000: 0x80401040,
  24459. 0x68000: 0x0,
  24460. 0x78000: 0x80400000,
  24461. 0x88000: 0x1000,
  24462. 0x98000: 0x80401000,
  24463. 0xa8000: 0x400000,
  24464. 0xb8000: 0x1040,
  24465. 0xc8000: 0x80000000,
  24466. 0xd8000: 0x400040,
  24467. 0xe8000: 0x401040,
  24468. 0xf8000: 0x80000040,
  24469. 0x100000: 0x400040,
  24470. 0x110000: 0x401000,
  24471. 0x120000: 0x80000040,
  24472. 0x130000: 0x0,
  24473. 0x140000: 0x1040,
  24474. 0x150000: 0x80400040,
  24475. 0x160000: 0x80401000,
  24476. 0x170000: 0x80001040,
  24477. 0x180000: 0x80401040,
  24478. 0x190000: 0x80000000,
  24479. 0x1a0000: 0x80400000,
  24480. 0x1b0000: 0x401040,
  24481. 0x1c0000: 0x80001000,
  24482. 0x1d0000: 0x400000,
  24483. 0x1e0000: 0x40,
  24484. 0x1f0000: 0x1000,
  24485. 0x108000: 0x80400000,
  24486. 0x118000: 0x80401040,
  24487. 0x128000: 0x0,
  24488. 0x138000: 0x401000,
  24489. 0x148000: 0x400040,
  24490. 0x158000: 0x80000000,
  24491. 0x168000: 0x80001040,
  24492. 0x178000: 0x40,
  24493. 0x188000: 0x80000040,
  24494. 0x198000: 0x1000,
  24495. 0x1a8000: 0x80001000,
  24496. 0x1b8000: 0x80400040,
  24497. 0x1c8000: 0x1040,
  24498. 0x1d8000: 0x80401000,
  24499. 0x1e8000: 0x400000,
  24500. 0x1f8000: 0x401040
  24501. }, {
  24502. 0x0: 0x80,
  24503. 0x1000: 0x1040000,
  24504. 0x2000: 0x40000,
  24505. 0x3000: 0x20000000,
  24506. 0x4000: 0x20040080,
  24507. 0x5000: 0x1000080,
  24508. 0x6000: 0x21000080,
  24509. 0x7000: 0x40080,
  24510. 0x8000: 0x1000000,
  24511. 0x9000: 0x20040000,
  24512. 0xa000: 0x20000080,
  24513. 0xb000: 0x21040080,
  24514. 0xc000: 0x21040000,
  24515. 0xd000: 0x0,
  24516. 0xe000: 0x1040080,
  24517. 0xf000: 0x21000000,
  24518. 0x800: 0x1040080,
  24519. 0x1800: 0x21000080,
  24520. 0x2800: 0x80,
  24521. 0x3800: 0x1040000,
  24522. 0x4800: 0x40000,
  24523. 0x5800: 0x20040080,
  24524. 0x6800: 0x21040000,
  24525. 0x7800: 0x20000000,
  24526. 0x8800: 0x20040000,
  24527. 0x9800: 0x0,
  24528. 0xa800: 0x21040080,
  24529. 0xb800: 0x1000080,
  24530. 0xc800: 0x20000080,
  24531. 0xd800: 0x21000000,
  24532. 0xe800: 0x1000000,
  24533. 0xf800: 0x40080,
  24534. 0x10000: 0x40000,
  24535. 0x11000: 0x80,
  24536. 0x12000: 0x20000000,
  24537. 0x13000: 0x21000080,
  24538. 0x14000: 0x1000080,
  24539. 0x15000: 0x21040000,
  24540. 0x16000: 0x20040080,
  24541. 0x17000: 0x1000000,
  24542. 0x18000: 0x21040080,
  24543. 0x19000: 0x21000000,
  24544. 0x1a000: 0x1040000,
  24545. 0x1b000: 0x20040000,
  24546. 0x1c000: 0x40080,
  24547. 0x1d000: 0x20000080,
  24548. 0x1e000: 0x0,
  24549. 0x1f000: 0x1040080,
  24550. 0x10800: 0x21000080,
  24551. 0x11800: 0x1000000,
  24552. 0x12800: 0x1040000,
  24553. 0x13800: 0x20040080,
  24554. 0x14800: 0x20000000,
  24555. 0x15800: 0x1040080,
  24556. 0x16800: 0x80,
  24557. 0x17800: 0x21040000,
  24558. 0x18800: 0x40080,
  24559. 0x19800: 0x21040080,
  24560. 0x1a800: 0x0,
  24561. 0x1b800: 0x21000000,
  24562. 0x1c800: 0x1000080,
  24563. 0x1d800: 0x40000,
  24564. 0x1e800: 0x20040000,
  24565. 0x1f800: 0x20000080
  24566. }, {
  24567. 0x0: 0x10000008,
  24568. 0x100: 0x2000,
  24569. 0x200: 0x10200000,
  24570. 0x300: 0x10202008,
  24571. 0x400: 0x10002000,
  24572. 0x500: 0x200000,
  24573. 0x600: 0x200008,
  24574. 0x700: 0x10000000,
  24575. 0x800: 0x0,
  24576. 0x900: 0x10002008,
  24577. 0xa00: 0x202000,
  24578. 0xb00: 0x8,
  24579. 0xc00: 0x10200008,
  24580. 0xd00: 0x202008,
  24581. 0xe00: 0x2008,
  24582. 0xf00: 0x10202000,
  24583. 0x80: 0x10200000,
  24584. 0x180: 0x10202008,
  24585. 0x280: 0x8,
  24586. 0x380: 0x200000,
  24587. 0x480: 0x202008,
  24588. 0x580: 0x10000008,
  24589. 0x680: 0x10002000,
  24590. 0x780: 0x2008,
  24591. 0x880: 0x200008,
  24592. 0x980: 0x2000,
  24593. 0xa80: 0x10002008,
  24594. 0xb80: 0x10200008,
  24595. 0xc80: 0x0,
  24596. 0xd80: 0x10202000,
  24597. 0xe80: 0x202000,
  24598. 0xf80: 0x10000000,
  24599. 0x1000: 0x10002000,
  24600. 0x1100: 0x10200008,
  24601. 0x1200: 0x10202008,
  24602. 0x1300: 0x2008,
  24603. 0x1400: 0x200000,
  24604. 0x1500: 0x10000000,
  24605. 0x1600: 0x10000008,
  24606. 0x1700: 0x202000,
  24607. 0x1800: 0x202008,
  24608. 0x1900: 0x0,
  24609. 0x1a00: 0x8,
  24610. 0x1b00: 0x10200000,
  24611. 0x1c00: 0x2000,
  24612. 0x1d00: 0x10002008,
  24613. 0x1e00: 0x10202000,
  24614. 0x1f00: 0x200008,
  24615. 0x1080: 0x8,
  24616. 0x1180: 0x202000,
  24617. 0x1280: 0x200000,
  24618. 0x1380: 0x10000008,
  24619. 0x1480: 0x10002000,
  24620. 0x1580: 0x2008,
  24621. 0x1680: 0x10202008,
  24622. 0x1780: 0x10200000,
  24623. 0x1880: 0x10202000,
  24624. 0x1980: 0x10200008,
  24625. 0x1a80: 0x2000,
  24626. 0x1b80: 0x202008,
  24627. 0x1c80: 0x200008,
  24628. 0x1d80: 0x0,
  24629. 0x1e80: 0x10000000,
  24630. 0x1f80: 0x10002008
  24631. }, {
  24632. 0x0: 0x100000,
  24633. 0x10: 0x2000401,
  24634. 0x20: 0x400,
  24635. 0x30: 0x100401,
  24636. 0x40: 0x2100401,
  24637. 0x50: 0x0,
  24638. 0x60: 0x1,
  24639. 0x70: 0x2100001,
  24640. 0x80: 0x2000400,
  24641. 0x90: 0x100001,
  24642. 0xa0: 0x2000001,
  24643. 0xb0: 0x2100400,
  24644. 0xc0: 0x2100000,
  24645. 0xd0: 0x401,
  24646. 0xe0: 0x100400,
  24647. 0xf0: 0x2000000,
  24648. 0x8: 0x2100001,
  24649. 0x18: 0x0,
  24650. 0x28: 0x2000401,
  24651. 0x38: 0x2100400,
  24652. 0x48: 0x100000,
  24653. 0x58: 0x2000001,
  24654. 0x68: 0x2000000,
  24655. 0x78: 0x401,
  24656. 0x88: 0x100401,
  24657. 0x98: 0x2000400,
  24658. 0xa8: 0x2100000,
  24659. 0xb8: 0x100001,
  24660. 0xc8: 0x400,
  24661. 0xd8: 0x2100401,
  24662. 0xe8: 0x1,
  24663. 0xf8: 0x100400,
  24664. 0x100: 0x2000000,
  24665. 0x110: 0x100000,
  24666. 0x120: 0x2000401,
  24667. 0x130: 0x2100001,
  24668. 0x140: 0x100001,
  24669. 0x150: 0x2000400,
  24670. 0x160: 0x2100400,
  24671. 0x170: 0x100401,
  24672. 0x180: 0x401,
  24673. 0x190: 0x2100401,
  24674. 0x1a0: 0x100400,
  24675. 0x1b0: 0x1,
  24676. 0x1c0: 0x0,
  24677. 0x1d0: 0x2100000,
  24678. 0x1e0: 0x2000001,
  24679. 0x1f0: 0x400,
  24680. 0x108: 0x100400,
  24681. 0x118: 0x2000401,
  24682. 0x128: 0x2100001,
  24683. 0x138: 0x1,
  24684. 0x148: 0x2000000,
  24685. 0x158: 0x100000,
  24686. 0x168: 0x401,
  24687. 0x178: 0x2100400,
  24688. 0x188: 0x2000001,
  24689. 0x198: 0x2100000,
  24690. 0x1a8: 0x0,
  24691. 0x1b8: 0x2100401,
  24692. 0x1c8: 0x100401,
  24693. 0x1d8: 0x400,
  24694. 0x1e8: 0x2000400,
  24695. 0x1f8: 0x100001
  24696. }, {
  24697. 0x0: 0x8000820,
  24698. 0x1: 0x20000,
  24699. 0x2: 0x8000000,
  24700. 0x3: 0x20,
  24701. 0x4: 0x20020,
  24702. 0x5: 0x8020820,
  24703. 0x6: 0x8020800,
  24704. 0x7: 0x800,
  24705. 0x8: 0x8020000,
  24706. 0x9: 0x8000800,
  24707. 0xa: 0x20800,
  24708. 0xb: 0x8020020,
  24709. 0xc: 0x820,
  24710. 0xd: 0x0,
  24711. 0xe: 0x8000020,
  24712. 0xf: 0x20820,
  24713. 0x80000000: 0x800,
  24714. 0x80000001: 0x8020820,
  24715. 0x80000002: 0x8000820,
  24716. 0x80000003: 0x8000000,
  24717. 0x80000004: 0x8020000,
  24718. 0x80000005: 0x20800,
  24719. 0x80000006: 0x20820,
  24720. 0x80000007: 0x20,
  24721. 0x80000008: 0x8000020,
  24722. 0x80000009: 0x820,
  24723. 0x8000000a: 0x20020,
  24724. 0x8000000b: 0x8020800,
  24725. 0x8000000c: 0x0,
  24726. 0x8000000d: 0x8020020,
  24727. 0x8000000e: 0x8000800,
  24728. 0x8000000f: 0x20000,
  24729. 0x10: 0x20820,
  24730. 0x11: 0x8020800,
  24731. 0x12: 0x20,
  24732. 0x13: 0x800,
  24733. 0x14: 0x8000800,
  24734. 0x15: 0x8000020,
  24735. 0x16: 0x8020020,
  24736. 0x17: 0x20000,
  24737. 0x18: 0x0,
  24738. 0x19: 0x20020,
  24739. 0x1a: 0x8020000,
  24740. 0x1b: 0x8000820,
  24741. 0x1c: 0x8020820,
  24742. 0x1d: 0x20800,
  24743. 0x1e: 0x820,
  24744. 0x1f: 0x8000000,
  24745. 0x80000010: 0x20000,
  24746. 0x80000011: 0x800,
  24747. 0x80000012: 0x8020020,
  24748. 0x80000013: 0x20820,
  24749. 0x80000014: 0x20,
  24750. 0x80000015: 0x8020000,
  24751. 0x80000016: 0x8000000,
  24752. 0x80000017: 0x8000820,
  24753. 0x80000018: 0x8020820,
  24754. 0x80000019: 0x8000020,
  24755. 0x8000001a: 0x8000800,
  24756. 0x8000001b: 0x0,
  24757. 0x8000001c: 0x20800,
  24758. 0x8000001d: 0x820,
  24759. 0x8000001e: 0x20020,
  24760. 0x8000001f: 0x8020800
  24761. }];
  24762. // Masks that select the SBOX input
  24763. var SBOX_MASK = [0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000, 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f];
  24764. /**
  24765. * DES block cipher algorithm.
  24766. */
  24767. var DES = C_algo.DES = BlockCipher.extend({
  24768. _doReset: function _doReset() {
  24769. // Shortcuts
  24770. var key = this._key;
  24771. var keyWords = key.words;
  24772. // Select 56 bits according to PC1
  24773. var keyBits = [];
  24774. for (var i = 0; i < 56; i++) {
  24775. var keyBitPos = PC1[i] - 1;
  24776. keyBits[i] = keyWords[keyBitPos >>> 5] >>> 31 - keyBitPos % 32 & 1;
  24777. }
  24778. // Assemble 16 subkeys
  24779. var subKeys = this._subKeys = [];
  24780. for (var nSubKey = 0; nSubKey < 16; nSubKey++) {
  24781. // Create subkey
  24782. var subKey = subKeys[nSubKey] = [];
  24783. // Shortcut
  24784. var bitShift = BIT_SHIFTS[nSubKey];
  24785. // Select 48 bits according to PC2
  24786. for (var i = 0; i < 24; i++) {
  24787. // Select from the left 28 key bits
  24788. subKey[i / 6 | 0] |= keyBits[(PC2[i] - 1 + bitShift) % 28] << 31 - i % 6;
  24789. // Select from the right 28 key bits
  24790. subKey[4 + (i / 6 | 0)] |= keyBits[28 + (PC2[i + 24] - 1 + bitShift) % 28] << 31 - i % 6;
  24791. }
  24792. // Since each subkey is applied to an expanded 32-bit input,
  24793. // the subkey can be broken into 8 values scaled to 32-bits,
  24794. // which allows the key to be used without expansion
  24795. subKey[0] = subKey[0] << 1 | subKey[0] >>> 31;
  24796. for (var i = 1; i < 7; i++) {
  24797. subKey[i] = subKey[i] >>> (i - 1) * 4 + 3;
  24798. }
  24799. subKey[7] = subKey[7] << 5 | subKey[7] >>> 27;
  24800. }
  24801. // Compute inverse subkeys
  24802. var invSubKeys = this._invSubKeys = [];
  24803. for (var i = 0; i < 16; i++) {
  24804. invSubKeys[i] = subKeys[15 - i];
  24805. }
  24806. },
  24807. encryptBlock: function encryptBlock(M, offset) {
  24808. this._doCryptBlock(M, offset, this._subKeys);
  24809. },
  24810. decryptBlock: function decryptBlock(M, offset) {
  24811. this._doCryptBlock(M, offset, this._invSubKeys);
  24812. },
  24813. _doCryptBlock: function _doCryptBlock(M, offset, subKeys) {
  24814. // Get input
  24815. this._lBlock = M[offset];
  24816. this._rBlock = M[offset + 1];
  24817. // Initial permutation
  24818. exchangeLR.call(this, 4, 0x0f0f0f0f);
  24819. exchangeLR.call(this, 16, 0x0000ffff);
  24820. exchangeRL.call(this, 2, 0x33333333);
  24821. exchangeRL.call(this, 8, 0x00ff00ff);
  24822. exchangeLR.call(this, 1, 0x55555555);
  24823. // Rounds
  24824. for (var round = 0; round < 16; round++) {
  24825. // Shortcuts
  24826. var subKey = subKeys[round];
  24827. var lBlock = this._lBlock;
  24828. var rBlock = this._rBlock;
  24829. // Feistel function
  24830. var f = 0;
  24831. for (var i = 0; i < 8; i++) {
  24832. f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];
  24833. }
  24834. this._lBlock = rBlock;
  24835. this._rBlock = lBlock ^ f;
  24836. }
  24837. // Undo swap from last round
  24838. var t = this._lBlock;
  24839. this._lBlock = this._rBlock;
  24840. this._rBlock = t;
  24841. // Final permutation
  24842. exchangeLR.call(this, 1, 0x55555555);
  24843. exchangeRL.call(this, 8, 0x00ff00ff);
  24844. exchangeRL.call(this, 2, 0x33333333);
  24845. exchangeLR.call(this, 16, 0x0000ffff);
  24846. exchangeLR.call(this, 4, 0x0f0f0f0f);
  24847. // Set output
  24848. M[offset] = this._lBlock;
  24849. M[offset + 1] = this._rBlock;
  24850. },
  24851. keySize: 64 / 32,
  24852. ivSize: 64 / 32,
  24853. blockSize: 64 / 32
  24854. });
  24855. // Swap bits across the left and right words
  24856. function exchangeLR(offset, mask) {
  24857. var t = (this._lBlock >>> offset ^ this._rBlock) & mask;
  24858. this._rBlock ^= t;
  24859. this._lBlock ^= t << offset;
  24860. }
  24861. function exchangeRL(offset, mask) {
  24862. var t = (this._rBlock >>> offset ^ this._lBlock) & mask;
  24863. this._lBlock ^= t;
  24864. this._rBlock ^= t << offset;
  24865. }
  24866. /**
  24867. * Shortcut functions to the cipher's object interface.
  24868. *
  24869. * @example
  24870. *
  24871. * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
  24872. * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);
  24873. */
  24874. C.DES = BlockCipher._createHelper(DES);
  24875. /**
  24876. * Triple-DES block cipher algorithm.
  24877. */
  24878. var TripleDES = C_algo.TripleDES = BlockCipher.extend({
  24879. _doReset: function _doReset() {
  24880. // Shortcuts
  24881. var key = this._key;
  24882. var keyWords = key.words;
  24883. // Make sure the key length is valid (64, 128 or >= 192 bit)
  24884. if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {
  24885. throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');
  24886. }
  24887. // Extend the key according to the keying options defined in 3DES standard
  24888. var key1 = keyWords.slice(0, 2);
  24889. var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);
  24890. var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6);
  24891. // Create DES instances
  24892. this._des1 = DES.createEncryptor(WordArray.create(key1));
  24893. this._des2 = DES.createEncryptor(WordArray.create(key2));
  24894. this._des3 = DES.createEncryptor(WordArray.create(key3));
  24895. },
  24896. encryptBlock: function encryptBlock(M, offset) {
  24897. this._des1.encryptBlock(M, offset);
  24898. this._des2.decryptBlock(M, offset);
  24899. this._des3.encryptBlock(M, offset);
  24900. },
  24901. decryptBlock: function decryptBlock(M, offset) {
  24902. this._des3.decryptBlock(M, offset);
  24903. this._des2.encryptBlock(M, offset);
  24904. this._des1.decryptBlock(M, offset);
  24905. },
  24906. keySize: 192 / 32,
  24907. ivSize: 64 / 32,
  24908. blockSize: 64 / 32
  24909. });
  24910. /**
  24911. * Shortcut functions to the cipher's object interface.
  24912. *
  24913. * @example
  24914. *
  24915. * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
  24916. * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
  24917. */
  24918. C.TripleDES = BlockCipher._createHelper(TripleDES);
  24919. })();
  24920. return CryptoJS.TripleDES;
  24921. });
  24922. /***/ }),
  24923. /* 341 */
  24924. /*!*****************************************************************!*\
  24925. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/rc4.js ***!
  24926. \*****************************************************************/
  24927. /*! no static exports found */
  24928. /***/ (function(module, exports, __webpack_require__) {
  24929. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24930. ;
  24931. (function (root, factory, undef) {
  24932. if (( false ? undefined : _typeof(exports)) === "object") {
  24933. // CommonJS
  24934. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327));
  24935. } else if (true) {
  24936. // AMD
  24937. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24938. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24939. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24940. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  24941. } else {}
  24942. })(this, function (CryptoJS) {
  24943. (function () {
  24944. // Shortcuts
  24945. var C = CryptoJS;
  24946. var C_lib = C.lib;
  24947. var StreamCipher = C_lib.StreamCipher;
  24948. var C_algo = C.algo;
  24949. /**
  24950. * RC4 stream cipher algorithm.
  24951. */
  24952. var RC4 = C_algo.RC4 = StreamCipher.extend({
  24953. _doReset: function _doReset() {
  24954. // Shortcuts
  24955. var key = this._key;
  24956. var keyWords = key.words;
  24957. var keySigBytes = key.sigBytes;
  24958. // Init sbox
  24959. var S = this._S = [];
  24960. for (var i = 0; i < 256; i++) {
  24961. S[i] = i;
  24962. }
  24963. // Key setup
  24964. for (var i = 0, j = 0; i < 256; i++) {
  24965. var keyByteIndex = i % keySigBytes;
  24966. var keyByte = keyWords[keyByteIndex >>> 2] >>> 24 - keyByteIndex % 4 * 8 & 0xff;
  24967. j = (j + S[i] + keyByte) % 256;
  24968. // Swap
  24969. var t = S[i];
  24970. S[i] = S[j];
  24971. S[j] = t;
  24972. }
  24973. // Counters
  24974. this._i = this._j = 0;
  24975. },
  24976. _doProcessBlock: function _doProcessBlock(M, offset) {
  24977. M[offset] ^= generateKeystreamWord.call(this);
  24978. },
  24979. keySize: 256 / 32,
  24980. ivSize: 0
  24981. });
  24982. function generateKeystreamWord() {
  24983. // Shortcuts
  24984. var S = this._S;
  24985. var i = this._i;
  24986. var j = this._j;
  24987. // Generate keystream word
  24988. var keystreamWord = 0;
  24989. for (var n = 0; n < 4; n++) {
  24990. i = (i + 1) % 256;
  24991. j = (j + S[i]) % 256;
  24992. // Swap
  24993. var t = S[i];
  24994. S[i] = S[j];
  24995. S[j] = t;
  24996. keystreamWord |= S[(S[i] + S[j]) % 256] << 24 - n * 8;
  24997. }
  24998. // Update counters
  24999. this._i = i;
  25000. this._j = j;
  25001. return keystreamWord;
  25002. }
  25003. /**
  25004. * Shortcut functions to the cipher's object interface.
  25005. *
  25006. * @example
  25007. *
  25008. * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
  25009. * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
  25010. */
  25011. C.RC4 = StreamCipher._createHelper(RC4);
  25012. /**
  25013. * Modified RC4 stream cipher algorithm.
  25014. */
  25015. var RC4Drop = C_algo.RC4Drop = RC4.extend({
  25016. /**
  25017. * Configuration options.
  25018. *
  25019. * @property {number} drop The number of keystream words to drop. Default 192
  25020. */
  25021. cfg: RC4.cfg.extend({
  25022. drop: 192
  25023. }),
  25024. _doReset: function _doReset() {
  25025. RC4._doReset.call(this);
  25026. // Drop
  25027. for (var i = this.cfg.drop; i > 0; i--) {
  25028. generateKeystreamWord.call(this);
  25029. }
  25030. }
  25031. });
  25032. /**
  25033. * Shortcut functions to the cipher's object interface.
  25034. *
  25035. * @example
  25036. *
  25037. * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
  25038. * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
  25039. */
  25040. C.RC4Drop = StreamCipher._createHelper(RC4Drop);
  25041. })();
  25042. return CryptoJS.RC4;
  25043. });
  25044. /***/ }),
  25045. /* 342 */
  25046. /*!********************************************************************!*\
  25047. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/rabbit.js ***!
  25048. \********************************************************************/
  25049. /*! no static exports found */
  25050. /***/ (function(module, exports, __webpack_require__) {
  25051. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25052. ;
  25053. (function (root, factory, undef) {
  25054. if (( false ? undefined : _typeof(exports)) === "object") {
  25055. // CommonJS
  25056. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327));
  25057. } else if (true) {
  25058. // AMD
  25059. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25060. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25061. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25062. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  25063. } else {}
  25064. })(this, function (CryptoJS) {
  25065. (function () {
  25066. // Shortcuts
  25067. var C = CryptoJS;
  25068. var C_lib = C.lib;
  25069. var StreamCipher = C_lib.StreamCipher;
  25070. var C_algo = C.algo;
  25071. // Reusable objects
  25072. var S = [];
  25073. var C_ = [];
  25074. var G = [];
  25075. /**
  25076. * Rabbit stream cipher algorithm
  25077. */
  25078. var Rabbit = C_algo.Rabbit = StreamCipher.extend({
  25079. _doReset: function _doReset() {
  25080. // Shortcuts
  25081. var K = this._key.words;
  25082. var iv = this.cfg.iv;
  25083. // Swap endian
  25084. for (var i = 0; i < 4; i++) {
  25085. K[i] = (K[i] << 8 | K[i] >>> 24) & 0x00ff00ff | (K[i] << 24 | K[i] >>> 8) & 0xff00ff00;
  25086. }
  25087. // Generate initial state values
  25088. var X = this._X = [K[0], K[3] << 16 | K[2] >>> 16, K[1], K[0] << 16 | K[3] >>> 16, K[2], K[1] << 16 | K[0] >>> 16, K[3], K[2] << 16 | K[1] >>> 16];
  25089. // Generate initial counter values
  25090. var C = this._C = [K[2] << 16 | K[2] >>> 16, K[0] & 0xffff0000 | K[1] & 0x0000ffff, K[3] << 16 | K[3] >>> 16, K[1] & 0xffff0000 | K[2] & 0x0000ffff, K[0] << 16 | K[0] >>> 16, K[2] & 0xffff0000 | K[3] & 0x0000ffff, K[1] << 16 | K[1] >>> 16, K[3] & 0xffff0000 | K[0] & 0x0000ffff];
  25091. // Carry bit
  25092. this._b = 0;
  25093. // Iterate the system four times
  25094. for (var i = 0; i < 4; i++) {
  25095. nextState.call(this);
  25096. }
  25097. // Modify the counters
  25098. for (var i = 0; i < 8; i++) {
  25099. C[i] ^= X[i + 4 & 7];
  25100. }
  25101. // IV setup
  25102. if (iv) {
  25103. // Shortcuts
  25104. var IV = iv.words;
  25105. var IV_0 = IV[0];
  25106. var IV_1 = IV[1];
  25107. // Generate four subvectors
  25108. var i0 = (IV_0 << 8 | IV_0 >>> 24) & 0x00ff00ff | (IV_0 << 24 | IV_0 >>> 8) & 0xff00ff00;
  25109. var i2 = (IV_1 << 8 | IV_1 >>> 24) & 0x00ff00ff | (IV_1 << 24 | IV_1 >>> 8) & 0xff00ff00;
  25110. var i1 = i0 >>> 16 | i2 & 0xffff0000;
  25111. var i3 = i2 << 16 | i0 & 0x0000ffff;
  25112. // Modify counter values
  25113. C[0] ^= i0;
  25114. C[1] ^= i1;
  25115. C[2] ^= i2;
  25116. C[3] ^= i3;
  25117. C[4] ^= i0;
  25118. C[5] ^= i1;
  25119. C[6] ^= i2;
  25120. C[7] ^= i3;
  25121. // Iterate the system four times
  25122. for (var i = 0; i < 4; i++) {
  25123. nextState.call(this);
  25124. }
  25125. }
  25126. },
  25127. _doProcessBlock: function _doProcessBlock(M, offset) {
  25128. // Shortcut
  25129. var X = this._X;
  25130. // Iterate the system
  25131. nextState.call(this);
  25132. // Generate four keystream words
  25133. S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16;
  25134. S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16;
  25135. S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16;
  25136. S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16;
  25137. for (var i = 0; i < 4; i++) {
  25138. // Swap endian
  25139. S[i] = (S[i] << 8 | S[i] >>> 24) & 0x00ff00ff | (S[i] << 24 | S[i] >>> 8) & 0xff00ff00;
  25140. // Encrypt
  25141. M[offset + i] ^= S[i];
  25142. }
  25143. },
  25144. blockSize: 128 / 32,
  25145. ivSize: 64 / 32
  25146. });
  25147. function nextState() {
  25148. // Shortcuts
  25149. var X = this._X;
  25150. var C = this._C;
  25151. // Save old counter values
  25152. for (var i = 0; i < 8; i++) {
  25153. C_[i] = C[i];
  25154. }
  25155. // Calculate new counter values
  25156. C[0] = C[0] + 0x4d34d34d + this._b | 0;
  25157. C[1] = C[1] + 0xd34d34d3 + (C[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0;
  25158. C[2] = C[2] + 0x34d34d34 + (C[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0;
  25159. C[3] = C[3] + 0x4d34d34d + (C[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0;
  25160. C[4] = C[4] + 0xd34d34d3 + (C[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0;
  25161. C[5] = C[5] + 0x34d34d34 + (C[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0;
  25162. C[6] = C[6] + 0x4d34d34d + (C[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0;
  25163. C[7] = C[7] + 0xd34d34d3 + (C[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0;
  25164. this._b = C[7] >>> 0 < C_[7] >>> 0 ? 1 : 0;
  25165. // Calculate the g-values
  25166. for (var i = 0; i < 8; i++) {
  25167. var gx = X[i] + C[i];
  25168. // Construct high and low argument for squaring
  25169. var ga = gx & 0xffff;
  25170. var gb = gx >>> 16;
  25171. // Calculate high and low result of squaring
  25172. var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb;
  25173. var gl = ((gx & 0xffff0000) * gx | 0) + ((gx & 0x0000ffff) * gx | 0);
  25174. // High XOR low
  25175. G[i] = gh ^ gl;
  25176. }
  25177. // Calculate new state values
  25178. X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0;
  25179. X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0;
  25180. X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0;
  25181. X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0;
  25182. X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0;
  25183. X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0;
  25184. X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0;
  25185. X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0;
  25186. }
  25187. /**
  25188. * Shortcut functions to the cipher's object interface.
  25189. *
  25190. * @example
  25191. *
  25192. * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
  25193. * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);
  25194. */
  25195. C.Rabbit = StreamCipher._createHelper(Rabbit);
  25196. })();
  25197. return CryptoJS.Rabbit;
  25198. });
  25199. /***/ }),
  25200. /* 343 */
  25201. /*!***************************************************************************!*\
  25202. !*** F:/项目/HBuilderProjects/test/node_modules/crypto-js/rabbit-legacy.js ***!
  25203. \***************************************************************************/
  25204. /*! no static exports found */
  25205. /***/ (function(module, exports, __webpack_require__) {
  25206. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25207. ;
  25208. (function (root, factory, undef) {
  25209. if (( false ? undefined : _typeof(exports)) === "object") {
  25210. // CommonJS
  25211. module.exports = exports = factory(__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327));
  25212. } else if (true) {
  25213. // AMD
  25214. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./core */ 309), __webpack_require__(/*! ./enc-base64 */ 314), __webpack_require__(/*! ./md5 */ 316), __webpack_require__(/*! ./evpkdf */ 326), __webpack_require__(/*! ./cipher-core */ 327)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25215. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25216. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25217. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  25218. } else {}
  25219. })(this, function (CryptoJS) {
  25220. (function () {
  25221. // Shortcuts
  25222. var C = CryptoJS;
  25223. var C_lib = C.lib;
  25224. var StreamCipher = C_lib.StreamCipher;
  25225. var C_algo = C.algo;
  25226. // Reusable objects
  25227. var S = [];
  25228. var C_ = [];
  25229. var G = [];
  25230. /**
  25231. * Rabbit stream cipher algorithm.
  25232. *
  25233. * This is a legacy version that neglected to convert the key to little-endian.
  25234. * This error doesn't affect the cipher's security,
  25235. * but it does affect its compatibility with other implementations.
  25236. */
  25237. var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({
  25238. _doReset: function _doReset() {
  25239. // Shortcuts
  25240. var K = this._key.words;
  25241. var iv = this.cfg.iv;
  25242. // Generate initial state values
  25243. var X = this._X = [K[0], K[3] << 16 | K[2] >>> 16, K[1], K[0] << 16 | K[3] >>> 16, K[2], K[1] << 16 | K[0] >>> 16, K[3], K[2] << 16 | K[1] >>> 16];
  25244. // Generate initial counter values
  25245. var C = this._C = [K[2] << 16 | K[2] >>> 16, K[0] & 0xffff0000 | K[1] & 0x0000ffff, K[3] << 16 | K[3] >>> 16, K[1] & 0xffff0000 | K[2] & 0x0000ffff, K[0] << 16 | K[0] >>> 16, K[2] & 0xffff0000 | K[3] & 0x0000ffff, K[1] << 16 | K[1] >>> 16, K[3] & 0xffff0000 | K[0] & 0x0000ffff];
  25246. // Carry bit
  25247. this._b = 0;
  25248. // Iterate the system four times
  25249. for (var i = 0; i < 4; i++) {
  25250. nextState.call(this);
  25251. }
  25252. // Modify the counters
  25253. for (var i = 0; i < 8; i++) {
  25254. C[i] ^= X[i + 4 & 7];
  25255. }
  25256. // IV setup
  25257. if (iv) {
  25258. // Shortcuts
  25259. var IV = iv.words;
  25260. var IV_0 = IV[0];
  25261. var IV_1 = IV[1];
  25262. // Generate four subvectors
  25263. var i0 = (IV_0 << 8 | IV_0 >>> 24) & 0x00ff00ff | (IV_0 << 24 | IV_0 >>> 8) & 0xff00ff00;
  25264. var i2 = (IV_1 << 8 | IV_1 >>> 24) & 0x00ff00ff | (IV_1 << 24 | IV_1 >>> 8) & 0xff00ff00;
  25265. var i1 = i0 >>> 16 | i2 & 0xffff0000;
  25266. var i3 = i2 << 16 | i0 & 0x0000ffff;
  25267. // Modify counter values
  25268. C[0] ^= i0;
  25269. C[1] ^= i1;
  25270. C[2] ^= i2;
  25271. C[3] ^= i3;
  25272. C[4] ^= i0;
  25273. C[5] ^= i1;
  25274. C[6] ^= i2;
  25275. C[7] ^= i3;
  25276. // Iterate the system four times
  25277. for (var i = 0; i < 4; i++) {
  25278. nextState.call(this);
  25279. }
  25280. }
  25281. },
  25282. _doProcessBlock: function _doProcessBlock(M, offset) {
  25283. // Shortcut
  25284. var X = this._X;
  25285. // Iterate the system
  25286. nextState.call(this);
  25287. // Generate four keystream words
  25288. S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16;
  25289. S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16;
  25290. S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16;
  25291. S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16;
  25292. for (var i = 0; i < 4; i++) {
  25293. // Swap endian
  25294. S[i] = (S[i] << 8 | S[i] >>> 24) & 0x00ff00ff | (S[i] << 24 | S[i] >>> 8) & 0xff00ff00;
  25295. // Encrypt
  25296. M[offset + i] ^= S[i];
  25297. }
  25298. },
  25299. blockSize: 128 / 32,
  25300. ivSize: 64 / 32
  25301. });
  25302. function nextState() {
  25303. // Shortcuts
  25304. var X = this._X;
  25305. var C = this._C;
  25306. // Save old counter values
  25307. for (var i = 0; i < 8; i++) {
  25308. C_[i] = C[i];
  25309. }
  25310. // Calculate new counter values
  25311. C[0] = C[0] + 0x4d34d34d + this._b | 0;
  25312. C[1] = C[1] + 0xd34d34d3 + (C[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0;
  25313. C[2] = C[2] + 0x34d34d34 + (C[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0;
  25314. C[3] = C[3] + 0x4d34d34d + (C[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0;
  25315. C[4] = C[4] + 0xd34d34d3 + (C[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0;
  25316. C[5] = C[5] + 0x34d34d34 + (C[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0;
  25317. C[6] = C[6] + 0x4d34d34d + (C[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0;
  25318. C[7] = C[7] + 0xd34d34d3 + (C[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0;
  25319. this._b = C[7] >>> 0 < C_[7] >>> 0 ? 1 : 0;
  25320. // Calculate the g-values
  25321. for (var i = 0; i < 8; i++) {
  25322. var gx = X[i] + C[i];
  25323. // Construct high and low argument for squaring
  25324. var ga = gx & 0xffff;
  25325. var gb = gx >>> 16;
  25326. // Calculate high and low result of squaring
  25327. var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb;
  25328. var gl = ((gx & 0xffff0000) * gx | 0) + ((gx & 0x0000ffff) * gx | 0);
  25329. // High XOR low
  25330. G[i] = gh ^ gl;
  25331. }
  25332. // Calculate new state values
  25333. X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0;
  25334. X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0;
  25335. X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0;
  25336. X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0;
  25337. X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0;
  25338. X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0;
  25339. X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0;
  25340. X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0;
  25341. }
  25342. /**
  25343. * Shortcut functions to the cipher's object interface.
  25344. *
  25345. * @example
  25346. *
  25347. * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
  25348. * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
  25349. */
  25350. C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);
  25351. })();
  25352. return CryptoJS.RabbitLegacy;
  25353. });
  25354. /***/ }),
  25355. /* 344 */
  25356. /*!*********************************************************************!*\
  25357. !*** F:/项目/HBuilderProjects/test/node_modules/js-base64/base64.mjs ***!
  25358. \*********************************************************************/
  25359. /*! no static exports found */
  25360. /***/ (function(module, exports, __webpack_require__) {
  25361. "use strict";
  25362. /* WEBPACK VAR INJECTION */(function(Buffer) {
  25363. Object.defineProperty(exports, "__esModule", {
  25364. value: true
  25365. });
  25366. exports.version = exports.utob = exports.toUint8Array = exports.toBase64 = exports.isValid = exports.fromUint8Array = exports.fromBase64 = exports.extendUint8Array = exports.extendString = exports.extendBuiltins = exports.encodeURL = exports.encodeURI = exports.encode = exports.decode = exports.btou = exports.btoaPolyfill = exports.btoa = exports.atobPolyfill = exports.atob = exports.VERSION = exports.Base64 = void 0;
  25367. /**
  25368. * base64.ts
  25369. *
  25370. * Licensed under the BSD 3-Clause License.
  25371. * http://opensource.org/licenses/BSD-3-Clause
  25372. *
  25373. * References:
  25374. * http://en.wikipedia.org/wiki/Base64
  25375. *
  25376. * @author Dan Kogai (https://github.com/dankogai)
  25377. */
  25378. var version = '3.7.5';
  25379. /**
  25380. * @deprecated use lowercase `version`.
  25381. */
  25382. exports.version = version;
  25383. var VERSION = version;
  25384. exports.VERSION = VERSION;
  25385. var _hasatob = typeof atob === 'function';
  25386. var _hasbtoa = typeof btoa === 'function';
  25387. var _hasBuffer = typeof Buffer === 'function';
  25388. var _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
  25389. var _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
  25390. var b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  25391. var b64chs = Array.prototype.slice.call(b64ch);
  25392. var b64tab = function (a) {
  25393. var tab = {};
  25394. a.forEach(function (c, i) {
  25395. return tab[c] = i;
  25396. });
  25397. return tab;
  25398. }(b64chs);
  25399. var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
  25400. var _fromCC = String.fromCharCode.bind(String);
  25401. var _U8Afrom = typeof Uint8Array.from === 'function' ? Uint8Array.from.bind(Uint8Array) : function (it) {
  25402. return new Uint8Array(Array.prototype.slice.call(it, 0));
  25403. };
  25404. var _mkUriSafe = function _mkUriSafe(src) {
  25405. return src.replace(/=/g, '').replace(/[+\/]/g, function (m0) {
  25406. return m0 == '+' ? '-' : '_';
  25407. });
  25408. };
  25409. var _tidyB64 = function _tidyB64(s) {
  25410. return s.replace(/[^A-Za-z0-9\+\/]/g, '');
  25411. };
  25412. /**
  25413. * polyfill version of `btoa`
  25414. */
  25415. var btoaPolyfill = function btoaPolyfill(bin) {
  25416. // console.log('polyfilled');
  25417. var u32,
  25418. c0,
  25419. c1,
  25420. c2,
  25421. asc = '';
  25422. var pad = bin.length % 3;
  25423. for (var i = 0; i < bin.length;) {
  25424. if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255) throw new TypeError('invalid character found');
  25425. u32 = c0 << 16 | c1 << 8 | c2;
  25426. asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
  25427. }
  25428. return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
  25429. };
  25430. /**
  25431. * does what `window.btoa` of web browsers do.
  25432. * @param {String} bin binary string
  25433. * @returns {string} Base64-encoded string
  25434. */
  25435. exports.btoaPolyfill = btoaPolyfill;
  25436. var _btoa = _hasbtoa ? function (bin) {
  25437. return btoa(bin);
  25438. } : _hasBuffer ? function (bin) {
  25439. return Buffer.from(bin, 'binary').toString('base64');
  25440. } : btoaPolyfill;
  25441. exports.btoa = _btoa;
  25442. var _fromUint8Array = _hasBuffer ? function (u8a) {
  25443. return Buffer.from(u8a).toString('base64');
  25444. } : function (u8a) {
  25445. // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
  25446. var maxargs = 0x1000;
  25447. var strs = [];
  25448. for (var i = 0, l = u8a.length; i < l; i += maxargs) {
  25449. strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
  25450. }
  25451. return _btoa(strs.join(''));
  25452. };
  25453. /**
  25454. * converts a Uint8Array to a Base64 string.
  25455. * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
  25456. * @returns {string} Base64 string
  25457. */
  25458. var fromUint8Array = function fromUint8Array(u8a) {
  25459. var urlsafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  25460. return urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
  25461. };
  25462. // This trick is found broken https://github.com/dankogai/js-base64/issues/130
  25463. // const utob = (src: string) => unescape(encodeURIComponent(src));
  25464. // reverting good old fationed regexp
  25465. exports.fromUint8Array = fromUint8Array;
  25466. var cb_utob = function cb_utob(c) {
  25467. if (c.length < 2) {
  25468. var cc = c.charCodeAt(0);
  25469. return cc < 0x80 ? c : cc < 0x800 ? _fromCC(0xc0 | cc >>> 6) + _fromCC(0x80 | cc & 0x3f) : _fromCC(0xe0 | cc >>> 12 & 0x0f) + _fromCC(0x80 | cc >>> 6 & 0x3f) + _fromCC(0x80 | cc & 0x3f);
  25470. } else {
  25471. var cc = 0x10000 + (c.charCodeAt(0) - 0xD800) * 0x400 + (c.charCodeAt(1) - 0xDC00);
  25472. return _fromCC(0xf0 | cc >>> 18 & 0x07) + _fromCC(0x80 | cc >>> 12 & 0x3f) + _fromCC(0x80 | cc >>> 6 & 0x3f) + _fromCC(0x80 | cc & 0x3f);
  25473. }
  25474. };
  25475. var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
  25476. /**
  25477. * @deprecated should have been internal use only.
  25478. * @param {string} src UTF-8 string
  25479. * @returns {string} UTF-16 string
  25480. */
  25481. var utob = function utob(u) {
  25482. return u.replace(re_utob, cb_utob);
  25483. };
  25484. //
  25485. exports.utob = utob;
  25486. var _encode = _hasBuffer ? function (s) {
  25487. return Buffer.from(s, 'utf8').toString('base64');
  25488. } : _TE ? function (s) {
  25489. return _fromUint8Array(_TE.encode(s));
  25490. } : function (s) {
  25491. return _btoa(utob(s));
  25492. };
  25493. /**
  25494. * converts a UTF-8-encoded string to a Base64 string.
  25495. * @param {boolean} [urlsafe] if `true` make the result URL-safe
  25496. * @returns {string} Base64 string
  25497. */
  25498. var encode = function encode(src) {
  25499. var urlsafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  25500. return urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
  25501. };
  25502. /**
  25503. * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
  25504. * @returns {string} Base64 string
  25505. */
  25506. exports.encode = exports.toBase64 = encode;
  25507. var encodeURI = function encodeURI(src) {
  25508. return encode(src, true);
  25509. };
  25510. // This trick is found broken https://github.com/dankogai/js-base64/issues/130
  25511. // const btou = (src: string) => decodeURIComponent(escape(src));
  25512. // reverting good old fationed regexp
  25513. exports.encodeURL = exports.encodeURI = encodeURI;
  25514. var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
  25515. var cb_btou = function cb_btou(cccc) {
  25516. switch (cccc.length) {
  25517. case 4:
  25518. var cp = (0x07 & cccc.charCodeAt(0)) << 18 | (0x3f & cccc.charCodeAt(1)) << 12 | (0x3f & cccc.charCodeAt(2)) << 6 | 0x3f & cccc.charCodeAt(3),
  25519. offset = cp - 0x10000;
  25520. return _fromCC((offset >>> 10) + 0xD800) + _fromCC((offset & 0x3FF) + 0xDC00);
  25521. case 3:
  25522. return _fromCC((0x0f & cccc.charCodeAt(0)) << 12 | (0x3f & cccc.charCodeAt(1)) << 6 | 0x3f & cccc.charCodeAt(2));
  25523. default:
  25524. return _fromCC((0x1f & cccc.charCodeAt(0)) << 6 | 0x3f & cccc.charCodeAt(1));
  25525. }
  25526. };
  25527. /**
  25528. * @deprecated should have been internal use only.
  25529. * @param {string} src UTF-16 string
  25530. * @returns {string} UTF-8 string
  25531. */
  25532. var btou = function btou(b) {
  25533. return b.replace(re_btou, cb_btou);
  25534. };
  25535. /**
  25536. * polyfill version of `atob`
  25537. */
  25538. exports.btou = btou;
  25539. var atobPolyfill = function atobPolyfill(asc) {
  25540. // console.log('polyfilled');
  25541. asc = asc.replace(/\s+/g, '');
  25542. if (!b64re.test(asc)) throw new TypeError('malformed base64.');
  25543. asc += '=='.slice(2 - (asc.length & 3));
  25544. var u24,
  25545. bin = '',
  25546. r1,
  25547. r2;
  25548. for (var i = 0; i < asc.length;) {
  25549. u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
  25550. bin += r1 === 64 ? _fromCC(u24 >> 16 & 255) : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255) : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);
  25551. }
  25552. return bin;
  25553. };
  25554. /**
  25555. * does what `window.atob` of web browsers do.
  25556. * @param {String} asc Base64-encoded string
  25557. * @returns {string} binary string
  25558. */
  25559. exports.atobPolyfill = atobPolyfill;
  25560. var _atob = _hasatob ? function (asc) {
  25561. return atob(_tidyB64(asc));
  25562. } : _hasBuffer ? function (asc) {
  25563. return Buffer.from(asc, 'base64').toString('binary');
  25564. } : atobPolyfill;
  25565. //
  25566. exports.atob = _atob;
  25567. var _toUint8Array = _hasBuffer ? function (a) {
  25568. return _U8Afrom(Buffer.from(a, 'base64'));
  25569. } : function (a) {
  25570. return _U8Afrom(_atob(a).split('').map(function (c) {
  25571. return c.charCodeAt(0);
  25572. }));
  25573. };
  25574. /**
  25575. * converts a Base64 string to a Uint8Array.
  25576. */
  25577. var toUint8Array = function toUint8Array(a) {
  25578. return _toUint8Array(_unURI(a));
  25579. };
  25580. //
  25581. exports.toUint8Array = toUint8Array;
  25582. var _decode = _hasBuffer ? function (a) {
  25583. return Buffer.from(a, 'base64').toString('utf8');
  25584. } : _TD ? function (a) {
  25585. return _TD.decode(_toUint8Array(a));
  25586. } : function (a) {
  25587. return btou(_atob(a));
  25588. };
  25589. var _unURI = function _unURI(a) {
  25590. return _tidyB64(a.replace(/[-_]/g, function (m0) {
  25591. return m0 == '-' ? '+' : '/';
  25592. }));
  25593. };
  25594. /**
  25595. * converts a Base64 string to a UTF-8 string.
  25596. * @param {String} src Base64 string. Both normal and URL-safe are supported
  25597. * @returns {string} UTF-8 string
  25598. */
  25599. var decode = function decode(src) {
  25600. return _decode(_unURI(src));
  25601. };
  25602. /**
  25603. * check if a value is a valid Base64 string
  25604. * @param {String} src a value to check
  25605. */
  25606. exports.decode = exports.fromBase64 = decode;
  25607. var isValid = function isValid(src) {
  25608. if (typeof src !== 'string') return false;
  25609. var s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
  25610. return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
  25611. };
  25612. //
  25613. exports.isValid = isValid;
  25614. var _noEnum = function _noEnum(v) {
  25615. return {
  25616. value: v,
  25617. enumerable: false,
  25618. writable: true,
  25619. configurable: true
  25620. };
  25621. };
  25622. /**
  25623. * extend String.prototype with relevant methods
  25624. */
  25625. var extendString = function extendString() {
  25626. var _add = function _add(name, body) {
  25627. return Object.defineProperty(String.prototype, name, _noEnum(body));
  25628. };
  25629. _add('fromBase64', function () {
  25630. return decode(this);
  25631. });
  25632. _add('toBase64', function (urlsafe) {
  25633. return encode(this, urlsafe);
  25634. });
  25635. _add('toBase64URI', function () {
  25636. return encode(this, true);
  25637. });
  25638. _add('toBase64URL', function () {
  25639. return encode(this, true);
  25640. });
  25641. _add('toUint8Array', function () {
  25642. return toUint8Array(this);
  25643. });
  25644. };
  25645. /**
  25646. * extend Uint8Array.prototype with relevant methods
  25647. */
  25648. exports.extendString = extendString;
  25649. var extendUint8Array = function extendUint8Array() {
  25650. var _add = function _add(name, body) {
  25651. return Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
  25652. };
  25653. _add('toBase64', function (urlsafe) {
  25654. return fromUint8Array(this, urlsafe);
  25655. });
  25656. _add('toBase64URI', function () {
  25657. return fromUint8Array(this, true);
  25658. });
  25659. _add('toBase64URL', function () {
  25660. return fromUint8Array(this, true);
  25661. });
  25662. };
  25663. /**
  25664. * extend Builtin prototypes with relevant methods
  25665. */
  25666. exports.extendUint8Array = extendUint8Array;
  25667. var extendBuiltins = function extendBuiltins() {
  25668. extendString();
  25669. extendUint8Array();
  25670. };
  25671. exports.extendBuiltins = extendBuiltins;
  25672. var gBase64 = {
  25673. version: version,
  25674. VERSION: VERSION,
  25675. atob: _atob,
  25676. atobPolyfill: atobPolyfill,
  25677. btoa: _btoa,
  25678. btoaPolyfill: btoaPolyfill,
  25679. fromBase64: decode,
  25680. toBase64: encode,
  25681. encode: encode,
  25682. encodeURI: encodeURI,
  25683. encodeURL: encodeURI,
  25684. utob: utob,
  25685. btou: btou,
  25686. decode: decode,
  25687. isValid: isValid,
  25688. fromUint8Array: fromUint8Array,
  25689. toUint8Array: toUint8Array,
  25690. extendString: extendString,
  25691. extendUint8Array: extendUint8Array,
  25692. extendBuiltins: extendBuiltins
  25693. };
  25694. // makecjs:CUT //
  25695. exports.Base64 = gBase64;
  25696. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 54).Buffer))
  25697. /***/ }),
  25698. /* 345 */,
  25699. /* 346 */,
  25700. /* 347 */,
  25701. /* 348 */,
  25702. /* 349 */,
  25703. /* 350 */,
  25704. /* 351 */,
  25705. /* 352 */,
  25706. /* 353 */
  25707. /*!********************************************************!*\
  25708. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  25709. \********************************************************/
  25710. /*! no static exports found */
  25711. /***/ (function(module, exports, __webpack_require__) {
  25712. exports.nextTick = function nextTick(fn) {
  25713. var args = Array.prototype.slice.call(arguments);
  25714. args.shift();
  25715. setTimeout(function () {
  25716. fn.apply(null, args);
  25717. }, 0);
  25718. };
  25719. exports.platform = exports.arch =
  25720. exports.execPath = exports.title = 'browser';
  25721. exports.pid = 1;
  25722. exports.browser = true;
  25723. exports.env = {};
  25724. exports.argv = [];
  25725. exports.binding = function (name) {
  25726. throw new Error('No such module. (Possibly not yet loaded)')
  25727. };
  25728. (function () {
  25729. var cwd = '/';
  25730. var path;
  25731. exports.cwd = function () { return cwd };
  25732. exports.chdir = function (dir) {
  25733. if (!path) path = __webpack_require__(/*! path */ 354);
  25734. cwd = path.resolve(dir, cwd);
  25735. };
  25736. })();
  25737. exports.exit = exports.kill =
  25738. exports.umask = exports.dlopen =
  25739. exports.uptime = exports.memoryUsage =
  25740. exports.uvCounters = function() {};
  25741. exports.features = {};
  25742. /***/ }),
  25743. /* 354 */
  25744. /*!***********************************************!*\
  25745. !*** ./node_modules/path-browserify/index.js ***!
  25746. \***********************************************/
  25747. /*! no static exports found */
  25748. /***/ (function(module, exports, __webpack_require__) {
  25749. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  25750. // backported and transplited with Babel, with backwards-compat fixes
  25751. // Copyright Joyent, Inc. and other Node contributors.
  25752. //
  25753. // Permission is hereby granted, free of charge, to any person obtaining a
  25754. // copy of this software and associated documentation files (the
  25755. // "Software"), to deal in the Software without restriction, including
  25756. // without limitation the rights to use, copy, modify, merge, publish,
  25757. // distribute, sublicense, and/or sell copies of the Software, and to permit
  25758. // persons to whom the Software is furnished to do so, subject to the
  25759. // following conditions:
  25760. //
  25761. // The above copyright notice and this permission notice shall be included
  25762. // in all copies or substantial portions of the Software.
  25763. //
  25764. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  25765. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25766. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  25767. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  25768. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  25769. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  25770. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  25771. // resolves . and .. elements in a path array with directory names there
  25772. // must be no slashes, empty elements, or device names (c:\) in the array
  25773. // (so also no leading and trailing slashes - it does not distinguish
  25774. // relative and absolute paths)
  25775. function normalizeArray(parts, allowAboveRoot) {
  25776. // if the path tries to go above the root, `up` ends up > 0
  25777. var up = 0;
  25778. for (var i = parts.length - 1; i >= 0; i--) {
  25779. var last = parts[i];
  25780. if (last === '.') {
  25781. parts.splice(i, 1);
  25782. } else if (last === '..') {
  25783. parts.splice(i, 1);
  25784. up++;
  25785. } else if (up) {
  25786. parts.splice(i, 1);
  25787. up--;
  25788. }
  25789. }
  25790. // if the path is allowed to go above the root, restore leading ..s
  25791. if (allowAboveRoot) {
  25792. for (; up--; up) {
  25793. parts.unshift('..');
  25794. }
  25795. }
  25796. return parts;
  25797. }
  25798. // path.resolve([from ...], to)
  25799. // posix version
  25800. exports.resolve = function() {
  25801. var resolvedPath = '',
  25802. resolvedAbsolute = false;
  25803. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  25804. var path = (i >= 0) ? arguments[i] : process.cwd();
  25805. // Skip empty and invalid entries
  25806. if (typeof path !== 'string') {
  25807. throw new TypeError('Arguments to path.resolve must be strings');
  25808. } else if (!path) {
  25809. continue;
  25810. }
  25811. resolvedPath = path + '/' + resolvedPath;
  25812. resolvedAbsolute = path.charAt(0) === '/';
  25813. }
  25814. // At this point the path should be resolved to a full absolute path, but
  25815. // handle relative paths to be safe (might happen when process.cwd() fails)
  25816. // Normalize the path
  25817. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  25818. return !!p;
  25819. }), !resolvedAbsolute).join('/');
  25820. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  25821. };
  25822. // path.normalize(path)
  25823. // posix version
  25824. exports.normalize = function(path) {
  25825. var isAbsolute = exports.isAbsolute(path),
  25826. trailingSlash = substr(path, -1) === '/';
  25827. // Normalize the path
  25828. path = normalizeArray(filter(path.split('/'), function(p) {
  25829. return !!p;
  25830. }), !isAbsolute).join('/');
  25831. if (!path && !isAbsolute) {
  25832. path = '.';
  25833. }
  25834. if (path && trailingSlash) {
  25835. path += '/';
  25836. }
  25837. return (isAbsolute ? '/' : '') + path;
  25838. };
  25839. // posix version
  25840. exports.isAbsolute = function(path) {
  25841. return path.charAt(0) === '/';
  25842. };
  25843. // posix version
  25844. exports.join = function() {
  25845. var paths = Array.prototype.slice.call(arguments, 0);
  25846. return exports.normalize(filter(paths, function(p, index) {
  25847. if (typeof p !== 'string') {
  25848. throw new TypeError('Arguments to path.join must be strings');
  25849. }
  25850. return p;
  25851. }).join('/'));
  25852. };
  25853. // path.relative(from, to)
  25854. // posix version
  25855. exports.relative = function(from, to) {
  25856. from = exports.resolve(from).substr(1);
  25857. to = exports.resolve(to).substr(1);
  25858. function trim(arr) {
  25859. var start = 0;
  25860. for (; start < arr.length; start++) {
  25861. if (arr[start] !== '') break;
  25862. }
  25863. var end = arr.length - 1;
  25864. for (; end >= 0; end--) {
  25865. if (arr[end] !== '') break;
  25866. }
  25867. if (start > end) return [];
  25868. return arr.slice(start, end - start + 1);
  25869. }
  25870. var fromParts = trim(from.split('/'));
  25871. var toParts = trim(to.split('/'));
  25872. var length = Math.min(fromParts.length, toParts.length);
  25873. var samePartsLength = length;
  25874. for (var i = 0; i < length; i++) {
  25875. if (fromParts[i] !== toParts[i]) {
  25876. samePartsLength = i;
  25877. break;
  25878. }
  25879. }
  25880. var outputParts = [];
  25881. for (var i = samePartsLength; i < fromParts.length; i++) {
  25882. outputParts.push('..');
  25883. }
  25884. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  25885. return outputParts.join('/');
  25886. };
  25887. exports.sep = '/';
  25888. exports.delimiter = ':';
  25889. exports.dirname = function (path) {
  25890. if (typeof path !== 'string') path = path + '';
  25891. if (path.length === 0) return '.';
  25892. var code = path.charCodeAt(0);
  25893. var hasRoot = code === 47 /*/*/;
  25894. var end = -1;
  25895. var matchedSlash = true;
  25896. for (var i = path.length - 1; i >= 1; --i) {
  25897. code = path.charCodeAt(i);
  25898. if (code === 47 /*/*/) {
  25899. if (!matchedSlash) {
  25900. end = i;
  25901. break;
  25902. }
  25903. } else {
  25904. // We saw the first non-path separator
  25905. matchedSlash = false;
  25906. }
  25907. }
  25908. if (end === -1) return hasRoot ? '/' : '.';
  25909. if (hasRoot && end === 1) {
  25910. // return '//';
  25911. // Backwards-compat fix:
  25912. return '/';
  25913. }
  25914. return path.slice(0, end);
  25915. };
  25916. function basename(path) {
  25917. if (typeof path !== 'string') path = path + '';
  25918. var start = 0;
  25919. var end = -1;
  25920. var matchedSlash = true;
  25921. var i;
  25922. for (i = path.length - 1; i >= 0; --i) {
  25923. if (path.charCodeAt(i) === 47 /*/*/) {
  25924. // If we reached a path separator that was not part of a set of path
  25925. // separators at the end of the string, stop now
  25926. if (!matchedSlash) {
  25927. start = i + 1;
  25928. break;
  25929. }
  25930. } else if (end === -1) {
  25931. // We saw the first non-path separator, mark this as the end of our
  25932. // path component
  25933. matchedSlash = false;
  25934. end = i + 1;
  25935. }
  25936. }
  25937. if (end === -1) return '';
  25938. return path.slice(start, end);
  25939. }
  25940. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  25941. // in new Node.js versions, so only basename() above is backported here
  25942. exports.basename = function (path, ext) {
  25943. var f = basename(path);
  25944. if (ext && f.substr(-1 * ext.length) === ext) {
  25945. f = f.substr(0, f.length - ext.length);
  25946. }
  25947. return f;
  25948. };
  25949. exports.extname = function (path) {
  25950. if (typeof path !== 'string') path = path + '';
  25951. var startDot = -1;
  25952. var startPart = 0;
  25953. var end = -1;
  25954. var matchedSlash = true;
  25955. // Track the state of characters (if any) we see before our first dot and
  25956. // after any path separator we find
  25957. var preDotState = 0;
  25958. for (var i = path.length - 1; i >= 0; --i) {
  25959. var code = path.charCodeAt(i);
  25960. if (code === 47 /*/*/) {
  25961. // If we reached a path separator that was not part of a set of path
  25962. // separators at the end of the string, stop now
  25963. if (!matchedSlash) {
  25964. startPart = i + 1;
  25965. break;
  25966. }
  25967. continue;
  25968. }
  25969. if (end === -1) {
  25970. // We saw the first non-path separator, mark this as the end of our
  25971. // extension
  25972. matchedSlash = false;
  25973. end = i + 1;
  25974. }
  25975. if (code === 46 /*.*/) {
  25976. // If this is our first dot, mark it as the start of our extension
  25977. if (startDot === -1)
  25978. startDot = i;
  25979. else if (preDotState !== 1)
  25980. preDotState = 1;
  25981. } else if (startDot !== -1) {
  25982. // We saw a non-dot and non-path separator before our dot, so we should
  25983. // have a good chance at having a non-empty extension
  25984. preDotState = -1;
  25985. }
  25986. }
  25987. if (startDot === -1 || end === -1 ||
  25988. // We saw a non-dot character immediately before the dot
  25989. preDotState === 0 ||
  25990. // The (right-most) trimmed path component is exactly '..'
  25991. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  25992. return '';
  25993. }
  25994. return path.slice(startDot, end);
  25995. };
  25996. function filter (xs, f) {
  25997. if (xs.filter) return xs.filter(f);
  25998. var res = [];
  25999. for (var i = 0; i < xs.length; i++) {
  26000. if (f(xs[i], i, xs)) res.push(xs[i]);
  26001. }
  26002. return res;
  26003. }
  26004. // String.prototype.substr - negative index don't work in IE8
  26005. var substr = 'ab'.substr(-1) === 'b'
  26006. ? function (str, start, len) { return str.substr(start, len) }
  26007. : function (str, start, len) {
  26008. if (start < 0) start = str.length + start;
  26009. return str.substr(start, len);
  26010. }
  26011. ;
  26012. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 353)))
  26013. /***/ }),
  26014. /* 355 */,
  26015. /* 356 */,
  26016. /* 357 */,
  26017. /* 358 */,
  26018. /* 359 */,
  26019. /* 360 */,
  26020. /* 361 */,
  26021. /* 362 */,
  26022. /* 363 */
  26023. /*!************************************************!*\
  26024. !*** F:/项目/HBuilderProjects/test/api/order.js ***!
  26025. \************************************************/
  26026. /*! no static exports found */
  26027. /***/ (function(module, exports, __webpack_require__) {
  26028. "use strict";
  26029. Object.defineProperty(exports, "__esModule", {
  26030. value: true
  26031. });
  26032. exports.applyRefund = applyRefund;
  26033. exports.calculate = calculate;
  26034. exports.calculateByInput = calculateByInput;
  26035. exports.creatScanOrder = creatScanOrder;
  26036. exports.getOrderList = getOrderList;
  26037. exports.getOrderPrice = getOrderPrice;
  26038. exports.qrCode = qrCode;
  26039. var _request = __webpack_require__(/*! @/utils/request.js */ 31);
  26040. // 订单列表
  26041. function getOrderList(data) {
  26042. return (0, _request.request)({
  26043. url: '/paymentserver/order/user/search',
  26044. method: 'post',
  26045. data: data
  26046. });
  26047. }
  26048. // 生成二维码
  26049. function qrCode(data) {
  26050. return (0, _request.request)({
  26051. url: '/paymentserver/order/qrCode/' + data
  26052. });
  26053. }
  26054. // 创建扫码支付订单
  26055. function creatScanOrder(data) {
  26056. return (0, _request.request)({
  26057. url: '/paymentserver/order/creatScanOrder',
  26058. method: 'post',
  26059. data: data
  26060. });
  26061. }
  26062. // 获取订单最优优惠券
  26063. function calculate(data) {
  26064. return (0, _request.request)({
  26065. url: '/zswl-cloud-shop/goodsCouponLog/calculate',
  26066. method: 'post',
  26067. data: data
  26068. });
  26069. }
  26070. // 线下付款获取订单最优优惠券
  26071. function calculateByInput(data) {
  26072. return (0, _request.request)({
  26073. url: '/zswl-cloud-shop/goodsCouponLog/calculateByInput',
  26074. method: 'post',
  26075. data: data
  26076. });
  26077. }
  26078. // 计算商品价格
  26079. function getOrderPrice(data) {
  26080. return (0, _request.request)({
  26081. url: '/paymentserver​/order​/orderPrice',
  26082. method: 'post',
  26083. data: data
  26084. });
  26085. }
  26086. // 申请退款
  26087. function applyRefund(data) {
  26088. return (0, _request.request)({
  26089. url: '/zswl-cloud-bdb/orderRefund/applyRefund',
  26090. method: 'post',
  26091. data: data
  26092. });
  26093. }
  26094. /***/ }),
  26095. /* 364 */,
  26096. /* 365 */,
  26097. /* 366 */,
  26098. /* 367 */,
  26099. /* 368 */,
  26100. /* 369 */,
  26101. /* 370 */,
  26102. /* 371 */,
  26103. /* 372 */
  26104. /*!**************************************************!*\
  26105. !*** F:/项目/HBuilderProjects/test/api/payment.js ***!
  26106. \**************************************************/
  26107. /*! no static exports found */
  26108. /***/ (function(module, exports, __webpack_require__) {
  26109. "use strict";
  26110. Object.defineProperty(exports, "__esModule", {
  26111. value: true
  26112. });
  26113. exports.applyRefund = applyRefund;
  26114. exports.close = close;
  26115. exports.creatPayOrder = creatPayOrder;
  26116. exports.payDetails = payDetails;
  26117. exports.queryPayOrder = queryPayOrder;
  26118. exports.unRefund = unRefund;
  26119. var _request = __webpack_require__(/*! @/utils/request.js */ 31);
  26120. // 生成订单
  26121. function creatPayOrder(data) {
  26122. return (0, _request.request)({
  26123. url: '/paymentserver/payment/creatPayOrder',
  26124. method: 'post',
  26125. data: data
  26126. });
  26127. }
  26128. // 查询订单状态
  26129. function queryPayOrder(data) {
  26130. return (0, _request.request)({
  26131. url: '/paymentserver/payment/query/' + data
  26132. });
  26133. }
  26134. // 退款申请
  26135. function applyRefund(data) {
  26136. return (0, _request.request)({
  26137. url: '/paymentserver/payment/applicantRefund',
  26138. method: 'post',
  26139. data: data
  26140. });
  26141. }
  26142. // 支付详情
  26143. function payDetails(data) {
  26144. return (0, _request.request)({
  26145. url: '/paymentserver/order/user/userDetails/' + data
  26146. });
  26147. }
  26148. // 取消退款申请
  26149. function unRefund(data) {
  26150. return (0, _request.request)({
  26151. url: '/paymentserver/payment/unRefund/' + data
  26152. });
  26153. }
  26154. // 关闭订单
  26155. function close(data) {
  26156. return (0, _request.request)({
  26157. url: '/paymentserver/payment/close/' + data
  26158. });
  26159. }
  26160. /***/ }),
  26161. /* 373 */,
  26162. /* 374 */,
  26163. /* 375 */,
  26164. /* 376 */,
  26165. /* 377 */,
  26166. /* 378 */,
  26167. /* 379 */,
  26168. /* 380 */,
  26169. /* 381 */,
  26170. /* 382 */,
  26171. /* 383 */,
  26172. /* 384 */,
  26173. /* 385 */,
  26174. /* 386 */,
  26175. /* 387 */,
  26176. /* 388 */,
  26177. /* 389 */,
  26178. /* 390 */,
  26179. /* 391 */,
  26180. /* 392 */,
  26181. /* 393 */,
  26182. /* 394 */,
  26183. /* 395 */,
  26184. /* 396 */,
  26185. /* 397 */,
  26186. /* 398 */,
  26187. /* 399 */,
  26188. /* 400 */,
  26189. /* 401 */,
  26190. /* 402 */,
  26191. /* 403 */,
  26192. /* 404 */,
  26193. /* 405 */,
  26194. /* 406 */,
  26195. /* 407 */,
  26196. /* 408 */,
  26197. /* 409 */,
  26198. /* 410 */,
  26199. /* 411 */,
  26200. /* 412 */,
  26201. /* 413 */,
  26202. /* 414 */,
  26203. /* 415 */,
  26204. /* 416 */,
  26205. /* 417 */,
  26206. /* 418 */,
  26207. /* 419 */,
  26208. /* 420 */,
  26209. /* 421 */,
  26210. /* 422 */,
  26211. /* 423 */,
  26212. /* 424 */,
  26213. /* 425 */,
  26214. /* 426 */,
  26215. /* 427 */,
  26216. /* 428 */,
  26217. /* 429 */,
  26218. /* 430 */,
  26219. /* 431 */,
  26220. /* 432 */,
  26221. /* 433 */,
  26222. /* 434 */,
  26223. /* 435 */
  26224. /*!***************************************************!*\
  26225. !*** F:/项目/HBuilderProjects/test/static/logo.png ***!
  26226. \***************************************************/
  26227. /*! no static exports found */
  26228. /***/ (function(module, exports) {
  26229. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAACMCAYAAACuwEE+AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvQecXdV1L/xf+7R77/SqNqOOAPWGAAFCSAJUkJDAwmDcAGONBCaxX/KcvOfvZexUJ++zHWziDxdwQuy8B3HD3XEhpmOa6U1CQtM1mj5zyzlnr4917r3SIGbmnjtNkp3z+wkQd5e19/mftVffhP96/msH8tgByqPt72lTJjCAT4N2vwjCbuDIS6CqhWDcB9y3KPgV+Aswgt2i9N//QJ8/XMDUs9o0DUUFFor7fJQ1eljpAhVEKGYgpoEoE0wwmIEBMBIEdGug02C0kkJTitGsW9HZBCRQT/oPAUN/sIA5/3McnV6KpabGkqOEBa+6+G8gqBAvXQAkjwAkCUY7CG+SxvMw8IzWeMrrxRutf0r9IcY67Zr8wQJmx2e5KFaBdVC4qB+Y8ayL6wAYY3yDzAwfhBYwfquBX5CHXzRWYz+uIX+MY58S3U9zwDCtr4fxgHztciTUswp7NFz2D1xQUYaLYGBDHJj6dArXMWCO51thgImRAuEFzfgeE/69qRmvhaVxPGkZr7FOS8Ds3s1GcjNijocyT6HgdRdWl8IWEC5uaMYO1JOXa4N2f46jVIoLTGBTEpj6lIsP+Ah1JOUaerjfhfukwHiMgW/EXXyn4zbqGe1gJ6vfaQWYVR9lq/IsFMWKMMVQmN2msaaFsXGAsRJADECn24OZYeSH9XdzZKqH88jAZZpQ/ZbFH9AMW16ErwGfAU/+aMDV6f+W/wfObNkYdk44D4BmZvyz9nBn86106GQBIN95x7DsfKcafftVd7I1HSixFaYrhXmtGhe0aGyLA2cMljuYEe8mzOzdQ+25ZttyOztFMZyrCJeTQpVdqa9TCoXZflnJVv4ub1dAlNJAwgMGPKDfA/pcCv5b/j/SOne+D4PRy8A9rsbnWvfRgXwHmOz2o1rlpBFZz+blxSguLsMMBZzR7uG8BsYVA4wFioByBzruMvp9sjI0uZ6LM8J8sfM/xs7KZVitFDYTYYpTwdeQwSX5rE1ApRmIe0BPCuiSP0lC3BeQ5bW1gslezfhaysc/HLmFWvKhYzLb5rWqSSOsntX6KsTKLEy3LJzZ72H5Icb2HsZy2wCmxxjTC9iIGFAvdZDbHE8DhhnaZSxr3Usv5KJ1YT3bi2qxygC2kMJUp0LvJgOlufqN9LsASN68AKgjARxJAN0pgp89xnIMHnRntGrgb5pa8FXUU2Is9ExE31MOMPLln7UalbEEFrCBRW9pbGzV2OCYiM4s1DSlAIZJIMpQ/moneYf7KdBuZMNdH2tb99FjuTZrdz3bmIpVhpUGjF2h36MMlOXql8/vAqCUD7QngNYBoDMlRuXcWy6MC4wnGPhEYx09ms+cE902N/UTTUF2/IzltYgx27awuA9Ysd/DDm1g1qwiVtMK2FA4DpRst/1d5L7Zd+xIYq2xqXEv/SoX2QFgBnOYSn01KZTn6jfa3wNzsQe0DADNA4REYJUZcftFq4oz4wus8NdNe2hgtHOPZ79TAjAi1M4wURVjnM2EJY0a61oYG2oKOVZTxOZgjnLi4t/qpdRr3RRoN8JkPMZ7muvoO7k2abIBk6VHgCPa1pE4cLgP6HHlFQz/GoRrMuMJj/GRMEdtrnWP9feTDphV9RybW4taApZpwpI3PFxuOrx0fglbERMqe/QMt9Cmfkq91HkMMPB9XN+0j76Va2NOBMxEHEm5aBCBWWSdg70iMOcEToevcVtzHb4FOnkO0JMIGKZNd6K4xMQZJmFlnLH0LWBrTQnXVkbYzAWU7MtoG6DUcx3BkRSsxdP4aPNe+mqul/UuDjMOQm+uOYf7XWvgaAI40EvoDTjOsI/ra9ze5OJ/4jZKjna+sfQ7OYCpZ7WlHBUFUSwyTKzs0ljWb/OWmSVcaat3yykjLfBonNxnjgZCb7AWX+NjTXvpS7k25USh16nQ15CBvNTqXHPk9XvmqGruTwMnpYd+NRlN6v5ejRu691FnXnOMQ+NJB8zue9nwO1FtmVhOwIoewnJVqDdXFFChOmZGDb+yziS8p44ocRoGa2GNTzbspb/PNcK71OpK/V5SKM7Vb6J/z2pW+3vSwvFQWlUg1wBPxD3s7riFDk80TYPHn1TArK9ns6QK0yJRrCTC8pSJ5WaR3hIz4YQ9gk7cnJ4UvCfalIQlBKEJzPizhjr6bK5NnH87OytjWG0qbGYx3FXq95FCQa5+k/W7IEKOqde6CAP+u19TBjQvJF28p/1Wem2y6Jo0wIgfaNYaTDcJq5VwlQgW28W8lYizGs6o1tyXgv9Ym9h904DRjL9trKP/kWswcQ2UFGENNDaLa8Cp0h8gQiRXv0n9Xew4Gni9C2iODy0UM/CG9nFF0z56dTJomxTACGepmobpysC5wllUhM+yS/gKorSzbyxP3IP/cEuAlSCWhRmfbaijP8s15vp6jlTXYI2hsBmESqdKf5gIWRdDru6T+rtoUyLbvNY9tNVYQNPnYlPXJDgxJx4w97JxVTemWSbWKMZKZekzrDLsGK+vOeFBP9SixCKfH2Du5ki1xvkGcFkAmGp9A9GYA6gmDEhyRIm/6oUO8VW987Vljqfn3Dgub/tjap0wInKZGsc8cT2r3VWoRgRrDGA1WXqWXYqrlHHcKzzWORI++KEmJVFuafdASA4jIZq1hbjANLGJCVUBYEbpch7rGkL3ZwQW4hc7KHAzDH4yBr7/TPnYfuQW6gs9Zp4NJ5DDMG38Esoro1gFwnmKUGNX6J3KQFWeNI7YPKUDwEjISnC8acY/NdbRLbnm2H4nx2ImLlTAJpiojlTqD+Xqc6r8LjE6L3cCrSfINRnQ3NPYgpvCBJGNZj0TBpgdX+ciB1hmKFxAwEy7VF+q7CB+ZVyfDGBkDwP5w2d8tamOPpprkt13cCHZWKcMXGIYeoZdGcT0njaPxOe81gU0DrxTGBZzjtb4H00hTAujWeyEAEYEyqrpOMswsY4Y880iXmEW8IWjITBXH5fBDzaqvAGz5XYuLinAegIuVg5m2mX6PbnmOtV+Fwvxq0OBRpyWwPbGOvrleNM87oARjah0GmY5FtYRsCR4GSV650QJlHIWPZg+kvLiMDs/z6XRYmyEwoWGg7lWid4x3ps7GeMNCxrgzQRwQfseah5POsYZMEy7vowqy8Jag3BuOvSRd5HiCQsbENb8YLNKegwnryPpa1xOCpcr4DwjxmfaRXz5eG2s1uiDpgb20BaknQAmAUXKxjQYXD3ewrXswUsdQGviHWlVrBn/3vhLXIf7xi/FZVwBs/4OLqyKYLkiXEzADLsUaw1HLxuvFzHUOBIq8GDTKABzF1cpH1vIwDlWIS82C3j9mOhkDPguPeQl+CEeUK9CIR4I4T4iUCghQgVJZqWhp5oFtMyI8KJxyIM6RrKcyb9rf6f2JPKMr3FD8166Z0xrG9R53AAjR1HFNMw3DWyAgbNMBzV2sb4yZDbhqNeTAUzKy0b8hxR6t97NU4uBrQBWWoW8wozx2tEQEWi6Lu5Ndalvekm8xUB30kfCcBCkuvhJiOc9VmCjkoBZGjjDUJhu2Kg1ivSlaoxhoYNplgD1p468007DQFMCWD1eR9M4AYZpxxdQHSnChQZhDSQ+u1JfSeOsQg/PYcj1OB11F05LYrrqq5hhGdimCEvNIj7HjPI5+QKGGc+7fepPBjrxbEscvY/2IDl0klo64a6gGkUxE7PIxDIFnEkGpjhleisZmJrv3EO2F7SmgKfbj1uEM6r2Nxrr3la1x6GQwLgARoxgNSVYbgCXAKi1inmRGeOLxmUTcgyS5jDHAaMZX2msoz0jd2Pa+WXMitjYBsIiq5jXmlHO6+jUmu8f6DD2HUig7ak95IZdq/iwoiZmWFGsIo3lZGBaYJ9S4xNPLBbhxn7gla7j6nbgktLY0LSXHg5L53Dtxg6YelY7p2BmxMIGUlhKCiV2RRAqEB0rcWH6vwswwP/buIf+ZMS+YoGuwVyTcAUpnGmV6I3KCW8j0pp/2NlmvO/+m9A3mq820CSnoMZ2cL7BWEERzHVK9K7xOr7F9/RiWgiWLIR02AfjNw0t2DhWg96YASNJ7ZEynKtMXAyg2irh1WaEJRNxUp4TZZhQroF6Vrtm4Exb4QpDYa5VxtuUxbXhCKaX27rogh9dP7bgJYnHOXMG5tkmLlHAWVYJX2o4fFY4GnK3SnrAb48QJ/x04EhGAN7dvJe+m7v38C3GBph72bi6A3NNG5sIWKhMlNjl+r3j4YUOu6gTtaQwgJHcbGzFQpNxxdt5zrOdCt6uTJ4WYk7Xc9VF9+ykx0O0zdnkgs9y0bQKrDEV1hsOFtql+qqcnUI2kKOpLUH8/NHgFQf/0MDTjc04H/WUCjnMu5qNCTBiLS0qxPmKsU48vpPNXWQ1owGMHAlTpmEpmYHQW2NVanGIVo60iUGSGuHv/3mb8cnRbva7+tWzeu80zIGFLYpwtlOpPzSeQVxyNL3QQdwmpZAYJIl+vo/dzbfkzqoYfxlmNxtXb8Rc08GlxDhb8pLtSn3teIUthH0pYuJ9qFml/IxaHYbDSFrLbAsrbWArAVPtan090fDRdgKWPhdtXa5a8ItrqDssbWHaXf45Li8rCkwRa50yfaWyMTdMv7BtBjzix1uJfc4EmAEPNf4C60drzBs1hxHZxSnHeYbCekWoNIp48WhtGWEXP1Q7AcxvGpUXlBcTtqvxvxr30l+ONGY22o45sPROyRULM+BK8JK67ZkP0RfHQutQfc//OEdrlmCNwbjMLuENRpTPG885BOz7e0gf7A1kGeEyniZc0rSHHhrNPKMDTEYzcqyg8sFiAiJOpX7PWHOTR7OAE52PYYLAxQwwqxhrycCmIBG/St8w3Nziq3m5i15+wqOVuGH8c50lKN7rwOKIja1mFGvNYn3FaPZhpD7i0X+shTilSXwH4jL4ZmMdfWA084wKMFJbpUpjtSGxJIRpZoRnmCUs7H1U442G8GyfILyhWbnZ2i5hACPVp8rKsU4pXEImpjvl+vqhaJCvs2mA+M1uuv71m+nfhqSzntWqJhjx6aCX8LZ1N9/iiMy08yuYG7GwTdn6XKcM7xvLfgy3jkO9pN/oyXAZoCsBLByN9XcULzht1Y2VYCNxYNUtsMp4nWHzgvFeaJjxXE36N00k9X6CACoP+KPmPXT7SH0lVidK2CDCuopg9nDaiaimz7SrF8qBtQ/fRL3vHJNp+52IQmGKxagEwWjX6D8EtB9qRmt44DDt+DqmRRlblYU1kUp9c5h159sm4DKtSqd8GCK/a43bwuRvnThP3oDJBHSfrWxsNoC5IERsSdEYh4DufDdB2qd80g82kyhLgWsgTObjzru51PEhfpy1RgRnWsV6y4lzC3d5tZu4Z4A+VtWIOx94Rxk0pp2fR4lZgIWGwvJeYMEBH+sGgPkaIK3xf5oqUBe2EOKW27mqqBCXm4TznCq9d7wMeIPXJOs50EP+m73BsSSyjBjyLgkP7PRoeQMmEHYrcIEIu0QoN6M8xyziTaN52ePRJxMELjWgAqHXA25u3kNfG2ns7XdyZcwMBN5zzSJeMpSnujcl3IUOTU3Q2oc/Rk2DxwvMCTEsl2i9Hh+rXvFxsYvjSXBiJPN8bGzZR/8ZZo2BplSKSwFcGK3W+yYCMEJH3AM/2qq05oDLJFwfi/KtepUnYJiu+DKmF0ZwOcSkDUSscl5vWDw/zMZMRJuED/+h5iBrIACM6+Oaln1030hz7b6Dp5KDrUphhV3Mq0/UTORrfO4okEipT6MRf/PSIEOXyG/lLpbYBrYmgXOf93BhEig6YT7202GSfxdmzdv+icsKHFxqGlhnV+l9EyULyrpe6CCvNU5mcCz5+KOmfflpfnkBRo6jslosshEYmmaDYDlVwXF00hLABlz4j7Qez0vyCO9p/ih9e/gXxXTlHaiJRrCNFJZYJbzWcHj54PZdSeDZdtVZa+Hc39yAN475i9azefW1mGM72KYZ619ycX4X3hHUfmw/NeMfG+voj8MA5vKvcXmZwqVk6I2RSkyIDJOl42gc/jNH04l/zPhZQx1tDkNjtk1egBHtoqQSaw3GRjmOlMVT7DI+qaGNJ2Q+su/jsqZ99IthNyGjlTgGrjAIZ5kVvGkwh8xyl/6U+vqsLvzRz49V9A6E3IqYgU3KwBWHPazqUDy/tgiIGUw9bqCFKGH3Mnc+gNn1z1zhaFyuTH25U44P5vMC823rM/ixZvLjOuAyHb0+5ueT1J8XYHZ9masjDi5j4BwCYmYhLzML8o8jyXeRI7XvS5H7WBvJS5JziT2NDS176YFh+wxyPCrCPLtcb1MWarLtRXZ56gilphNtevjneCRrEZXA9sqZWGkQdqc0zmmxeOX8Mo4YmfJpArQ3usk91JeuJPF22GR90176dJi17vgCT4kUY7Pt8DarlHeH6TPaNkLn693KfasPVqam46bGPfTrsOOFB0w9q6tnYZ6psY0oqGJpW+W8WZk8I+xkE9GuM0neU0cCwEiVHVEXVzXtpWeGm0sMZaoXiw2FbWDMGuxHks2UfJ+OuPr5XIXrfvYR6gjGqWd1VQ1qLcIuRbi0w8byKaV6moBl8DyZShICXNIebm66hb6ee81ptToCbHMK+WqzcPxii4ebO7NnQQGDtznOXzTV0Wdy05luERow4o4/expWWGaQizydCGakSl8PSgdfn6ynMwH3qXYVfNXiXPM8LG25lV4cjh4pCjB3DVYYFPiRpkem6A9m1yAhjo+1EVeCPtjfiHuzwq7EKlenc5iuUSaWmGV6uaHeXTU87pH/cDMxEwyfsb65jn6Tc1/kiPz/MMtxcIVdzNeZ0dGFiuacZ1ADOZYeaVZeUsPKV44JDZjL/oULSnxcpBiXKEJZJpThmnwInYi27XFyn80UFBI/iWtgQevN9OZwc4kfqbAA55iMzWzoqdFqiFtABEC82QM09qmXzmJs+eEeHA6Y1m42dlyC+QURvJcJ65xSXqHsobMgkj70Q83K0ww/6WNuqHq7wrmnYYFl4AqnQt+gbCyciH0aPKas9cUOclviJIBpbHAwP6zbIzRgxHYRtXCppI+AUWAW8FyzkDdM9OJyjd82gNRzHSooWRbYFjRmte6ltuH6nX8vR2cNYC00LlVmkL77PlFjXR94vI1QCPqLkgZ87oH6dH7ypr/jkvIqbFKE3RKzYpVq8Z0NuW/9HnmPNAc/vdnQ8vaLD3HnQRA8X4MllhxJVXqfMhEmLifXtuT8vamP3Je6AnnLTfk4O6w9JiRgmK64E7WFZsDGl5ABW7IZjQivyknZBDfIFEXMAqa3bwAzuz5OXcNNGxwvMawTTmlEeIFdwjskHK1pQLIIVceZBjb87Kd4IRB2d7Nx5Uac6Vi43iCcb1foVcocvkpVZ4JST7aTXMp1f0Md7QqzdClstEI4HmGzU60/LhkGYfqNtc2AC/1Ia8BYle9ha/Mt9NMwY4YDzAkhjQAsq5QvUTaPa+xGGIJPbNPQR8lXuiiQo5hxtIEwEyPUtBUrbWkRNjBjnVnAi61CvlQCjZ5sI5BH95zh4OPf/RAdDbjLnVxSYeMyYlxjRnCWWaIXjWRUE/C+2EmW1vhM016qD7MeMVUUl2Cd5WCLU6lvnSij3Ym0aCZ+pIW8hIbJjD9uyOF/y/YPBRgRFGefi2UmYasBzBBHm1XOW0OGNYbZt1G3OdRDqdd70mVXGXirAZiPEaL4t32Ty4pdXArGWrMQq8yYvrAzIYY6cufYtPPw0/jlG1+kpHCX3VtwpgG8H8D5ToVeORJ3kflf66LEoT5y/JC1gqWPWHkLo9hkRnC1XazfO+qNyLNjYG9qJ/dIkiwwvnC4jj4eZohQgAmS62fiXAnykfRXApRdpa+bLPY50kIGVwIXWa6hGUtHcqiJo6+0EJeDsMYq5guVwyte6AB6E+qhMxjXZ4XdIFm/EJcx4VrTxoKRZJcMd8PT7SrRkYAp9Yab9tArYV7A7rt5KvnY6hTz+80CljSdSXsOdJF7oC8QfL/TUEdXh5k4FGBEQypzsY4IGwgoFefYqVKA57VOct/qTyexacZjjXV0/kgLFz+Sigb3C6x0SviyBPGCx9sUT1O4zUniGw9IMR6JtZ2O+WTiAwRcYJXr5YY1ct6QBFo93KKSCR/dDYQ5Ix2Lx+lj2nlnOhbGLuWbDYcXh3lp49WmbYDc5zrIZI1HG/biwjApM6EAs/tOLlEKG8nAhZJUTgq2U6Un1IQdZlOErb7SSW7jQOY2E42fNewdyTeSdp7GIthqaCy3K3j7mwNc29inDp7lY/uPfoWXRdgVuaK0DBuUwvXKwhl2uRZH64h7lUjX2tM+44nGOlwUZvNxLxu7MtF2TiXfSgZPD7Pu8WrT78J/NO2He+1wGZaECccIBZhdX+KKSCxwCZynFGIwUOiU62vHi/DRjiMu6heOUqo1npZhNPB/GvfQCIWBmK69CzVvy7hXKMJiVaave7ydyoqYvlij8ZkfBBdzMe28G7McxvUK2GCX8iLl8JRcNB5NUOrp9kDg/XLT3twVsGS8rIZkKGyJVuv/nvW455prvH5309GKnqfRFklh3hshqouHAoz4OgqKsZkRXEgVIQvl45lDM9oNEA7z7BFKHk2ltSR5WY17ad/w4zFd9TXMtCkAzKKjBfqm17pV6kzCdorj0Z/cRslAXpuBiwyFDygTZzoVenWY+JSDPZR8o4dsz0dd8z76Spg1ZWKLREPa5ZTrm8L0Gc82oh0+0qLcuIeepI/ZYWrjhQAM044vYlqsCFsUY4WY0clClV2qrxxP4kczlgDmyTaV7HbT7gmt8deNe+lTIwHm2i9jFju4Qikse575Jnbxo/ku7fv+LWiQfnJkFdh4ryJstor5LCOaOyMyE2eSzFhOLwx7x5EYQwtsXGbF+HqzkKWSxKQ+Qvdv2yjVk6K4RZh1YE/uFJpQgLnqdsywCrHNUFgCwCGbqwOD10l+ZMGPt5Lb52WEXuDjjXvoC7k4jKWwvYd440sp2jFL4YZIF74tYQyZcvJrTMKHQFjoVPE5RJyzdq/Q8VirSvS58LwU5rbcRkdyb03aGFqgsM0p55tOhhE0HcpB7pEEDVgYR8DsvhO1ysK2oAQZwSaHq04FwAQstZnchE4DxtP44MjFc5iya2nU2NWmMWWZgWvu+yneCITdL3N1mYOrCdhuFvKZVkE4w6TIAg82Bcl0+xt+iaWhksSkIMBUnKUcbIuU61uViZm5QTb+LcSn1DxAA8YAZh8cwUKenTkch/kSZjoF2MaMxQFgLC63yziU6Xv8l3h8RPG6Zkp92EEsjI9tLfvoJyPNedWdPM02sGU/4SbF+FlpD770s09QRxDcPiOo+ikFnpc5VXo1qXCRhD1Jch9vI4mT/XZjHYVyyAo3WzIDK8nE5kiV/uTJilp8pZNSDf0Bh5k9bkfSlXehJkrYRjrtRzpVtCRJnZAvmwFHgoE8D+e13EK/HQkwovFZUWx8E/zhqT79RRPjWanvIm6AcgvbDeAaFeX5djGfHRbsTf2UlEu+3r7e+lONe+hvwvQLVPcSXGhGsN2umLg43ly0vNFFiYO91MkDmNfwCQrKrI30hOIwu7+M6cI6DcLSTOzIKWGHiXvQDzcrnakC7qYUzhwptEE2QjQTuwJruglnWQl8+8e3SA4RKAgxsPBhAs6zy3mpsjjUhaHpCDZKHuoj29XY0bqXfphr0+V3yRQoKcEmu4CvsYo4lJU1zLj5ttnfTYk3e6ixqAULBwe7DzdOCMAAYr42NLZJlL0AhvnUsPQGV9+0KiVqLwP93S5m9d6adhwO90g8TMzBHEl7O3oIBx+op4RcIzh/JjYo4ANkBWGbK3MZ6rLjC2CeOkLJzhRJDY2FbXtof+6XlkleI2y1C/l9k+0SGEzfgW5KHOilFw8347ww4RjhAHMXVxmEzSSxvISolI6w09kCk1JlargX0BGH+/TRY9F2LQ0tmJPzrud6VjtqUdBzGPxAPfpl7KDencL7JfzSKuEzjUj4sFORox5qVsmUj57QLoFMBSxFuMIp0x8yHLwjayE34Mavxf5uih/soV+/1YLtYZLaQgHmWBoEcD4BBSCQVaG3qfEq5jfK9bcOUPL5jsDKK+GZLza0jOx4PD6N3DyevmhThM+FM3CuZeAGGDgzUqHXZC+6CENWEJbZQpIc9mJjC1aF2fTBBY2scr7xZOZ1iYf9cB/961sfxUfDXD4aCjCZTL8NhoGLwCgmAUwZb1AWzwmzqRPV5nAvpV7NXEH8dp7QA411lLe3N8iCNHA1EXaahTzfKswvKe9InJLPHiWbNX7QuJdCGTOD+OiZWGECWyMVuk6ZqJ6oPco17itdlGzqpr86tA9/Hcb/FQow2Zs/QNiogHIBjCH3B0Qnr5bdUAt/o5tSB3uP+ZHuadxD+TlEd7Oxa2NQakNU6RVWBa9UBhfm2uQTZIDUgV6yfcYdTXV0a5i+kj0Z3NVEuNSp0n9E4p87CU/GQp1qH6APH6wbpjrFCXSFAswxJxnhcqmnIvEwKsrzrKIxVs8ewyYFKSFdlGrqTwPGB/6uaQ/9eT5DXvB1LpoBbCHgOiuCuVapXppP/4ylNHkkQY7n438076O/DdN/cJhodIqW7MggzXeyH6H/mXYa6Bugdfv30VNh5g8FmGygsq2CmN6ZEnFHFkpO5g0gstjftVOyPZl2PPrArU176I4wi063SceiRC18kIF1dqleZDj53eUUuCbaVKrPheVrfKRpL90VZv71n+fS6mJsNExcPJlhmSfSJvQ/0UrNDtGyZ24M484Im5eUSWKzOPDyLhChMKNaS4BRTl9LmE3Mt03gODuiUj0pBFZe7WJX0630/bDjBF7pWbjIYHxYGZgf1is9ePzsxRguw9aMXU114eYX46FTgMuVgQ1OxeR7qbNrEPofa6GHp5u06YGQ1bVCcRj5GoOiN5L8JZd8SvIag05mXG/GNZ9K+LCD6pAaa5o1LS+xAAAe4klEQVRDslXZsKs+z9Oc4iDXaKtVzAvMKM8KC7ZsO7k+8GHJQwJMV2NT6176VZgxdnyVp8QUthi23miXBzHDJ+VJ+dCPNqvbD/wCfxLK/5VP5mMQrGxjk1R7VIxCEXzNYl5+Mryssrte+mKtlJ92CyQSKcxrP6GOy3BvIXORxirbwg1QWORU6HNI5Z/B2ZOE+0SbMkRJ9xnnNtfRk7nfPNNVd2Kq7WCraeESq3Tocmm5xxl7i54kUr9rVTe+sRffCqMhyYwhOQwghQRnFGOtIdUL5BoXQJHDU+0S3jZ20vMfISgklHELMKMtY7QbCDPStr/lslg1rjQMXG04gd9oVBW4RaX+najUgJQ1DQ2YrKvFtPRFJ5PDtPSj6/ARtfaFW+jlMPuWF2Cygq+psFURakkke4KyK4Mat2O+fzoswdl23Um4v21ThtDwtvzwu8YWrAxjNJMAbykbH1G4QTIH7ApepkwuzXd+ad/YR+7LXeniPKMBjFI4x6nSN4V1Q4yGxuH6iAzY0EuPxQfosnfX7xt+ptAcRuSY7V/F7JiJLQpYFIBE5Jgy3qgsnj2eiwkz1uAUWa1xf1ijmfiN5tVgYxCCaWOeVZY7wHs4eg71Uur1bpKyGXkB5tqvYxpUEF+0PFLNNwO5g7TA8FijE0Zw71Ie721o6gUwh7rV3/T0oT6f21jymjgbGmAA54PScowqwDyrQI/tNrMwCDmhzaEeuK/3pP1IGvh84x76RJhhROCMmrieNLbaJbwgTAjmcOO+0U3Jg70UhFb4PtY376MHw9Cw9Q6eWiwl0wgr7Wp9HSmMeMUh+9Sa6qFfcgoDVgmvMiK8Isw8I7V5uwC2PtSlNj7wfvxnGJdAdqy8ABPci1SKNQq41JBSXXKTvKScVGqJ1J9U49NrXZR8qy+wwcjXfWtTHf1Tzk1kpqu/ioWmQp0ysNQu5yXKDBfGMNTYWRoCtZ5xZVMd/SAnDQCyRRlJjsRSfanhYMjYm+ByLBevprrUt0UTZKDUcni2VcLbw8wzUhvWeLH7kLr4uzm8+yeOkRdgJH1012VYYKXlmHlKQdIsySzjDcYk+pUyFtbUkURa4NQeNjfdQj/PtYlyx8AChfUwcTOYq51qvnAst92+1EFuUzonSipf7WneS1/NRYP8Lr654kJcEtQJjmK+VaK3D3HMeF6cHnC76Zs+8AYUoqaP1bBwRqRy+MrlYeaXNr6v/u6to/h0WPvLqDiMdJKUk2hRUP5CrrwrCI6lCM+0ilnKhk7KE1go2yjV65LIUW6ScHaYOBS5bqa2MnA0XqscrrRLx1Z9YhBgJGPhbxr30v8MswFiNKyejTWGl049Nkv4XBXhpYELXSPOHr2a6qNf6QQeHgCegUYrmSiNApuUwrkRKc06hocBt79LXXjf63gylKIwaK78OIxkpUud/jKcSz42yWLlWJISXU5VcE9SwRjWEbqrWCgfaqakyyTBXEfD5tQEskMEN5LCpWYBTzML+MzQkw7R8ATAfLtxL4W7LF1ugtmKM0zgcgM4Q6qYkxGEjSg/hRYiNGrg+QTj+Z7DaJOi0kGudzHWK+jNThX2joVu7dMvO5rp2nTiXn5P3oDJVmSKOtgS1LrLHkuFvNyIje2LDUt61sIq1b8ll61hz9sqdc4LMJl2fx0LDGAfKSy3SvQZhjO24j2vd6vkod60wY8Zrza0YHGYqDVpH1y0XopzwFgNRhkruKzRRYS3Ui5eT/p480dt6M5ygGx+uxXVH7RKMOqsUznC3Th/pKPJ+KYk7oXd81EfSdJx45e4oiKK9QawFgpFYsSDgYhTrt+bT/BRvsRm23cnkfptmwrsQMz4t4Y6yn2hw71sXNOD8wwDe8GocSr1OWSMLazgQDe5B3rTKS5gJFMaC8NWcgrsQVNQqRzMMT2Us4GEyzgCF20JF90nvkzxcE91cLFdxn9uRPiC0e6dZnqto5k2/+AjOJiPdjQmwAQpEtOxDCYuU0AtCVzEJlPC5yuHJ7xGW0s/pZ7vJEvYo2b8r8Y6+qtcGyhyw5RZ2KoYH4aBMqdSXzBWe0ZDP3mvdA6q4Mm4uakuTOXMLLVM82+HPTcJs9eAdnrgPlAvjvd0NODgR1wzRRFcFqnWdxKhJNd6h/vdS+D/aW9Ut//kNuoZzRj5H0npzyldKpSCmncrpOadCL9koNCq0O8hpIsbT9Szv5uSb6btH6JSv6e5LveVdBJSMKUI71MmdinJqyode/BXexzus5mY4syx9LOGOmzJfTzmuzPpLMnyCv0pIzr6SuGa0dDTorZ0NuCVd162EZ6eUQIGEIvpGTOwCgob5c4kJWVIRcVOl2IPndMTntR0S9GQnu+gVFu6YoPUMlwapnjPFV/mGYUR3EyM9WYRzzBj+YViDkVnfwr60bbgnoPgA2FG3PexqjkP30yY9QtHnzYd62qm8X1Kjc6NIfN4cfWZphbc/ss8bS+DaRw1YI4VO1ZB+a+lihAVLgMDUadCSzXrCYmTSedTq2SfF3ipj7g9mNN6rLz7cNvPtPsunK0YtyiFxXYZL1AWj/k2eolreLhZuS4fW6sY8L6a+6L1MDA5fmytvx0z2gvwr6uq9cUqKOeS/8M+7e8/Su85kMKL+bgCTpxp9IABEBT0K8U5hoFL5LLNLJeZyHhfeUlyKaiXDlp6uLGOLsy5ffeysbs3iKHdK8WcnaognGHMJgAB79NHlNuZOv5xCJdxPVzSeuv4XFW89B+4oKcIXyyP4n1LK7STvoU6vydII+5Xn+zuxN2jUaXHh8PIKJJfMw01cneilM+QPKVAYyIYdoW+mtS7roXJb6VDtJaqSVIuVLzluevBpAcIDGU12Gwo3AhCsVOt141V4M2S9mYPuft7MppS5n+Kqt/rY0M+lz4MtTESS+05+IzH+MSScuapBSGclEMMpF16tO8I1R38LV5+6ivkjuUljAKv75wukGVmBolYGxQFFTalTq1Yf2vNYr50vF5MdtYjcUo9e/RYTbtQWknGFH+tAt6jbBTbZfrcsWza4L69KfIfbw0O42OHReADYvwo5eO6MEV6hqKlqp4LI9Pwv9+OQvhIzIA+d4o2TfkU830YA6kudXN7G34qRQfy7T6uR1J6sHQEmWNhPQirITXwhMuIEFPG65XF88ZK5OD+b/ZQYn/PMQ/xuWHCMgMLbww3gnGpFUOVWaQXjRdN6Rq/yu1x3ymzZUDzn56LG1s/Nnwp+6HoqLmTl4BxByioKcgLy7SeFoOZ73EUaJEJdVeiC/9w32HsD2tUHGlv8kfsEKPtrmcb07FQWdigNOZBSoKImq3gWOX6qvHKuxmsITHQnujC3PZPnnh554kEMu2+A/OMKPYRYZVZxLVy7eB4AUbGae4n78WMPeaEcYXTHNXA/9Yp3DVioaHPcXRqFEsM4EYiHLt4vSoCd0m5tkcj7GqfXhxopduSHfjt/Tn3KdyOjAtgZKog5tfBeWBcID6mrABMDtdYJXzZeBxN8jU/1kLJAZ8ckX0b92BdTpuHZDzUYqVNkLsU5zoVvISMoS+XCLdl724l+dVPtiqv1xtaM5QvHUAnGL+RQH1mNJABnxnFiiHBZ0ulJg2AaRnuHLyXmAl3ZZU2IxJXmO+j0RfvVH+aSuKH32lEU75OxuGmy5+Q4UbazcbOraiNaKxnYJlSKMgeTWYxn2NEOK8ksaGmGXxHtc/4YlMd3ZZrHyWkYb6JS6DwUcUod6r1BeMeUspAZ5L8p4+S2GJGNloSOIDP8WfId+AoeCuqmApNzhsugVbUizv6+9XXEv14ZTQ+o4kHTEYbmTITC5lxiakwhxmiBoqdm+z0ZVxjqkPbnYD7xBFlyJha40ONe+meXICRNN8CGzuh8X5locip0LnV8FyDDvF7EPLYS+4bPenb4UYxRLYLOwr+8kpNhRZkrXk/XpL+I9lFf9/h4re/CFHoMJ8JRkHOyMOLF9YS24zGBUphCnMgrIlBLyL3Q5LiE29gDU3v4T5KvtoVBE3Jhd0r2/bRc7k6S+WJUgMfIMYOM8plVvHYwxuHmzO4c6lXpQ70BNGHowENF1vwFpdrI2pCjQYsvotXk52qvj+BB3/YiubxOoqyax53wIht5oopmBazIax/lSGl5jNuA7K4zCrlK0ZzJGQuhZLSppJE19Mbx6yRrrnJLvDKu7g2AuxRwIVmIU8dawxMLoAKna1x8l7vApI67ZjM1UdUTYvg1xYyzyxm0zzhasAQ/YMm7KM13qn+ykvgFweB/WOx6E7KkZSdRG4/mbkacxwbF7GPxYPlGYrwdKuIL8s3NFJexKMZgZcZBxpacGZuNZHpvV/DIjJwCwEL7RK9QDkYs0sg1wsUWqWyZkO/8lr6GQMeiRwiwJE/aQmGwbaCLrSZKyNAdZRNxwCNhqsEwzG6U534fCKufnyIA/N/qBytXGs58fcw6M93zKC9ROZNL8ZZlsJFzJgfVBDPsGkV5dlWUXBzR2i27fqkH2wm8QxIauyrDb/EopzpnfVsXjsDF8JAHYCpkSq9htTkVc0S4DARx13ofg9aPKUCGUcxRU0ix2RlYPQgOSb0MPpT3erLXgI/7vDw9Ehyy667azYzqcuJqZiAg66Hf/3BzYeGvfJw0gAjE0k5jWk+lpgm1oIwmzJCsPxmxIIrAC8OCxq5DPTJdmUGca/ir9FYnCtYSXxd5WW4EgrvJ5PLIxU8bhbeUX1FE9CJxZLbjbu9lPoxM357341oH8rUsOX28uJIUdH/hZRswXE+xkCSNf/J92489KUw5E0Yh0lPzrTtn1BaYECujxEbTU3WqJcBzRyzgMVCnJPTZC7SCq7qk4E1457GFtw00rEUhDTYQVXvS61CrjELxh7SEGZTJ6sNpznLv7gJ/Ec8hSd++Cu0DMl1GbTzGzO/r0CZ9JR3WsVYPBmsr/reDYe/l4v2CQZMGjS7voRyK4YVBoILRqcPBg1FUWMXablsdNhwCGHtL3VSqnkgXTwoLQLAZ40vFPbg069+UoobSj5b5qlntb4KsSoLqwwDH4DCWZEKvWKsIZm5NnMyf2cf3W6P+qbn4oH+FB6PlqHxvmtIDr13Pdf8S+2nLEP9pW0SfM1IuIAXtDwOHAa/8N0PH5KrAUZ8JgEwb88vXu2ZqMhcbiGVOKcNPp7I4kqrhC8dzoWQvoSC3G73XV5hJsZTEcLnZ8XxUJGDBCVgeEUocBRmELDWIFxsl/JyZee+wibXZp0qv4s2lOpS3/JcPJZK4YnDz6BxSC80g2753szdUVv9W3WpUjGbIHckH+1lHD7K6ImL/J2FAGvN3RXfu6Fr2AtWMxCbpG3IgIaAZQZhNQM1JOkVWcHXRIFVwpuUwZUnUiQugUebyYvr4Nrcdz2SFaiARht4yTHQYnNwxFX6wLxlU/Qs08y/lMck7Ure0+gUvZ7qoW+zj6cSSTx5WKFxOPX5v/2odl1R1PrR9HJV6FgCjTQ4PJ/R1qPxSqNGz4CYVQPzM/u+rrn/psNNIxE1ORxm0FGxqxJlhoMlpoHVzJgZaE+yEg7WY1jFfIFy+IzBRAc+pGblDej80nELTXgSFjBaVTXvtzmRHRjai9MjruRYE55JxPF09xE0Dxebu/f7088sjzkPzKoypkaswWJuOszVlZs0Wny83qzh60CV6PjOwUNVqJd7yoZ/JhcwAR1MOz+PEqsYZytgNRHmKKBA7k8OgCNqU4zPMAv4fKK0XCMLfLWT3IaBgMOEprm2gN0FpWyd7oBhjV63l36mE/Q0NJ5J+vidUYa24WSWG79fO73ENB+YP0WdURhVUEPsmHyER7o1nnnTQzwl36v+u+/e8FbOopKhN398Px6mCz6LwullmGcYWMWMBYaB4mNuBJnMQLFdwuvITMseUkDoiValUxyay+hVVazLHJ7UIgHjuU9B3niKXnd76Bfw8Lrn45kE48UfNKNjOJP/7nunVlXbkV/On2osKS8kqKHQkvkIO/s0nnrTR1+cf9fc6Z//6CcaxuNyivHcgneOJca9qYWotS0sI41FSqEySBvNHFEsuU7FvFBFgoxKqydF/vMdpBN+AJrhwU7gYpO91dVsDbNfE7eocRpZa/R5/fSgP0DPsQ6S8Z/u6cMbP7kNvcOFdAhYSpXz8/lTjeXVpQrmCIsXrt3WrfHsQa+rK+mv+eENDa+HIf0kcZjjpIkbYdoKVMccnE2EpSS2GknyH3REwUCBWazPVRZmS1G7Q73kNfeDXB7SV8OFJntLKqAKLJ7Q/KgwG5xvGzEX+Al6weuhx1gHOdYv+S6eaxpAw6MjXE+z4+u10yuK1M/mTTEWTy9TGMkhJbqR5zH2t/r+oXbvqn+97vD9Yek86YAJCK1ntbMExUYR5tgKSxmYT4xyKIj8kRaIhaVEMMWM6TVkoFqKInYl4femiJNyAQ6IHaWp2CGUOWwYo3Tghd248W4XhHSm6E2vjx/3XdUo0RKSkN8fx6sDR9A+UuLZ1d+aflaBsn48b4qaU1NhwJLFj/Bm5WKE9l7Nhzv0p7+w7eBnjvm3Qizq1ABMhlCJ7i+vwRQDONtQOJuAGVIRghHEhRwDjpQXMQqwggyW4oyn1BpC7Pk7mmRqDB/2+tWTOokGrXEEhNd8Hy+6nXjr/v+OvpFyoHfeXbO+yDH+fd5UVSFgEeNcLrD0JZgbOv1/c6YfvKF+EVL50HzqbfZuNtavRVFZFLNsE2eTwnwCKkGIgGGQWFgyHEdFMMOI6qVkBaGNp95aRngTzPDZpQPuAJ7TKWohhhjMDvoaL/clsb/VxNFc4Qm77q6tK3CMf5w/lewwYBG5JZ7SaO7iX0eKOnf92erO7nzAEnD5fDtMVntJD509C+UFGnMU4SxizGKgXKmgGOM7gAMbpWaUz1I2zztZdyeG2Zfg2NHo1Ul61evnV+GpHq3QA0YjGK9pjdcTGq0/2IP4SLHK2++cHrMjxhdjtnHj/CmEGSE4i4BFsv/auv1nCu3UjtvOawyuXc73OWUBk14I0/mfQ6SiAFVRC3MMxnykq0WUghERp+Xgo0r+bkRRSw7PUybXZO04+W7KeLdnpn6dwls6Qa97CbQAwTHQy4xmVtjPcezv89D8kwfRnytk48q7a5YYpL5VHFWL509VmFaqYOU4hrKGuo4+/UrETuz62OqmV0a7xlMcMJll1bO6rADRwmhQT2WmoTAHhFoJ6mZCVCGogqUGH1cMmEaEpxkO15BJ02FwyaQdW1LAUNMRP4VG7dJhncQRkrKpjKQGuonRrAlvMuOg24PWrm705aymUA+1c/asjxuEvywvoOi8qQrVxQpmDgFXwCIOx65+/Xos6l/70aWHngk8AaN8Tg/AZBdXz2oVEJlRi9KojxlsYCYBtYog/qdCCTpX6fsf3wGe4OxVOkYOVSsTFTBRqSTVRAWpvWPagyCFxEc3a+pkF0e0S+1+EnLReUrMp2KFB9BPQIcPNCkfh3ygoS+Oo2E4itB+5V0zFxpEXzUU1laXEOZNUSgrVDDUyAKugEX8Rn0J/UrU0Tc0Lj34RD2NbPrPhaMxbVauwSfud6aF9bCmVaKoPBoUOp5uEGawxtTguBLNigOH4zHtajD3OUaXuB4sLjYMFLJCVIlgbUg/tgVyFDgxg6wQTUzCIVLsIykBXOwjzpp64KGPNXzR4TidQCKBAwKSuAiyYoFnoMnTaIyn0NaZRPejPUiGCc5ef0dVYVks+ikCfdyxYdeUK8yqUiiKSCXKke0GGbBwb1w/HYt6e37+ylvP3ndNQNuYntMUMIPWvJuN7Yvg0AwUOT4qDAPVMDAFjEqpHRcUGwQiUg9Pji4wJJP/uG1HhjoxfCujhQWtBj2cdcsRJKxCWmnW0FBwpWSZRL+xQpeSbEdGWwpoNVNoT/agpyeO+HDVpd71Bu+Fsau/9kNvG/Y/Q4QZxTHC7CqFaWUEx0oLbiM9ApakxzyQ0P9RHE380aHvNL1Wn8OpGBZFpz9gBq/0XjbOb4A91UaMFEqsCEq1jwpSKCMKBOVCueSU0tf32CyFA9LFgMTlEnyyWuNYVioLMNLRfQIcLWEURPCEg8gNKmDESaFXM7q1hy5SOKoNdOoEuvsL0J86gGRokMg66qF2zarZCRh/GQStm8CUEsLMKgNlBZRTXpEhxCgXT7Gf9PkbRZHEp29c3NRwIvDDgmOodr9fgHnHCplWfRQmVsGq7EekOIqoZ6CAGIW2QoE2EFMeYmzBgQ7iciyW7Ck5xhhyHMmB5LOCRzqo8+8yIwGFuC+1dBX6tEa/qwP5ZCAZRbzhANyX8Dag6gdF/4V4OwvrYS+YM/Ma0vTnAhRBbHGUUFspWhAhaoc7giT3diDBfVr7fx0t6PjKRxb1jLlaw4nkn66AoZ13z1hGTCXwuPm7H218Lfd7eZtZ1IPWAypaDsNPwtTFMA0DRsyFKYUdDTlcFAzfBRkW2FfQXgIaEfhGEp5pwTviwccReL1N8J+a/rZMUC/c591FDHPTA1x1T+U09gtuJASVPcWqjagNTC1VqCknFMdya0EyT6A2exLgy/uV8v60uvrQT6+pFVvO+D+nHWB23TXzCij6AoC5oiNIpBgYz4Hon32/7//ef1P7iBFjI2+hnEBDMuJRq6Enjrb7XtjuwKztxPwBgtoa5LARELGAymLCjDKFsiJ1zMQ/0gsSouS8jKeYk66+vyDifap46eGXr6GxC7fD7dNpBZgr/7lml8HGfWLpFc+9aD4iiIruGnxpaQ3lIQZ/V/v6R/d/pOGN8f/G8h9xx9cri4hilyultgO8g5hKhVpZQ8QGKosIU8sUygukPko6USlX0FdWZe5P8lGG/myhceQbN67sk8re4wbu01qGWX/37EgZ+JBtoloEQPkjjjYxd3cPpAOak64YqbLLDOJUXyXCr5j1b1zFD/7wQw2N+b/u/HuI6Z4cY7UBJRfDbwBhHbFEC6bVL9MACiKEiiJCdTGhRICSsdaGAYro73GXdcLlXzqW92m38K0nbzvjbVV9Ep7ThsNceXfN1phl/GhOtZzvUnZcrHPp8zvpinEKYs1EZz+jNwMeSZOU3wPuk9Z4GpnxAoEf14w3PNBLluEd+u6HGkU4zPvLXH83IsV+TY0yaS6xWgzCYrk0i4ElWYDI3AICU6W5SWkBobxQBYAvcI5rPrmAkpVV5APpT3IDKf8fCksS/3bj/Jb28dSCcmHutAHMe++p3VtbYf7TgmlSBuLdQc2yUDGBpzwgntToSQA9Axq9Cfk7I+mluY9+R4hzYFBhMPWB0EyETmjdxUSdIPRCI5UxoxvMFBO7DgI/FpeAUA2gKg2MzIGY2W0Bsmg6ohbHHEJxFIEAWxKl4O+WkdHjQ+7+seMnpfs9zd8sMeP/6OqW1/esDgyEk/qEJHlSaRpyso/dX3vdzArrW9UlxnFDyRAtsxxFjCa+D6R8RiIFDKQClVM0ieDvwpUk11kSugREgqMgF/rYu5etGZrpCDeQX+XfAg7DSB8zcqyIliOgEO5R4IjWkz46pU1gcMvDF5EFykCKXdfTP3Fs93P9RsOTf7pMEvdOznPaAOZvfz11Nlmx56aWqqJA4g35HDuSMleaCZcRkEiahXAjYfHyb1FLAwBluJC0k74iUIs0FFj2BBxiLlZpgNjyx6L0v02CZSKIdpPfAqE8c86EOW6yy8kCVnxA8RS7KY9/4dj+F42Snkf2zO3smczj57QWeut/LWLArD8rLTA+UxwTR09uTWI4TB3nImkeEjiBgv/I/j3z70EnTfalD+Yux//7OIDzAcdg+tLcjeHJkZrigZTmnzmm/opZ2v3oqQCULK3hP9WQX/RENrv3EURfSc36eMQ2/qQoQmWSoJXWr8focp5IokcYOwvctOzFHE+hSbP+fsRK3ePEky/edEG7yFZ5C+MTuZzTCjCyEcJpKmJTaruT0d0m0dWOpVYWOGTKcZA9qkb7lU/kRp945IjPRzIgkq4ecH08ZpC+r9hO/LS3sKV5slTk0az3tANMdpH19VBVu6ti8a7I2Sk2d5qKNluEZVGHjEDIzMgcpwJ4guMmkIcCTiI3acmtJ08z+CcxM/ljRfEDzas6e8caqzIaAOTb57QFzOCF3nsvjN6llbGubmduImVuMpWxXhHWOCZVy7EVCKEqo6VktJt8Nyps++wxkwWICNIpl9nVkhHATwL6gcIC79co6H+rbG5n30Sa8cPSnE+73wvAnCA80jcegONVVpd09cXO9lycT0qtNhSfrUjNdSzYliISNdfIuBfSwmv+WzFYYBbVXDQsTzO7HsdZ44DP9DKz/5QT8R9xovE3+ovau3pqkDwdOMlwIMp/l/KB4ynQVtJt73sJVme8LGqoSGlH3DzTZ3MBGGcoRTMNRVPBuloRlSqiGBFbKh3gGWjF6ayWY/4qKaKiGZSSSALN3MXEbdDUqoFDYN5v2f7LhUXJ/eRb3QN2Q3/HfLinM0BOfIW/94AZErMMuvc+KCyCkfCmWH2UsKOG7fhkOhy3Y/2+LtTgmOeZUWI2DIt83/cSMYP6oyb1+7FkXA3Yybirk1E3meqf0p7qaIBfvz4dqnkKfCcTRsIfJmAmbDt//wf+L8D8/r/jcV3h/w+QoZYTr3SZnQAAAABJRU5ErkJggg=="
  26230. /***/ }),
  26231. /* 436 */,
  26232. /* 437 */,
  26233. /* 438 */,
  26234. /* 439 */,
  26235. /* 440 */,
  26236. /* 441 */,
  26237. /* 442 */,
  26238. /* 443 */,
  26239. /* 444 */,
  26240. /* 445 */,
  26241. /* 446 */,
  26242. /* 447 */,
  26243. /* 448 */,
  26244. /* 449 */,
  26245. /* 450 */,
  26246. /* 451 */,
  26247. /* 452 */,
  26248. /* 453 */,
  26249. /* 454 */,
  26250. /* 455 */,
  26251. /* 456 */,
  26252. /* 457 */,
  26253. /* 458 */,
  26254. /* 459 */,
  26255. /* 460 */,
  26256. /* 461 */,
  26257. /* 462 */,
  26258. /* 463 */,
  26259. /* 464 */,
  26260. /* 465 */,
  26261. /* 466 */,
  26262. /* 467 */,
  26263. /* 468 */,
  26264. /* 469 */,
  26265. /* 470 */,
  26266. /* 471 */,
  26267. /* 472 */,
  26268. /* 473 */,
  26269. /* 474 */,
  26270. /* 475 */,
  26271. /* 476 */,
  26272. /* 477 */,
  26273. /* 478 */
  26274. /*!*******************************************************!*\
  26275. !*** F:/项目/HBuilderProjects/test/libs/amap-wx.130.js ***!
  26276. \*******************************************************/
  26277. /*! no static exports found */
  26278. /***/ (function(module, exports, __webpack_require__) {
  26279. /* WEBPACK VAR INJECTION */(function(wx) {function AMapWX(a) {
  26280. this.key = a.key;
  26281. this.requestConfig = {
  26282. key: a.key,
  26283. s: "rsx",
  26284. platform: "WXJS",
  26285. appname: a.key,
  26286. sdkversion: "1.2.0",
  26287. logversion: "2.0"
  26288. };
  26289. this.MeRequestConfig = {
  26290. key: a.key,
  26291. serviceName: "https://restapi.amap.com/rest/me"
  26292. };
  26293. }
  26294. AMapWX.prototype.getWxLocation = function (a, b) {
  26295. wx.getLocation({
  26296. type: "gcj02",
  26297. success: function success(c) {
  26298. c = c.longitude + "," + c.latitude;
  26299. wx.setStorage({
  26300. key: "userLocation",
  26301. data: c
  26302. });
  26303. b(c);
  26304. },
  26305. fail: function fail(c) {
  26306. wx.getStorage({
  26307. key: "userLocation",
  26308. success: function success(d) {
  26309. d.data && b(d.data);
  26310. }
  26311. });
  26312. a.fail({
  26313. errCode: "0",
  26314. errMsg: c.errMsg || ""
  26315. });
  26316. }
  26317. });
  26318. };
  26319. AMapWX.prototype.getMEKeywordsSearch = function (a) {
  26320. if (!a.options) return a.fail({
  26321. errCode: "0",
  26322. errMsg: "\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570"
  26323. });
  26324. var b = a.options,
  26325. c = this.MeRequestConfig,
  26326. d = {
  26327. key: c.key,
  26328. s: "rsx",
  26329. platform: "WXJS",
  26330. appname: a.key,
  26331. sdkversion: "1.2.0",
  26332. logversion: "2.0"
  26333. };
  26334. b.layerId && (d.layerId = b.layerId);
  26335. b.keywords && (d.keywords = b.keywords);
  26336. b.city && (d.city = b.city);
  26337. b.filter && (d.filter = b.filter);
  26338. b.sortrule && (d.sortrule = b.sortrule);
  26339. b.pageNum && (d.pageNum = b.pageNum);
  26340. b.pageSize && (d.pageSize = b.pageSize);
  26341. b.sig && (d.sig = b.sig);
  26342. wx.request({
  26343. url: c.serviceName + "/cpoint/datasearch/local",
  26344. data: d,
  26345. method: "GET",
  26346. header: {
  26347. "content-type": "application/json"
  26348. },
  26349. success: function success(e) {
  26350. (e = e.data) && e.status && "1" === e.status && 0 === e.code ? a.success(e.data) : a.fail({
  26351. errCode: "0",
  26352. errMsg: e
  26353. });
  26354. },
  26355. fail: function fail(e) {
  26356. a.fail({
  26357. errCode: "0",
  26358. errMsg: e.errMsg || ""
  26359. });
  26360. }
  26361. });
  26362. };
  26363. AMapWX.prototype.getMEIdSearch = function (a) {
  26364. if (!a.options) return a.fail({
  26365. errCode: "0",
  26366. errMsg: "\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570"
  26367. });
  26368. var b = a.options,
  26369. c = this.MeRequestConfig,
  26370. d = {
  26371. key: c.key,
  26372. s: "rsx",
  26373. platform: "WXJS",
  26374. appname: a.key,
  26375. sdkversion: "1.2.0",
  26376. logversion: "2.0"
  26377. };
  26378. b.layerId && (d.layerId = b.layerId);
  26379. b.id && (d.id = b.id);
  26380. b.sig && (d.sig = b.sig);
  26381. wx.request({
  26382. url: c.serviceName + "/cpoint/datasearch/id",
  26383. data: d,
  26384. method: "GET",
  26385. header: {
  26386. "content-type": "application/json"
  26387. },
  26388. success: function success(e) {
  26389. (e = e.data) && e.status && "1" === e.status && 0 === e.code ? a.success(e.data) : a.fail({
  26390. errCode: "0",
  26391. errMsg: e
  26392. });
  26393. },
  26394. fail: function fail(e) {
  26395. a.fail({
  26396. errCode: "0",
  26397. errMsg: e.errMsg || ""
  26398. });
  26399. }
  26400. });
  26401. };
  26402. AMapWX.prototype.getMEPolygonSearch = function (a) {
  26403. if (!a.options) return a.fail({
  26404. errCode: "0",
  26405. errMsg: "\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570"
  26406. });
  26407. var b = a.options,
  26408. c = this.MeRequestConfig,
  26409. d = {
  26410. key: c.key,
  26411. s: "rsx",
  26412. platform: "WXJS",
  26413. appname: a.key,
  26414. sdkversion: "1.2.0",
  26415. logversion: "2.0"
  26416. };
  26417. b.layerId && (d.layerId = b.layerId);
  26418. b.keywords && (d.keywords = b.keywords);
  26419. b.polygon && (d.polygon = b.polygon);
  26420. b.filter && (d.filter = b.filter);
  26421. b.sortrule && (d.sortrule = b.sortrule);
  26422. b.pageNum && (d.pageNum = b.pageNum);
  26423. b.pageSize && (d.pageSize = b.pageSize);
  26424. b.sig && (d.sig = b.sig);
  26425. wx.request({
  26426. url: c.serviceName + "/cpoint/datasearch/polygon",
  26427. data: d,
  26428. method: "GET",
  26429. header: {
  26430. "content-type": "application/json"
  26431. },
  26432. success: function success(e) {
  26433. (e = e.data) && e.status && "1" === e.status && 0 === e.code ? a.success(e.data) : a.fail({
  26434. errCode: "0",
  26435. errMsg: e
  26436. });
  26437. },
  26438. fail: function fail(e) {
  26439. a.fail({
  26440. errCode: "0",
  26441. errMsg: e.errMsg || ""
  26442. });
  26443. }
  26444. });
  26445. };
  26446. AMapWX.prototype.getMEaroundSearch = function (a) {
  26447. if (!a.options) return a.fail({
  26448. errCode: "0",
  26449. errMsg: "\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570"
  26450. });
  26451. var b = a.options,
  26452. c = this.MeRequestConfig,
  26453. d = {
  26454. key: c.key,
  26455. s: "rsx",
  26456. platform: "WXJS",
  26457. appname: a.key,
  26458. sdkversion: "1.2.0",
  26459. logversion: "2.0"
  26460. };
  26461. b.layerId && (d.layerId = b.layerId);
  26462. b.keywords && (d.keywords = b.keywords);
  26463. b.center && (d.center = b.center);
  26464. b.radius && (d.radius = b.radius);
  26465. b.filter && (d.filter = b.filter);
  26466. b.sortrule && (d.sortrule = b.sortrule);
  26467. b.pageNum && (d.pageNum = b.pageNum);
  26468. b.pageSize && (d.pageSize = b.pageSize);
  26469. b.sig && (d.sig = b.sig);
  26470. wx.request({
  26471. url: c.serviceName + "/cpoint/datasearch/around",
  26472. data: d,
  26473. method: "GET",
  26474. header: {
  26475. "content-type": "application/json"
  26476. },
  26477. success: function success(e) {
  26478. (e = e.data) && e.status && "1" === e.status && 0 === e.code ? a.success(e.data) : a.fail({
  26479. errCode: "0",
  26480. errMsg: e
  26481. });
  26482. },
  26483. fail: function fail(e) {
  26484. a.fail({
  26485. errCode: "0",
  26486. errMsg: e.errMsg || ""
  26487. });
  26488. }
  26489. });
  26490. };
  26491. AMapWX.prototype.getGeo = function (a) {
  26492. var b = this.requestConfig,
  26493. c = a.options;
  26494. b = {
  26495. key: this.key,
  26496. extensions: "all",
  26497. s: b.s,
  26498. platform: b.platform,
  26499. appname: this.key,
  26500. sdkversion: b.sdkversion,
  26501. logversion: b.logversion
  26502. };
  26503. c.address && (b.address = c.address);
  26504. c.city && (b.city = c.city);
  26505. c.batch && (b.batch = c.batch);
  26506. c.sig && (b.sig = c.sig);
  26507. wx.request({
  26508. url: "https://restapi.amap.com/v3/geocode/geo",
  26509. data: b,
  26510. method: "GET",
  26511. header: {
  26512. "content-type": "application/json"
  26513. },
  26514. success: function success(d) {
  26515. (d = d.data) && d.status && "1" === d.status ? a.success(d) : a.fail({
  26516. errCode: "0",
  26517. errMsg: d
  26518. });
  26519. },
  26520. fail: function fail(d) {
  26521. a.fail({
  26522. errCode: "0",
  26523. errMsg: d.errMsg || ""
  26524. });
  26525. }
  26526. });
  26527. };
  26528. AMapWX.prototype.getRegeo = function (a) {
  26529. function b(d) {
  26530. var e = c.requestConfig;
  26531. wx.request({
  26532. url: "https://restapi.amap.com/v3/geocode/regeo",
  26533. data: {
  26534. key: c.key,
  26535. location: d,
  26536. extensions: "all",
  26537. s: e.s,
  26538. platform: e.platform,
  26539. appname: c.key,
  26540. sdkversion: e.sdkversion,
  26541. logversion: e.logversion
  26542. },
  26543. method: "GET",
  26544. header: {
  26545. "content-type": "application/json"
  26546. },
  26547. success: function success(g) {
  26548. if (g.data.status && "1" == g.data.status) {
  26549. g = g.data.regeocode;
  26550. var h = g.addressComponent,
  26551. f = [],
  26552. k = g.roads[0].name + "\u9644\u8FD1",
  26553. m = d.split(",")[0],
  26554. n = d.split(",")[1];
  26555. if (g.pois && g.pois[0]) {
  26556. k = g.pois[0].name + "\u9644\u8FD1";
  26557. var l = g.pois[0].location;
  26558. l && (m = parseFloat(l.split(",")[0]), n = parseFloat(l.split(",")[1]));
  26559. }
  26560. h.provice && f.push(h.provice);
  26561. h.city && f.push(h.city);
  26562. h.district && f.push(h.district);
  26563. h.streetNumber && h.streetNumber.street && h.streetNumber.number ? (f.push(h.streetNumber.street), f.push(h.streetNumber.number)) : f.push(g.roads[0].name);
  26564. f = f.join("");
  26565. a.success([{
  26566. iconPath: a.iconPath,
  26567. width: a.iconWidth,
  26568. height: a.iconHeight,
  26569. name: f,
  26570. desc: k,
  26571. longitude: m,
  26572. latitude: n,
  26573. id: 0,
  26574. regeocodeData: g
  26575. }]);
  26576. } else a.fail({
  26577. errCode: g.data.infocode,
  26578. errMsg: g.data.info
  26579. });
  26580. },
  26581. fail: function fail(g) {
  26582. a.fail({
  26583. errCode: "0",
  26584. errMsg: g.errMsg || ""
  26585. });
  26586. }
  26587. });
  26588. }
  26589. var c = this;
  26590. a.location ? b(a.location) : c.getWxLocation(a, function (d) {
  26591. b(d);
  26592. });
  26593. };
  26594. AMapWX.prototype.getWeather = function (a) {
  26595. function b(g) {
  26596. var h = "base";
  26597. a.type && "forecast" == a.type && (h = "all");
  26598. wx.request({
  26599. url: "https://restapi.amap.com/v3/weather/weatherInfo",
  26600. data: {
  26601. key: d.key,
  26602. city: g,
  26603. extensions: h,
  26604. s: e.s,
  26605. platform: e.platform,
  26606. appname: d.key,
  26607. sdkversion: e.sdkversion,
  26608. logversion: e.logversion
  26609. },
  26610. method: "GET",
  26611. header: {
  26612. "content-type": "application/json"
  26613. },
  26614. success: function success(f) {
  26615. if (f.data.status && "1" == f.data.status) {
  26616. if (f.data.lives) {
  26617. if ((f = f.data.lives) && 0 < f.length) {
  26618. f = f[0];
  26619. var k = {
  26620. city: {
  26621. text: "\u57CE\u5E02",
  26622. data: f.city
  26623. },
  26624. weather: {
  26625. text: "\u5929\u6C14",
  26626. data: f.weather
  26627. },
  26628. temperature: {
  26629. text: "\u6E29\u5EA6",
  26630. data: f.temperature
  26631. },
  26632. winddirection: {
  26633. text: "\u98CE\u5411",
  26634. data: f.winddirection + "\u98CE"
  26635. },
  26636. windpower: {
  26637. text: "\u98CE\u529B",
  26638. data: f.windpower + "\u7EA7"
  26639. },
  26640. humidity: {
  26641. text: "\u6E7F\u5EA6",
  26642. data: f.humidity + "%"
  26643. }
  26644. };
  26645. k.liveData = f;
  26646. a.success(k);
  26647. }
  26648. } else f.data.forecasts && f.data.forecasts[0] && a.success({
  26649. forecast: f.data.forecasts[0]
  26650. });
  26651. } else a.fail({
  26652. errCode: f.data.infocode,
  26653. errMsg: f.data.info
  26654. });
  26655. },
  26656. fail: function fail(f) {
  26657. a.fail({
  26658. errCode: "0",
  26659. errMsg: f.errMsg || ""
  26660. });
  26661. }
  26662. });
  26663. }
  26664. function c(g) {
  26665. wx.request({
  26666. url: "https://restapi.amap.com/v3/geocode/regeo",
  26667. data: {
  26668. key: d.key,
  26669. location: g,
  26670. extensions: "all",
  26671. s: e.s,
  26672. platform: e.platform,
  26673. appname: d.key,
  26674. sdkversion: e.sdkversion,
  26675. logversion: e.logversion
  26676. },
  26677. method: "GET",
  26678. header: {
  26679. "content-type": "application/json"
  26680. },
  26681. success: function success(h) {
  26682. if (h.data.status && "1" == h.data.status) {
  26683. h = h.data.regeocode;
  26684. if (h.addressComponent) var f = h.addressComponent.adcode;else h.aois && 0 < h.aois.length && (f = h.aois[0].adcode);
  26685. b(f);
  26686. } else a.fail({
  26687. errCode: h.data.infocode,
  26688. errMsg: h.data.info
  26689. });
  26690. },
  26691. fail: function fail(h) {
  26692. a.fail({
  26693. errCode: "0",
  26694. errMsg: h.errMsg || ""
  26695. });
  26696. }
  26697. });
  26698. }
  26699. var d = this,
  26700. e = d.requestConfig;
  26701. a.city ? b(a.city) : d.getWxLocation(a, function (g) {
  26702. c(g);
  26703. });
  26704. };
  26705. AMapWX.prototype.getPoiAround = function (a) {
  26706. function b(e) {
  26707. e = {
  26708. key: c.key,
  26709. location: e,
  26710. s: d.s,
  26711. platform: d.platform,
  26712. appname: c.key,
  26713. sdkversion: d.sdkversion,
  26714. logversion: d.logversion
  26715. };
  26716. a.querytypes && (e.types = a.querytypes);
  26717. a.querykeywords && (e.keywords = a.querykeywords);
  26718. wx.request({
  26719. url: "https://restapi.amap.com/v3/place/around",
  26720. data: e,
  26721. method: "GET",
  26722. header: {
  26723. "content-type": "application/json"
  26724. },
  26725. success: function success(g) {
  26726. if (g.data.status && "1" == g.data.status) {
  26727. if ((g = g.data) && g.pois) {
  26728. for (var h = [], f = 0; f < g.pois.length; f++) {
  26729. var k = 0 == f ? a.iconPathSelected : a.iconPath;
  26730. h.push({
  26731. latitude: parseFloat(g.pois[f].location.split(",")[1]),
  26732. longitude: parseFloat(g.pois[f].location.split(",")[0]),
  26733. iconPath: k,
  26734. width: 22,
  26735. height: 32,
  26736. id: f,
  26737. name: g.pois[f].name,
  26738. address: g.pois[f].address
  26739. });
  26740. }
  26741. a.success({
  26742. markers: h,
  26743. poisData: g.pois
  26744. });
  26745. }
  26746. } else a.fail({
  26747. errCode: g.data.infocode,
  26748. errMsg: g.data.info
  26749. });
  26750. },
  26751. fail: function fail(g) {
  26752. a.fail({
  26753. errCode: "0",
  26754. errMsg: g.errMsg || ""
  26755. });
  26756. }
  26757. });
  26758. }
  26759. var c = this,
  26760. d = c.requestConfig;
  26761. a.location ? b(a.location) : c.getWxLocation(a, function (e) {
  26762. b(e);
  26763. });
  26764. };
  26765. AMapWX.prototype.getStaticmap = function (a) {
  26766. function b(e) {
  26767. c.push("location=" + e);
  26768. a.zoom && c.push("zoom=" + a.zoom);
  26769. a.size && c.push("size=" + a.size);
  26770. a.scale && c.push("scale=" + a.scale);
  26771. a.markers && c.push("markers=" + a.markers);
  26772. a.labels && c.push("labels=" + a.labels);
  26773. a.paths && c.push("paths=" + a.paths);
  26774. a.traffic && c.push("traffic=" + a.traffic);
  26775. e = "https://restapi.amap.com/v3/staticmap?" + c.join("&");
  26776. a.success({
  26777. url: e
  26778. });
  26779. }
  26780. var c = [];
  26781. c.push("key=" + this.key);
  26782. var d = this.requestConfig;
  26783. c.push("s=" + d.s);
  26784. c.push("platform=" + d.platform);
  26785. c.push("appname=" + d.appname);
  26786. c.push("sdkversion=" + d.sdkversion);
  26787. c.push("logversion=" + d.logversion);
  26788. a.location ? b(a.location) : this.getWxLocation(a, function (e) {
  26789. b(e);
  26790. });
  26791. };
  26792. AMapWX.prototype.getInputtips = function (a) {
  26793. var b = Object.assign({}, this.requestConfig);
  26794. a.location && (b.location = a.location);
  26795. a.keywords && (b.keywords = a.keywords);
  26796. a.type && (b.type = a.type);
  26797. a.city && (b.city = a.city);
  26798. a.citylimit && (b.citylimit = a.citylimit);
  26799. wx.request({
  26800. url: "https://restapi.amap.com/v3/assistant/inputtips",
  26801. data: b,
  26802. method: "GET",
  26803. header: {
  26804. "content-type": "application/json"
  26805. },
  26806. success: function success(c) {
  26807. c && c.data && c.data.tips && a.success({
  26808. tips: c.data.tips
  26809. });
  26810. },
  26811. fail: function fail(c) {
  26812. a.fail({
  26813. errCode: "0",
  26814. errMsg: c.errMsg || ""
  26815. });
  26816. }
  26817. });
  26818. };
  26819. AMapWX.prototype.getDrivingRoute = function (a) {
  26820. var b = Object.assign({}, this.requestConfig);
  26821. a.origin && (b.origin = a.origin);
  26822. a.destination && (b.destination = a.destination);
  26823. a.strategy && (b.strategy = a.strategy);
  26824. a.waypoints && (b.waypoints = a.waypoints);
  26825. a.avoidpolygons && (b.avoidpolygons = a.avoidpolygons);
  26826. a.avoidroad && (b.avoidroad = a.avoidroad);
  26827. wx.request({
  26828. url: "https://restapi.amap.com/v3/direction/driving",
  26829. data: b,
  26830. method: "GET",
  26831. header: {
  26832. "content-type": "application/json"
  26833. },
  26834. success: function success(c) {
  26835. c && c.data && c.data.route && a.success({
  26836. paths: c.data.route.paths,
  26837. taxi_cost: c.data.route.taxi_cost || ""
  26838. });
  26839. },
  26840. fail: function fail(c) {
  26841. a.fail({
  26842. errCode: "0",
  26843. errMsg: c.errMsg || ""
  26844. });
  26845. }
  26846. });
  26847. };
  26848. AMapWX.prototype.getWalkingRoute = function (a) {
  26849. var b = Object.assign({}, this.requestConfig);
  26850. a.origin && (b.origin = a.origin);
  26851. a.destination && (b.destination = a.destination);
  26852. wx.request({
  26853. url: "https://restapi.amap.com/v3/direction/walking",
  26854. data: b,
  26855. method: "GET",
  26856. header: {
  26857. "content-type": "application/json"
  26858. },
  26859. success: function success(c) {
  26860. c && c.data && c.data.route && a.success({
  26861. paths: c.data.route.paths
  26862. });
  26863. },
  26864. fail: function fail(c) {
  26865. a.fail({
  26866. errCode: "0",
  26867. errMsg: c.errMsg || ""
  26868. });
  26869. }
  26870. });
  26871. };
  26872. AMapWX.prototype.getTransitRoute = function (a) {
  26873. var b = Object.assign({}, this.requestConfig);
  26874. a.origin && (b.origin = a.origin);
  26875. a.destination && (b.destination = a.destination);
  26876. a.strategy && (b.strategy = a.strategy);
  26877. a.city && (b.city = a.city);
  26878. a.cityd && (b.cityd = a.cityd);
  26879. wx.request({
  26880. url: "https://restapi.amap.com/v3/direction/transit/integrated",
  26881. data: b,
  26882. method: "GET",
  26883. header: {
  26884. "content-type": "application/json"
  26885. },
  26886. success: function success(c) {
  26887. c && c.data && c.data.route && (c = c.data.route, a.success({
  26888. distance: c.distance || "",
  26889. taxi_cost: c.taxi_cost || "",
  26890. transits: c.transits
  26891. }));
  26892. },
  26893. fail: function fail(c) {
  26894. a.fail({
  26895. errCode: "0",
  26896. errMsg: c.errMsg || ""
  26897. });
  26898. }
  26899. });
  26900. };
  26901. AMapWX.prototype.getRidingRoute = function (a) {
  26902. var b = Object.assign({}, this.requestConfig);
  26903. a.origin && (b.origin = a.origin);
  26904. a.destination && (b.destination = a.destination);
  26905. wx.request({
  26906. url: "https://restapi.amap.com/v3/direction/riding",
  26907. data: b,
  26908. method: "GET",
  26909. header: {
  26910. "content-type": "application/json"
  26911. },
  26912. success: function success(c) {
  26913. c && c.data && c.data.route && a.success({
  26914. paths: c.data.route.paths
  26915. });
  26916. },
  26917. fail: function fail(c) {
  26918. a.fail({
  26919. errCode: "0",
  26920. errMsg: c.errMsg || ""
  26921. });
  26922. }
  26923. });
  26924. };
  26925. module.exports.AMapWX = AMapWX;
  26926. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  26927. /***/ }),
  26928. /* 479 */,
  26929. /* 480 */,
  26930. /* 481 */,
  26931. /* 482 */,
  26932. /* 483 */,
  26933. /* 484 */,
  26934. /* 485 */,
  26935. /* 486 */,
  26936. /* 487 */,
  26937. /* 488 */,
  26938. /* 489 */,
  26939. /* 490 */,
  26940. /* 491 */,
  26941. /* 492 */,
  26942. /* 493 */,
  26943. /* 494 */,
  26944. /* 495 */,
  26945. /* 496 */,
  26946. /* 497 */,
  26947. /* 498 */,
  26948. /* 499 */,
  26949. /* 500 */,
  26950. /* 501 */,
  26951. /* 502 */,
  26952. /* 503 */
  26953. /*!************************************************!*\
  26954. !*** F:/项目/HBuilderProjects/test/api/study.js ***!
  26955. \************************************************/
  26956. /*! no static exports found */
  26957. /***/ (function(module, exports, __webpack_require__) {
  26958. "use strict";
  26959. Object.defineProperty(exports, "__esModule", {
  26960. value: true
  26961. });
  26962. exports.detail = detail;
  26963. exports.getItem = getItem;
  26964. exports.getLikes = getLikes;
  26965. exports.getMenu = getMenu;
  26966. exports.getPage = getPage;
  26967. exports.getPaper = getPaper;
  26968. exports.getResult = getResult;
  26969. exports.getTab = getTab;
  26970. exports.getTestList = getTestList;
  26971. exports.likes = likes;
  26972. exports.studyGoodsByUser = studyGoodsByUser;
  26973. exports.studyGoodsDetail = studyGoodsDetail;
  26974. exports.studyGoodsList = studyGoodsList;
  26975. exports.studyTest = studyTest;
  26976. exports.subscribe = subscribe;
  26977. exports.videoDetail = videoDetail;
  26978. exports.videoList = videoList;
  26979. var _request = __webpack_require__(/*! @/utils/request.js */ 31);
  26980. // 获取栏目
  26981. function getMenu(data) {
  26982. return (0, _request.request)({
  26983. url: '/zswl-cloud-shop/column/searchByUser',
  26984. data: data
  26985. });
  26986. }
  26987. // 获取二级栏目页
  26988. function getPage(data) {
  26989. return (0, _request.request)({
  26990. url: '/zswl-cloud-shop/column/page',
  26991. data: data
  26992. });
  26993. }
  26994. // 获取tab列表
  26995. function getTab(data) {
  26996. return (0, _request.request)({
  26997. url: '/zswl-cloud-shop/community/get',
  26998. data: data
  26999. });
  27000. }
  27001. // 获取tab内容列表
  27002. function getItem(data) {
  27003. return (0, _request.request)({
  27004. url: '/zswl-cloud-shop/communityItem/getItem',
  27005. data: data
  27006. });
  27007. }
  27008. // 获取帖子详情
  27009. function detail(data) {
  27010. return (0, _request.request)({
  27011. url: '/zswl-cloud-shop/communityItem/detail',
  27012. data: data
  27013. });
  27014. }
  27015. // 获取三级栏目列表
  27016. function studyGoodsList(data) {
  27017. return (0, _request.request)({
  27018. url: '/zswl-cloud-shop/goodsCoupon/studyGoods',
  27019. data: data
  27020. });
  27021. }
  27022. // 研学商品推荐
  27023. function studyGoodsByUser(data) {
  27024. return (0, _request.request)({
  27025. url: '/zswl-cloud-shop/goodsCoupon/studyGoodsByUser',
  27026. data: data
  27027. });
  27028. }
  27029. // 研学商品详情
  27030. function studyGoodsDetail(data) {
  27031. return (0, _request.request)({
  27032. url: '/zswl-cloud-shop/goodsCoupon/studyGoodsDetail',
  27033. data: data
  27034. });
  27035. }
  27036. // 研学测试题库
  27037. function getPaper(data) {
  27038. return (0, _request.request)({
  27039. url: '/zswl-cloud-shop/paper/search',
  27040. data: data
  27041. });
  27042. }
  27043. // 研学测试题
  27044. function getTestList(data) {
  27045. return (0, _request.request)({
  27046. url: '/zswl-cloud-shop/paperQuestions/search',
  27047. data: data
  27048. });
  27049. }
  27050. // 研学测试
  27051. function studyTest(data) {
  27052. return (0, _request.request)({
  27053. url: '/zswl-cloud-bdb/user/studyTest',
  27054. data: data
  27055. });
  27056. }
  27057. // 研学测试结果
  27058. function getResult(data) {
  27059. return (0, _request.request)({
  27060. url: '/zswl-cloud-shop/paperResult/get',
  27061. data: data
  27062. });
  27063. }
  27064. // 课程视频列表
  27065. function videoList(data) {
  27066. return (0, _request.request)({
  27067. url: '/zswl-cloud-shop/course/video',
  27068. data: data
  27069. });
  27070. }
  27071. // 课程详情
  27072. function videoDetail(data) {
  27073. return (0, _request.request)({
  27074. url: '/zswl-cloud-shop/course/detail',
  27075. data: data
  27076. });
  27077. }
  27078. // 研学预约
  27079. function subscribe(data) {
  27080. return (0, _request.request)({
  27081. url: '/zswl-cloud-shop/reservationLog/addOrUpdate',
  27082. method: 'post',
  27083. data: data
  27084. });
  27085. }
  27086. // 查询点赞
  27087. function getLikes(data) {
  27088. return (0, _request.request)({
  27089. url: '/zswl-cloud-shop/communityLikeLog/get',
  27090. data: data
  27091. });
  27092. }
  27093. // 点赞/取消点赞
  27094. function likes(data) {
  27095. return (0, _request.request)({
  27096. url: '/zswl-cloud-shop/communityLikeLog/likes',
  27097. method: 'post',
  27098. data: data
  27099. });
  27100. }
  27101. /***/ }),
  27102. /* 504 */,
  27103. /* 505 */,
  27104. /* 506 */,
  27105. /* 507 */,
  27106. /* 508 */,
  27107. /* 509 */,
  27108. /* 510 */,
  27109. /* 511 */,
  27110. /* 512 */,
  27111. /* 513 */,
  27112. /* 514 */,
  27113. /* 515 */,
  27114. /* 516 */,
  27115. /* 517 */,
  27116. /* 518 */,
  27117. /* 519 */,
  27118. /* 520 */,
  27119. /* 521 */,
  27120. /* 522 */,
  27121. /* 523 */,
  27122. /* 524 */,
  27123. /* 525 */,
  27124. /* 526 */,
  27125. /* 527 */,
  27126. /* 528 */,
  27127. /* 529 */,
  27128. /* 530 */,
  27129. /* 531 */,
  27130. /* 532 */,
  27131. /* 533 */,
  27132. /* 534 */,
  27133. /* 535 */,
  27134. /* 536 */
  27135. /*!*************************************************************!*\
  27136. !*** F:/项目/HBuilderProjects/test/static/study/play-btn.png ***!
  27137. \*************************************************************/
  27138. /*! no static exports found */
  27139. /***/ (function(module, exports) {
  27140. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABEdJREFUWEfFmFtoXGUQx39zdpPGJk1MrJAUYnZjGmuLpNn4UGPaYvVBbYUWo9VCixcEEaShPiSo2IiXKhFaRB9EECxiK7RYKOJTlSrUC+luK6iNbd1clKCtUhOjIU3O6HeSDZt1N+eyG3veds/Mf35nvsvM9wkBny/P6/Iii03AGrGoxqYGocaRU4axGAaG1eYrwhxtqZVzQUKJH6evk1odhg5gC0KjH1+BPlWOFCl7b6qXX7z6egI8c0GXjI3RJbATKPUqntVO+BNl38RletYslxE3LVfAxKA+ZNu8JnCNm5iv98JFlM5YRN6Zzy8noKpKYoAe4ClfgX0aC/SsrqNTRDSba1bAT5NaUiG8B9zrM15Q80OVyvZoVMYzBbICxpN6AOGBoNEC+h2IRWSbK2CiX59WeClgkPzclK5YVF5NF5mTwd6kbraEw4CVX6SA3sKU2LQ3R+VISmEW8OxvWj46ynlgaUD5QrldDJUQaaqWMSM4C5gY0N2qdPuNcvDzSU702TTXW2y9NcTiRa47l5cQz8Ui8sIsYG+fLpVizolQ4cU73eaJtyZmf1aWwcMbwjTU5D1DLo2PcX3rKvnd+dyTSe0WYbdfOGOfDuh8scDGFos7Y2Gs/JLpZNGRiPdrAlhdCMCURkONONmsLAtMeSoWkWZJJDWiwo/p89EPaGYG030XL4Lt60M0RUN+JFO2Kkq9Adypwr4gCtmGOJvO2pUW7beEKAr7y6YIHRJP6rsIOxYS0Ggvq4JH7yiiptIHpLJf4v16DNiw0IBGvygE97WGaFvpecg/MYDfAyv+D8BUjLYbLbatC3sJ+Z2cTOofIpR7sc5mM98iyaVpWfDGY8VeQl66IoDrV1lsbXPPoCojZpH0+T1f5Kokbikxc7C9NcRar3NQ+cEAHkdY5yae673XIQ64ij8z++AHKty/kIBB98F/F+9BiQ9oJ8orCwGYZyVBlA7pTeoKSzBbTaAn1xAXoBZPl7qZZiHwXpgJaDqYuwvTzUw3Cw5gUvcgdAVJ4ZNvTzBlT3tWlcEjt4epr867HzRtW3dznTzvAJ74VqtKSp12/2q/kIe/mOTYNzaxelMdCtZRz21YDdQVPc1lZEXhmZaIvGz+nm0tTp/W0qkKzsLMDZXfVBbO/me7mMabl8lfcwBnFstdCkcFPLcbheNy0jWFck8sIh+ndP/TnMWT2oWwp6CBvYq5HdxTOvF+fR940Ktugey8XX2YYENDetWFKfYD7QUK7iZzaDzEjtZa+TvTcN7+e2a4zT1N/htbNkQz52yejUUlZ6l1PSAk+nWjwptAnVsa/LxXZVCEx9MXRPZv8KBq7gvLhV0oXSIs8eCS00SVUeDFEXj9tiz3gb6GONM4PqzXMs4uhS0i3OAHVKFPhA9Dl9nb1CC/evV1HeJcQqd+0kZ7kk1ON65cp1ArUGvsFYYEhhAG1eaMFeaj5loxRcD38w+Pr2TDDfkcggAAAABJRU5ErkJggg=="
  27141. /***/ }),
  27142. /* 537 */
  27143. /*!************************************************************!*\
  27144. !*** F:/项目/HBuilderProjects/test/static/study/playing.png ***!
  27145. \************************************************************/
  27146. /*! no static exports found */
  27147. /***/ (function(module, exports) {
  27148. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABHtJREFUWEfNmFtsFGUUx39nd0pKKsVLUQqu3a2wJSGGdjGxEqPCg5dYiChRMaHyYjTEhFof2ihKjRc0NYEYjcHEJqKCJhgbCWoMeHvwQsoufVBbaZmWQirXQEuxtt05ZqaXtGW7M7PY0nnc7/zP+e35bud8Qobfr626MCtAGVAqAeZikY+Q77hTOgnQCXSqxW8Y7FkakpZMQokf0QFT5xpQAaxGiPrRCjSrUp+lbL2lUE541XoCbDqls3p6qBbYCOR4dZ7STriAsq2vn9rShdLl5ssVMHFU11sWbwlc5+bM17hwGqUqFpa6dLoJAVVVEu3UAs/5CuzTWKC2uIAqEdFU0pSA35uaPVv4GHjYZ7xMzXdfo6yLRKR3vIOUgHFTdyE8lmm0DHW7YmF53BUw0abPK7yWYZDLkynVsYi8OdrJmAw2mPpgQPgcCHiNlLTgna/6OXZG2XCfQeQGz9JLQwhJsVhTEpH64cERwMNnNLe7m1YgzyucbXemW3lxZ78juWtxgEfvMPzIU9meDmYTXjJXeuzBEcBEu25Wpcav99GApdEA5csnBrRtc7IhO8v1dHspFpZXRgAbmjVPZtAiwuzJAmw0LbZ/O0DuTKhZm+UGea63h5uXLZazzl85aGqNCJv9wo2f4nQZ3NuQZO/BpBOicpXBgnzXtepk0QGMt2kCKP4/AZuOWY67RTcOgowGrCgziM53BTwUC0uJJEwNq3Bk9Hr0A5pqDZonLGrrBxw3FSsNovMCmQCqKIU24EYVtvmBGm2bCvCX5iQf/TA4nevuDnJ7UTATQESokLipHyKUT0dAlB0Sb9P9wIppCQjf2YB/2mt5mgL+IQdNPS9C7jQFPOcb8OR55cjfFsWFAeewncxNokqXvUma/fQXmz7p4+wFGD6UJxMQ5S8b8EeEO71O8YbtfY7pwnzh2VVZk5pBlJ/sc/AzFR6ZloDwqcTbtQrljekIKEqFNJi6KCDYR42nbwqnePCqGyoWPJ+FUwg4WCw4gKZuQaj2ksJn3u/DUiiaL2wsG7tJhivqhpYkdfsH7+Inlge5LTr2Lq5abVBwffpqRoSakgJ52QH8+Xe9NjvHKfevdoP88kCShtYkD5UaFEcC2D3JB/sGOHFOWb/CIJQnXPxXee+bwWrmqXsNrsoWjp9V6vYNMCdXePIeg2B6vrEFq+3oinZz47Ki8MLSsLxu/zzSHDQ2ak5yNodh6IXKLZWTN37cmkH01nlycQzg0Ga5X2GPQHDy4qfxLCRRVsbC8vWw1SXtVdzUaoQtVwTQrXEfhoq36U5g7RRDenv6sKE6OnTmqSQ7gDVTBLm7N0j5spD8Mz5e2g56aLrtdxrXFiyjP2KvOYtNsYhMeNW6tviJNn1A4V2gICOICUSqHBXh6dEbIpWpK6Atst8Lc4VKlGoRZl0OqCrdwKtd8PbyFO+BvqZ4vHG8U+fQS6XCahGK/IAqNIvwRbCfrUsWyEmvWk8ZTOXs0DGNWgOUOdW4cpNCSCBk2yp0CHQgHFWLpoDB3pKQ2JeA7+8/SzyW0jLdSXYAAAAASUVORK5CYII="
  27149. /***/ }),
  27150. /* 538 */,
  27151. /* 539 */,
  27152. /* 540 */,
  27153. /* 541 */,
  27154. /* 542 */,
  27155. /* 543 */,
  27156. /* 544 */,
  27157. /* 545 */,
  27158. /* 546 */,
  27159. /* 547 */,
  27160. /* 548 */,
  27161. /* 549 */,
  27162. /* 550 */,
  27163. /* 551 */,
  27164. /* 552 */
  27165. /*!***************************************************!*\
  27166. !*** F:/项目/HBuilderProjects/test/static/like.png ***!
  27167. \***************************************************/
  27168. /*! no static exports found */
  27169. /***/ (function(module, exports) {
  27170. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAQCAYAAAAbBi9cAAAAAXNSR0IArs4c6QAAAYhJREFUOE+lk71Lm1EUxn9PPkGobt06WejmotD3dXII1I+kDuLo7qCCiwjFj3YTav8DZ6F06GAUl45JTBtwEN21tB1UUJBizHtPm0revraJtuaO9zn8nnPPea6IHBt62kkCDxd/CNVd5T/tNWTL9HaRSg8Qs0eIzxyzrWLxe0NXWJj15xELoI6QbbbDpZsgrQHQa6TO3752QsC0Novr9btfIMt6Syi2HO0uAjtD6mqqQYCrjSpfzsue+Y9J6gCRaFF81/URXy67ZVn/FdLCXdW36mYZWc5/DxptC4SbkeX63wFjbYHMpuodLYJetgUi8K+HnVI9L+l7wYySNgr+9fqHvVnisTf/D7JznHnKlw4igexfQcz9M8zsgiB4rq3yhzCQYbpH/MWfEV1GCg2ah5RTqGW1US7+9UUisHFirIEetIAcEgRD2trZj+pNnW2w7wnJ5FtQzw2YWQFXG9Pmx29/mrR8guV6O7DUKtIkmMNY5Wv1hSqVq2ad3j6L+kZHvAzOucZQWy3jB8Jjhd25ElAFAAAAAElFTkSuQmCC"
  27171. /***/ }),
  27172. /* 553 */
  27173. /*!*****************************************************!*\
  27174. !*** F:/项目/HBuilderProjects/test/static/unLike.png ***!
  27175. \*****************************************************/
  27176. /*! no static exports found */
  27177. /***/ (function(module, exports) {
  27178. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAmpJREFUOE+tlE1IlEEcxp//7r4L6t40gkhiq0NJqPDOpCBBGyV0yrBDEHQRJejjEFHQoRaD6Nah70tgRNGSaBCYh9pOIs6MwSZ0EqMPvNQhFpaw5X3yXVpR261t6X+cj9/Mf555HsF/LqmHl06nI+l0Oqi0dw3QOddO8gKAHgANJOdF5ElDQ8OdQqGQJHlJRHpFpAXAFwDPPc8b7ujoWCjDV4DGmAERuQ1gVETGAXwDEB5wEkABwBaSL6LR6EixWPwQjUZbSQ4B2EOyT2v9OoSWgM65fSQnSB7TWj9d3Uo2m00kEonxSCQy7vv+zfVtOucuB0FwxvO89s7Ozs8loLXWkXyptT5f6V2y2WwslUoVq7y3GGOyAOa01qckl8ttXVpami8Wi63d3d2f6hHJGNMvIjeUUptC+gEAj7TWG+qBhXumpqZ2xOPxd4uLi01ire0lGQJD5eoqY8wuEcnl8/lGmZ6e3hyLxT4C2K6Umq+H6JwbJHlWKbWzLMorkgta64F/BVprG0m+EZGHSqkrJeDs7GxbEASG5Gmt9f1/gIYaPBaRtnw+vzuVSn1f/bEPLU9kAAwppUZqgMrMzMytSCTS53leT9kta6xnjDkSXl1Ehn3fv1oNmslk4slk8gGAvQD2a63nfrNeecBamwrtB2ACwKBSKrTdSllrW0iOichGAAfXC1kxbay120g+E5Fw/qhS6u0vi/okR0m+D4Kgv6ur6+v6LqrG1+TkZFNzc/N1AMcBXFxOmkBErgG4B+CcUurHX+Or0gLn3GGSd0tJInLC9/2xPwlWU8Baa70QUu1Wqw+oCVjDF1pZ8hMMZQOMe5fU4AAAAABJRU5ErkJggg=="
  27179. /***/ }),
  27180. /* 554 */,
  27181. /* 555 */,
  27182. /* 556 */,
  27183. /* 557 */,
  27184. /* 558 */,
  27185. /* 559 */,
  27186. /* 560 */,
  27187. /* 561 */,
  27188. /* 562 */,
  27189. /* 563 */,
  27190. /* 564 */,
  27191. /* 565 */,
  27192. /* 566 */,
  27193. /* 567 */,
  27194. /* 568 */,
  27195. /* 569 */,
  27196. /* 570 */,
  27197. /* 571 */,
  27198. /* 572 */,
  27199. /* 573 */,
  27200. /* 574 */,
  27201. /* 575 */,
  27202. /* 576 */,
  27203. /* 577 */,
  27204. /* 578 */,
  27205. /* 579 */,
  27206. /* 580 */,
  27207. /* 581 */,
  27208. /* 582 */,
  27209. /* 583 */,
  27210. /* 584 */,
  27211. /* 585 */,
  27212. /* 586 */,
  27213. /* 587 */,
  27214. /* 588 */,
  27215. /* 589 */,
  27216. /* 590 */,
  27217. /* 591 */,
  27218. /* 592 */,
  27219. /* 593 */,
  27220. /* 594 */
  27221. /*!******************************************************!*\
  27222. !*** F:/项目/HBuilderProjects/test/static/choosed.png ***!
  27223. \******************************************************/
  27224. /*! no static exports found */
  27225. /***/ (function(module, exports) {
  27226. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABhtJREFUWEfFmG1oVXUcx3//e+/c7lwjadmIdD6i6DIEswlFE+rFBQl79AEhDCFDxQVW+q53E3pxCwtnvkhopKEwgxVBhAWRVoKED80ekHTqcU7d1nHenXt+31+c/7kP5+k+6LY6r8bdved8zvf//T0qusfLGjz5hCJuJ7aXiWChEm4SQTMJkxAbBAwScV8MclKA76bMXv3TvTxK3c2PxDz9kG1xhwI2iPAjJCAHSEN5/o78HOgnhe4pYr+v5qy/Vu1zqwIcGTnfVA/uJPAGEdQRMREcsEqAIMm9gPsi+vsZEem22NzVuOD1wUqgFQHlnz/XMPhDEm7SUAQSDVcNoFfZwMuAB1WMt9bOe+3zcpAlAeXYsQSWzdwjgs0+pXKQ41BQK1lQFtxVe/XyNrXyXTsKNBJQBs42SP3UgxCsynssDykoKlH5iEsp6FFf3w+9I8ium754ixmEDAE6ysnyeT0QXlUEgOs5YtKA4/Ogq2DuflS8X2/ttYHng0qGAPnOlb0E1sdaNHhOtYn0oONhn10cVaWrbvGWN7wq+gBlzFgDxiE3bXiDwGPwifegDry8p5WStbWLthUCpwAoI1eaUBP7jQRN+QiNSBHuERdSR6U0U60HPbmUeDBjYf60pW8OOUoWADlzfT8JNhUTb0DBCfYggW0iPipAEzkVKZdXHVGUc9SPduij1oCmOdCcTKhLJJzwBsZkeZAAE+BUcsGrPzjPz/R9vJdgb/ZUowzfsWc3LH/b0IAydrMTwjv9aWOSPAg2wdkCnPP8sXP7Vgtxjy8wFXYnW3fs0oAYu3nJra1+qEnwoAnhVHLueq1c/hrr2/epuGXU6+/+5JIdM5Rl3WhLiDruj9qIKB6vBx3lRFLJua/44DJ9+9NE6PB60BOkK5Rkh94BsDscmROXBxWxybYdhvv9kzQJ5+DCHZEQ71TIDvUIsDpc/CfGgyQOnHOsL/iV++NAmiSnnCcPegNTER9RsIZOi6A1QsEzNvDyKA8ZjbFkp9s05Epd9XnQZMmmki1BuO40EXfoZ3ryarCnVIIzCtnhqwRuDnkQ9rrEfbMP5Y3Mw+fSAu6ovhbDVMimalqe8yv312dpJeiIqMX+LscNmH5HQYnshkm2xqfO/MgbbXzrTFrEgazQDxJMZY+F4KwLh9ICdBSeF6jFURyKrSHxdS3F4xuMJfhJVTfnvB/y1zSQN3ZkqTOVbadqWlI+5awLh9PieC6Xyjz9oK8WB4uDPmIB62EnmAdJ2IgJtavGAOSNU2nA7gj2g060ksWpmpZn/XB/92h7RJbRMh7MH/FpErSWzoMw4hSLgPwlDc4roiPeJEGq5uGVAbgvtC1CRSDcD0Z4UAfJ0GEBXiqfB9mIK0fJhb7jzl7/OU1aSTYJdhjuYm8EnCffVfCgEj4SSNReTwXzoG3EY/Ew5MCPnUT8Zc30p/zKXfxKV4iochmYSUp6MEayU4l1ow2ijldQ0B0ZwUY8gXbV+JhPyeAcYfV/7SZh37xc4uXLeFCEVwSahTIKFj1jxGuc446GtPq/cWtrMFqDjUhFD3J/cslbM9x2K3uzE+y0W6W6meBMYhsJQbt68HGfktaVb3PKRaWfiM/KedDbbok50IyEukDO1qCwyqhYi41ETJ5RDyw/67xk1vjek0ryMJGbheBcHPKgIs7Yo56GVatoXd8P5k3RHXUR1j+TcEaIjxIwiwRt5WeV6j0Yavk1YGBoCk114+0Hq/VgqaHJgbRHjbWKcDBs8P9mLnZqsQivq2/dXmhSSg7u/8tcTNJVt6jM4K6PWq8+5veI8KpJmElyu8TgboZJEXqnGNcqrz40pLM8mtpwEHD2M7mbTaIHlULvsF3l8ihfFdz126w9InZx/TYZuxnFXbWX73L95i1d9vD5tUS0Ry8wdcvvLjEnYD84CGBb/YKNhYCoej8Y/OKtW6fub1S174m7my4k83vcD2YU4cDtkeyuaUs36v1LuaviCtj7Y3PgbHMywdtFeIPArmKJ7qkkhH4SdGdHb3/QsHijUQks//+7AvTe1DJOtMUT6mmAl5FgoWOBfGeuCIY4O2jiPoKczCL7ff3sF09UC+X93r/1buWyOUksDAAAAABJRU5ErkJggg=="
  27227. /***/ }),
  27228. /* 595 */
  27229. /*!*******************************************************!*\
  27230. !*** F:/项目/HBuilderProjects/test/static/unChoose.png ***!
  27231. \*******************************************************/
  27232. /*! no static exports found */
  27233. /***/ (function(module, exports) {
  27234. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAABPZJREFUWEfVWU1oXFUU/s67b9p5GhHtzDRCFyk0GEnFuqidMRNwVrqIYKBdCAURu6iLQrooCCoUWkFQSMBCI2ShKHTRQAPNQldT6CTzYhZWkmAlgWRRbDozVcTBeXHevcfcN/PS/M9P+mryFrOZe8/5zjn33HPOdwk7+MoPsl2GoLdYoQOECBhtALdWRNIiCAtgFMjAXSX5h9DBxFiz6qjRjfzHZJdU8gwUejxwjXyMAgyMCkMM0fPHGwJdN1DOT74oIT8H8M4qbHMEjLgsJwyIRVfyvbDjLOr/nXC41RR0SEG2miS6GOgBcGTV3hEB8RFFj/9Wj601gfJ8Oixbwv0AzgBkAlwkooGyUt+GY6/P1aPEX+Pkxo+EDOM9Zu4DqAVgF8CQKDrn6XDK2U7WtkCLuXRrGNYNEOIAXCIeLCnns5ZYyvNas5+Waxnhj5npLAATDNtBqXc7uVsC5T8nXpEujy5bfAiMBank2/tbu6abBbfZvqXFsaPCEDdBOglxT5jUQ8+d+GWztZsC9UCWVQakw4OMw6VTO/XiVgZ6USPrOoAkmIsiZCQ3A7sBaHXjpOdJwrCYKr1LqZQ+S4F9nE6b8mXrGhgndfQclBLrHbMGqJc4T1vp6pnMiOlSKmiQvvUe2KNWuuJZZMTMWt1rgLr57NXli/rsVlYF5tKq4GryZitnlgfNaOJDX+cK0KXCeIdgmgIIUspXH3fi1Gukl2BC/AwwXOaX/CtwBaibt2/oy5yIr4hI4ly9goNYtxJZYMSMxnu9gqx/vLIoZUZf5g477UFleL1GVRI6PKuLgiCOUyQx4QF18/Z3AE4T4bKIxD+tV2CQ62TBvsSMT5bP6zdmJP5+BWjOzusGw2XV3mhZDArs0u/jHSJk/Kq7LzMWj1I5ZyeJcHvZo3NmNN4elOJm5Lp5e1Y3MszoJt/FBHwpovELzQgMao/M2/0M9OkjSX62S5an9se6hoNS2ozcpdzYSUHiuq6QGqgOe5LBqVA0casZgUHtKeezbxBIV6tb5BbseT1ClF0+bL2QWAhKaTNyS/ezbSGT5vVIQ24uWwJRWHDpGYqlis0IDGoP59Itkqy/dVf1CGixZNXqsoMCtJXcFaB6qtg7ofeTidEdisUzT9pr2+lbm0zVZmTXX0/+hc/AQCgaP7+7PGr3k3/h75kSumeaktVtHhMuh3ZJm1cu2JdofZu3En7mooNd0jgjPKvHdSXdxL7WpL1hFAHzFTO2S0cRHf7KcGdM6aFKGOIYHXht5v+4AfjhT51SyTt6SnJZbRzuKmd14irAu2RcpkEzemLjuOwNeasJiE1IgCA97BEQnR75kdQ00nryY3tKhzEsZp4QpdNpXQPVSen4Hvs3N3bMIOO2x2EyMg4CJslg6S4+qcd1xap7X6zrzvrobUk7VsCKmz7tKITR87gTzEscqUY9CoexoCB7NwOpQTdA5FbZYYsuUkv8wU7OKxftg7LEFx+x2LWpzdrUuMeyPfUVwGcq7DAX2aABk8X39fLvvlH6HcAleZoU91W5VxegITH9z7larGFNoL4Szb+bZHyx5rGBeY6JRslARiijANNcQPmvh96e0LMH4Lpt0lARVkgScw+I1jw2uKwu1Et41A3UB+yVWwMf7OT5Rrnu17osNnJ8Gga6WrgGbRh4k4EOMCKVpODK2xNRQScICAUC7iqFH3cyQfwHCbetdNRZSHEAAAAASUVORK5CYII="
  27235. /***/ }),
  27236. /* 596 */,
  27237. /* 597 */,
  27238. /* 598 */,
  27239. /* 599 */,
  27240. /* 600 */,
  27241. /* 601 */,
  27242. /* 602 */,
  27243. /* 603 */,
  27244. /* 604 */,
  27245. /* 605 */,
  27246. /* 606 */,
  27247. /* 607 */,
  27248. /* 608 */,
  27249. /* 609 */,
  27250. /* 610 */,
  27251. /* 611 */,
  27252. /* 612 */,
  27253. /* 613 */,
  27254. /* 614 */,
  27255. /* 615 */,
  27256. /* 616 */,
  27257. /* 617 */,
  27258. /* 618 */,
  27259. /* 619 */,
  27260. /* 620 */,
  27261. /* 621 */,
  27262. /* 622 */,
  27263. /* 623 */,
  27264. /* 624 */,
  27265. /* 625 */,
  27266. /* 626 */
  27267. /*!**********************************************************!*\
  27268. !*** F:/项目/HBuilderProjects/test/static/img-loading.png ***!
  27269. \**********************************************************/
  27270. /*! no static exports found */
  27271. /***/ (function(module, exports) {
  27272. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU4AAAD2CAMAAACOY573AAAAaVBMVEUAAADx8fHx8fHx8fHy8vLz8/P09PTx8fHx8fHw8PDx8fHw8PDx8fHu7u7v7+/y8vLx8fHLy8vi4uLPz8/f39/c3Nzq6urv7+/t7e3Nzc3n5+fR0dHT09PZ2dnk5OTX19fV1dXh4eHs7OyM0R2QAAAAEHRSTlMA8cqYRRQH9d+J6eS4HnNyYwOE5wAABLJJREFUeNrs1kkOwjAQRNHyECfOAH3/0yIiJCJYgXvRi/+O8GWrS2+tlrzMhh/MSy616dvUk+EvqU/6cCfmgHTT1bQbhuyXB1o3w6Ct6uVYDcPWQ6eWDQ5y01M3uOjnGWJqOkmTpGJwUqTG4HSTmqrBTeWveypiJTnKWgxuFjGTHM0yOCInOeMiJznjIic54yInOeMiJznjIic54yInOeMiJznjIic54yInOeMiJznjIic54yInOeMiJznjIueD3Tq5YhgEgiCaQo8lQEgYLfkH6bvPpmf86Arhn0qccROnOOMmTnHGTZzijJs4xRk3cYozbuIUZ9zEKc64iVOccROnOOMmTnHGTZzijJs4xRk3cf4157Oei3FqaQc3Nud2GrWlgxmZc6/G7izgxeW8zaG2gRaV82UutQJWTM5sTq1gxeS8zKsHpIic2dxKIEXkTOZWLeBE5DzMrwxORE5zrIOTJ2ddRmXf3eDkx7luGFbZL59V8uKsGWNLU3F2jK5NxHlgeH0izjeGVybiTBifOH+YOD/s3QtuozAUheEs4RwMfkIg3f8iJ23VKaEE2xmP08j3W8IvS5bA9i1KchYlOYuSnEVJzjVjLf6J5PziJ8V3brkYPEpyfjBd4Dc3WDxGcr7Tgbdch4dIzquu2LkDyQkM3BMs8klO9NwXDLJJTs97JmRrPqdRvMsjV/M5O943IlfzOUPRH+Wt59Rlj8W0nrPnkYBMreececggT+s5Q9lTRq3nVJIzg6zOoqI5Rx6yyNN6zkm2ogzRnB2PLMjUek7LIx0ytZ4TU9HD7c3n1EVvBjWfEwPvUQa5JKcJBb8nSU5ox10X5JOcgHfF7qxJziutSq1NyfnODLw1ajxEcn56Gxz/WjweJDm/GN/P4zguw9kiwmjttcEOyZnJXmbFD2NvsSU5s9iJa9M2qOTM0Tlu9AZrkjOdXfjTYrEiOZNpxT1K45vkTKUd97lVT8mZyCoy3lNypjEjmdBTcqYZeERZfJKcSXziC2mSM4VViU9QSc4UU+ojP5IzgWecs7iSnHFGMcGMK8kZNzCJByA5ozzTKANIzhgTmKgHms5pz/3VWRscGJjMot2c6zvX46BxR8d0E5rN6QNvhIvBDs0cutGcZuIPbnjDlnbMsbSZUyvumjRunJlJw7WX86BS6L83Jj0z19zg6rzwkFuGvu+HKfABurmcPf+jqbWcF0a84lyDp+XseJ/kjNnm9DwgOSO2Od8cD0jOiE1OE3hEckZscs48JDmjuOJ4THJGMZ3kjJGcRUnOoiRnUZKzKMlZlOQsSnIWJTmLkpyFsZ4WRucFPo9HHRVzTnweizoq5jzzaUZUUjGnUczwokNc6+VEx1Svuzgr5sTCDC85sLlqThuY5lW3dVTNCTuyOudR0wkVmZ6VzRZVnVCV7RWrcZNGZSfUps9dHd6guhOE5Pyt/rRDxwIAAAAAg/ytp7GjENKp80unzi+dOr906vzSqfNLp84vnTq/dOr80qnzS6fOL506v3Tq/NKp80unzi+dOr906vzSqfNLp84vnTq/dOr80qnzS6fOL506v3Tq/NKp80unzi+dOr906vzSqfNLp84vnTq/dOr8CqHKN1pXGU5GAAAAAElFTkSuQmCC"
  27273. /***/ }),
  27274. /* 627 */,
  27275. /* 628 */,
  27276. /* 629 */,
  27277. /* 630 */,
  27278. /* 631 */,
  27279. /* 632 */,
  27280. /* 633 */,
  27281. /* 634 */
  27282. /*!***********************************************************************************!*\
  27283. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-icon/icons.js ***!
  27284. \***********************************************************************************/
  27285. /*! no static exports found */
  27286. /***/ (function(module, exports, __webpack_require__) {
  27287. "use strict";
  27288. Object.defineProperty(exports, "__esModule", {
  27289. value: true
  27290. });
  27291. exports.default = void 0;
  27292. var _default = {
  27293. 'uicon-level': "\uE693",
  27294. 'uicon-column-line': "\uE68E",
  27295. 'uicon-checkbox-mark': "\uE807",
  27296. 'uicon-folder': "\uE7F5",
  27297. 'uicon-movie': "\uE7F6",
  27298. 'uicon-star-fill': "\uE669",
  27299. 'uicon-star': "\uE65F",
  27300. 'uicon-phone-fill': "\uE64F",
  27301. 'uicon-phone': "\uE622",
  27302. 'uicon-apple-fill': "\uE881",
  27303. 'uicon-chrome-circle-fill': "\uE885",
  27304. 'uicon-backspace': "\uE67B",
  27305. 'uicon-attach': "\uE632",
  27306. 'uicon-cut': "\uE948",
  27307. 'uicon-empty-car': "\uE602",
  27308. 'uicon-empty-coupon': "\uE682",
  27309. 'uicon-empty-address': "\uE646",
  27310. 'uicon-empty-favor': "\uE67C",
  27311. 'uicon-empty-permission': "\uE686",
  27312. 'uicon-empty-news': "\uE687",
  27313. 'uicon-empty-search': "\uE664",
  27314. 'uicon-github-circle-fill': "\uE887",
  27315. 'uicon-rmb': "\uE608",
  27316. 'uicon-person-delete-fill': "\uE66A",
  27317. 'uicon-reload': "\uE788",
  27318. 'uicon-order': "\uE68F",
  27319. 'uicon-server-man': "\uE6BC",
  27320. 'uicon-search': "\uE62A",
  27321. 'uicon-fingerprint': "\uE955",
  27322. 'uicon-more-dot-fill': "\uE630",
  27323. 'uicon-scan': "\uE662",
  27324. 'uicon-share-square': "\uE60B",
  27325. 'uicon-map': "\uE61D",
  27326. 'uicon-map-fill': "\uE64E",
  27327. 'uicon-tags': "\uE629",
  27328. 'uicon-tags-fill': "\uE651",
  27329. 'uicon-bookmark-fill': "\uE63B",
  27330. 'uicon-bookmark': "\uE60A",
  27331. 'uicon-eye': "\uE613",
  27332. 'uicon-eye-fill': "\uE641",
  27333. 'uicon-mic': "\uE64A",
  27334. 'uicon-mic-off': "\uE649",
  27335. 'uicon-calendar': "\uE66E",
  27336. 'uicon-calendar-fill': "\uE634",
  27337. 'uicon-trash': "\uE623",
  27338. 'uicon-trash-fill': "\uE658",
  27339. 'uicon-play-left': "\uE66D",
  27340. 'uicon-play-right': "\uE610",
  27341. 'uicon-minus': "\uE618",
  27342. 'uicon-plus': "\uE62D",
  27343. 'uicon-info': "\uE653",
  27344. 'uicon-info-circle': "\uE7D2",
  27345. 'uicon-info-circle-fill': "\uE64B",
  27346. 'uicon-question': "\uE715",
  27347. 'uicon-error': "\uE6D3",
  27348. 'uicon-close': "\uE685",
  27349. 'uicon-checkmark': "\uE6A8",
  27350. 'uicon-android-circle-fill': "\uE67E",
  27351. 'uicon-android-fill': "\uE67D",
  27352. 'uicon-ie': "\uE87B",
  27353. 'uicon-IE-circle-fill': "\uE889",
  27354. 'uicon-google': "\uE87A",
  27355. 'uicon-google-circle-fill': "\uE88A",
  27356. 'uicon-setting-fill': "\uE872",
  27357. 'uicon-setting': "\uE61F",
  27358. 'uicon-minus-square-fill': "\uE855",
  27359. 'uicon-plus-square-fill': "\uE856",
  27360. 'uicon-heart': "\uE7DF",
  27361. 'uicon-heart-fill': "\uE851",
  27362. 'uicon-camera': "\uE7D7",
  27363. 'uicon-camera-fill': "\uE870",
  27364. 'uicon-more-circle': "\uE63E",
  27365. 'uicon-more-circle-fill': "\uE645",
  27366. 'uicon-chat': "\uE620",
  27367. 'uicon-chat-fill': "\uE61E",
  27368. 'uicon-bag-fill': "\uE617",
  27369. 'uicon-bag': "\uE619",
  27370. 'uicon-error-circle-fill': "\uE62C",
  27371. 'uicon-error-circle': "\uE624",
  27372. 'uicon-close-circle': "\uE63F",
  27373. 'uicon-close-circle-fill': "\uE637",
  27374. 'uicon-checkmark-circle': "\uE63D",
  27375. 'uicon-checkmark-circle-fill': "\uE635",
  27376. 'uicon-question-circle-fill': "\uE666",
  27377. 'uicon-question-circle': "\uE625",
  27378. 'uicon-share': "\uE631",
  27379. 'uicon-share-fill': "\uE65E",
  27380. 'uicon-shopping-cart': "\uE621",
  27381. 'uicon-shopping-cart-fill': "\uE65D",
  27382. 'uicon-bell': "\uE609",
  27383. 'uicon-bell-fill': "\uE640",
  27384. 'uicon-list': "\uE650",
  27385. 'uicon-list-dot': "\uE616",
  27386. 'uicon-zhihu': "\uE6BA",
  27387. 'uicon-zhihu-circle-fill': "\uE709",
  27388. 'uicon-zhifubao': "\uE6B9",
  27389. 'uicon-zhifubao-circle-fill': "\uE6B8",
  27390. 'uicon-weixin-circle-fill': "\uE6B1",
  27391. 'uicon-weixin-fill': "\uE6B2",
  27392. 'uicon-twitter-circle-fill': "\uE6AB",
  27393. 'uicon-twitter': "\uE6AA",
  27394. 'uicon-taobao-circle-fill': "\uE6A7",
  27395. 'uicon-taobao': "\uE6A6",
  27396. 'uicon-weibo-circle-fill': "\uE6A5",
  27397. 'uicon-weibo': "\uE6A4",
  27398. 'uicon-qq-fill': "\uE6A1",
  27399. 'uicon-qq-circle-fill': "\uE6A0",
  27400. 'uicon-moments-circel-fill': "\uE69A",
  27401. 'uicon-moments': "\uE69B",
  27402. 'uicon-qzone': "\uE695",
  27403. 'uicon-qzone-circle-fill': "\uE696",
  27404. 'uicon-baidu-circle-fill': "\uE680",
  27405. 'uicon-baidu': "\uE681",
  27406. 'uicon-facebook-circle-fill': "\uE68A",
  27407. 'uicon-facebook': "\uE689",
  27408. 'uicon-car': "\uE60C",
  27409. 'uicon-car-fill': "\uE636",
  27410. 'uicon-warning-fill': "\uE64D",
  27411. 'uicon-warning': "\uE694",
  27412. 'uicon-clock-fill': "\uE638",
  27413. 'uicon-clock': "\uE60F",
  27414. 'uicon-edit-pen': "\uE612",
  27415. 'uicon-edit-pen-fill': "\uE66B",
  27416. 'uicon-email': "\uE611",
  27417. 'uicon-email-fill': "\uE642",
  27418. 'uicon-minus-circle': "\uE61B",
  27419. 'uicon-minus-circle-fill': "\uE652",
  27420. 'uicon-plus-circle': "\uE62E",
  27421. 'uicon-plus-circle-fill': "\uE661",
  27422. 'uicon-file-text': "\uE663",
  27423. 'uicon-file-text-fill': "\uE665",
  27424. 'uicon-pushpin': "\uE7E3",
  27425. 'uicon-pushpin-fill': "\uE86E",
  27426. 'uicon-grid': "\uE673",
  27427. 'uicon-grid-fill': "\uE678",
  27428. 'uicon-play-circle': "\uE647",
  27429. 'uicon-play-circle-fill': "\uE655",
  27430. 'uicon-pause-circle-fill': "\uE654",
  27431. 'uicon-pause': "\uE8FA",
  27432. 'uicon-pause-circle': "\uE643",
  27433. 'uicon-eye-off': "\uE648",
  27434. 'uicon-eye-off-outline': "\uE62B",
  27435. 'uicon-gift-fill': "\uE65C",
  27436. 'uicon-gift': "\uE65B",
  27437. 'uicon-rmb-circle-fill': "\uE657",
  27438. 'uicon-rmb-circle': "\uE677",
  27439. 'uicon-kefu-ermai': "\uE656",
  27440. 'uicon-server-fill': "\uE751",
  27441. 'uicon-coupon-fill': "\uE8C4",
  27442. 'uicon-coupon': "\uE8AE",
  27443. 'uicon-integral': "\uE704",
  27444. 'uicon-integral-fill': "\uE703",
  27445. 'uicon-home-fill': "\uE964",
  27446. 'uicon-home': "\uE965",
  27447. 'uicon-hourglass-half-fill': "\uE966",
  27448. 'uicon-hourglass': "\uE967",
  27449. 'uicon-account': "\uE628",
  27450. 'uicon-plus-people-fill': "\uE626",
  27451. 'uicon-minus-people-fill': "\uE615",
  27452. 'uicon-account-fill': "\uE614",
  27453. 'uicon-thumb-down-fill': "\uE726",
  27454. 'uicon-thumb-down': "\uE727",
  27455. 'uicon-thumb-up': "\uE733",
  27456. 'uicon-thumb-up-fill': "\uE72F",
  27457. 'uicon-lock-fill': "\uE979",
  27458. 'uicon-lock-open': "\uE973",
  27459. 'uicon-lock-opened-fill': "\uE974",
  27460. 'uicon-lock': "\uE97A",
  27461. 'uicon-red-packet-fill': "\uE690",
  27462. 'uicon-photo-fill': "\uE98B",
  27463. 'uicon-photo': "\uE98D",
  27464. 'uicon-volume-off-fill': "\uE659",
  27465. 'uicon-volume-off': "\uE644",
  27466. 'uicon-volume-fill': "\uE670",
  27467. 'uicon-volume': "\uE633",
  27468. 'uicon-red-packet': "\uE691",
  27469. 'uicon-download': "\uE63C",
  27470. 'uicon-arrow-up-fill': "\uE6B0",
  27471. 'uicon-arrow-down-fill': "\uE600",
  27472. 'uicon-play-left-fill': "\uE675",
  27473. 'uicon-play-right-fill': "\uE676",
  27474. 'uicon-rewind-left-fill': "\uE679",
  27475. 'uicon-rewind-right-fill': "\uE67A",
  27476. 'uicon-arrow-downward': "\uE604",
  27477. 'uicon-arrow-leftward': "\uE601",
  27478. 'uicon-arrow-rightward': "\uE603",
  27479. 'uicon-arrow-upward': "\uE607",
  27480. 'uicon-arrow-down': "\uE60D",
  27481. 'uicon-arrow-right': "\uE605",
  27482. 'uicon-arrow-left': "\uE60E",
  27483. 'uicon-arrow-up': "\uE606",
  27484. 'uicon-skip-back-left': "\uE674",
  27485. 'uicon-skip-forward-right': "\uE672",
  27486. 'uicon-rewind-right': "\uE66F",
  27487. 'uicon-rewind-left': "\uE671",
  27488. 'uicon-arrow-right-double': "\uE68D",
  27489. 'uicon-arrow-left-double': "\uE68C",
  27490. 'uicon-wifi-off': "\uE668",
  27491. 'uicon-wifi': "\uE667",
  27492. 'uicon-empty-data': "\uE62F",
  27493. 'uicon-empty-history': "\uE684",
  27494. 'uicon-empty-list': "\uE68B",
  27495. 'uicon-empty-page': "\uE627",
  27496. 'uicon-empty-order': "\uE639",
  27497. 'uicon-man': "\uE697",
  27498. 'uicon-woman': "\uE69C",
  27499. 'uicon-man-add': "\uE61C",
  27500. 'uicon-man-add-fill': "\uE64C",
  27501. 'uicon-man-delete': "\uE61A",
  27502. 'uicon-man-delete-fill': "\uE66A",
  27503. 'uicon-zh': "\uE70A",
  27504. 'uicon-en': "\uE692"
  27505. };
  27506. exports.default = _default;
  27507. /***/ }),
  27508. /* 635 */
  27509. /*!***********************************************************************************!*\
  27510. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-icon/props.js ***!
  27511. \***********************************************************************************/
  27512. /*! no static exports found */
  27513. /***/ (function(module, exports, __webpack_require__) {
  27514. "use strict";
  27515. /* WEBPACK VAR INJECTION */(function(uni) {
  27516. Object.defineProperty(exports, "__esModule", {
  27517. value: true
  27518. });
  27519. exports.default = void 0;
  27520. var _default = {
  27521. props: {
  27522. // 图标类名
  27523. name: {
  27524. type: String,
  27525. default: uni.$u.props.icon.name
  27526. },
  27527. // 图标颜色,可接受主题色
  27528. color: {
  27529. type: String,
  27530. default: uni.$u.props.icon.color
  27531. },
  27532. // 字体大小,单位px
  27533. size: {
  27534. type: [String, Number],
  27535. default: uni.$u.props.icon.size
  27536. },
  27537. // 是否显示粗体
  27538. bold: {
  27539. type: Boolean,
  27540. default: uni.$u.props.icon.bold
  27541. },
  27542. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  27543. index: {
  27544. type: [String, Number],
  27545. default: uni.$u.props.icon.index
  27546. },
  27547. // 触摸图标时的类名
  27548. hoverClass: {
  27549. type: String,
  27550. default: uni.$u.props.icon.hoverClass
  27551. },
  27552. // 自定义扩展前缀,方便用户扩展自己的图标库
  27553. customPrefix: {
  27554. type: String,
  27555. default: uni.$u.props.icon.customPrefix
  27556. },
  27557. // 图标右边或者下面的文字
  27558. label: {
  27559. type: [String, Number],
  27560. default: uni.$u.props.icon.label
  27561. },
  27562. // label的位置,只能右边或者下边
  27563. labelPos: {
  27564. type: String,
  27565. default: uni.$u.props.icon.labelPos
  27566. },
  27567. // label的大小
  27568. labelSize: {
  27569. type: [String, Number],
  27570. default: uni.$u.props.icon.labelSize
  27571. },
  27572. // label的颜色
  27573. labelColor: {
  27574. type: String,
  27575. default: uni.$u.props.icon.labelColor
  27576. },
  27577. // label与图标的距离
  27578. space: {
  27579. type: [String, Number],
  27580. default: uni.$u.props.icon.space
  27581. },
  27582. // 图片的mode
  27583. imgMode: {
  27584. type: String,
  27585. default: uni.$u.props.icon.imgMode
  27586. },
  27587. // 用于显示图片小图标时,图片的宽度
  27588. width: {
  27589. type: [String, Number],
  27590. default: uni.$u.props.icon.width
  27591. },
  27592. // 用于显示图片小图标时,图片的高度
  27593. height: {
  27594. type: [String, Number],
  27595. default: uni.$u.props.icon.height
  27596. },
  27597. // 用于解决某些情况下,让图标垂直居中的用途
  27598. top: {
  27599. type: [String, Number],
  27600. default: uni.$u.props.icon.top
  27601. },
  27602. // 是否阻止事件传播
  27603. stop: {
  27604. type: Boolean,
  27605. default: uni.$u.props.icon.stop
  27606. }
  27607. }
  27608. };
  27609. exports.default = _default;
  27610. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27611. /***/ }),
  27612. /* 636 */,
  27613. /* 637 */,
  27614. /* 638 */,
  27615. /* 639 */,
  27616. /* 640 */,
  27617. /* 641 */,
  27618. /* 642 */,
  27619. /* 643 */
  27620. /*!*****************************************************************************************!*\
  27621. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-cell-group/props.js ***!
  27622. \*****************************************************************************************/
  27623. /*! no static exports found */
  27624. /***/ (function(module, exports, __webpack_require__) {
  27625. "use strict";
  27626. /* WEBPACK VAR INJECTION */(function(uni) {
  27627. Object.defineProperty(exports, "__esModule", {
  27628. value: true
  27629. });
  27630. exports.default = void 0;
  27631. var _default = {
  27632. props: {
  27633. // 分组标题
  27634. title: {
  27635. type: String,
  27636. default: uni.$u.props.cellGroup.title
  27637. },
  27638. // 是否显示外边框
  27639. border: {
  27640. type: Boolean,
  27641. default: uni.$u.props.cellGroup.border
  27642. }
  27643. }
  27644. };
  27645. exports.default = _default;
  27646. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27647. /***/ }),
  27648. /* 644 */,
  27649. /* 645 */,
  27650. /* 646 */,
  27651. /* 647 */,
  27652. /* 648 */,
  27653. /* 649 */,
  27654. /* 650 */,
  27655. /* 651 */
  27656. /*!***********************************************************************************!*\
  27657. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-cell/props.js ***!
  27658. \***********************************************************************************/
  27659. /*! no static exports found */
  27660. /***/ (function(module, exports, __webpack_require__) {
  27661. "use strict";
  27662. /* WEBPACK VAR INJECTION */(function(uni) {
  27663. Object.defineProperty(exports, "__esModule", {
  27664. value: true
  27665. });
  27666. exports.default = void 0;
  27667. var _default2 = {
  27668. props: {
  27669. // 标题
  27670. title: {
  27671. type: [String, Number],
  27672. default: uni.$u.props.cell.title
  27673. },
  27674. // 标题下方的描述信息
  27675. label: {
  27676. type: [String, Number],
  27677. default: uni.$u.props.cell.label
  27678. },
  27679. // 右侧的内容
  27680. value: {
  27681. type: [String, Number],
  27682. default: uni.$u.props.cell.value
  27683. },
  27684. // 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
  27685. icon: {
  27686. type: String,
  27687. default: uni.$u.props.cell.icon
  27688. },
  27689. // 是否禁用cell
  27690. disabled: {
  27691. type: Boolean,
  27692. default: uni.$u.props.cell.disabled
  27693. },
  27694. // 是否显示下边框
  27695. border: {
  27696. type: Boolean,
  27697. default: uni.$u.props.cell.border
  27698. },
  27699. // 内容是否垂直居中(主要是针对右侧的value部分)
  27700. center: {
  27701. type: Boolean,
  27702. default: uni.$u.props.cell.center
  27703. },
  27704. // 点击后跳转的URL地址
  27705. url: {
  27706. type: String,
  27707. default: uni.$u.props.cell.url
  27708. },
  27709. // 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
  27710. linkType: {
  27711. type: String,
  27712. default: uni.$u.props.cell.linkType
  27713. },
  27714. // 是否开启点击反馈(表现为点击时加上灰色背景)
  27715. clickable: {
  27716. type: Boolean,
  27717. default: uni.$u.props.cell.clickable
  27718. },
  27719. // 是否展示右侧箭头并开启点击反馈
  27720. isLink: {
  27721. type: Boolean,
  27722. default: uni.$u.props.cell.isLink
  27723. },
  27724. // 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
  27725. required: {
  27726. type: Boolean,
  27727. default: uni.$u.props.cell.required
  27728. },
  27729. // 右侧的图标箭头
  27730. rightIcon: {
  27731. type: String,
  27732. default: uni.$u.props.cell.rightIcon
  27733. },
  27734. // 右侧箭头的方向,可选值为:left,up,down
  27735. arrowDirection: {
  27736. type: String,
  27737. default: uni.$u.props.cell.arrowDirection
  27738. },
  27739. // 左侧图标样式
  27740. iconStyle: {
  27741. type: [Object, String],
  27742. default: function _default() {
  27743. return uni.$u.props.cell.iconStyle;
  27744. }
  27745. },
  27746. // 右侧箭头图标的样式
  27747. rightIconStyle: {
  27748. type: [Object, String],
  27749. default: function _default() {
  27750. return uni.$u.props.cell.rightIconStyle;
  27751. }
  27752. },
  27753. // 标题的样式
  27754. titleStyle: {
  27755. type: [Object, String],
  27756. default: function _default() {
  27757. return uni.$u.props.cell.titleStyle;
  27758. }
  27759. },
  27760. // 单位元的大小,可选值为large
  27761. size: {
  27762. type: String,
  27763. default: uni.$u.props.cell.size
  27764. },
  27765. // 点击cell是否阻止事件传播
  27766. stop: {
  27767. type: Boolean,
  27768. default: uni.$u.props.cell.stop
  27769. },
  27770. // 标识符,cell被点击时返回
  27771. name: {
  27772. type: [Number, String],
  27773. default: uni.$u.props.cell.name
  27774. }
  27775. }
  27776. };
  27777. exports.default = _default2;
  27778. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27779. /***/ }),
  27780. /* 652 */,
  27781. /* 653 */,
  27782. /* 654 */,
  27783. /* 655 */,
  27784. /* 656 */,
  27785. /* 657 */,
  27786. /* 658 */,
  27787. /* 659 */,
  27788. /* 660 */,
  27789. /* 661 */,
  27790. /* 662 */,
  27791. /* 663 */,
  27792. /* 664 */,
  27793. /* 665 */,
  27794. /* 666 */,
  27795. /* 667 */,
  27796. /* 668 */,
  27797. /* 669 */,
  27798. /* 670 */,
  27799. /* 671 */,
  27800. /* 672 */,
  27801. /* 673 */
  27802. /*!*****************************************************************************************!*\
  27803. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-count-down/props.js ***!
  27804. \*****************************************************************************************/
  27805. /*! no static exports found */
  27806. /***/ (function(module, exports, __webpack_require__) {
  27807. "use strict";
  27808. /* WEBPACK VAR INJECTION */(function(uni) {
  27809. Object.defineProperty(exports, "__esModule", {
  27810. value: true
  27811. });
  27812. exports.default = void 0;
  27813. var _default = {
  27814. props: {
  27815. // 倒计时时长,单位ms
  27816. time: {
  27817. type: [String, Number],
  27818. default: uni.$u.props.countDown.time
  27819. },
  27820. // 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
  27821. format: {
  27822. type: String,
  27823. default: uni.$u.props.countDown.format
  27824. },
  27825. // 是否自动开始倒计时
  27826. autoStart: {
  27827. type: Boolean,
  27828. default: uni.$u.props.countDown.autoStart
  27829. },
  27830. // 是否展示毫秒倒计时
  27831. millisecond: {
  27832. type: Boolean,
  27833. default: uni.$u.props.countDown.millisecond
  27834. }
  27835. }
  27836. };
  27837. exports.default = _default;
  27838. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27839. /***/ }),
  27840. /* 674 */
  27841. /*!*****************************************************************************************!*\
  27842. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-count-down/utils.js ***!
  27843. \*****************************************************************************************/
  27844. /*! no static exports found */
  27845. /***/ (function(module, exports, __webpack_require__) {
  27846. "use strict";
  27847. Object.defineProperty(exports, "__esModule", {
  27848. value: true
  27849. });
  27850. exports.isSameSecond = isSameSecond;
  27851. exports.parseFormat = parseFormat;
  27852. exports.parseTimeData = parseTimeData;
  27853. // 补0,如1 -> 01
  27854. function padZero(num) {
  27855. var targetLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
  27856. var str = "".concat(num);
  27857. while (str.length < targetLength) {
  27858. str = "0".concat(str);
  27859. }
  27860. return str;
  27861. }
  27862. var SECOND = 1000;
  27863. var MINUTE = 60 * SECOND;
  27864. var HOUR = 60 * MINUTE;
  27865. var DAY = 24 * HOUR;
  27866. function parseTimeData(time) {
  27867. var days = Math.floor(time / DAY);
  27868. var hours = Math.floor(time % DAY / HOUR);
  27869. var minutes = Math.floor(time % HOUR / MINUTE);
  27870. var seconds = Math.floor(time % MINUTE / SECOND);
  27871. var milliseconds = Math.floor(time % SECOND);
  27872. return {
  27873. days: days,
  27874. hours: hours,
  27875. minutes: minutes,
  27876. seconds: seconds,
  27877. milliseconds: milliseconds
  27878. };
  27879. }
  27880. function parseFormat(format, timeData) {
  27881. var days = timeData.days,
  27882. hours = timeData.hours,
  27883. minutes = timeData.minutes,
  27884. seconds = timeData.seconds,
  27885. milliseconds = timeData.milliseconds;
  27886. // 如果格式化字符串中不存在DD(天),则将天的时间转为小时中去
  27887. if (format.indexOf('DD') === -1) {
  27888. hours += days * 24;
  27889. } else {
  27890. // 对天补0
  27891. format = format.replace('DD', padZero(days));
  27892. }
  27893. // 其他同理于DD的格式化处理方式
  27894. if (format.indexOf('HH') === -1) {
  27895. minutes += hours * 60;
  27896. } else {
  27897. format = format.replace('HH', padZero(hours));
  27898. }
  27899. if (format.indexOf('mm') === -1) {
  27900. seconds += minutes * 60;
  27901. } else {
  27902. format = format.replace('mm', padZero(minutes));
  27903. }
  27904. if (format.indexOf('ss') === -1) {
  27905. milliseconds += seconds * 1000;
  27906. } else {
  27907. format = format.replace('ss', padZero(seconds));
  27908. }
  27909. return format.replace('SSS', padZero(milliseconds, 3));
  27910. }
  27911. function isSameSecond(time1, time2) {
  27912. return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
  27913. }
  27914. /***/ }),
  27915. /* 675 */,
  27916. /* 676 */,
  27917. /* 677 */,
  27918. /* 678 */,
  27919. /* 679 */,
  27920. /* 680 */,
  27921. /* 681 */,
  27922. /* 682 */
  27923. /*!******************************************************************************************!*\
  27924. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-scroll-list/props.js ***!
  27925. \******************************************************************************************/
  27926. /*! no static exports found */
  27927. /***/ (function(module, exports, __webpack_require__) {
  27928. "use strict";
  27929. /* WEBPACK VAR INJECTION */(function(uni) {
  27930. Object.defineProperty(exports, "__esModule", {
  27931. value: true
  27932. });
  27933. exports.default = void 0;
  27934. var _default = {
  27935. props: {
  27936. // 指示器的整体宽度
  27937. indicatorWidth: {
  27938. type: [String, Number],
  27939. default: uni.$u.props.scrollList.indicatorWidth
  27940. },
  27941. // 滑块的宽度
  27942. indicatorBarWidth: {
  27943. type: [String, Number],
  27944. default: uni.$u.props.scrollList.indicatorBarWidth
  27945. },
  27946. // 是否显示面板指示器
  27947. indicator: {
  27948. type: Boolean,
  27949. default: uni.$u.props.scrollList.indicator
  27950. },
  27951. // 指示器非激活颜色
  27952. indicatorColor: {
  27953. type: String,
  27954. default: uni.$u.props.scrollList.indicatorColor
  27955. },
  27956. // 指示器的激活颜色
  27957. indicatorActiveColor: {
  27958. type: String,
  27959. default: uni.$u.props.scrollList.indicatorActiveColor
  27960. },
  27961. // 指示器样式,可通过bottom,left,right进行定位
  27962. indicatorStyle: {
  27963. type: [String, Object],
  27964. default: uni.$u.props.scrollList.indicatorStyle
  27965. }
  27966. }
  27967. };
  27968. exports.default = _default;
  27969. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27970. /***/ }),
  27971. /* 683 */,
  27972. /* 684 */,
  27973. /* 685 */,
  27974. /* 686 */,
  27975. /* 687 */,
  27976. /* 688 */,
  27977. /* 689 */,
  27978. /* 690 */,
  27979. /* 691 */,
  27980. /* 692 */
  27981. /*!************************************************************************************!*\
  27982. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-empty/props.js ***!
  27983. \************************************************************************************/
  27984. /*! no static exports found */
  27985. /***/ (function(module, exports, __webpack_require__) {
  27986. "use strict";
  27987. /* WEBPACK VAR INJECTION */(function(uni) {
  27988. Object.defineProperty(exports, "__esModule", {
  27989. value: true
  27990. });
  27991. exports.default = void 0;
  27992. var _default = {
  27993. props: {
  27994. // 内置图标名称,或图片路径,建议绝对路径
  27995. icon: {
  27996. type: String,
  27997. default: uni.$u.props.empty.icon
  27998. },
  27999. // 提示文字
  28000. text: {
  28001. type: String,
  28002. default: uni.$u.props.empty.text
  28003. },
  28004. // 文字颜色
  28005. textColor: {
  28006. type: String,
  28007. default: uni.$u.props.empty.textColor
  28008. },
  28009. // 文字大小
  28010. textSize: {
  28011. type: [String, Number],
  28012. default: uni.$u.props.empty.textSize
  28013. },
  28014. // 图标的颜色
  28015. iconColor: {
  28016. type: String,
  28017. default: uni.$u.props.empty.iconColor
  28018. },
  28019. // 图标的大小
  28020. iconSize: {
  28021. type: [String, Number],
  28022. default: uni.$u.props.empty.iconSize
  28023. },
  28024. // 选择预置的图标类型
  28025. mode: {
  28026. type: String,
  28027. default: uni.$u.props.empty.mode
  28028. },
  28029. // 图标宽度,单位px
  28030. width: {
  28031. type: [String, Number],
  28032. default: uni.$u.props.empty.width
  28033. },
  28034. // 图标高度,单位px
  28035. height: {
  28036. type: [String, Number],
  28037. default: uni.$u.props.empty.height
  28038. },
  28039. // 是否显示组件
  28040. show: {
  28041. type: Boolean,
  28042. default: uni.$u.props.empty.show
  28043. },
  28044. // 组件距离上一个元素之间的距离,默认px单位
  28045. marginTop: {
  28046. type: [String, Number],
  28047. default: uni.$u.props.empty.marginTop
  28048. }
  28049. }
  28050. };
  28051. exports.default = _default;
  28052. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28053. /***/ }),
  28054. /* 693 */,
  28055. /* 694 */,
  28056. /* 695 */,
  28057. /* 696 */,
  28058. /* 697 */,
  28059. /* 698 */,
  28060. /* 699 */,
  28061. /* 700 */,
  28062. /* 701 */,
  28063. /* 702 */,
  28064. /* 703 */,
  28065. /* 704 */,
  28066. /* 705 */,
  28067. /* 706 */,
  28068. /* 707 */
  28069. /*!****************************************************************************************!*\
  28070. !*** F:/项目/HBuilderProjects/test/uni_modules/Sansnn-uQRCode/js_sdk/uqrcode/uqrcode.js ***!
  28071. \****************************************************************************************/
  28072. /*! no static exports found */
  28073. /***/ (function(module, exports, __webpack_require__) {
  28074. "use strict";
  28075. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28076. Object.defineProperty(exports, "__esModule", {
  28077. value: true
  28078. });
  28079. exports.default = b;
  28080. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 59));
  28081. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 61));
  28082. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  28083. 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; }
  28084. 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; }
  28085. //---------------------------------------------------------------------
  28086. // uQRCode二维码生成插件 v4.0.6
  28087. //
  28088. // uQRCode是一款基于Javascript环境开发的二维码生成插件,适用所有Javascript运行环境的前端应用和Node.js。
  28089. //
  28090. // Copyright (c) Sansnn uQRCode All rights reserved.
  28091. //
  28092. // Licensed under the Apache License, Version 2.0.
  28093. // http://www.apache.org/licenses/LICENSE-2.0
  28094. //
  28095. // github地址:
  28096. // https://github.com/Sansnn/uQRCode
  28097. //
  28098. // npm地址:
  28099. // https://www.npmjs.com/package/uqrcodejs
  28100. //
  28101. // uni-app插件市场地址:
  28102. // https://ext.dcloud.net.cn/plugin?id=1287
  28103. //
  28104. // 复制使用请保留本段注释,感谢支持开源!
  28105. //
  28106. //---------------------------------------------------------------------
  28107. //---------------------------------------------------------------------
  28108. // 当前文件格式为 es,将 bundle 保留为 ES 模块文件,适用于其他打包工具以及支持 <script type=module> 标签的浏览器(别名: esm,module)
  28109. // 如需在其他环境使用,请获取环境对应的格式文件
  28110. // 格式说明:
  28111. // amd - 异步模块定义,适用于 RequireJS 等模块加载器
  28112. // cjs - CommonJS,适用于 Node 环境和其他打包工具(别名:commonjs)
  28113. // es - 将 bundle 保留为 ES 模块文件,适用于其他打包工具以及支持 <script type=module> 标签的浏览器(别名: esm,module)
  28114. // umd - 通用模块定义,生成的包同时支持 amd、cjs 和 iife 三种格式
  28115. //---------------------------------------------------------------------
  28116. function o(o) {
  28117. this.mode = r.MODE_8BIT_BYTE, this.data = o;
  28118. }
  28119. function e(o, e) {
  28120. this.typeNumber = o, this.errorCorrectLevel = e, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = new Array();
  28121. }
  28122. o.prototype = {
  28123. getLength: function getLength(o) {
  28124. return this.data.length;
  28125. },
  28126. write: function write(o) {
  28127. for (var e = 0; e < this.data.length; e++) {
  28128. o.put(this.data.charCodeAt(e), 8);
  28129. }
  28130. }
  28131. }, e.prototype = {
  28132. addData: function addData(e) {
  28133. var r = new o(e);
  28134. this.dataList.push(r), this.dataCache = null;
  28135. },
  28136. isDark: function isDark(o, e) {
  28137. if (o < 0 || this.moduleCount <= o || e < 0 || this.moduleCount <= e) throw new Error(o + "," + e);
  28138. return this.modules[o][e];
  28139. },
  28140. getModuleCount: function getModuleCount() {
  28141. return this.moduleCount;
  28142. },
  28143. make: function make() {
  28144. if (this.typeNumber < 1) {
  28145. var o = 1;
  28146. for (o = 1; o < 40; o++) {
  28147. for (var e = v.getRSBlocks(o, this.errorCorrectLevel), r = new p(), t = 0, i = 0; i < e.length; i++) {
  28148. t += e[i].dataCount;
  28149. }
  28150. for (i = 0; i < this.dataList.length; i++) {
  28151. var n = this.dataList[i];
  28152. r.put(n.mode, 4), r.put(n.getLength(), h.getLengthInBits(n.mode, o)), n.write(r);
  28153. }
  28154. if (r.getLengthInBits() <= 8 * t) break;
  28155. }
  28156. this.typeNumber = o;
  28157. }
  28158. this.makeImpl(!1, this.getBestMaskPattern());
  28159. },
  28160. makeImpl: function makeImpl(o, r) {
  28161. this.moduleCount = 4 * this.typeNumber + 17, this.modules = new Array(this.moduleCount);
  28162. for (var t = 0; t < this.moduleCount; t++) {
  28163. this.modules[t] = new Array(this.moduleCount);
  28164. for (var i = 0; i < this.moduleCount; i++) {
  28165. this.modules[t][i] = null;
  28166. }
  28167. }
  28168. this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(o, r), this.typeNumber >= 7 && this.setupTypeNumber(o), null == this.dataCache && (this.dataCache = e.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, r);
  28169. },
  28170. setupPositionProbePattern: function setupPositionProbePattern(o, e) {
  28171. for (var r = -1; r <= 7; r++) {
  28172. if (!(o + r <= -1 || this.moduleCount <= o + r)) for (var t = -1; t <= 7; t++) {
  28173. e + t <= -1 || this.moduleCount <= e + t || (this.modules[o + r][e + t] = 0 <= r && r <= 6 && (0 == t || 6 == t) || 0 <= t && t <= 6 && (0 == r || 6 == r) || 2 <= r && r <= 4 && 2 <= t && t <= 4);
  28174. }
  28175. }
  28176. },
  28177. getBestMaskPattern: function getBestMaskPattern() {
  28178. for (var o = 0, e = 0, r = 0; r < 8; r++) {
  28179. this.makeImpl(!0, r);
  28180. var t = h.getLostPoint(this);
  28181. (0 == r || o > t) && (o = t, e = r);
  28182. }
  28183. return e;
  28184. },
  28185. createMovieClip: function createMovieClip(o, e, r) {
  28186. var t = o.createEmptyMovieClip(e, r);
  28187. this.make();
  28188. for (var i = 0; i < this.modules.length; i++) {
  28189. for (var n = 1 * i, a = 0; a < this.modules[i].length; a++) {
  28190. var d = 1 * a;
  28191. this.modules[i][a] && (t.beginFill(0, 100), t.moveTo(d, n), t.lineTo(d + 1, n), t.lineTo(d + 1, n + 1), t.lineTo(d, n + 1), t.endFill());
  28192. }
  28193. }
  28194. return t;
  28195. },
  28196. setupTimingPattern: function setupTimingPattern() {
  28197. for (var o = 8; o < this.moduleCount - 8; o++) {
  28198. null == this.modules[o][6] && (this.modules[o][6] = o % 2 == 0);
  28199. }
  28200. for (var e = 8; e < this.moduleCount - 8; e++) {
  28201. null == this.modules[6][e] && (this.modules[6][e] = e % 2 == 0);
  28202. }
  28203. },
  28204. setupPositionAdjustPattern: function setupPositionAdjustPattern() {
  28205. for (var o = h.getPatternPosition(this.typeNumber), e = 0; e < o.length; e++) {
  28206. for (var r = 0; r < o.length; r++) {
  28207. var t = o[e],
  28208. i = o[r];
  28209. if (null == this.modules[t][i]) for (var n = -2; n <= 2; n++) {
  28210. for (var a = -2; a <= 2; a++) {
  28211. this.modules[t + n][i + a] = -2 == n || 2 == n || -2 == a || 2 == a || 0 == n && 0 == a;
  28212. }
  28213. }
  28214. }
  28215. }
  28216. },
  28217. setupTypeNumber: function setupTypeNumber(o) {
  28218. for (var e = h.getBCHTypeNumber(this.typeNumber), r = 0; r < 18; r++) {
  28219. var t = !o && 1 == (e >> r & 1);
  28220. this.modules[Math.floor(r / 3)][r % 3 + this.moduleCount - 8 - 3] = t;
  28221. }
  28222. for (r = 0; r < 18; r++) {
  28223. t = !o && 1 == (e >> r & 1);
  28224. this.modules[r % 3 + this.moduleCount - 8 - 3][Math.floor(r / 3)] = t;
  28225. }
  28226. },
  28227. setupTypeInfo: function setupTypeInfo(o, e) {
  28228. for (var r = this.errorCorrectLevel << 3 | e, t = h.getBCHTypeInfo(r), i = 0; i < 15; i++) {
  28229. var n = !o && 1 == (t >> i & 1);
  28230. i < 6 ? this.modules[i][8] = n : i < 8 ? this.modules[i + 1][8] = n : this.modules[this.moduleCount - 15 + i][8] = n;
  28231. }
  28232. for (i = 0; i < 15; i++) {
  28233. n = !o && 1 == (t >> i & 1);
  28234. i < 8 ? this.modules[8][this.moduleCount - i - 1] = n : i < 9 ? this.modules[8][15 - i - 1 + 1] = n : this.modules[8][15 - i - 1] = n;
  28235. }
  28236. this.modules[this.moduleCount - 8][8] = !o;
  28237. },
  28238. mapData: function mapData(o, e) {
  28239. for (var r = -1, t = this.moduleCount - 1, i = 7, n = 0, a = this.moduleCount - 1; a > 0; a -= 2) {
  28240. for (6 == a && a--;;) {
  28241. for (var d = 0; d < 2; d++) {
  28242. if (null == this.modules[t][a - d]) {
  28243. var u = !1;
  28244. n < o.length && (u = 1 == (o[n] >>> i & 1)), h.getMask(e, t, a - d) && (u = !u), this.modules[t][a - d] = u, -1 == --i && (n++, i = 7);
  28245. }
  28246. }
  28247. if ((t += r) < 0 || this.moduleCount <= t) {
  28248. t -= r, r = -r;
  28249. break;
  28250. }
  28251. }
  28252. }
  28253. }
  28254. }, e.PAD0 = 236, e.PAD1 = 17, e.createData = function (o, r, t) {
  28255. for (var i = v.getRSBlocks(o, r), n = new p(), a = 0; a < t.length; a++) {
  28256. var d = t[a];
  28257. n.put(d.mode, 4), n.put(d.getLength(), h.getLengthInBits(d.mode, o)), d.write(n);
  28258. }
  28259. var u = 0;
  28260. for (a = 0; a < i.length; a++) {
  28261. u += i[a].dataCount;
  28262. }
  28263. if (n.getLengthInBits() > 8 * u) throw new Error("code length overflow. (" + n.getLengthInBits() + ">" + 8 * u + ")");
  28264. for (n.getLengthInBits() + 4 <= 8 * u && n.put(0, 4); n.getLengthInBits() % 8 != 0;) {
  28265. n.putBit(!1);
  28266. }
  28267. for (; !(n.getLengthInBits() >= 8 * u || (n.put(e.PAD0, 8), n.getLengthInBits() >= 8 * u));) {
  28268. n.put(e.PAD1, 8);
  28269. }
  28270. return e.createBytes(n, i);
  28271. }, e.createBytes = function (o, e) {
  28272. for (var r = 0, t = 0, i = 0, n = new Array(e.length), a = new Array(e.length), d = 0; d < e.length; d++) {
  28273. var u = e[d].dataCount,
  28274. s = e[d].totalCount - u;
  28275. t = Math.max(t, u), i = Math.max(i, s), n[d] = new Array(u);
  28276. for (var g = 0; g < n[d].length; g++) {
  28277. n[d][g] = 255 & o.buffer[g + r];
  28278. }
  28279. r += u;
  28280. var l = h.getErrorCorrectPolynomial(s),
  28281. c = new f(n[d], l.getLength() - 1).mod(l);
  28282. a[d] = new Array(l.getLength() - 1);
  28283. for (g = 0; g < a[d].length; g++) {
  28284. var m = g + c.getLength() - a[d].length;
  28285. a[d][g] = m >= 0 ? c.get(m) : 0;
  28286. }
  28287. }
  28288. var v = 0;
  28289. for (g = 0; g < e.length; g++) {
  28290. v += e[g].totalCount;
  28291. }
  28292. var p = new Array(v),
  28293. C = 0;
  28294. for (g = 0; g < t; g++) {
  28295. for (d = 0; d < e.length; d++) {
  28296. g < n[d].length && (p[C++] = n[d][g]);
  28297. }
  28298. }
  28299. for (g = 0; g < i; g++) {
  28300. for (d = 0; d < e.length; d++) {
  28301. g < a[d].length && (p[C++] = a[d][g]);
  28302. }
  28303. }
  28304. return p;
  28305. };
  28306. for (var r = {
  28307. MODE_NUMBER: 1,
  28308. MODE_ALPHA_NUM: 2,
  28309. MODE_8BIT_BYTE: 4,
  28310. MODE_KANJI: 8
  28311. }, t = {
  28312. L: 1,
  28313. M: 0,
  28314. Q: 3,
  28315. H: 2
  28316. }, i = 0, n = 1, a = 2, d = 3, u = 4, s = 5, g = 6, l = 7, h = {
  28317. PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]],
  28318. G15: 1335,
  28319. G18: 7973,
  28320. G15_MASK: 21522,
  28321. getBCHTypeInfo: function getBCHTypeInfo(o) {
  28322. for (var e = o << 10; h.getBCHDigit(e) - h.getBCHDigit(h.G15) >= 0;) {
  28323. e ^= h.G15 << h.getBCHDigit(e) - h.getBCHDigit(h.G15);
  28324. }
  28325. return (o << 10 | e) ^ h.G15_MASK;
  28326. },
  28327. getBCHTypeNumber: function getBCHTypeNumber(o) {
  28328. for (var e = o << 12; h.getBCHDigit(e) - h.getBCHDigit(h.G18) >= 0;) {
  28329. e ^= h.G18 << h.getBCHDigit(e) - h.getBCHDigit(h.G18);
  28330. }
  28331. return o << 12 | e;
  28332. },
  28333. getBCHDigit: function getBCHDigit(o) {
  28334. for (var e = 0; 0 != o;) {
  28335. e++, o >>>= 1;
  28336. }
  28337. return e;
  28338. },
  28339. getPatternPosition: function getPatternPosition(o) {
  28340. return h.PATTERN_POSITION_TABLE[o - 1];
  28341. },
  28342. getMask: function getMask(o, e, r) {
  28343. switch (o) {
  28344. case i:
  28345. return (e + r) % 2 == 0;
  28346. case n:
  28347. return e % 2 == 0;
  28348. case a:
  28349. return r % 3 == 0;
  28350. case d:
  28351. return (e + r) % 3 == 0;
  28352. case u:
  28353. return (Math.floor(e / 2) + Math.floor(r / 3)) % 2 == 0;
  28354. case s:
  28355. return e * r % 2 + e * r % 3 == 0;
  28356. case g:
  28357. return (e * r % 2 + e * r % 3) % 2 == 0;
  28358. case l:
  28359. return (e * r % 3 + (e + r) % 2) % 2 == 0;
  28360. default:
  28361. throw new Error("bad maskPattern:" + o);
  28362. }
  28363. },
  28364. getErrorCorrectPolynomial: function getErrorCorrectPolynomial(o) {
  28365. for (var e = new f([1], 0), r = 0; r < o; r++) {
  28366. e = e.multiply(new f([1, c.gexp(r)], 0));
  28367. }
  28368. return e;
  28369. },
  28370. getLengthInBits: function getLengthInBits(o, e) {
  28371. if (1 <= e && e < 10) switch (o) {
  28372. case r.MODE_NUMBER:
  28373. return 10;
  28374. case r.MODE_ALPHA_NUM:
  28375. return 9;
  28376. case r.MODE_8BIT_BYTE:
  28377. case r.MODE_KANJI:
  28378. return 8;
  28379. default:
  28380. throw new Error("mode:" + o);
  28381. } else if (e < 27) switch (o) {
  28382. case r.MODE_NUMBER:
  28383. return 12;
  28384. case r.MODE_ALPHA_NUM:
  28385. return 11;
  28386. case r.MODE_8BIT_BYTE:
  28387. return 16;
  28388. case r.MODE_KANJI:
  28389. return 10;
  28390. default:
  28391. throw new Error("mode:" + o);
  28392. } else {
  28393. if (!(e < 41)) throw new Error("type:" + e);
  28394. switch (o) {
  28395. case r.MODE_NUMBER:
  28396. return 14;
  28397. case r.MODE_ALPHA_NUM:
  28398. return 13;
  28399. case r.MODE_8BIT_BYTE:
  28400. return 16;
  28401. case r.MODE_KANJI:
  28402. return 12;
  28403. default:
  28404. throw new Error("mode:" + o);
  28405. }
  28406. }
  28407. },
  28408. getLostPoint: function getLostPoint(o) {
  28409. for (var e = o.getModuleCount(), r = 0, t = 0; t < e; t++) {
  28410. for (var i = 0; i < e; i++) {
  28411. for (var n = 0, a = o.isDark(t, i), d = -1; d <= 1; d++) {
  28412. if (!(t + d < 0 || e <= t + d)) for (var u = -1; u <= 1; u++) {
  28413. i + u < 0 || e <= i + u || 0 == d && 0 == u || a == o.isDark(t + d, i + u) && n++;
  28414. }
  28415. }
  28416. n > 5 && (r += 3 + n - 5);
  28417. }
  28418. }
  28419. for (t = 0; t < e - 1; t++) {
  28420. for (i = 0; i < e - 1; i++) {
  28421. var s = 0;
  28422. o.isDark(t, i) && s++, o.isDark(t + 1, i) && s++, o.isDark(t, i + 1) && s++, o.isDark(t + 1, i + 1) && s++, 0 != s && 4 != s || (r += 3);
  28423. }
  28424. }
  28425. for (t = 0; t < e; t++) {
  28426. for (i = 0; i < e - 6; i++) {
  28427. o.isDark(t, i) && !o.isDark(t, i + 1) && o.isDark(t, i + 2) && o.isDark(t, i + 3) && o.isDark(t, i + 4) && !o.isDark(t, i + 5) && o.isDark(t, i + 6) && (r += 40);
  28428. }
  28429. }
  28430. for (i = 0; i < e; i++) {
  28431. for (t = 0; t < e - 6; t++) {
  28432. o.isDark(t, i) && !o.isDark(t + 1, i) && o.isDark(t + 2, i) && o.isDark(t + 3, i) && o.isDark(t + 4, i) && !o.isDark(t + 5, i) && o.isDark(t + 6, i) && (r += 40);
  28433. }
  28434. }
  28435. var g = 0;
  28436. for (i = 0; i < e; i++) {
  28437. for (t = 0; t < e; t++) {
  28438. o.isDark(t, i) && g++;
  28439. }
  28440. }
  28441. return r += 10 * (Math.abs(100 * g / e / e - 50) / 5);
  28442. }
  28443. }, c = {
  28444. glog: function glog(o) {
  28445. if (o < 1) throw new Error("glog(" + o + ")");
  28446. return c.LOG_TABLE[o];
  28447. },
  28448. gexp: function gexp(o) {
  28449. for (; o < 0;) {
  28450. o += 255;
  28451. }
  28452. for (; o >= 256;) {
  28453. o -= 255;
  28454. }
  28455. return c.EXP_TABLE[o];
  28456. },
  28457. EXP_TABLE: new Array(256),
  28458. LOG_TABLE: new Array(256)
  28459. }, m = 0; m < 8; m++) {
  28460. c.EXP_TABLE[m] = 1 << m;
  28461. }
  28462. for (m = 8; m < 256; m++) {
  28463. c.EXP_TABLE[m] = c.EXP_TABLE[m - 4] ^ c.EXP_TABLE[m - 5] ^ c.EXP_TABLE[m - 6] ^ c.EXP_TABLE[m - 8];
  28464. }
  28465. for (m = 0; m < 255; m++) {
  28466. c.LOG_TABLE[c.EXP_TABLE[m]] = m;
  28467. }
  28468. function f(o, e) {
  28469. if (null == o.length) throw new Error(o.length + "/" + e);
  28470. for (var r = 0; r < o.length && 0 == o[r];) {
  28471. r++;
  28472. }
  28473. this.num = new Array(o.length - r + e);
  28474. for (var t = 0; t < o.length - r; t++) {
  28475. this.num[t] = o[t + r];
  28476. }
  28477. }
  28478. function v(o, e) {
  28479. this.totalCount = o, this.dataCount = e;
  28480. }
  28481. function p() {
  28482. this.buffer = new Array(), this.length = 0;
  28483. }
  28484. function C(o) {
  28485. return o.setFillStyle = o.setFillStyle || function (e) {
  28486. o.fillStyle = e;
  28487. }, o.setFontSize = o.setFontSize || function (e) {
  28488. o.font = "".concat(e, "px");
  28489. }, o.setTextAlign = o.setTextAlign || function (e) {
  28490. o.textAlign = e;
  28491. }, o.setTextBaseline = o.setTextBaseline || function (e) {
  28492. o.textBaseline = e;
  28493. }, o.setGlobalAlpha = o.setGlobalAlpha || function (e) {
  28494. o.globalAlpha = e;
  28495. }, o.setStrokeStyle = o.setStrokeStyle || function (e) {
  28496. o.strokeStyle = e;
  28497. }, o.setShadow = o.setShadow || function (e, r, t, i) {
  28498. o.shadowOffsetX = e, o.shadowOffsetY = r, o.shadowBlur = t, o.shadowColor = i;
  28499. }, o.draw = o.draw || function (o, e) {
  28500. e && e();
  28501. }, o.clearRect = o.clearRect || function (e, r, t, i) {
  28502. o.draw(!1);
  28503. }, o;
  28504. }
  28505. function b(o, e) {
  28506. var _this = this;
  28507. var r = this.data = "",
  28508. t = this.size = 200;
  28509. this.useDynamicSize = !1, this.dynamicSize = t;
  28510. var i = this.typeNumber = -1;
  28511. this.errorCorrectLevel = b.errorCorrectLevel.H;
  28512. var n = this.margin = 0;
  28513. this.areaColor = "#FFFFFF", this.backgroundColor = "rgba(255,255,255,0)", this.backgroundImageSrc = void 0;
  28514. var a = this.backgroundImageWidth = void 0,
  28515. d = this.backgroundImageHeight = void 0,
  28516. u = this.backgroundImageX = void 0,
  28517. s = this.backgroundImageY = void 0;
  28518. this.backgroundImageAlpha = 1, this.backgroundImageBorderRadius = 0;
  28519. var g = this.backgroundPadding = 0;
  28520. this.foregroundColor = "#000000", this.foregroundImageSrc = void 0;
  28521. var l = this.foregroundImageWidth = void 0,
  28522. h = this.foregroundImageHeight = void 0,
  28523. c = this.foregroundImageX = void 0,
  28524. m = this.foregroundImageY = void 0,
  28525. f = this.foregroundImagePadding = 0;
  28526. this.foregroundImageBackgroundColor = "#FFFFFF";
  28527. var v = this.foregroundImageBorderRadius = 0,
  28528. p = this.foregroundImageShadowOffsetX = 0,
  28529. k = this.foregroundImageShadowOffsetY = 0,
  28530. y = this.foregroundImageShadowBlur = 0;
  28531. this.foregroundImageShadowColor = "#808080";
  28532. var w = this.foregroundPadding = 0,
  28533. I = this.positionProbeBackgroundColor = void 0,
  28534. B = this.positionProbeForegroundColor = void 0,
  28535. S = this.separatorColor = void 0,
  28536. P = this.positionAdjustBackgroundColor = void 0,
  28537. L = this.positionAdjustForegroundColor = void 0,
  28538. D = this.timingBackgroundColor = void 0,
  28539. A = this.timingForegroundColor = void 0,
  28540. E = this.typeNumberBackgroundColor = void 0,
  28541. T = this.typeNumberForegroundColor = void 0,
  28542. N = this.darkBlockColor = void 0;
  28543. this.base = void 0, this.modules = [], this.moduleCount = 0, this.drawModules = [];
  28544. var M = this.canvasContext = void 0;
  28545. this.loadImage, this.drawReserve = !1, this.isMaked = !1, Object.defineProperties(this, {
  28546. data: {
  28547. get: function get() {
  28548. if ("" === r || void 0 === r) throw console.error("[uQRCode]: data must be set!"), new b.Error("data must be set!");
  28549. return r;
  28550. },
  28551. set: function set(o) {
  28552. r = String(o);
  28553. }
  28554. },
  28555. size: {
  28556. get: function get() {
  28557. return t;
  28558. },
  28559. set: function set(o) {
  28560. t = Number(o);
  28561. }
  28562. },
  28563. typeNumber: {
  28564. get: function get() {
  28565. return i;
  28566. },
  28567. set: function set(o) {
  28568. i = Number(o);
  28569. }
  28570. },
  28571. margin: {
  28572. get: function get() {
  28573. return n;
  28574. },
  28575. set: function set(o) {
  28576. n = Number(o);
  28577. }
  28578. },
  28579. backgroundImageWidth: {
  28580. get: function get() {
  28581. return void 0 === a ? this.dynamicSize : this.useDynamicSize ? this.dynamicSize / this.size * a : a;
  28582. },
  28583. set: function set(o) {
  28584. a = Number(o);
  28585. }
  28586. },
  28587. backgroundImageHeight: {
  28588. get: function get() {
  28589. return void 0 === d ? this.dynamicSize : this.useDynamicSize ? this.dynamicSize / this.size * d : d;
  28590. },
  28591. set: function set(o) {
  28592. d = Number(o);
  28593. }
  28594. },
  28595. backgroundImageX: {
  28596. get: function get() {
  28597. return void 0 === u ? 0 : this.useDynamicSize ? this.dynamicSize / this.size * u : u;
  28598. },
  28599. set: function set(o) {
  28600. u = Number(o);
  28601. }
  28602. },
  28603. backgroundImageY: {
  28604. get: function get() {
  28605. return void 0 === s ? 0 : this.useDynamicSize ? this.dynamicSize / this.size * s : s;
  28606. },
  28607. set: function set(o) {
  28608. s = Number(o);
  28609. }
  28610. },
  28611. backgroundPadding: {
  28612. get: function get() {
  28613. return g;
  28614. },
  28615. set: function set(o) {
  28616. g = o > 1 ? 1 : o < 0 ? 0 : o;
  28617. }
  28618. },
  28619. foregroundImageWidth: {
  28620. get: function get() {
  28621. return void 0 === l ? (this.dynamicSize - 2 * this.margin) / 4 : this.useDynamicSize ? this.dynamicSize / this.size * l : l;
  28622. },
  28623. set: function set(o) {
  28624. l = Number(o);
  28625. }
  28626. },
  28627. foregroundImageHeight: {
  28628. get: function get() {
  28629. return void 0 === h ? (this.dynamicSize - 2 * this.margin) / 4 : this.useDynamicSize ? this.dynamicSize / this.size * h : h;
  28630. },
  28631. set: function set(o) {
  28632. h = Number(o);
  28633. }
  28634. },
  28635. foregroundImageX: {
  28636. get: function get() {
  28637. return void 0 === c ? this.dynamicSize / 2 - this.foregroundImageWidth / 2 : this.useDynamicSize ? this.dynamicSize / this.size * c : c;
  28638. },
  28639. set: function set(o) {
  28640. c = Number(o);
  28641. }
  28642. },
  28643. foregroundImageY: {
  28644. get: function get() {
  28645. return void 0 === m ? this.dynamicSize / 2 - this.foregroundImageHeight / 2 : this.useDynamicSize ? this.dynamicSize / this.size * m : m;
  28646. },
  28647. set: function set(o) {
  28648. m = Number(o);
  28649. }
  28650. },
  28651. foregroundImagePadding: {
  28652. get: function get() {
  28653. return this.useDynamicSize ? this.dynamicSize / this.size * f : f;
  28654. },
  28655. set: function set(o) {
  28656. f = Number(o);
  28657. }
  28658. },
  28659. foregroundImageBorderRadius: {
  28660. get: function get() {
  28661. return this.useDynamicSize ? this.dynamicSize / this.size * v : v;
  28662. },
  28663. set: function set(o) {
  28664. v = Number(o);
  28665. }
  28666. },
  28667. foregroundImageShadowOffsetX: {
  28668. get: function get() {
  28669. return this.useDynamicSize ? this.dynamicSize / this.size * p : p;
  28670. },
  28671. set: function set(o) {
  28672. p = Number(o);
  28673. }
  28674. },
  28675. foregroundImageShadowOffsetY: {
  28676. get: function get() {
  28677. return this.useDynamicSize ? this.dynamicSize / this.size * k : k;
  28678. },
  28679. set: function set(o) {
  28680. k = Number(o);
  28681. }
  28682. },
  28683. foregroundImageShadowBlur: {
  28684. get: function get() {
  28685. return this.useDynamicSize ? this.dynamicSize / this.size * y : y;
  28686. },
  28687. set: function set(o) {
  28688. y = Number(o);
  28689. }
  28690. },
  28691. foregroundPadding: {
  28692. get: function get() {
  28693. return w;
  28694. },
  28695. set: function set(o) {
  28696. w = o > 1 ? 1 : o < 0 ? 0 : o;
  28697. }
  28698. },
  28699. positionProbeBackgroundColor: {
  28700. get: function get() {
  28701. return I || this.backgroundColor;
  28702. },
  28703. set: function set(o) {
  28704. I = o;
  28705. }
  28706. },
  28707. positionProbeForegroundColor: {
  28708. get: function get() {
  28709. return B || this.foregroundColor;
  28710. },
  28711. set: function set(o) {
  28712. B = o;
  28713. }
  28714. },
  28715. separatorColor: {
  28716. get: function get() {
  28717. return S || this.backgroundColor;
  28718. },
  28719. set: function set(o) {
  28720. S = o;
  28721. }
  28722. },
  28723. positionAdjustBackgroundColor: {
  28724. get: function get() {
  28725. return P || this.backgroundColor;
  28726. },
  28727. set: function set(o) {
  28728. P = o;
  28729. }
  28730. },
  28731. positionAdjustForegroundColor: {
  28732. get: function get() {
  28733. return L || this.foregroundColor;
  28734. },
  28735. set: function set(o) {
  28736. L = o;
  28737. }
  28738. },
  28739. timingBackgroundColor: {
  28740. get: function get() {
  28741. return D || this.backgroundColor;
  28742. },
  28743. set: function set(o) {
  28744. D = o;
  28745. }
  28746. },
  28747. timingForegroundColor: {
  28748. get: function get() {
  28749. return A || this.foregroundColor;
  28750. },
  28751. set: function set(o) {
  28752. A = o;
  28753. }
  28754. },
  28755. typeNumberBackgroundColor: {
  28756. get: function get() {
  28757. return E || this.backgroundColor;
  28758. },
  28759. set: function set(o) {
  28760. E = o;
  28761. }
  28762. },
  28763. typeNumberForegroundColor: {
  28764. get: function get() {
  28765. return T || this.foregroundColor;
  28766. },
  28767. set: function set(o) {
  28768. T = o;
  28769. }
  28770. },
  28771. darkBlockColor: {
  28772. get: function get() {
  28773. return N || this.foregroundColor;
  28774. },
  28775. set: function set(o) {
  28776. N = o;
  28777. }
  28778. },
  28779. canvasContext: {
  28780. get: function get() {
  28781. if (void 0 === M) throw console.error("[uQRCode]: use drawCanvas, you need to set the canvasContext!"), new b.Error("use drawCanvas, you need to set the canvasContext!");
  28782. return M;
  28783. },
  28784. set: function set(o) {
  28785. M = C(o);
  28786. }
  28787. }
  28788. }), b.plugins.forEach(function (o) {
  28789. return o(b, _this, !1);
  28790. }), o && this.setOptions(o), e && (this.canvasContext = C(e));
  28791. }
  28792. f.prototype = {
  28793. get: function get(o) {
  28794. return this.num[o];
  28795. },
  28796. getLength: function getLength() {
  28797. return this.num.length;
  28798. },
  28799. multiply: function multiply(o) {
  28800. for (var e = new Array(this.getLength() + o.getLength() - 1), r = 0; r < this.getLength(); r++) {
  28801. for (var t = 0; t < o.getLength(); t++) {
  28802. e[r + t] ^= c.gexp(c.glog(this.get(r)) + c.glog(o.get(t)));
  28803. }
  28804. }
  28805. return new f(e, 0);
  28806. },
  28807. mod: function mod(o) {
  28808. if (this.getLength() - o.getLength() < 0) return this;
  28809. for (var e = c.glog(this.get(0)) - c.glog(o.get(0)), r = new Array(this.getLength()), t = 0; t < this.getLength(); t++) {
  28810. r[t] = this.get(t);
  28811. }
  28812. for (t = 0; t < o.getLength(); t++) {
  28813. r[t] ^= c.gexp(c.glog(o.get(t)) + e);
  28814. }
  28815. return new f(r, 0).mod(o);
  28816. }
  28817. }, v.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], v.getRSBlocks = function (o, e) {
  28818. var r = v.getRsBlockTable(o, e);
  28819. if (null == r) throw new Error("bad rs block @ typeNumber:" + o + "/errorCorrectLevel:" + e);
  28820. for (var t = r.length / 3, i = new Array(), n = 0; n < t; n++) {
  28821. for (var a = r[3 * n + 0], d = r[3 * n + 1], u = r[3 * n + 2], s = 0; s < a; s++) {
  28822. i.push(new v(d, u));
  28823. }
  28824. }
  28825. return i;
  28826. }, v.getRsBlockTable = function (o, e) {
  28827. switch (e) {
  28828. case t.L:
  28829. return v.RS_BLOCK_TABLE[4 * (o - 1) + 0];
  28830. case t.M:
  28831. return v.RS_BLOCK_TABLE[4 * (o - 1) + 1];
  28832. case t.Q:
  28833. return v.RS_BLOCK_TABLE[4 * (o - 1) + 2];
  28834. case t.H:
  28835. return v.RS_BLOCK_TABLE[4 * (o - 1) + 3];
  28836. default:
  28837. return;
  28838. }
  28839. }, p.prototype = {
  28840. get: function get(o) {
  28841. var e = Math.floor(o / 8);
  28842. return 1 == (this.buffer[e] >>> 7 - o % 8 & 1);
  28843. },
  28844. put: function put(o, e) {
  28845. for (var r = 0; r < e; r++) {
  28846. this.putBit(1 == (o >>> e - r - 1 & 1));
  28847. }
  28848. },
  28849. getLengthInBits: function getLengthInBits() {
  28850. return this.length;
  28851. },
  28852. putBit: function putBit(o) {
  28853. var e = Math.floor(this.length / 8);
  28854. this.buffer.length <= e && this.buffer.push(0), o && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
  28855. }
  28856. }, e.errorCorrectLevel = t, b.errorCorrectLevel = e.errorCorrectLevel, b.Error = function (o) {
  28857. this.errMsg = "[uQRCode]: " + o;
  28858. }, b.plugins = [], b.use = function (o) {
  28859. "function" == typeof o && b.plugins.push(o);
  28860. }, b.prototype.loadImage = function (o) {
  28861. return Promise.resolve(o);
  28862. }, b.prototype.setOptions = function (o) {
  28863. var _this2 = this;
  28864. var e, r, t, i, n, a, d, u, s, g, l, h, c, m, f, v, p, C, b, k, y, w, I, B, S, P, L, D, A, E, T, N, M, z, R, _, O, F, x, H, X, Y, j, W, G, K, Q, U, $, J, q, V, Z, oo, eo, ro;
  28865. o && (Object.keys(o).forEach(function (e) {
  28866. _this2[e] = o[e];
  28867. }), function () {
  28868. var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  28869. var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28870. var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
  28871. var t;
  28872. t = r ? o : _objectSpread({}, o);
  28873. for (var _o in e) {
  28874. var i = e[_o];
  28875. null != i && (i.constructor == Object ? t[_o] = this.deepReplace(t[_o], i) : i.constructor != String || i ? t[_o] = i : t[_o] = t[_o]);
  28876. }
  28877. }(this, {
  28878. data: o.data || o.text,
  28879. size: o.size,
  28880. useDynamicSize: o.useDynamicSize,
  28881. typeNumber: o.typeNumber,
  28882. errorCorrectLevel: o.errorCorrectLevel,
  28883. margin: o.margin,
  28884. areaColor: o.areaColor,
  28885. backgroundColor: o.backgroundColor || (null === (e = o.background) || void 0 === e ? void 0 : e.color),
  28886. backgroundImageSrc: o.backgroundImageSrc || (null === (r = o.background) || void 0 === r || null === (t = r.image) || void 0 === t ? void 0 : t.src),
  28887. backgroundImageWidth: o.backgroundImageWidth || (null === (i = o.background) || void 0 === i || null === (n = i.image) || void 0 === n ? void 0 : n.width),
  28888. backgroundImageHeight: o.backgroundImageHeight || (null === (a = o.background) || void 0 === a || null === (d = a.image) || void 0 === d ? void 0 : d.height),
  28889. backgroundImageX: o.backgroundImageX || (null === (u = o.background) || void 0 === u || null === (s = u.image) || void 0 === s ? void 0 : s.x),
  28890. backgroundImageY: o.backgroundImageY || (null === (g = o.background) || void 0 === g || null === (l = g.image) || void 0 === l ? void 0 : l.y),
  28891. backgroundImageAlpha: o.backgroundImageAlpha || (null === (h = o.background) || void 0 === h || null === (c = h.image) || void 0 === c ? void 0 : c.alpha),
  28892. backgroundImageBorderRadius: o.backgroundImageBorderRadius || (null === (m = o.background) || void 0 === m || null === (f = m.image) || void 0 === f ? void 0 : f.borderRadius),
  28893. backgroundPadding: o.backgroundPadding,
  28894. foregroundColor: o.foregroundColor || (null === (v = o.foreground) || void 0 === v ? void 0 : v.color),
  28895. foregroundImageSrc: o.foregroundImageSrc || (null === (p = o.foreground) || void 0 === p || null === (C = p.image) || void 0 === C ? void 0 : C.src),
  28896. foregroundImageWidth: o.foregroundImageWidth || (null === (b = o.foreground) || void 0 === b || null === (k = b.image) || void 0 === k ? void 0 : k.width),
  28897. foregroundImageHeight: o.foregroundImageHeight || (null === (y = o.foreground) || void 0 === y || null === (w = y.image) || void 0 === w ? void 0 : w.height),
  28898. foregroundImageX: o.foregroundImageX || (null === (I = o.foreground) || void 0 === I || null === (B = I.image) || void 0 === B ? void 0 : B.x),
  28899. foregroundImageY: o.foregroundImageY || (null === (S = o.foreground) || void 0 === S || null === (P = S.image) || void 0 === P ? void 0 : P.y),
  28900. foregroundImagePadding: o.foregroundImagePadding || (null === (L = o.foreground) || void 0 === L || null === (D = L.image) || void 0 === D ? void 0 : D.padding),
  28901. foregroundImageBackgroundColor: o.foregroundImageBackgroundColor || (null === (A = o.foreground) || void 0 === A || null === (E = A.image) || void 0 === E ? void 0 : E.backgroundColor),
  28902. foregroundImageBorderRadius: o.foregroundImageBorderRadius || (null === (T = o.foreground) || void 0 === T || null === (N = T.image) || void 0 === N ? void 0 : N.borderRadius),
  28903. foregroundImageShadowOffsetX: o.foregroundImageShadowOffsetX || (null === (M = o.foreground) || void 0 === M || null === (z = M.image) || void 0 === z ? void 0 : z.shadowOffsetX),
  28904. foregroundImageShadowOffsetY: o.foregroundImageShadowOffsetY || (null === (R = o.foreground) || void 0 === R || null === (_ = R.image) || void 0 === _ ? void 0 : _.shadowOffsetY),
  28905. foregroundImageShadowBlur: o.foregroundImageShadowBlur || (null === (O = o.foreground) || void 0 === O || null === (F = O.image) || void 0 === F ? void 0 : F.shadowBlur),
  28906. foregroundImageShadowColor: o.foregroundImageShadowColor || (null === (x = o.foreground) || void 0 === x || null === (H = x.image) || void 0 === H ? void 0 : H.shadowColor),
  28907. foregroundPadding: o.foregroundPadding,
  28908. positionProbeBackgroundColor: o.positionProbeBackgroundColor || (null === (X = o.positionProbe) || void 0 === X ? void 0 : X.backgroundColor) || (null === (Y = o.positionDetection) || void 0 === Y ? void 0 : Y.backgroundColor),
  28909. positionProbeForegroundColor: o.positionProbeForegroundColor || (null === (j = o.positionProbe) || void 0 === j ? void 0 : j.foregroundColor) || (null === (W = o.positionDetection) || void 0 === W ? void 0 : W.foregroundColor),
  28910. separatorColor: o.separatorColor || (null === (G = o.separator) || void 0 === G ? void 0 : G.color),
  28911. positionAdjustBackgroundColor: o.positionAdjustBackgroundColor || (null === (K = o.positionAdjust) || void 0 === K ? void 0 : K.backgroundColor) || (null === (Q = o.alignment) || void 0 === Q ? void 0 : Q.backgroundColor),
  28912. positionAdjustForegroundColor: o.positionAdjustForegroundColor || (null === (U = o.positionAdjust) || void 0 === U ? void 0 : U.foregroundColor) || (null === ($ = o.alignment) || void 0 === $ ? void 0 : $.foregroundColor),
  28913. timingBackgroundColor: o.timingBackgroundColor || (null === (J = o.timing) || void 0 === J ? void 0 : J.backgroundColor),
  28914. timingForegroundColor: o.timingForegroundColor || (null === (q = o.timing) || void 0 === q ? void 0 : q.foregroundColor),
  28915. typeNumberBackgroundColor: o.typeNumberBackgroundColor || (null === (V = o.typeNumber) || void 0 === V ? void 0 : V.backgroundColor) || (null === (Z = o.versionInformation) || void 0 === Z ? void 0 : Z.backgroundColor),
  28916. typeNumberForegroundColor: o.typeNumberForegroundColor || (null === (oo = o.typeNumber) || void 0 === oo ? void 0 : oo.foregroundColor) || (null === (eo = o.versionInformation) || void 0 === eo ? void 0 : eo.foregroundColor),
  28917. darkBlockColor: o.darkBlockColor || (null === (ro = o.darkBlock) || void 0 === ro ? void 0 : ro.color)
  28918. }, !0));
  28919. }, b.prototype.make = function () {
  28920. var o = this.foregroundColor,
  28921. r = this.backgroundColor,
  28922. t = this.typeNumber,
  28923. i = this.errorCorrectLevel,
  28924. n = this.data,
  28925. a = this.size,
  28926. d = this.margin,
  28927. u = this.useDynamicSize;
  28928. if (o === r) throw console.error("[uQRCode]: foregroundColor and backgroundColor cannot be the same!"), new b.Error("foregroundColor and backgroundColor cannot be the same!");
  28929. var s = new e(t, i);
  28930. s.addData(function (o) {
  28931. o = o.toString();
  28932. for (var e, r = "", t = 0; t < o.length; t++) {
  28933. (e = o.charCodeAt(t)) >= 1 && e <= 127 ? r += o.charAt(t) : e > 2047 ? (r += String.fromCharCode(224 | e >> 12 & 15), r += String.fromCharCode(128 | e >> 6 & 63), r += String.fromCharCode(128 | e >> 0 & 63)) : (r += String.fromCharCode(192 | e >> 6 & 31), r += String.fromCharCode(128 | e >> 0 & 63));
  28934. }
  28935. return r;
  28936. }(n)), s.make(), this.base = s, this.typeNumber = s.typeNumber, this.modules = s.modules, this.moduleCount = s.moduleCount, this.dynamicSize = u ? Math.ceil((a - 2 * d) / s.moduleCount) * s.moduleCount + 2 * d : a, function (o) {
  28937. var e = o.dynamicSize,
  28938. r = o.margin,
  28939. t = o.backgroundColor,
  28940. i = o.backgroundPadding,
  28941. n = o.foregroundColor,
  28942. a = o.foregroundPadding,
  28943. d = o.modules,
  28944. u = o.moduleCount,
  28945. s = (e - 2 * r) / u,
  28946. g = s,
  28947. l = 0;
  28948. i > 0 && (l = g * i / 2, g -= 2 * l);
  28949. var h = s,
  28950. c = 0;
  28951. a > 0 && (c = h * a / 2, h -= 2 * c);
  28952. for (var m = 0; m < u; m++) {
  28953. for (var f = 0; f < u; f++) {
  28954. var v = f * s + r,
  28955. p = m * s + r;
  28956. if (d[m][f]) {
  28957. var C = c,
  28958. b = v + c,
  28959. k = p + c,
  28960. y = h,
  28961. w = h;
  28962. d[m][f] = {
  28963. type: ["foreground"],
  28964. color: n,
  28965. isBlack: !0,
  28966. isDrawn: !1,
  28967. destX: v,
  28968. destY: p,
  28969. destWidth: s,
  28970. destHeight: s,
  28971. x: b,
  28972. y: k,
  28973. width: y,
  28974. height: w,
  28975. paddingTop: C,
  28976. paddingRight: C,
  28977. paddingBottom: C,
  28978. paddingLeft: C
  28979. };
  28980. } else C = l, b = v + l, k = p + l, y = g, w = g, d[m][f] = {
  28981. type: ["background"],
  28982. color: t,
  28983. isBlack: !1,
  28984. isDrawn: !1,
  28985. destX: v,
  28986. destY: p,
  28987. destWidth: s,
  28988. destHeight: s,
  28989. x: b,
  28990. y: k,
  28991. width: y,
  28992. height: w,
  28993. paddingTop: C,
  28994. paddingRight: C,
  28995. paddingBottom: C,
  28996. paddingLeft: C
  28997. };
  28998. }
  28999. }
  29000. }(this), function (o) {
  29001. var e = o.modules,
  29002. r = o.moduleCount,
  29003. t = o.positionProbeBackgroundColor,
  29004. i = o.positionProbeForegroundColor,
  29005. n = r - 7;
  29006. [[0, 0, 1], [1, 0, 1], [2, 0, 1], [3, 0, 1], [4, 0, 1], [5, 0, 1], [6, 0, 1], [0, 1, 1], [1, 1, 0], [2, 1, 0], [3, 1, 0], [4, 1, 0], [5, 1, 0], [6, 1, 1], [0, 2, 1], [1, 2, 0], [2, 2, 1], [3, 2, 1], [4, 2, 1], [5, 2, 0], [6, 2, 1], [0, 3, 1], [1, 3, 0], [2, 3, 1], [3, 3, 1], [4, 3, 1], [5, 3, 0], [6, 3, 1], [0, 4, 1], [1, 4, 0], [2, 4, 1], [3, 4, 1], [4, 4, 1], [5, 4, 0], [6, 4, 1], [0, 5, 1], [1, 5, 0], [2, 5, 0], [3, 5, 0], [4, 5, 0], [5, 5, 0], [6, 5, 1], [0, 6, 1], [1, 6, 1], [2, 6, 1], [3, 6, 1], [4, 6, 1], [5, 6, 1], [6, 6, 1]].forEach(function (o) {
  29007. var r = e[o[0]][o[1]],
  29008. a = e[o[0] + n][o[1]],
  29009. d = e[o[0]][o[1] + n];
  29010. d.type.push("positionProbe"), a.type.push("positionProbe"), r.type.push("positionProbe"), r.color = 1 == o[2] ? i : t, a.color = 1 == o[2] ? i : t, d.color = 1 == o[2] ? i : t;
  29011. });
  29012. }(this), function (o) {
  29013. var e = o.modules,
  29014. r = o.moduleCount,
  29015. t = o.separatorColor;
  29016. [[7, 0], [7, 1], [7, 2], [7, 3], [7, 4], [7, 5], [7, 6], [7, 7], [0, 7], [1, 7], [2, 7], [3, 7], [4, 7], [5, 7], [6, 7]].forEach(function (o) {
  29017. var i = e[o[0]][o[1]],
  29018. n = e[r - o[0] - 1][o[1]],
  29019. a = e[o[0]][r - o[1] - 1];
  29020. a.type.push("separator"), n.type.push("separator"), i.type.push("separator"), i.color = t, n.color = t, a.color = t;
  29021. });
  29022. }(this), function (o) {
  29023. var e = o.typeNumber,
  29024. r = o.modules,
  29025. t = o.moduleCount,
  29026. i = o.foregroundColor,
  29027. n = o.backgroundColor,
  29028. a = o.positionAdjustForegroundColor,
  29029. d = o.positionAdjustBackgroundColor,
  29030. u = o.timingForegroundColor,
  29031. s = o.timingBackgroundColor;
  29032. var g = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]][e - 1];
  29033. if (g) {
  29034. var _o2 = [[-2, -2, 1], [-1, -2, 1], [0, -2, 1], [1, -2, 1], [2, -2, 1], [-2, -1, 1], [-1, -1, 0], [0, -1, 0], [1, -1, 0], [2, -1, 1], [-2, 0, 1], [-1, 0, 0], [0, 0, 1], [1, 0, 0], [2, 0, 1], [-2, 1, 1], [-1, 1, 0], [0, 1, 0], [1, 1, 0], [2, 1, 1], [-2, 2, 1], [-1, 2, 1], [0, 2, 1], [1, 2, 1], [2, 2, 1]],
  29035. _e = g.length;
  29036. for (var _l = 0; _l < _e; _l++) {
  29037. var _loop = function _loop(_h) {
  29038. var _x$y = {
  29039. x: g[_l],
  29040. y: g[_h]
  29041. },
  29042. e = _x$y.x,
  29043. c = _x$y.y;
  29044. e < 9 && c < 9 || e > t - 9 - 1 && c < 9 || c > t - 9 - 1 && e < 9 || _o2.forEach(function (o) {
  29045. var t = r[e + o[0]][c + o[1]];
  29046. t.type.push("positionAdjust"), t.type.includes("timing") ? 1 == o[2] ? t.color = a == i ? u : a : t.color = a == i && d == n ? s : d : t.color = 1 == o[2] ? a : d;
  29047. });
  29048. };
  29049. for (var _h = 0; _h < _e; _h++) {
  29050. _loop(_h);
  29051. }
  29052. }
  29053. }
  29054. }(this), function (o) {
  29055. var e = o.modules,
  29056. r = o.moduleCount,
  29057. t = o.timingForegroundColor,
  29058. i = o.timingBackgroundColor,
  29059. n = r - 16;
  29060. for (var _o3 = 0; _o3 < n; _o3++) {
  29061. var a = e[6][8 + _o3],
  29062. d = e[8 + _o3][6];
  29063. a.type.push("timing"), d.type.push("timing"), a.color = 1 & _o3 ^ 1 ? t : i, d.color = 1 & _o3 ^ 1 ? t : i;
  29064. }
  29065. }(this), function (o) {
  29066. var e = o.modules,
  29067. r = o.moduleCount,
  29068. t = o.darkBlockColor;
  29069. var i = e[r - 7 - 1][8];
  29070. i.type.push("darkBlock"), i.color = t;
  29071. }(this), function (o) {
  29072. var e = o.typeNumber,
  29073. r = o.modules,
  29074. t = o.moduleCount,
  29075. i = o.typeNumberBackgroundColor,
  29076. n = o.typeNumberForegroundColor;
  29077. if (e < 7) return r;
  29078. var a = [0, 0, 0, 0, 0, 0, 0, "000111110010010100", "001000010110111100", "001001101010011001", "001010010011010011", "001011101111110110", "001100011101100010", "001101100001000111", "001110011000001101", "001111100100101000", "010000101101111000", "010001010001011101", "010010101000010111", "010011010100110010", "010100100110100110", "010101011010000011", "010110100011001001", "010111011111101100", "011000111011000100", "011001000111100001", "011010111110101011", "011011000010001110", "011100110000011010", "011101001100111111", "011110110101110101", "011111001001010000", "100000100111010101", "100001011011110000", "100010100010111010", "100011011110011111", "100100101100001011", "100101010000101110", "100110101001100100", "100111010101000001", "101000110001101001"];
  29079. var d = a[e] + a[e],
  29080. u = [t - 11, t - 10, t - 9];
  29081. [[5, u[2]], [5, u[1]], [5, u[0]], [4, u[2]], [4, u[1]], [4, u[0]], [3, u[2]], [3, u[1]], [3, u[0]], [2, u[2]], [2, u[1]], [2, u[0]], [1, u[2]], [1, u[1]], [1, u[0]], [0, u[2]], [0, u[1]], [0, u[0]], [u[2], 5], [u[1], 5], [u[0], 5], [u[2], 4], [u[1], 4], [u[0], 4], [u[2], 3], [u[1], 3], [u[0], 3], [u[2], 2], [u[1], 2], [u[0], 2], [u[2], 1], [u[1], 1], [u[0], 1], [u[2], 0], [u[1], 0], [u[0], 0]].forEach(function (o, e) {
  29082. var t = r[o[0]][o[1]];
  29083. t.type.push("typeNumber"), t.color = "1" == d[e] ? n : i;
  29084. });
  29085. }(this), this.isMaked = !0, this.drawModules = [];
  29086. }, b.prototype.getDrawModules = function () {
  29087. if (this.drawModules && this.drawModules.length > 0) return this.drawModules;
  29088. var o = this.drawModules = [],
  29089. e = this.modules,
  29090. r = this.moduleCount,
  29091. t = this.dynamicSize,
  29092. i = this.areaColor,
  29093. n = this.backgroundImageSrc,
  29094. a = this.backgroundImageX,
  29095. d = this.backgroundImageY,
  29096. u = this.backgroundImageWidth,
  29097. s = this.backgroundImageHeight,
  29098. g = this.backgroundImageAlpha,
  29099. l = this.backgroundImageBorderRadius,
  29100. h = this.foregroundImageSrc,
  29101. c = this.foregroundImageX,
  29102. m = this.foregroundImageY,
  29103. f = this.foregroundImageWidth,
  29104. v = this.foregroundImageHeight,
  29105. p = this.foregroundImagePadding,
  29106. C = this.foregroundImageBackgroundColor,
  29107. b = this.foregroundImageBorderRadius,
  29108. k = this.foregroundImageShadowOffsetX,
  29109. y = this.foregroundImageShadowOffsetY,
  29110. w = this.foregroundImageShadowBlur,
  29111. I = this.foregroundImageShadowColor;
  29112. i && o.push({
  29113. name: "area",
  29114. type: "area",
  29115. color: i,
  29116. x: 0,
  29117. y: 0,
  29118. width: t,
  29119. height: t
  29120. }), n && o.push({
  29121. name: "backgroundImage",
  29122. type: "image",
  29123. imageSrc: n,
  29124. mappingName: "backgroundImageSrc",
  29125. x: a,
  29126. y: d,
  29127. width: u,
  29128. height: s,
  29129. alpha: g,
  29130. borderRadius: l
  29131. });
  29132. for (var B = 0; B < r; B++) {
  29133. for (var S = 0; S < r; S++) {
  29134. var P = e[B][S];
  29135. P.isDrawn || (P.type.includes("foreground") ? o.push({
  29136. name: "foreground",
  29137. type: "tile",
  29138. color: P.color,
  29139. destX: P.destX,
  29140. destY: P.destY,
  29141. destWidth: P.destWidth,
  29142. destHeight: P.destHeight,
  29143. x: P.x,
  29144. y: P.y,
  29145. width: P.width,
  29146. height: P.height,
  29147. paddingTop: P.paddingTop,
  29148. paddingRight: P.paddingRight,
  29149. paddingBottom: P.paddingBottom,
  29150. paddingLeft: P.paddingLeft,
  29151. rowIndex: B,
  29152. colIndex: S
  29153. }) : o.push({
  29154. name: "background",
  29155. type: "tile",
  29156. color: P.color,
  29157. destX: P.destX,
  29158. destY: P.destY,
  29159. destWidth: P.destWidth,
  29160. destHeight: P.destHeight,
  29161. x: P.x,
  29162. y: P.y,
  29163. width: P.width,
  29164. height: P.height,
  29165. paddingTop: P.paddingTop,
  29166. paddingRight: P.paddingRight,
  29167. paddingBottom: P.paddingBottom,
  29168. paddingLeft: P.paddingLeft,
  29169. rowIndex: B,
  29170. colIndex: S
  29171. }), P.isDrawn = !0);
  29172. }
  29173. }
  29174. return h && o.push({
  29175. name: "foregroundImage",
  29176. type: "image",
  29177. imageSrc: h,
  29178. mappingName: "foregroundImageSrc",
  29179. x: c,
  29180. y: m,
  29181. width: f,
  29182. height: v,
  29183. padding: p,
  29184. backgroundColor: C,
  29185. borderRadius: b,
  29186. shadowOffsetX: k,
  29187. shadowOffsetY: y,
  29188. shadowBlur: w,
  29189. shadowColor: I
  29190. }), o;
  29191. }, b.prototype.isBlack = function (o, e) {
  29192. var r = this.moduleCount;
  29193. return !(0 > o || 0 > e || o >= r || e >= r) && this.modules[o][e].isBlack;
  29194. }, b.prototype.drawCanvas = function () {
  29195. var _this3 = this;
  29196. var o = this.isMaked,
  29197. e = this.canvasContext,
  29198. r = this.useDynamicSize,
  29199. t = this.dynamicSize,
  29200. i = this.foregroundColor,
  29201. n = this.foregroundPadding,
  29202. a = this.backgroundColor,
  29203. d = this.backgroundPadding,
  29204. u = this.drawReserve,
  29205. s = this.margin;
  29206. if (!o) return console.error("[uQRCode]: please execute the make method first!"), Promise.reject(new b.Error("please execute the make method first!"));
  29207. var g = this.getDrawModules(),
  29208. l = /*#__PURE__*/function () {
  29209. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(o, r) {
  29210. var i, n, a, d, s, l, h, c, m, f, v, p, C, k;
  29211. return _regenerator.default.wrap(function _callee$(_context) {
  29212. while (1) {
  29213. switch (_context.prev = _context.next) {
  29214. case 0:
  29215. _context.prev = 0;
  29216. e.clearRect(0, 0, t, t), e.draw(!1);
  29217. i = 0;
  29218. case 3:
  29219. if (!(i < g.length)) {
  29220. _context.next = 48;
  29221. break;
  29222. }
  29223. n = g[i];
  29224. _context.t0 = (e.save(), n.type);
  29225. _context.next = _context.t0 === "area" ? 8 : _context.t0 === "tile" ? 10 : _context.t0 === "image" ? 13 : 44;
  29226. break;
  29227. case 8:
  29228. e.setFillStyle(n.color), e.fillRect(n.x, n.y, n.width, n.height);
  29229. return _context.abrupt("break", 44);
  29230. case 10:
  29231. a = n.x, d = n.y, s = n.width, l = n.height;
  29232. e.setFillStyle(n.color), e.fillRect(a, d, s, l);
  29233. return _context.abrupt("break", 44);
  29234. case 13:
  29235. if (!("backgroundImage" === n.name)) {
  29236. _context.next = 28;
  29237. break;
  29238. }
  29239. a = Math.round(n.x), d = Math.round(n.y), s = Math.round(n.width), l = Math.round(n.height);
  29240. s < 2 * (c = Math.round(n.borderRadius)) && (c = s / 2), l < 2 * c && (c = l / 2), e.setGlobalAlpha(n.alpha), c > 0 && (e.beginPath(), e.moveTo(a + c, d), e.arcTo(a + s, d, a + s, d + l, c), e.arcTo(a + s, d + l, a, d + l, c), e.arcTo(a, d + l, a, d, c), e.arcTo(a, d, a + s, d, c), e.closePath(), e.setStrokeStyle("rgba(0,0,0,0)"), e.stroke(), e.clip());
  29241. _context.prev = 16;
  29242. _context.next = 19;
  29243. return _this3.loadImage(n.imageSrc);
  29244. case 19:
  29245. h = _context.sent;
  29246. e.drawImage(h, a, d, s, l);
  29247. _context.next = 26;
  29248. break;
  29249. case 23:
  29250. _context.prev = 23;
  29251. _context.t1 = _context["catch"](16);
  29252. throw console.error("[uQRCode]: ".concat(n.mappingName, " invalid!")), new b.Error("".concat(n.mappingName, " invalid!"));
  29253. case 26:
  29254. _context.next = 44;
  29255. break;
  29256. case 28:
  29257. if (!("foregroundImage" === n.name)) {
  29258. _context.next = 44;
  29259. break;
  29260. }
  29261. a = Math.round(n.x), d = Math.round(n.y), s = Math.round(n.width), l = Math.round(n.height);
  29262. m = Math.round(n.padding);
  29263. s < 2 * (c = Math.round(n.borderRadius)) && (c = s / 2), l < 2 * c && (c = l / 2);
  29264. f = a - m, v = d - m, p = s + 2 * m, C = l + 2 * m, k = Math.round(p / s * c);
  29265. p < 2 * k && (k = p / 2), C < 2 * k && (k = C / 2), e.save(), e.setShadow(n.shadowOffsetX, n.shadowOffsetY, n.shadowBlur, n.shadowColor), k > 0 ? (e.beginPath(), e.moveTo(f + k, v), e.arcTo(f + p, v, f + p, v + C, k), e.arcTo(f + p, v + C, f, v + C, k), e.arcTo(f, v + C, f, v, k), e.arcTo(f, v, f + p, v, k), e.closePath(), e.setFillStyle(n.backgroundColor), e.fill()) : (e.setFillStyle(n.backgroundColor), e.fillRect(f, v, p, C)), e.restore(), e.save(), k > 0 ? (e.beginPath(), e.moveTo(f + k, v), e.arcTo(f + p, v, f + p, v + C, k), e.arcTo(f + p, v + C, f, v + C, k), e.arcTo(f, v + C, f, v, k), e.arcTo(f, v, f + p, v, k), e.closePath(), e.setFillStyle(m > 0 ? n.backgroundColor : "rgba(0,0,0,0)"), e.fill()) : (e.setFillStyle(m > 0 ? n.backgroundColor : "rgba(0,0,0,0)"), e.fillRect(f, v, p, C)), e.restore(), c > 0 && (e.beginPath(), e.moveTo(a + c, d), e.arcTo(a + s, d, a + s, d + l, c), e.arcTo(a + s, d + l, a, d + l, c), e.arcTo(a, d + l, a, d, c), e.arcTo(a, d, a + s, d, c), e.closePath(), e.setStrokeStyle("rgba(0,0,0,0)"), e.stroke(), e.clip());
  29266. _context.prev = 34;
  29267. _context.next = 37;
  29268. return _this3.loadImage(n.imageSrc);
  29269. case 37:
  29270. h = _context.sent;
  29271. e.drawImage(h, a, d, s, l);
  29272. _context.next = 44;
  29273. break;
  29274. case 41:
  29275. _context.prev = 41;
  29276. _context.t2 = _context["catch"](34);
  29277. throw console.error("[uQRCode]: ".concat(n.mappingName, " invalid!")), new b.Error("".concat(n.mappingName, " invalid!"));
  29278. case 44:
  29279. u && e.draw(!0), e.restore();
  29280. case 45:
  29281. i++;
  29282. _context.next = 3;
  29283. break;
  29284. case 48:
  29285. e.draw(!0), setTimeout(o, 150);
  29286. _context.next = 56;
  29287. break;
  29288. case 51:
  29289. _context.prev = 51;
  29290. _context.t3 = _context["catch"](0);
  29291. if (_context.t3 instanceof b.Error) {
  29292. _context.next = 55;
  29293. break;
  29294. }
  29295. throw _context.t3;
  29296. case 55:
  29297. r(_context.t3);
  29298. case 56:
  29299. case "end":
  29300. return _context.stop();
  29301. }
  29302. }
  29303. }, _callee, null, [[0, 51], [16, 23], [34, 41]]);
  29304. }));
  29305. return function l(_x, _x2) {
  29306. return _ref.apply(this, arguments);
  29307. };
  29308. }();
  29309. return new Promise(function (o, e) {
  29310. l(o, e);
  29311. });
  29312. }, b.prototype.draw = function () {
  29313. return this.drawCanvas();
  29314. }, b.prototype.register = function (o) {
  29315. o && o(b, this, !0);
  29316. };
  29317. /***/ }),
  29318. /* 708 */
  29319. /*!******************************************************************************!*\
  29320. !*** F:/项目/HBuilderProjects/test/uni_modules/Sansnn-uQRCode/common/queue.js ***!
  29321. \******************************************************************************/
  29322. /*! no static exports found */
  29323. /***/ (function(module, exports, __webpack_require__) {
  29324. "use strict";
  29325. Object.defineProperty(exports, "__esModule", {
  29326. value: true
  29327. });
  29328. exports.queueLoadImage = exports.queueDraw = void 0;
  29329. function Queue() {
  29330. var waitingQueue = this.waitingQueue = [];
  29331. var isRunning = this.isRunning = false; // 记录是否有未完成的任务
  29332. function execute(task, resolve, reject) {
  29333. task().then(function (data) {
  29334. resolve(data);
  29335. }).catch(function (e) {
  29336. reject(e);
  29337. }).finally(function () {
  29338. // 等待任务队列中如果有任务,则触发它;否则设置isRunning = false,表示无任务状态
  29339. if (waitingQueue.length) {
  29340. var next = waitingQueue.shift();
  29341. execute(next.task, next.resolve, next.reject);
  29342. } else {
  29343. isRunning = false;
  29344. }
  29345. });
  29346. }
  29347. this.exec = function (task) {
  29348. return new Promise(function (resolve, reject) {
  29349. if (isRunning) {
  29350. waitingQueue.push({
  29351. task: task,
  29352. resolve: resolve,
  29353. reject: reject
  29354. });
  29355. } else {
  29356. isRunning = true;
  29357. execute(task, resolve, reject);
  29358. }
  29359. });
  29360. };
  29361. }
  29362. /* 队列实例,某些平台一起使用多个组件时需要通过队列逐一绘制,否则部分绘制方法异常,nvue端的iOS gcanvas尤其明显,在不通过队列绘制时会出现图片丢失的情况 */
  29363. var queueDraw = new Queue();
  29364. exports.queueDraw = queueDraw;
  29365. var queueLoadImage = new Queue();
  29366. exports.queueLoadImage = queueLoadImage;
  29367. /***/ }),
  29368. /* 709 */
  29369. /*!******************************************************************************!*\
  29370. !*** F:/项目/HBuilderProjects/test/uni_modules/Sansnn-uQRCode/common/cache.js ***!
  29371. \******************************************************************************/
  29372. /*! no static exports found */
  29373. /***/ (function(module, exports, __webpack_require__) {
  29374. "use strict";
  29375. Object.defineProperty(exports, "__esModule", {
  29376. value: true
  29377. });
  29378. exports.cacheImageList = void 0;
  29379. var cacheImageList = [];
  29380. exports.cacheImageList = cacheImageList;
  29381. /***/ }),
  29382. /* 710 */,
  29383. /* 711 */,
  29384. /* 712 */,
  29385. /* 713 */,
  29386. /* 714 */,
  29387. /* 715 */,
  29388. /* 716 */,
  29389. /* 717 */
  29390. /*!************************************************************************************!*\
  29391. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-popup/props.js ***!
  29392. \************************************************************************************/
  29393. /*! no static exports found */
  29394. /***/ (function(module, exports, __webpack_require__) {
  29395. "use strict";
  29396. /* WEBPACK VAR INJECTION */(function(uni) {
  29397. Object.defineProperty(exports, "__esModule", {
  29398. value: true
  29399. });
  29400. exports.default = void 0;
  29401. var _default = {
  29402. props: {
  29403. // 是否展示弹窗
  29404. show: {
  29405. type: Boolean,
  29406. default: uni.$u.props.popup.show
  29407. },
  29408. // 是否显示遮罩
  29409. overlay: {
  29410. type: Boolean,
  29411. default: uni.$u.props.popup.overlay
  29412. },
  29413. // 弹出的方向,可选值为 top bottom right left center
  29414. mode: {
  29415. type: String,
  29416. default: uni.$u.props.popup.mode
  29417. },
  29418. // 动画时长,单位ms
  29419. duration: {
  29420. type: [String, Number],
  29421. default: uni.$u.props.popup.duration
  29422. },
  29423. // 是否显示关闭图标
  29424. closeable: {
  29425. type: Boolean,
  29426. default: uni.$u.props.popup.closeable
  29427. },
  29428. // 自定义遮罩的样式
  29429. overlayStyle: {
  29430. type: [Object, String],
  29431. default: uni.$u.props.popup.overlayStyle
  29432. },
  29433. // 点击遮罩是否关闭弹窗
  29434. closeOnClickOverlay: {
  29435. type: Boolean,
  29436. default: uni.$u.props.popup.closeOnClickOverlay
  29437. },
  29438. // 层级
  29439. zIndex: {
  29440. type: [String, Number],
  29441. default: uni.$u.props.popup.zIndex
  29442. },
  29443. // 是否为iPhoneX留出底部安全距离
  29444. safeAreaInsetBottom: {
  29445. type: Boolean,
  29446. default: uni.$u.props.popup.safeAreaInsetBottom
  29447. },
  29448. // 是否留出顶部安全距离(状态栏高度)
  29449. safeAreaInsetTop: {
  29450. type: Boolean,
  29451. default: uni.$u.props.popup.safeAreaInsetTop
  29452. },
  29453. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  29454. closeIconPos: {
  29455. type: String,
  29456. default: uni.$u.props.popup.closeIconPos
  29457. },
  29458. // 是否显示圆角
  29459. round: {
  29460. type: [Boolean, String, Number],
  29461. default: uni.$u.props.popup.round
  29462. },
  29463. // mode=center,也即中部弹出时,是否使用缩放模式
  29464. zoom: {
  29465. type: Boolean,
  29466. default: uni.$u.props.popup.zoom
  29467. },
  29468. // 弹窗背景色,设置为transparent可去除白色背景
  29469. bgColor: {
  29470. type: String,
  29471. default: uni.$u.props.popup.bgColor
  29472. },
  29473. // 遮罩的透明度,0-1之间
  29474. overlayOpacity: {
  29475. type: [Number, String],
  29476. default: uni.$u.props.popup.overlayOpacity
  29477. }
  29478. }
  29479. };
  29480. exports.default = _default;
  29481. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29482. /***/ }),
  29483. /* 718 */,
  29484. /* 719 */,
  29485. /* 720 */,
  29486. /* 721 */,
  29487. /* 722 */,
  29488. /* 723 */,
  29489. /* 724 */,
  29490. /* 725 */
  29491. /*!*******************************************************************************************!*\
  29492. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  29493. \*******************************************************************************************/
  29494. /*! no static exports found */
  29495. /***/ (function(module, exports, __webpack_require__) {
  29496. "use strict";
  29497. /* WEBPACK VAR INJECTION */(function(uni) {
  29498. Object.defineProperty(exports, "__esModule", {
  29499. value: true
  29500. });
  29501. exports.default = void 0;
  29502. var _default = {
  29503. props: {
  29504. // 是否显示组件
  29505. show: {
  29506. type: Boolean,
  29507. default: uni.$u.props.loadingIcon.show
  29508. },
  29509. // 颜色
  29510. color: {
  29511. type: String,
  29512. default: uni.$u.props.loadingIcon.color
  29513. },
  29514. // 提示文字颜色
  29515. textColor: {
  29516. type: String,
  29517. default: uni.$u.props.loadingIcon.textColor
  29518. },
  29519. // 文字和图标是否垂直排列
  29520. vertical: {
  29521. type: Boolean,
  29522. default: uni.$u.props.loadingIcon.vertical
  29523. },
  29524. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  29525. mode: {
  29526. type: String,
  29527. default: uni.$u.props.loadingIcon.mode
  29528. },
  29529. // 图标大小,单位默认px
  29530. size: {
  29531. type: [String, Number],
  29532. default: uni.$u.props.loadingIcon.size
  29533. },
  29534. // 文字大小
  29535. textSize: {
  29536. type: [String, Number],
  29537. default: uni.$u.props.loadingIcon.textSize
  29538. },
  29539. // 文字内容
  29540. text: {
  29541. type: [String, Number],
  29542. default: uni.$u.props.loadingIcon.text
  29543. },
  29544. // 动画模式
  29545. timingFunction: {
  29546. type: String,
  29547. default: uni.$u.props.loadingIcon.timingFunction
  29548. },
  29549. // 动画执行周期时间
  29550. duration: {
  29551. type: [String, Number],
  29552. default: uni.$u.props.loadingIcon.duration
  29553. },
  29554. // mode=circle时的暗边颜色
  29555. inactiveColor: {
  29556. type: String,
  29557. default: uni.$u.props.loadingIcon.inactiveColor
  29558. }
  29559. }
  29560. };
  29561. exports.default = _default;
  29562. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29563. /***/ }),
  29564. /* 726 */,
  29565. /* 727 */,
  29566. /* 728 */,
  29567. /* 729 */,
  29568. /* 730 */,
  29569. /* 731 */,
  29570. /* 732 */,
  29571. /* 733 */
  29572. /*!***********************************************************************************!*\
  29573. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-form/props.js ***!
  29574. \***********************************************************************************/
  29575. /*! no static exports found */
  29576. /***/ (function(module, exports, __webpack_require__) {
  29577. "use strict";
  29578. /* WEBPACK VAR INJECTION */(function(uni) {
  29579. Object.defineProperty(exports, "__esModule", {
  29580. value: true
  29581. });
  29582. exports.default = void 0;
  29583. var _default = {
  29584. props: {
  29585. // 当前form的需要验证字段的集合
  29586. model: {
  29587. type: Object,
  29588. default: uni.$u.props.form.model
  29589. },
  29590. // 验证规则
  29591. rules: {
  29592. type: [Object, Function, Array],
  29593. default: uni.$u.props.form.rules
  29594. },
  29595. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  29596. // border-bottom-下边框呈现红色,none-无提示
  29597. errorType: {
  29598. type: String,
  29599. default: uni.$u.props.form.errorType
  29600. },
  29601. // 是否显示表单域的下划线边框
  29602. borderBottom: {
  29603. type: Boolean,
  29604. default: uni.$u.props.form.borderBottom
  29605. },
  29606. // label的位置,left-左边,top-上边
  29607. labelPosition: {
  29608. type: String,
  29609. default: uni.$u.props.form.labelPosition
  29610. },
  29611. // label的宽度,单位px
  29612. labelWidth: {
  29613. type: [String, Number],
  29614. default: uni.$u.props.form.labelWidth
  29615. },
  29616. // lable字体的对齐方式
  29617. labelAlign: {
  29618. type: String,
  29619. default: uni.$u.props.form.labelAlign
  29620. },
  29621. // lable的样式,对象形式
  29622. labelStyle: {
  29623. type: Object,
  29624. default: uni.$u.props.form.labelStyle
  29625. }
  29626. }
  29627. };
  29628. exports.default = _default;
  29629. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29630. /***/ }),
  29631. /* 734 */,
  29632. /* 735 */,
  29633. /* 736 */,
  29634. /* 737 */,
  29635. /* 738 */,
  29636. /* 739 */
  29637. /*!****************************************************************************************!*\
  29638. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-form-item/props.js ***!
  29639. \****************************************************************************************/
  29640. /*! no static exports found */
  29641. /***/ (function(module, exports, __webpack_require__) {
  29642. "use strict";
  29643. /* WEBPACK VAR INJECTION */(function(uni) {
  29644. Object.defineProperty(exports, "__esModule", {
  29645. value: true
  29646. });
  29647. exports.default = void 0;
  29648. var _default = {
  29649. props: {
  29650. // input的label提示语
  29651. label: {
  29652. type: String,
  29653. default: uni.$u.props.formItem.label
  29654. },
  29655. // 绑定的值
  29656. prop: {
  29657. type: String,
  29658. default: uni.$u.props.formItem.prop
  29659. },
  29660. // 是否显示表单域的下划线边框
  29661. borderBottom: {
  29662. type: [String, Boolean],
  29663. default: uni.$u.props.formItem.borderBottom
  29664. },
  29665. // label的位置,left-左边,top-上边
  29666. labelPosition: {
  29667. type: String,
  29668. default: uni.$u.props.formItem.labelPosition
  29669. },
  29670. // label的宽度,单位px
  29671. labelWidth: {
  29672. type: [String, Number],
  29673. default: uni.$u.props.formItem.labelWidth
  29674. },
  29675. // 右侧图标
  29676. rightIcon: {
  29677. type: String,
  29678. default: uni.$u.props.formItem.rightIcon
  29679. },
  29680. // 左侧图标
  29681. leftIcon: {
  29682. type: String,
  29683. default: uni.$u.props.formItem.leftIcon
  29684. },
  29685. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  29686. required: {
  29687. type: Boolean,
  29688. default: uni.$u.props.formItem.required
  29689. },
  29690. leftIconStyle: {
  29691. type: [String, Object],
  29692. default: uni.$u.props.formItem.leftIconStyle
  29693. }
  29694. }
  29695. };
  29696. exports.default = _default;
  29697. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29698. /***/ }),
  29699. /* 740 */,
  29700. /* 741 */,
  29701. /* 742 */,
  29702. /* 743 */,
  29703. /* 744 */,
  29704. /* 745 */,
  29705. /* 746 */,
  29706. /* 747 */
  29707. /*!************************************************************************************!*\
  29708. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-input/props.js ***!
  29709. \************************************************************************************/
  29710. /*! no static exports found */
  29711. /***/ (function(module, exports, __webpack_require__) {
  29712. "use strict";
  29713. /* WEBPACK VAR INJECTION */(function(uni) {
  29714. Object.defineProperty(exports, "__esModule", {
  29715. value: true
  29716. });
  29717. exports.default = void 0;
  29718. var _default = {
  29719. props: {
  29720. // 输入的值
  29721. value: {
  29722. type: [String, Number],
  29723. default: uni.$u.props.input.value
  29724. },
  29725. // 输入框类型
  29726. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  29727. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  29728. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  29729. // text-文本输入键盘
  29730. type: {
  29731. type: String,
  29732. default: uni.$u.props.input.type
  29733. },
  29734. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  29735. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  29736. fixed: {
  29737. type: Boolean,
  29738. default: uni.$u.props.input.fixed
  29739. },
  29740. // 是否禁用输入框
  29741. disabled: {
  29742. type: Boolean,
  29743. default: uni.$u.props.input.disabled
  29744. },
  29745. // 禁用状态时的背景色
  29746. disabledColor: {
  29747. type: String,
  29748. default: uni.$u.props.input.disabledColor
  29749. },
  29750. // 是否显示清除控件
  29751. clearable: {
  29752. type: Boolean,
  29753. default: uni.$u.props.input.clearable
  29754. },
  29755. // 是否密码类型
  29756. password: {
  29757. type: Boolean,
  29758. default: uni.$u.props.input.password
  29759. },
  29760. // 最大输入长度,设置为 -1 的时候不限制最大长度
  29761. maxlength: {
  29762. type: [String, Number],
  29763. default: uni.$u.props.input.maxlength
  29764. },
  29765. // 输入框为空时的占位符
  29766. placeholder: {
  29767. type: String,
  29768. default: uni.$u.props.input.placeholder
  29769. },
  29770. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  29771. placeholderClass: {
  29772. type: String,
  29773. default: uni.$u.props.input.placeholderClass
  29774. },
  29775. // 指定placeholder的样式
  29776. placeholderStyle: {
  29777. type: [String, Object],
  29778. default: uni.$u.props.input.placeholderStyle
  29779. },
  29780. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  29781. showWordLimit: {
  29782. type: Boolean,
  29783. default: uni.$u.props.input.showWordLimit
  29784. },
  29785. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  29786. // https://uniapp.dcloud.io/component/input
  29787. // https://uniapp.dcloud.io/component/textarea
  29788. confirmType: {
  29789. type: String,
  29790. default: uni.$u.props.input.confirmType
  29791. },
  29792. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  29793. confirmHold: {
  29794. type: Boolean,
  29795. default: uni.$u.props.input.confirmHold
  29796. },
  29797. // focus时,点击页面的时候不收起键盘,微信小程序有效
  29798. holdKeyboard: {
  29799. type: Boolean,
  29800. default: uni.$u.props.input.holdKeyboard
  29801. },
  29802. // 自动获取焦点
  29803. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  29804. focus: {
  29805. type: Boolean,
  29806. default: uni.$u.props.input.focus
  29807. },
  29808. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  29809. autoBlur: {
  29810. type: Boolean,
  29811. default: uni.$u.props.input.autoBlur
  29812. },
  29813. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  29814. disableDefaultPadding: {
  29815. type: Boolean,
  29816. default: uni.$u.props.input.disableDefaultPadding
  29817. },
  29818. // 指定focus时光标的位置
  29819. cursor: {
  29820. type: [String, Number],
  29821. default: uni.$u.props.input.cursor
  29822. },
  29823. // 输入框聚焦时底部与键盘的距离
  29824. cursorSpacing: {
  29825. type: [String, Number],
  29826. default: uni.$u.props.input.cursorSpacing
  29827. },
  29828. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  29829. selectionStart: {
  29830. type: [String, Number],
  29831. default: uni.$u.props.input.selectionStart
  29832. },
  29833. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  29834. selectionEnd: {
  29835. type: [String, Number],
  29836. default: uni.$u.props.input.selectionEnd
  29837. },
  29838. // 键盘弹起时,是否自动上推页面
  29839. adjustPosition: {
  29840. type: Boolean,
  29841. default: uni.$u.props.input.adjustPosition
  29842. },
  29843. // 输入框内容对齐方式,可选值为:left|center|right
  29844. inputAlign: {
  29845. type: String,
  29846. default: uni.$u.props.input.inputAlign
  29847. },
  29848. // 输入框字体的大小
  29849. fontSize: {
  29850. type: [String, Number],
  29851. default: uni.$u.props.input.fontSize
  29852. },
  29853. // 输入框字体颜色
  29854. color: {
  29855. type: String,
  29856. default: uni.$u.props.input.color
  29857. },
  29858. // 输入框前置图标
  29859. prefixIcon: {
  29860. type: String,
  29861. default: uni.$u.props.input.prefixIcon
  29862. },
  29863. // 前置图标样式,对象或字符串
  29864. prefixIconStyle: {
  29865. type: [String, Object],
  29866. default: uni.$u.props.input.prefixIconStyle
  29867. },
  29868. // 输入框后置图标
  29869. suffixIcon: {
  29870. type: String,
  29871. default: uni.$u.props.input.suffixIcon
  29872. },
  29873. // 后置图标样式,对象或字符串
  29874. suffixIconStyle: {
  29875. type: [String, Object],
  29876. default: uni.$u.props.input.suffixIconStyle
  29877. },
  29878. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  29879. border: {
  29880. type: String,
  29881. default: uni.$u.props.input.border
  29882. },
  29883. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  29884. readonly: {
  29885. type: Boolean,
  29886. default: uni.$u.props.input.readonly
  29887. },
  29888. // 输入框形状,circle-圆形,square-方形
  29889. shape: {
  29890. type: String,
  29891. default: uni.$u.props.input.shape
  29892. },
  29893. // 用于处理或者过滤输入框内容的方法
  29894. formatter: {
  29895. type: [Function, null],
  29896. default: uni.$u.props.input.formatter
  29897. },
  29898. // 是否忽略组件内对文本合成系统事件的处理
  29899. ignoreCompositionEvent: {
  29900. type: Boolean,
  29901. default: true
  29902. }
  29903. }
  29904. };
  29905. exports.default = _default;
  29906. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29907. /***/ }),
  29908. /* 748 */,
  29909. /* 749 */,
  29910. /* 750 */,
  29911. /* 751 */,
  29912. /* 752 */,
  29913. /* 753 */
  29914. /*!**************************************************************************************!*\
  29915. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-overlay/props.js ***!
  29916. \**************************************************************************************/
  29917. /*! no static exports found */
  29918. /***/ (function(module, exports, __webpack_require__) {
  29919. "use strict";
  29920. /* WEBPACK VAR INJECTION */(function(uni) {
  29921. Object.defineProperty(exports, "__esModule", {
  29922. value: true
  29923. });
  29924. exports.default = void 0;
  29925. var _default = {
  29926. props: {
  29927. // 是否显示遮罩
  29928. show: {
  29929. type: Boolean,
  29930. default: uni.$u.props.overlay.show
  29931. },
  29932. // 层级z-index
  29933. zIndex: {
  29934. type: [String, Number],
  29935. default: uni.$u.props.overlay.zIndex
  29936. },
  29937. // 遮罩的过渡时间,单位为ms
  29938. duration: {
  29939. type: [String, Number],
  29940. default: uni.$u.props.overlay.duration
  29941. },
  29942. // 不透明度值,当做rgba的第四个参数
  29943. opacity: {
  29944. type: [String, Number],
  29945. default: uni.$u.props.overlay.opacity
  29946. }
  29947. }
  29948. };
  29949. exports.default = _default;
  29950. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29951. /***/ }),
  29952. /* 754 */,
  29953. /* 755 */,
  29954. /* 756 */,
  29955. /* 757 */,
  29956. /* 758 */,
  29957. /* 759 */,
  29958. /* 760 */,
  29959. /* 761 */
  29960. /*!*******************************************************!*\
  29961. !*** F:/项目/HBuilderProjects/test/static/back-btn.png ***!
  29962. \*******************************************************/
  29963. /*! no static exports found */
  29964. /***/ (function(module, exports) {
  29965. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAh1BMVEUAAAAhISEAAAAhISEhISEfHx8cHBwhISEhISEhISEhISEfHx8eHh4bGxshISEhISEhISEhISEhISEhISEgICAgICAgICAgICAfHx8eHh4gICAiIiIhISEhISEhISEhISEhISEhISEhISEgICAgICAdHR0dHR0bGxsgICAgICAhISEhISEiIiJFDlwJAAAALHRSTlMA8QX79y8N7Nq+uUQ6CejTxbOropyQbVtMKSTjzMiXfnRkPjYfGhUSh4ZVVAScx9wAAADhSURBVDjLjdTXDsIwDIXh0FK6gTJKyx4djLz/84HsXvQG/Tl3kT5FjmzH/E8d2XhmOEForT2ze0zsLyd0d3H2Qi6dituQq8RxhR9f3JbcTt2T3M26vaNUdyV3VVeSe6m7kdsK83fkNo5ure4NzFuJm1bkCnUpuDwZOa5vcjcUnb/MYJYCVx7CQK8sHGQoMslZzkU6rGitcslyfxB57FE2kchFh7IdZIuyW4iMGpT9UeRhj3J2EjmvWWo3wwBlHqt8sEx05jKUXqEyZTnsT8ZSJz7RE+94jEx/Db8yLsnKUXu+N3Yo6wU5V6sAAAAASUVORK5CYII="
  29966. /***/ }),
  29967. /* 762 */
  29968. /*!*************************************************************!*\
  29969. !*** F:/项目/HBuilderProjects/test/static/back-btn-white.png ***!
  29970. \*************************************************************/
  29971. /*! no static exports found */
  29972. /***/ (function(module, exports) {
  29973. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAvxJREFUWEfN2FuozFEUx/Hvz52IIkXKC0IUSSgpt4NcSocXl5SoU4pS58GDlCQpoaSEwoOURHI/HFEU5YEHLzx4kBKR5JLbMquW0rSZ+c/sMdbbNNP//2n2XnuvtcQ/CjMbC5wFRgE3gaWS3lV6vSr9IMf3ZjYRuAYM+u15hyS1VXp+w4FmNgW4Agwow9yTNLWpQDObAVwA+iUg2yVtaxrQzOYC54A+CcRRYH0JaE0BmtlC4AzQMwE4KGlDJdiv77PvQTNbVsrUk0D3BGKvpM3V4vx3WYFmthI4DnRNIHZJ2lIElxVoZuuAQ0CXBGKrpB1FcdmAZraxdIzsS6yIJ0G7pD214LIAzay9lKm7EwDHbZR0oFZc3UAz2wmk9tUPoE3S4XpwdQHNzJd0UwLwHVgr6US9uJqAZuaZ78mw/g+4VZJO5cAVBpqZZ+gxYHUC8BVYKel0LlwhoJl1iwN4eQLwBVgu6XxOXNXAUjL0iKtrUQLwOWo7r1iyR8WbxMx6R6E5L/H2j8ASSTeyy+KB1QB9z61JAN4DiyTdbhSuqiU2M4f0TSCmS7rTSFy1wLvAtATEs3WFpG+NRFazxBOiySkv2d3l1XKrJM/ihkRFoL81mp4OYGBCcTWy+FMjhFUBAzkeuA4MTkBuAQslfciNrBoYyDGAHylDEhDfq/MleVJli0LAQI4EOoFhCcUDoEXSm1zCwsBADo/lHpGAPALmlBqjVzmQNQEDOTSWe3QC8hiYK+lFvciagYH0hPE9OS4BeRrIZ/Ug6wIG0o8eP2omJSDPgVmSntSKrBsYyP6B9DlMebwMpC974cgCDKTf15dLyTM9oXgdifOwqDAbMJA+h/Hrb2YC8jbOyftFkFmBgewVQ6NU/eiH+IIiVVB2YCD/VoH7dbhYkk9ZK0ZDgIH0Hsa7u9aEwtuE2ZL8evxrNAwYSB8i+TDJh0rl0VECtjQVGEj/E454M1+G6ZQ0u+nAXwAz2++zmvjsPbRP+S/+N8D4N711mAxckuRXYcX4CWyz5Sldqp5tAAAAAElFTkSuQmCC"
  29974. /***/ }),
  29975. /* 763 */,
  29976. /* 764 */,
  29977. /* 765 */,
  29978. /* 766 */,
  29979. /* 767 */,
  29980. /* 768 */,
  29981. /* 769 */,
  29982. /* 770 */
  29983. /*!***********************************************************************************!*\
  29984. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-grid/props.js ***!
  29985. \***********************************************************************************/
  29986. /*! no static exports found */
  29987. /***/ (function(module, exports, __webpack_require__) {
  29988. "use strict";
  29989. /* WEBPACK VAR INJECTION */(function(uni) {
  29990. Object.defineProperty(exports, "__esModule", {
  29991. value: true
  29992. });
  29993. exports.default = void 0;
  29994. var _default = {
  29995. props: {
  29996. // 分成几列
  29997. col: {
  29998. type: [String, Number],
  29999. default: uni.$u.props.grid.col
  30000. },
  30001. // 是否显示边框
  30002. border: {
  30003. type: Boolean,
  30004. default: uni.$u.props.grid.border
  30005. },
  30006. // 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右
  30007. align: {
  30008. type: String,
  30009. default: uni.$u.props.grid.align
  30010. }
  30011. }
  30012. };
  30013. exports.default = _default;
  30014. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30015. /***/ }),
  30016. /* 771 */,
  30017. /* 772 */,
  30018. /* 773 */,
  30019. /* 774 */,
  30020. /* 775 */,
  30021. /* 776 */,
  30022. /* 777 */,
  30023. /* 778 */
  30024. /*!****************************************************************************************!*\
  30025. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-grid-item/props.js ***!
  30026. \****************************************************************************************/
  30027. /*! no static exports found */
  30028. /***/ (function(module, exports, __webpack_require__) {
  30029. "use strict";
  30030. /* WEBPACK VAR INJECTION */(function(uni) {
  30031. Object.defineProperty(exports, "__esModule", {
  30032. value: true
  30033. });
  30034. exports.default = void 0;
  30035. var _default = {
  30036. props: {
  30037. // 宫格的name
  30038. name: {
  30039. type: [String, Number, null],
  30040. default: uni.$u.props.gridItem.name
  30041. },
  30042. // 背景颜色
  30043. bgColor: {
  30044. type: String,
  30045. default: uni.$u.props.gridItem.bgColor
  30046. }
  30047. }
  30048. };
  30049. exports.default = _default;
  30050. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30051. /***/ }),
  30052. /* 779 */,
  30053. /* 780 */,
  30054. /* 781 */,
  30055. /* 782 */,
  30056. /* 783 */,
  30057. /* 784 */,
  30058. /* 785 */,
  30059. /* 786 */
  30060. /*!************************************************************************************!*\
  30061. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-image/props.js ***!
  30062. \************************************************************************************/
  30063. /*! no static exports found */
  30064. /***/ (function(module, exports, __webpack_require__) {
  30065. "use strict";
  30066. /* WEBPACK VAR INJECTION */(function(uni) {
  30067. Object.defineProperty(exports, "__esModule", {
  30068. value: true
  30069. });
  30070. exports.default = void 0;
  30071. var _default = {
  30072. props: {
  30073. // 图片地址
  30074. src: {
  30075. type: String,
  30076. default: uni.$u.props.image.src
  30077. },
  30078. // 裁剪模式
  30079. mode: {
  30080. type: String,
  30081. default: uni.$u.props.image.mode
  30082. },
  30083. // 宽度,单位任意
  30084. width: {
  30085. type: [String, Number],
  30086. default: uni.$u.props.image.width
  30087. },
  30088. // 高度,单位任意
  30089. height: {
  30090. type: [String, Number],
  30091. default: uni.$u.props.image.height
  30092. },
  30093. // 图片形状,circle-圆形,square-方形
  30094. shape: {
  30095. type: String,
  30096. default: uni.$u.props.image.shape
  30097. },
  30098. // 圆角,单位任意
  30099. radius: {
  30100. type: [String, Number],
  30101. default: uni.$u.props.image.radius
  30102. },
  30103. // 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
  30104. lazyLoad: {
  30105. type: Boolean,
  30106. default: uni.$u.props.image.lazyLoad
  30107. },
  30108. // 开启长按图片显示识别微信小程序码菜单
  30109. showMenuByLongpress: {
  30110. type: Boolean,
  30111. default: uni.$u.props.image.showMenuByLongpress
  30112. },
  30113. // 加载中的图标,或者小图片
  30114. loadingIcon: {
  30115. type: String,
  30116. default: uni.$u.props.image.loadingIcon
  30117. },
  30118. // 加载失败的图标,或者小图片
  30119. errorIcon: {
  30120. type: String,
  30121. default: uni.$u.props.image.errorIcon
  30122. },
  30123. // 是否显示加载中的图标或者自定义的slot
  30124. showLoading: {
  30125. type: Boolean,
  30126. default: uni.$u.props.image.showLoading
  30127. },
  30128. // 是否显示加载错误的图标或者自定义的slot
  30129. showError: {
  30130. type: Boolean,
  30131. default: uni.$u.props.image.showError
  30132. },
  30133. // 是否需要淡入效果
  30134. fade: {
  30135. type: Boolean,
  30136. default: uni.$u.props.image.fade
  30137. },
  30138. // 只支持网络资源,只对微信小程序有效
  30139. webp: {
  30140. type: Boolean,
  30141. default: uni.$u.props.image.webp
  30142. },
  30143. // 过渡时间,单位ms
  30144. duration: {
  30145. type: [String, Number],
  30146. default: uni.$u.props.image.duration
  30147. },
  30148. // 背景颜色,用于深色页面加载图片时,为了和背景色融合
  30149. bgColor: {
  30150. type: String,
  30151. default: uni.$u.props.image.bgColor
  30152. }
  30153. }
  30154. };
  30155. exports.default = _default;
  30156. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30157. /***/ }),
  30158. /* 787 */,
  30159. /* 788 */,
  30160. /* 789 */,
  30161. /* 790 */,
  30162. /* 791 */,
  30163. /* 792 */
  30164. /*!*****************************************************************************!*\
  30165. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/button.js ***!
  30166. \*****************************************************************************/
  30167. /*! no static exports found */
  30168. /***/ (function(module, exports, __webpack_require__) {
  30169. "use strict";
  30170. Object.defineProperty(exports, "__esModule", {
  30171. value: true
  30172. });
  30173. exports.default = void 0;
  30174. var _default = {
  30175. props: {
  30176. lang: String,
  30177. sessionFrom: String,
  30178. sendMessageTitle: String,
  30179. sendMessagePath: String,
  30180. sendMessageImg: String,
  30181. showMessageCard: Boolean,
  30182. appParameter: String,
  30183. formType: String,
  30184. openType: String
  30185. }
  30186. };
  30187. exports.default = _default;
  30188. /***/ }),
  30189. /* 793 */
  30190. /*!*******************************************************************************!*\
  30191. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/openType.js ***!
  30192. \*******************************************************************************/
  30193. /*! no static exports found */
  30194. /***/ (function(module, exports, __webpack_require__) {
  30195. "use strict";
  30196. Object.defineProperty(exports, "__esModule", {
  30197. value: true
  30198. });
  30199. exports.default = void 0;
  30200. var _default = {
  30201. props: {
  30202. openType: String
  30203. },
  30204. methods: {
  30205. onGetUserInfo: function onGetUserInfo(event) {
  30206. this.$emit('getuserinfo', event.detail);
  30207. },
  30208. onContact: function onContact(event) {
  30209. this.$emit('contact', event.detail);
  30210. },
  30211. onGetPhoneNumber: function onGetPhoneNumber(event) {
  30212. this.$emit('getphonenumber', event.detail);
  30213. },
  30214. onError: function onError(event) {
  30215. this.$emit('error', event.detail);
  30216. },
  30217. onLaunchApp: function onLaunchApp(event) {
  30218. this.$emit('launchapp', event.detail);
  30219. },
  30220. onOpenSetting: function onOpenSetting(event) {
  30221. this.$emit('opensetting', event.detail);
  30222. }
  30223. }
  30224. };
  30225. exports.default = _default;
  30226. /***/ }),
  30227. /* 794 */
  30228. /*!*************************************************************************************!*\
  30229. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-button/props.js ***!
  30230. \*************************************************************************************/
  30231. /*! no static exports found */
  30232. /***/ (function(module, exports, __webpack_require__) {
  30233. "use strict";
  30234. /* WEBPACK VAR INJECTION */(function(uni) {
  30235. Object.defineProperty(exports, "__esModule", {
  30236. value: true
  30237. });
  30238. exports.default = void 0;
  30239. /*
  30240. * @Author : LQ
  30241. * @Description :
  30242. * @version : 1.0
  30243. * @Date : 2021-08-16 10:04:04
  30244. * @LastAuthor : LQ
  30245. * @lastTime : 2021-08-16 10:04:24
  30246. * @FilePath : /u-view2.0/uview-ui/components/u-button/props.js
  30247. */
  30248. var _default = {
  30249. props: {
  30250. // 是否细边框
  30251. hairline: {
  30252. type: Boolean,
  30253. default: uni.$u.props.button.hairline
  30254. },
  30255. // 按钮的预置样式,info,primary,error,warning,success
  30256. type: {
  30257. type: String,
  30258. default: uni.$u.props.button.type
  30259. },
  30260. // 按钮尺寸,large,normal,small,mini
  30261. size: {
  30262. type: String,
  30263. default: uni.$u.props.button.size
  30264. },
  30265. // 按钮形状,circle(两边为半圆),square(带圆角)
  30266. shape: {
  30267. type: String,
  30268. default: uni.$u.props.button.shape
  30269. },
  30270. // 按钮是否镂空
  30271. plain: {
  30272. type: Boolean,
  30273. default: uni.$u.props.button.plain
  30274. },
  30275. // 是否禁止状态
  30276. disabled: {
  30277. type: Boolean,
  30278. default: uni.$u.props.button.disabled
  30279. },
  30280. // 是否加载中
  30281. loading: {
  30282. type: Boolean,
  30283. default: uni.$u.props.button.loading
  30284. },
  30285. // 加载中提示文字
  30286. loadingText: {
  30287. type: [String, Number],
  30288. default: uni.$u.props.button.loadingText
  30289. },
  30290. // 加载状态图标类型
  30291. loadingMode: {
  30292. type: String,
  30293. default: uni.$u.props.button.loadingMode
  30294. },
  30295. // 加载图标大小
  30296. loadingSize: {
  30297. type: [String, Number],
  30298. default: uni.$u.props.button.loadingSize
  30299. },
  30300. // 开放能力,具体请看uniapp稳定关于button组件部分说明
  30301. // https://uniapp.dcloud.io/component/button
  30302. openType: {
  30303. type: String,
  30304. default: uni.$u.props.button.openType
  30305. },
  30306. // 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
  30307. // 取值为submit(提交表单),reset(重置表单)
  30308. formType: {
  30309. type: String,
  30310. default: uni.$u.props.button.formType
  30311. },
  30312. // 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
  30313. // 只微信小程序、QQ小程序有效
  30314. appParameter: {
  30315. type: String,
  30316. default: uni.$u.props.button.appParameter
  30317. },
  30318. // 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
  30319. hoverStopPropagation: {
  30320. type: Boolean,
  30321. default: uni.$u.props.button.hoverStopPropagation
  30322. },
  30323. // 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效
  30324. lang: {
  30325. type: String,
  30326. default: uni.$u.props.button.lang
  30327. },
  30328. // 会话来源,open-type="contact"时有效。只微信小程序有效
  30329. sessionFrom: {
  30330. type: String,
  30331. default: uni.$u.props.button.sessionFrom
  30332. },
  30333. // 会话内消息卡片标题,open-type="contact"时有效
  30334. // 默认当前标题,只微信小程序有效
  30335. sendMessageTitle: {
  30336. type: String,
  30337. default: uni.$u.props.button.sendMessageTitle
  30338. },
  30339. // 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
  30340. // 默认当前分享路径,只微信小程序有效
  30341. sendMessagePath: {
  30342. type: String,
  30343. default: uni.$u.props.button.sendMessagePath
  30344. },
  30345. // 会话内消息卡片图片,open-type="contact"时有效
  30346. // 默认当前页面截图,只微信小程序有效
  30347. sendMessageImg: {
  30348. type: String,
  30349. default: uni.$u.props.button.sendMessageImg
  30350. },
  30351. // 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
  30352. // 用户点击后可以快速发送小程序消息,open-type="contact"时有效
  30353. showMessageCard: {
  30354. type: Boolean,
  30355. default: uni.$u.props.button.showMessageCard
  30356. },
  30357. // 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
  30358. dataName: {
  30359. type: String,
  30360. default: uni.$u.props.button.dataName
  30361. },
  30362. // 节流,一定时间内只能触发一次
  30363. throttleTime: {
  30364. type: [String, Number],
  30365. default: uni.$u.props.button.throttleTime
  30366. },
  30367. // 按住后多久出现点击态,单位毫秒
  30368. hoverStartTime: {
  30369. type: [String, Number],
  30370. default: uni.$u.props.button.hoverStartTime
  30371. },
  30372. // 手指松开后点击态保留时间,单位毫秒
  30373. hoverStayTime: {
  30374. type: [String, Number],
  30375. default: uni.$u.props.button.hoverStayTime
  30376. },
  30377. // 按钮文字,之所以通过props传入,是因为slot传入的话
  30378. // nvue中无法控制文字的样式
  30379. text: {
  30380. type: [String, Number],
  30381. default: uni.$u.props.button.text
  30382. },
  30383. // 按钮图标
  30384. icon: {
  30385. type: String,
  30386. default: uni.$u.props.button.icon
  30387. },
  30388. // 按钮图标
  30389. iconColor: {
  30390. type: String,
  30391. default: uni.$u.props.button.icon
  30392. },
  30393. // 按钮颜色,支持传入linear-gradient渐变色
  30394. color: {
  30395. type: String,
  30396. default: uni.$u.props.button.color
  30397. }
  30398. }
  30399. };
  30400. exports.default = _default;
  30401. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30402. /***/ }),
  30403. /* 795 */,
  30404. /* 796 */,
  30405. /* 797 */,
  30406. /* 798 */,
  30407. /* 799 */,
  30408. /* 800 */,
  30409. /* 801 */,
  30410. /* 802 */
  30411. /*!**********************************************************************************************!*\
  30412. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-datetime-picker/props.js ***!
  30413. \**********************************************************************************************/
  30414. /*! no static exports found */
  30415. /***/ (function(module, exports, __webpack_require__) {
  30416. "use strict";
  30417. /* WEBPACK VAR INJECTION */(function(uni) {
  30418. Object.defineProperty(exports, "__esModule", {
  30419. value: true
  30420. });
  30421. exports.default = void 0;
  30422. var _default = {
  30423. props: {
  30424. // 是否打开组件
  30425. show: {
  30426. type: Boolean,
  30427. default: uni.$u.props.datetimePicker.show
  30428. },
  30429. // 是否展示顶部的操作栏
  30430. showToolbar: {
  30431. type: Boolean,
  30432. default: uni.$u.props.datetimePicker.showToolbar
  30433. },
  30434. // 绑定值
  30435. value: {
  30436. type: [String, Number],
  30437. default: uni.$u.props.datetimePicker.value
  30438. },
  30439. // 顶部标题
  30440. title: {
  30441. type: String,
  30442. default: uni.$u.props.datetimePicker.title
  30443. },
  30444. // 展示格式,mode=date为日期选择,mode=time为时间选择,mode=year-month为年月选择,mode=datetime为日期时间选择
  30445. mode: {
  30446. type: String,
  30447. default: uni.$u.props.datetimePicker.mode
  30448. },
  30449. // 可选的最大时间
  30450. maxDate: {
  30451. type: Number,
  30452. // 最大默认值为后10年
  30453. default: uni.$u.props.datetimePicker.maxDate
  30454. },
  30455. // 可选的最小时间
  30456. minDate: {
  30457. type: Number,
  30458. // 最小默认值为前10年
  30459. default: uni.$u.props.datetimePicker.minDate
  30460. },
  30461. // 可选的最小小时,仅mode=time有效
  30462. minHour: {
  30463. type: Number,
  30464. default: uni.$u.props.datetimePicker.minHour
  30465. },
  30466. // 可选的最大小时,仅mode=time有效
  30467. maxHour: {
  30468. type: Number,
  30469. default: uni.$u.props.datetimePicker.maxHour
  30470. },
  30471. // 可选的最小分钟,仅mode=time有效
  30472. minMinute: {
  30473. type: Number,
  30474. default: uni.$u.props.datetimePicker.minMinute
  30475. },
  30476. // 可选的最大分钟,仅mode=time有效
  30477. maxMinute: {
  30478. type: Number,
  30479. default: uni.$u.props.datetimePicker.maxMinute
  30480. },
  30481. // 选项过滤函数
  30482. filter: {
  30483. type: [Function, null],
  30484. default: uni.$u.props.datetimePicker.filter
  30485. },
  30486. // 选项格式化函数
  30487. formatter: {
  30488. type: [Function, null],
  30489. default: uni.$u.props.datetimePicker.formatter
  30490. },
  30491. // 是否显示加载中状态
  30492. loading: {
  30493. type: Boolean,
  30494. default: uni.$u.props.datetimePicker.loading
  30495. },
  30496. // 各列中,单个选项的高度
  30497. itemHeight: {
  30498. type: [String, Number],
  30499. default: uni.$u.props.datetimePicker.itemHeight
  30500. },
  30501. // 取消按钮的文字
  30502. cancelText: {
  30503. type: String,
  30504. default: uni.$u.props.datetimePicker.cancelText
  30505. },
  30506. // 确认按钮的文字
  30507. confirmText: {
  30508. type: String,
  30509. default: uni.$u.props.datetimePicker.confirmText
  30510. },
  30511. // 取消按钮的颜色
  30512. cancelColor: {
  30513. type: String,
  30514. default: uni.$u.props.datetimePicker.cancelColor
  30515. },
  30516. // 确认按钮的颜色
  30517. confirmColor: {
  30518. type: String,
  30519. default: uni.$u.props.datetimePicker.confirmColor
  30520. },
  30521. // 每列中可见选项的数量
  30522. visibleItemCount: {
  30523. type: [String, Number],
  30524. default: uni.$u.props.datetimePicker.visibleItemCount
  30525. },
  30526. // 是否允许点击遮罩关闭选择器
  30527. closeOnClickOverlay: {
  30528. type: Boolean,
  30529. default: uni.$u.props.datetimePicker.closeOnClickOverlay
  30530. },
  30531. // 各列的默认索引
  30532. defaultIndex: {
  30533. type: Array,
  30534. default: uni.$u.props.datetimePicker.defaultIndex
  30535. }
  30536. }
  30537. };
  30538. exports.default = _default;
  30539. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30540. /***/ }),
  30541. /* 803 */
  30542. /*!***************************************************************************!*\
  30543. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/util/dayjs.js ***!
  30544. \***************************************************************************/
  30545. /*! no static exports found */
  30546. /***/ (function(module, exports, __webpack_require__) {
  30547. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  30548. !function (t, e) {
  30549. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = e() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (e),
  30550. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  30551. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  30552. __WEBPACK_AMD_DEFINE_FACTORY__),
  30553. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  30554. }(this, function () {
  30555. 'use strict';
  30556. var t = 'millisecond';
  30557. var e = 'second';
  30558. var n = 'minute';
  30559. var r = 'hour';
  30560. var i = 'day';
  30561. var s = 'week';
  30562. var u = 'month';
  30563. var a = 'quarter';
  30564. var o = 'year';
  30565. var f = 'date';
  30566. var h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/;
  30567. var c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
  30568. var d = {
  30569. name: 'en',
  30570. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  30571. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_')
  30572. };
  30573. var $ = function $(t, e, n) {
  30574. var r = String(t);
  30575. return !r || r.length >= e ? t : "".concat(Array(e + 1 - r.length).join(n)).concat(t);
  30576. };
  30577. var l = {
  30578. s: $,
  30579. z: function z(t) {
  30580. var e = -t.utcOffset();
  30581. var n = Math.abs(e);
  30582. var r = Math.floor(n / 60);
  30583. var i = n % 60;
  30584. return "".concat((e <= 0 ? '+' : '-') + $(r, 2, '0'), ":").concat($(i, 2, '0'));
  30585. },
  30586. m: function t(e, n) {
  30587. if (e.date() < n.date()) return -t(n, e);
  30588. var r = 12 * (n.year() - e.year()) + (n.month() - e.month());
  30589. var i = e.clone().add(r, u);
  30590. var s = n - i < 0;
  30591. var a = e.clone().add(r + (s ? -1 : 1), u);
  30592. return +(-(r + (n - i) / (s ? i - a : a - i)) || 0);
  30593. },
  30594. a: function a(t) {
  30595. return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
  30596. },
  30597. p: function p(h) {
  30598. return {
  30599. M: u,
  30600. y: o,
  30601. w: s,
  30602. d: i,
  30603. D: f,
  30604. h: r,
  30605. m: n,
  30606. s: e,
  30607. ms: t,
  30608. Q: a
  30609. }[h] || String(h || '').toLowerCase().replace(/s$/, '');
  30610. },
  30611. u: function u(t) {
  30612. return void 0 === t;
  30613. }
  30614. };
  30615. var y = 'en';
  30616. var M = {};
  30617. M[y] = d;
  30618. var m = function m(t) {
  30619. return t instanceof S;
  30620. };
  30621. var D = function D(t, e, n) {
  30622. var r;
  30623. if (!t) return y;
  30624. if (typeof t === 'string') M[t] && (r = t), e && (M[t] = e, r = t);else {
  30625. var _i = t.name;
  30626. M[_i] = t, r = _i;
  30627. }
  30628. return !n && r && (y = r), r || !n && y;
  30629. };
  30630. var v = function v(t, e) {
  30631. if (m(t)) return t.clone();
  30632. var n = _typeof(e) === 'object' ? e : {};
  30633. return n.date = t, n.args = arguments, new S(n);
  30634. };
  30635. var g = l;
  30636. g.l = D, g.i = m, g.w = function (t, e) {
  30637. return v(t, {
  30638. locale: e.$L,
  30639. utc: e.$u,
  30640. x: e.$x,
  30641. $offset: e.$offset
  30642. });
  30643. };
  30644. var S = function () {
  30645. function d(t) {
  30646. this.$L = D(t.locale, null, !0), this.parse(t);
  30647. }
  30648. var $ = d.prototype;
  30649. return $.parse = function (t) {
  30650. this.$d = function (t) {
  30651. var e = t.date;
  30652. var n = t.utc;
  30653. if (e === null) return new Date(NaN);
  30654. if (g.u(e)) return new Date();
  30655. if (e instanceof Date) return new Date(e);
  30656. if (typeof e === 'string' && !/Z$/i.test(e)) {
  30657. var _r = e.match(h);
  30658. if (_r) {
  30659. var _i2 = _r[2] - 1 || 0;
  30660. var _s = (_r[7] || '0').substring(0, 3);
  30661. return n ? new Date(Date.UTC(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s)) : new Date(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s);
  30662. }
  30663. }
  30664. return new Date(e);
  30665. }(t), this.$x = t.x || {}, this.init();
  30666. }, $.init = function () {
  30667. var t = this.$d;
  30668. this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
  30669. }, $.$utils = function () {
  30670. return g;
  30671. }, $.isValid = function () {
  30672. return !(this.$d.toString() === 'Invalid Date');
  30673. }, $.isSame = function (t, e) {
  30674. var n = v(t);
  30675. return this.startOf(e) <= n && n <= this.endOf(e);
  30676. }, $.isAfter = function (t, e) {
  30677. return v(t) < this.startOf(e);
  30678. }, $.isBefore = function (t, e) {
  30679. return this.endOf(e) < v(t);
  30680. }, $.$g = function (t, e, n) {
  30681. return g.u(t) ? this[e] : this.set(n, t);
  30682. }, $.unix = function () {
  30683. return Math.floor(this.valueOf() / 1e3);
  30684. }, $.valueOf = function () {
  30685. return this.$d.getTime();
  30686. }, $.startOf = function (t, a) {
  30687. var h = this;
  30688. var c = !!g.u(a) || a;
  30689. var d = g.p(t);
  30690. var $ = function $(t, e) {
  30691. var n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h);
  30692. return c ? n : n.endOf(i);
  30693. };
  30694. var l = function l(t, e) {
  30695. return g.w(h.toDate()[t].apply(h.toDate('s'), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h);
  30696. };
  30697. var y = this.$W;
  30698. var M = this.$M;
  30699. var m = this.$D;
  30700. var D = "set".concat(this.$u ? 'UTC' : '');
  30701. switch (d) {
  30702. case o:
  30703. return c ? $(1, 0) : $(31, 11);
  30704. case u:
  30705. return c ? $(1, M) : $(0, M + 1);
  30706. case s:
  30707. var v = this.$locale().weekStart || 0;
  30708. var S = (y < v ? y + 7 : y) - v;
  30709. return $(c ? m - S : m + (6 - S), M);
  30710. case i:
  30711. case f:
  30712. return l("".concat(D, "Hours"), 0);
  30713. case r:
  30714. return l("".concat(D, "Minutes"), 1);
  30715. case n:
  30716. return l("".concat(D, "Seconds"), 2);
  30717. case e:
  30718. return l("".concat(D, "Milliseconds"), 3);
  30719. default:
  30720. return this.clone();
  30721. }
  30722. }, $.endOf = function (t) {
  30723. return this.startOf(t, !1);
  30724. }, $.$set = function (s, a) {
  30725. var h;
  30726. var c = g.p(s);
  30727. var d = "set".concat(this.$u ? 'UTC' : '');
  30728. var $ = (h = {}, h[i] = "".concat(d, "Date"), h[f] = "".concat(d, "Date"), h[u] = "".concat(d, "Month"), h[o] = "".concat(d, "FullYear"), h[r] = "".concat(d, "Hours"), h[n] = "".concat(d, "Minutes"), h[e] = "".concat(d, "Seconds"), h[t] = "".concat(d, "Milliseconds"), h)[c];
  30729. var l = c === i ? this.$D + (a - this.$W) : a;
  30730. if (c === u || c === o) {
  30731. var _y = this.clone().set(f, 1);
  30732. _y.$d[$](l), _y.init(), this.$d = _y.set(f, Math.min(this.$D, _y.daysInMonth())).$d;
  30733. } else $ && this.$d[$](l);
  30734. return this.init(), this;
  30735. }, $.set = function (t, e) {
  30736. return this.clone().$set(t, e);
  30737. }, $.get = function (t) {
  30738. return this[g.p(t)]();
  30739. }, $.add = function (t, a) {
  30740. var f;
  30741. var h = this;
  30742. t = Number(t);
  30743. var c = g.p(a);
  30744. var d = function d(e) {
  30745. var n = v(h);
  30746. return g.w(n.date(n.date() + Math.round(e * t)), h);
  30747. };
  30748. if (c === u) return this.set(u, this.$M + t);
  30749. if (c === o) return this.set(o, this.$y + t);
  30750. if (c === i) return d(1);
  30751. if (c === s) return d(7);
  30752. var $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1;
  30753. var l = this.$d.getTime() + t * $;
  30754. return g.w(l, this);
  30755. }, $.subtract = function (t, e) {
  30756. return this.add(-1 * t, e);
  30757. }, $.format = function (t) {
  30758. var e = this;
  30759. if (!this.isValid()) return 'Invalid Date';
  30760. var n = t || 'YYYY-MM-DDTHH:mm:ssZ';
  30761. var r = g.z(this);
  30762. var i = this.$locale();
  30763. var s = this.$H;
  30764. var u = this.$m;
  30765. var a = this.$M;
  30766. var o = i.weekdays;
  30767. var f = i.months;
  30768. var h = function h(t, r, i, s) {
  30769. return t && (t[r] || t(e, n)) || i[r].substr(0, s);
  30770. };
  30771. var d = function d(t) {
  30772. return g.s(s % 12 || 12, t, '0');
  30773. };
  30774. var $ = i.meridiem || function (t, e, n) {
  30775. var r = t < 12 ? 'AM' : 'PM';
  30776. return n ? r.toLowerCase() : r;
  30777. };
  30778. var l = {
  30779. YY: String(this.$y).slice(-2),
  30780. YYYY: this.$y,
  30781. M: a + 1,
  30782. MM: g.s(a + 1, 2, '0'),
  30783. MMM: h(i.monthsShort, a, f, 3),
  30784. MMMM: h(f, a),
  30785. D: this.$D,
  30786. DD: g.s(this.$D, 2, '0'),
  30787. d: String(this.$W),
  30788. dd: h(i.weekdaysMin, this.$W, o, 2),
  30789. ddd: h(i.weekdaysShort, this.$W, o, 3),
  30790. dddd: o[this.$W],
  30791. H: String(s),
  30792. HH: g.s(s, 2, '0'),
  30793. h: d(1),
  30794. hh: d(2),
  30795. a: $(s, u, !0),
  30796. A: $(s, u, !1),
  30797. m: String(u),
  30798. mm: g.s(u, 2, '0'),
  30799. s: String(this.$s),
  30800. ss: g.s(this.$s, 2, '0'),
  30801. SSS: g.s(this.$ms, 3, '0'),
  30802. Z: r
  30803. };
  30804. return n.replace(c, function (t, e) {
  30805. return e || l[t] || r.replace(':', '');
  30806. });
  30807. }, $.utcOffset = function () {
  30808. return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
  30809. }, $.diff = function (t, f, h) {
  30810. var c;
  30811. var d = g.p(f);
  30812. var $ = v(t);
  30813. var l = 6e4 * ($.utcOffset() - this.utcOffset());
  30814. var y = this - $;
  30815. var M = g.m(this, $);
  30816. return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M);
  30817. }, $.daysInMonth = function () {
  30818. return this.endOf(u).$D;
  30819. }, $.$locale = function () {
  30820. return M[this.$L];
  30821. }, $.locale = function (t, e) {
  30822. if (!t) return this.$L;
  30823. var n = this.clone();
  30824. var r = D(t, e, !0);
  30825. return r && (n.$L = r), n;
  30826. }, $.clone = function () {
  30827. return g.w(this.$d, this);
  30828. }, $.toDate = function () {
  30829. return new Date(this.valueOf());
  30830. }, $.toJSON = function () {
  30831. return this.isValid() ? this.toISOString() : null;
  30832. }, $.toISOString = function () {
  30833. return this.$d.toISOString();
  30834. }, $.toString = function () {
  30835. return this.$d.toUTCString();
  30836. }, d;
  30837. }();
  30838. var p = S.prototype;
  30839. return v.prototype = p, [['$ms', t], ['$s', e], ['$m', n], ['$H', r], ['$W', i], ['$M', u], ['$y', o], ['$D', f]].forEach(function (t) {
  30840. p[t[1]] = function (e) {
  30841. return this.$g(e, t[0], t[1]);
  30842. };
  30843. }), v.extend = function (t, e) {
  30844. return t.$i || (t(e, S, v), t.$i = !0), v;
  30845. }, v.locale = D, v.isDayjs = m, v.unix = function (t) {
  30846. return v(1e3 * t);
  30847. }, v.en = M[y], v.Ls = M, v.p = {}, v;
  30848. });
  30849. /***/ }),
  30850. /* 804 */,
  30851. /* 805 */,
  30852. /* 806 */,
  30853. /* 807 */,
  30854. /* 808 */,
  30855. /* 809 */,
  30856. /* 810 */,
  30857. /* 811 */
  30858. /*!***************************************************************************************!*\
  30859. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-calendar/props.js ***!
  30860. \***************************************************************************************/
  30861. /*! no static exports found */
  30862. /***/ (function(module, exports, __webpack_require__) {
  30863. "use strict";
  30864. /* WEBPACK VAR INJECTION */(function(uni) {
  30865. Object.defineProperty(exports, "__esModule", {
  30866. value: true
  30867. });
  30868. exports.default = void 0;
  30869. var _default = {
  30870. props: {
  30871. // 日历顶部标题
  30872. title: {
  30873. type: String,
  30874. default: uni.$u.props.calendar.title
  30875. },
  30876. // 是否显示标题
  30877. showTitle: {
  30878. type: Boolean,
  30879. default: uni.$u.props.calendar.showTitle
  30880. },
  30881. // 是否显示副标题
  30882. showSubtitle: {
  30883. type: Boolean,
  30884. default: uni.$u.props.calendar.showSubtitle
  30885. },
  30886. // 日期类型选择,single-选择单个日期,multiple-可以选择多个日期,range-选择日期范围
  30887. mode: {
  30888. type: String,
  30889. default: uni.$u.props.calendar.mode
  30890. },
  30891. // mode=range时,第一个日期底部的提示文字
  30892. startText: {
  30893. type: String,
  30894. default: uni.$u.props.calendar.startText
  30895. },
  30896. // mode=range时,最后一个日期底部的提示文字
  30897. endText: {
  30898. type: String,
  30899. default: uni.$u.props.calendar.endText
  30900. },
  30901. // 自定义列表
  30902. customList: {
  30903. type: Array,
  30904. default: uni.$u.props.calendar.customList
  30905. },
  30906. // 主题色,对底部按钮和选中日期有效
  30907. color: {
  30908. type: String,
  30909. default: uni.$u.props.calendar.color
  30910. },
  30911. // 最小的可选日期
  30912. minDate: {
  30913. type: [String, Number],
  30914. default: uni.$u.props.calendar.minDate
  30915. },
  30916. // 最大可选日期
  30917. maxDate: {
  30918. type: [String, Number],
  30919. default: uni.$u.props.calendar.maxDate
  30920. },
  30921. // 默认选中的日期,mode为multiple或range是必须为数组格式
  30922. defaultDate: {
  30923. type: [Array, String, Date, null],
  30924. default: uni.$u.props.calendar.defaultDate
  30925. },
  30926. // mode=multiple时,最多可选多少个日期
  30927. maxCount: {
  30928. type: [String, Number],
  30929. default: uni.$u.props.calendar.maxCount
  30930. },
  30931. // 日期行高
  30932. rowHeight: {
  30933. type: [String, Number],
  30934. default: uni.$u.props.calendar.rowHeight
  30935. },
  30936. // 日期格式化函数
  30937. formatter: {
  30938. type: [Function, null],
  30939. default: uni.$u.props.calendar.formatter
  30940. },
  30941. // 是否显示农历
  30942. showLunar: {
  30943. type: Boolean,
  30944. default: uni.$u.props.calendar.showLunar
  30945. },
  30946. // 是否显示月份背景色
  30947. showMark: {
  30948. type: Boolean,
  30949. default: uni.$u.props.calendar.showMark
  30950. },
  30951. // 确定按钮的文字
  30952. confirmText: {
  30953. type: String,
  30954. default: uni.$u.props.calendar.confirmText
  30955. },
  30956. // 确认按钮处于禁用状态时的文字
  30957. confirmDisabledText: {
  30958. type: String,
  30959. default: uni.$u.props.calendar.confirmDisabledText
  30960. },
  30961. // 是否显示日历弹窗
  30962. show: {
  30963. type: Boolean,
  30964. default: uni.$u.props.calendar.show
  30965. },
  30966. // 是否允许点击遮罩关闭日历
  30967. closeOnClickOverlay: {
  30968. type: Boolean,
  30969. default: uni.$u.props.calendar.closeOnClickOverlay
  30970. },
  30971. // 是否为只读状态,只读状态下禁止选择日期
  30972. readonly: {
  30973. type: Boolean,
  30974. default: uni.$u.props.calendar.readonly
  30975. },
  30976. // 是否展示确认按钮
  30977. showConfirm: {
  30978. type: Boolean,
  30979. default: uni.$u.props.calendar.showConfirm
  30980. },
  30981. // 日期区间最多可选天数,默认无限制,mode = range时有效
  30982. maxRange: {
  30983. type: [Number, String],
  30984. default: uni.$u.props.calendar.maxRange
  30985. },
  30986. // 范围选择超过最多可选天数时的提示文案,mode = range时有效
  30987. rangePrompt: {
  30988. type: String,
  30989. default: uni.$u.props.calendar.rangePrompt
  30990. },
  30991. // 范围选择超过最多可选天数时,是否展示提示文案,mode = range时有效
  30992. showRangePrompt: {
  30993. type: Boolean,
  30994. default: uni.$u.props.calendar.showRangePrompt
  30995. },
  30996. // 是否允许日期范围的起止时间为同一天,mode = range时有效
  30997. allowSameDay: {
  30998. type: Boolean,
  30999. default: uni.$u.props.calendar.allowSameDay
  31000. },
  31001. // 圆角值
  31002. round: {
  31003. type: [Boolean, String, Number],
  31004. default: uni.$u.props.calendar.round
  31005. },
  31006. // 最多展示月份数量
  31007. monthNum: {
  31008. type: [Number, String],
  31009. default: 3
  31010. }
  31011. }
  31012. };
  31013. exports.default = _default;
  31014. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  31015. /***/ }),
  31016. /* 812 */
  31017. /*!**************************************************************************************!*\
  31018. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-calendar/util.js ***!
  31019. \**************************************************************************************/
  31020. /*! no static exports found */
  31021. /***/ (function(module, exports, __webpack_require__) {
  31022. "use strict";
  31023. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  31024. Object.defineProperty(exports, "__esModule", {
  31025. value: true
  31026. });
  31027. exports.default = void 0;
  31028. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  31029. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  31030. 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; }
  31031. 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; }
  31032. var _default = {
  31033. methods: {
  31034. // 设置月份数据
  31035. setMonth: function setMonth() {
  31036. var _this = this;
  31037. // 月初是周几
  31038. var day = dayjs(this.date).date(1).day();
  31039. var start = day == 0 ? 6 : day - 1;
  31040. // 本月天数
  31041. var days = dayjs(this.date).endOf('month').format('D');
  31042. // 上个月天数
  31043. var prevDays = dayjs(this.date).endOf('month').subtract(1, 'month').format('D');
  31044. // 日期数据
  31045. var arr = [];
  31046. // 清空表格
  31047. this.month = [];
  31048. // 添加上月数据
  31049. arr.push.apply(arr, (0, _toConsumableArray2.default)(new Array(start).fill(1).map(function (e, i) {
  31050. var day = prevDays - start + i + 1;
  31051. return {
  31052. value: day,
  31053. disabled: true,
  31054. date: dayjs(_this.date).subtract(1, 'month').date(day).format('YYYY-MM-DD')
  31055. };
  31056. })));
  31057. // 添加本月数据
  31058. arr.push.apply(arr, (0, _toConsumableArray2.default)(new Array(days - 0).fill(1).map(function (e, i) {
  31059. var day = i + 1;
  31060. return {
  31061. value: day,
  31062. date: dayjs(_this.date).date(day).format('YYYY-MM-DD')
  31063. };
  31064. })));
  31065. // 添加下个月
  31066. arr.push.apply(arr, (0, _toConsumableArray2.default)(new Array(42 - days - start).fill(1).map(function (e, i) {
  31067. var day = i + 1;
  31068. return {
  31069. value: day,
  31070. disabled: true,
  31071. date: dayjs(_this.date).add(1, 'month').date(day).format('YYYY-MM-DD')
  31072. };
  31073. })));
  31074. // 分割数组
  31075. var _loop = function _loop(n) {
  31076. _this.month.push(arr.slice(n, n + 7).map(function (e, i) {
  31077. e.index = i + n;
  31078. // 自定义信息
  31079. var custom = _this.customList.find(function (c) {
  31080. return c.date == e.date;
  31081. });
  31082. // 农历
  31083. if (_this.lunar) {
  31084. var _this$getLunar = _this.getLunar(e.date),
  31085. IDayCn = _this$getLunar.IDayCn,
  31086. IMonthCn = _this$getLunar.IMonthCn;
  31087. e.lunar = IDayCn == '初一' ? IMonthCn : IDayCn;
  31088. }
  31089. return _objectSpread(_objectSpread({}, e), custom);
  31090. }));
  31091. };
  31092. for (var n = 0; n < arr.length; n += 7) {
  31093. _loop(n);
  31094. }
  31095. }
  31096. }
  31097. };
  31098. exports.default = _default;
  31099. /***/ }),
  31100. /* 813 */
  31101. /*!******************************************************************************!*\
  31102. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/util/calendar.js ***!
  31103. \******************************************************************************/
  31104. /*! no static exports found */
  31105. /***/ (function(module, exports, __webpack_require__) {
  31106. "use strict";
  31107. Object.defineProperty(exports, "__esModule", {
  31108. value: true
  31109. });
  31110. exports.default = void 0;
  31111. /**
  31112. * @1900-2100区间内的公历、农历互转
  31113. * @charset UTF-8
  31114. * @github https://github.com/jjonline/calendar.js
  31115. * @Author Jea杨(JJonline@JJonline.Cn)
  31116. * @Time 2014-7-21
  31117. * @Time 2016-8-13 Fixed 2033hex、Attribution Annals
  31118. * @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
  31119. * @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year
  31120. * @Version 1.0.3
  31121. * @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0]
  31122. * @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0]
  31123. */
  31124. /* eslint-disable */
  31125. var calendar = {
  31126. /**
  31127. * 农历1900-2100的润大小信息表
  31128. * @Array Of Property
  31129. * @return Hex
  31130. */
  31131. lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2,
  31132. // 1900-1909
  31133. 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977,
  31134. // 1910-1919
  31135. 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970,
  31136. // 1920-1929
  31137. 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950,
  31138. // 1930-1939
  31139. 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557,
  31140. // 1940-1949
  31141. 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0,
  31142. // 1950-1959
  31143. 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0,
  31144. // 1960-1969
  31145. 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6,
  31146. // 1970-1979
  31147. 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570,
  31148. // 1980-1989
  31149. 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0,
  31150. // 1990-1999
  31151. 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5,
  31152. // 2000-2009
  31153. 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930,
  31154. // 2010-2019
  31155. 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530,
  31156. // 2020-2029
  31157. 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45,
  31158. // 2030-2039
  31159. 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0,
  31160. // 2040-2049
  31161. /** Add By JJonline@JJonline.Cn**/
  31162. 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0,
  31163. // 2050-2059
  31164. 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4,
  31165. // 2060-2069
  31166. 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0,
  31167. // 2070-2079
  31168. 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160,
  31169. // 2080-2089
  31170. 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252,
  31171. // 2090-2099
  31172. 0x0d520],
  31173. // 2100
  31174. /**
  31175. * 公历每个月份的天数普通表
  31176. * @Array Of Property
  31177. * @return Number
  31178. */
  31179. solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
  31180. /**
  31181. * 天干地支之天干速查表
  31182. * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"]
  31183. * @return Cn string
  31184. */
  31185. Gan: ["\u7532", "\u4E59", "\u4E19", "\u4E01", "\u620A", "\u5DF1", "\u5E9A", "\u8F9B", "\u58EC", "\u7678"],
  31186. /**
  31187. * 天干地支之地支速查表
  31188. * @Array Of Property
  31189. * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"]
  31190. * @return Cn string
  31191. */
  31192. Zhi: ["\u5B50", "\u4E11", "\u5BC5", "\u536F", "\u8FB0", "\u5DF3", "\u5348", "\u672A", "\u7533", "\u9149", "\u620C", "\u4EA5"],
  31193. /**
  31194. * 天干地支之地支速查表<=>生肖
  31195. * @Array Of Property
  31196. * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"]
  31197. * @return Cn string
  31198. */
  31199. Animals: ["\u9F20", "\u725B", "\u864E", "\u5154", "\u9F99", "\u86C7", "\u9A6C", "\u7F8A", "\u7334", "\u9E21", "\u72D7", "\u732A"],
  31200. /**
  31201. * 24节气速查表
  31202. * @Array Of Property
  31203. * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"]
  31204. * @return Cn string
  31205. */
  31206. solarTerm: ["\u5C0F\u5BD2", "\u5927\u5BD2", "\u7ACB\u6625", "\u96E8\u6C34", "\u60CA\u86F0", "\u6625\u5206", "\u6E05\u660E", "\u8C37\u96E8", "\u7ACB\u590F", "\u5C0F\u6EE1", "\u8292\u79CD", "\u590F\u81F3", "\u5C0F\u6691", "\u5927\u6691", "\u7ACB\u79CB", "\u5904\u6691", "\u767D\u9732", "\u79CB\u5206", "\u5BD2\u9732", "\u971C\u964D", "\u7ACB\u51AC", "\u5C0F\u96EA", "\u5927\u96EA", "\u51AC\u81F3"],
  31207. /**
  31208. * 1900-2100各年的24节气日期速查表
  31209. * @Array Of Property
  31210. * @return 0x string For splice
  31211. */
  31212. sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'],
  31213. /**
  31214. * 数字转中文速查表
  31215. * @Array Of Property
  31216. * @trans ['日','一','二','三','四','五','六','七','八','九','十']
  31217. * @return Cn string
  31218. */
  31219. nStr1: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341"],
  31220. /**
  31221. * 日期转农历称呼速查表
  31222. * @Array Of Property
  31223. * @trans ['初','十','廿','卅']
  31224. * @return Cn string
  31225. */
  31226. nStr2: ["\u521D", "\u5341", "\u5EFF", "\u5345"],
  31227. /**
  31228. * 月份转农历称呼速查表
  31229. * @Array Of Property
  31230. * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊']
  31231. * @return Cn string
  31232. */
  31233. nStr3: ["\u6B63", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341", "\u51AC", "\u814A"],
  31234. /**
  31235. * 返回农历y年一整年的总天数
  31236. * @param lunar Year
  31237. * @return Number
  31238. * @eg:var count = calendar.lYearDays(1987) ;//count=387
  31239. */
  31240. lYearDays: function lYearDays(y) {
  31241. var i;
  31242. var sum = 348;
  31243. for (i = 0x8000; i > 0x8; i >>= 1) {
  31244. sum += this.lunarInfo[y - 1900] & i ? 1 : 0;
  31245. }
  31246. return sum + this.leapDays(y);
  31247. },
  31248. /**
  31249. * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0
  31250. * @param lunar Year
  31251. * @return Number (0-12)
  31252. * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
  31253. */
  31254. leapMonth: function leapMonth(y) {
  31255. // 闰字编码 \u95f0
  31256. return this.lunarInfo[y - 1900] & 0xf;
  31257. },
  31258. /**
  31259. * 返回农历y年闰月的天数 若该年没有闰月则返回0
  31260. * @param lunar Year
  31261. * @return Number (0、29、30)
  31262. * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
  31263. */
  31264. leapDays: function leapDays(y) {
  31265. if (this.leapMonth(y)) {
  31266. return this.lunarInfo[y - 1900] & 0x10000 ? 30 : 29;
  31267. }
  31268. return 0;
  31269. },
  31270. /**
  31271. * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法
  31272. * @param lunar Year
  31273. * @return Number (-1、29、30)
  31274. * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
  31275. */
  31276. monthDays: function monthDays(y, m) {
  31277. if (m > 12 || m < 1) {
  31278. return -1;
  31279. } // 月份参数从1至12,参数错误返回-1
  31280. return this.lunarInfo[y - 1900] & 0x10000 >> m ? 30 : 29;
  31281. },
  31282. /**
  31283. * 返回公历(!)y年m月的天数
  31284. * @param solar Year
  31285. * @return Number (-1、28、29、30、31)
  31286. * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
  31287. */
  31288. solarDays: function solarDays(y, m) {
  31289. if (m > 12 || m < 1) {
  31290. return -1;
  31291. } // 若参数错误 返回-1
  31292. var ms = m - 1;
  31293. if (ms == 1) {
  31294. // 2月份的闰平规律测算后确认返回28或29
  31295. return y % 4 == 0 && y % 100 != 0 || y % 400 == 0 ? 29 : 28;
  31296. } else {
  31297. return this.solarMonth[ms];
  31298. }
  31299. },
  31300. /**
  31301. * 农历年份转换为干支纪年
  31302. * @param lYear 农历年的年份数
  31303. * @return Cn string
  31304. */
  31305. toGanZhiYear: function toGanZhiYear(lYear) {
  31306. var ganKey = (lYear - 3) % 10;
  31307. var zhiKey = (lYear - 3) % 12;
  31308. if (ganKey == 0) ganKey = 10; // 如果余数为0则为最后一个天干
  31309. if (zhiKey == 0) zhiKey = 12; // 如果余数为0则为最后一个地支
  31310. return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1];
  31311. },
  31312. /**
  31313. * 公历月、日判断所属星座
  31314. * @param cMonth [description]
  31315. * @param cDay [description]
  31316. * @return Cn string
  31317. */
  31318. toAstro: function toAstro(cMonth, cDay) {
  31319. var s = "\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF";
  31320. var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22];
  31321. return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + "\u5EA7"; // 座
  31322. },
  31323. /**
  31324. * 传入offset偏移量返回干支
  31325. * @param offset 相对甲子的偏移量
  31326. * @return Cn string
  31327. */
  31328. toGanZhi: function toGanZhi(offset) {
  31329. return this.Gan[offset % 10] + this.Zhi[offset % 12];
  31330. },
  31331. /**
  31332. * 传入公历(!)y年获得该年第n个节气的公历日期
  31333. * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起
  31334. * @return day Number
  31335. * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春
  31336. */
  31337. getTerm: function getTerm(y, n) {
  31338. if (y < 1900 || y > 2100) {
  31339. return -1;
  31340. }
  31341. if (n < 1 || n > 24) {
  31342. return -1;
  31343. }
  31344. var _table = this.sTermInfo[y - 1900];
  31345. var _info = [parseInt('0x' + _table.substr(0, 5)).toString(), parseInt('0x' + _table.substr(5, 5)).toString(), parseInt('0x' + _table.substr(10, 5)).toString(), parseInt('0x' + _table.substr(15, 5)).toString(), parseInt('0x' + _table.substr(20, 5)).toString(), parseInt('0x' + _table.substr(25, 5)).toString()];
  31346. var _calday = [_info[0].substr(0, 1), _info[0].substr(1, 2), _info[0].substr(3, 1), _info[0].substr(4, 2), _info[1].substr(0, 1), _info[1].substr(1, 2), _info[1].substr(3, 1), _info[1].substr(4, 2), _info[2].substr(0, 1), _info[2].substr(1, 2), _info[2].substr(3, 1), _info[2].substr(4, 2), _info[3].substr(0, 1), _info[3].substr(1, 2), _info[3].substr(3, 1), _info[3].substr(4, 2), _info[4].substr(0, 1), _info[4].substr(1, 2), _info[4].substr(3, 1), _info[4].substr(4, 2), _info[5].substr(0, 1), _info[5].substr(1, 2), _info[5].substr(3, 1), _info[5].substr(4, 2)];
  31347. return parseInt(_calday[n - 1]);
  31348. },
  31349. /**
  31350. * 传入农历数字月份返回汉语通俗表示法
  31351. * @param lunar month
  31352. * @return Cn string
  31353. * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月'
  31354. */
  31355. toChinaMonth: function toChinaMonth(m) {
  31356. // 月 => \u6708
  31357. if (m > 12 || m < 1) {
  31358. return -1;
  31359. } // 若参数错误 返回-1
  31360. var s = this.nStr3[m - 1];
  31361. s += "\u6708"; // 加上月字
  31362. return s;
  31363. },
  31364. /**
  31365. * 传入农历日期数字返回汉字表示法
  31366. * @param lunar day
  31367. * @return Cn string
  31368. * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一'
  31369. */
  31370. toChinaDay: function toChinaDay(d) {
  31371. // 日 => \u65e5
  31372. var s;
  31373. switch (d) {
  31374. case 10:
  31375. s = "\u521D\u5341";
  31376. break;
  31377. case 20:
  31378. s = "\u4E8C\u5341";
  31379. break;
  31380. break;
  31381. case 30:
  31382. s = "\u4E09\u5341";
  31383. break;
  31384. break;
  31385. default:
  31386. s = this.nStr2[Math.floor(d / 10)];
  31387. s += this.nStr1[d % 10];
  31388. }
  31389. return s;
  31390. },
  31391. /**
  31392. * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春”
  31393. * @param y year
  31394. * @return Cn string
  31395. * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔'
  31396. */
  31397. getAnimal: function getAnimal(y) {
  31398. return this.Animals[(y - 4) % 12];
  31399. },
  31400. /**
  31401. * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON
  31402. * @param y solar year
  31403. * @param m solar month
  31404. * @param d solar day
  31405. * @return JSON object
  31406. * @eg:console.log(calendar.solar2lunar(1987,11,01));
  31407. */
  31408. solar2lunar: function solar2lunar(y, m, d) {
  31409. // 参数区间1900.1.31~2100.12.31
  31410. // 年份限定、上限
  31411. if (y < 1900 || y > 2100) {
  31412. return -1; // undefined转换为数字变为NaN
  31413. }
  31414. // 公历传参最下限
  31415. if (y == 1900 && m == 1 && d < 31) {
  31416. return -1;
  31417. }
  31418. // 未传参 获得当天
  31419. if (!y) {
  31420. var objDate = new Date();
  31421. } else {
  31422. var objDate = new Date(y, parseInt(m) - 1, d);
  31423. }
  31424. var i;
  31425. var leap = 0;
  31426. var temp = 0;
  31427. // 修正ymd参数
  31428. var y = objDate.getFullYear();
  31429. var m = objDate.getMonth() + 1;
  31430. var d = objDate.getDate();
  31431. var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000;
  31432. for (i = 1900; i < 2101 && offset > 0; i++) {
  31433. temp = this.lYearDays(i);
  31434. offset -= temp;
  31435. }
  31436. if (offset < 0) {
  31437. offset += temp;
  31438. i--;
  31439. }
  31440. // 是否今天
  31441. var isTodayObj = new Date();
  31442. var isToday = false;
  31443. if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) {
  31444. isToday = true;
  31445. }
  31446. // 星期几
  31447. var nWeek = objDate.getDay();
  31448. var cWeek = this.nStr1[nWeek];
  31449. // 数字表示周几顺应天朝周一开始的惯例
  31450. if (nWeek == 0) {
  31451. nWeek = 7;
  31452. }
  31453. // 农历年
  31454. var year = i;
  31455. var leap = this.leapMonth(i); // 闰哪个月
  31456. var isLeap = false;
  31457. // 效验闰月
  31458. for (i = 1; i < 13 && offset > 0; i++) {
  31459. // 闰月
  31460. if (leap > 0 && i == leap + 1 && isLeap == false) {
  31461. --i;
  31462. isLeap = true;
  31463. temp = this.leapDays(year); // 计算农历闰月天数
  31464. } else {
  31465. temp = this.monthDays(year, i); // 计算农历普通月天数
  31466. }
  31467. // 解除闰月
  31468. if (isLeap == true && i == leap + 1) {
  31469. isLeap = false;
  31470. }
  31471. offset -= temp;
  31472. }
  31473. // 闰月导致数组下标重叠取反
  31474. if (offset == 0 && leap > 0 && i == leap + 1) {
  31475. if (isLeap) {
  31476. isLeap = false;
  31477. } else {
  31478. isLeap = true;
  31479. --i;
  31480. }
  31481. }
  31482. if (offset < 0) {
  31483. offset += temp;
  31484. --i;
  31485. }
  31486. // 农历月
  31487. var month = i;
  31488. // 农历日
  31489. var day = offset + 1;
  31490. // 天干地支处理
  31491. var sm = m - 1;
  31492. var gzY = this.toGanZhiYear(year);
  31493. // 当月的两个节气
  31494. // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year`
  31495. var firstNode = this.getTerm(y, m * 2 - 1); // 返回当月「节」为几日开始
  31496. var secondNode = this.getTerm(y, m * 2); // 返回当月「节」为几日开始
  31497. // 依据12节气修正干支月
  31498. var gzM = this.toGanZhi((y - 1900) * 12 + m + 11);
  31499. if (d >= firstNode) {
  31500. gzM = this.toGanZhi((y - 1900) * 12 + m + 12);
  31501. }
  31502. // 传入的日期的节气与否
  31503. var isTerm = false;
  31504. var Term = null;
  31505. if (firstNode == d) {
  31506. isTerm = true;
  31507. Term = this.solarTerm[m * 2 - 2];
  31508. }
  31509. if (secondNode == d) {
  31510. isTerm = true;
  31511. Term = this.solarTerm[m * 2 - 1];
  31512. }
  31513. // 日柱 当月一日与 1900/1/1 相差天数
  31514. var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10;
  31515. var gzD = this.toGanZhi(dayCyclical + d - 1);
  31516. // 该日期所属的星座
  31517. var astro = this.toAstro(m, d);
  31518. return {
  31519. 'lYear': year,
  31520. 'lMonth': month,
  31521. 'lDay': day,
  31522. 'Animal': this.getAnimal(year),
  31523. 'IMonthCn': (isLeap ? "\u95F0" : '') + this.toChinaMonth(month),
  31524. 'IDayCn': this.toChinaDay(day),
  31525. 'cYear': y,
  31526. 'cMonth': m,
  31527. 'cDay': d,
  31528. 'gzYear': gzY,
  31529. 'gzMonth': gzM,
  31530. 'gzDay': gzD,
  31531. 'isToday': isToday,
  31532. 'isLeap': isLeap,
  31533. 'nWeek': nWeek,
  31534. 'ncWeek': "\u661F\u671F" + cWeek,
  31535. 'isTerm': isTerm,
  31536. 'Term': Term,
  31537. 'astro': astro
  31538. };
  31539. },
  31540. /**
  31541. * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON
  31542. * @param y lunar year
  31543. * @param m lunar month
  31544. * @param d lunar day
  31545. * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可]
  31546. * @return JSON object
  31547. * @eg:console.log(calendar.lunar2solar(1987,9,10));
  31548. */
  31549. lunar2solar: function lunar2solar(y, m, d, isLeapMonth) {
  31550. // 参数区间1900.1.31~2100.12.1
  31551. var isLeapMonth = !!isLeapMonth;
  31552. var leapOffset = 0;
  31553. var leapMonth = this.leapMonth(y);
  31554. var leapDay = this.leapDays(y);
  31555. if (isLeapMonth && leapMonth != m) {
  31556. return -1;
  31557. } // 传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同
  31558. if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) {
  31559. return -1;
  31560. } // 超出了最大极限值
  31561. var day = this.monthDays(y, m);
  31562. var _day = day;
  31563. // bugFix 2016-9-25
  31564. // if month is leap, _day use leapDays method
  31565. if (isLeapMonth) {
  31566. _day = this.leapDays(y, m);
  31567. }
  31568. if (y < 1900 || y > 2100 || d > _day) {
  31569. return -1;
  31570. } // 参数合法性效验
  31571. // 计算农历的时间差
  31572. var offset = 0;
  31573. for (var i = 1900; i < y; i++) {
  31574. offset += this.lYearDays(i);
  31575. }
  31576. var leap = 0;
  31577. var isAdd = false;
  31578. for (var i = 1; i < m; i++) {
  31579. leap = this.leapMonth(y);
  31580. if (!isAdd) {
  31581. // 处理闰月
  31582. if (leap <= i && leap > 0) {
  31583. offset += this.leapDays(y);
  31584. isAdd = true;
  31585. }
  31586. }
  31587. offset += this.monthDays(y, i);
  31588. }
  31589. // 转换闰月农历 需补充该年闰月的前一个月的时差
  31590. if (isLeapMonth) {
  31591. offset += day;
  31592. }
  31593. // 1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点)
  31594. var stmap = Date.UTC(1900, 1, 30, 0, 0, 0);
  31595. var calObj = new Date((offset + d - 31) * 86400000 + stmap);
  31596. var cY = calObj.getUTCFullYear();
  31597. var cM = calObj.getUTCMonth() + 1;
  31598. var cD = calObj.getUTCDate();
  31599. return this.solar2lunar(cY, cM, cD);
  31600. }
  31601. };
  31602. var _default = calendar;
  31603. exports.default = _default;
  31604. /***/ }),
  31605. /* 814 */,
  31606. /* 815 */,
  31607. /* 816 */,
  31608. /* 817 */,
  31609. /* 818 */,
  31610. /* 819 */,
  31611. /* 820 */,
  31612. /* 821 */
  31613. /*!*****************************************************************************************!*\
  31614. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-notice-bar/props.js ***!
  31615. \*****************************************************************************************/
  31616. /*! no static exports found */
  31617. /***/ (function(module, exports, __webpack_require__) {
  31618. "use strict";
  31619. /* WEBPACK VAR INJECTION */(function(uni) {
  31620. Object.defineProperty(exports, "__esModule", {
  31621. value: true
  31622. });
  31623. exports.default = void 0;
  31624. var _default = {
  31625. props: {
  31626. // 显示的内容,数组
  31627. text: {
  31628. type: [Array, String],
  31629. default: uni.$u.props.noticeBar.text
  31630. },
  31631. // 通告滚动模式,row-横向滚动,column-竖向滚动
  31632. direction: {
  31633. type: String,
  31634. default: uni.$u.props.noticeBar.direction
  31635. },
  31636. // direction = row时,是否使用步进形式滚动
  31637. step: {
  31638. type: Boolean,
  31639. default: uni.$u.props.noticeBar.step
  31640. },
  31641. // 是否显示左侧的音量图标
  31642. icon: {
  31643. type: String,
  31644. default: uni.$u.props.noticeBar.icon
  31645. },
  31646. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  31647. mode: {
  31648. type: String,
  31649. default: uni.$u.props.noticeBar.mode
  31650. },
  31651. // 文字颜色,各图标也会使用文字颜色
  31652. color: {
  31653. type: String,
  31654. default: uni.$u.props.noticeBar.color
  31655. },
  31656. // 背景颜色
  31657. bgColor: {
  31658. type: String,
  31659. default: uni.$u.props.noticeBar.bgColor
  31660. },
  31661. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  31662. speed: {
  31663. type: [String, Number],
  31664. default: uni.$u.props.noticeBar.speed
  31665. },
  31666. // 字体大小
  31667. fontSize: {
  31668. type: [String, Number],
  31669. default: uni.$u.props.noticeBar.fontSize
  31670. },
  31671. // 滚动一个周期的时间长,单位ms
  31672. duration: {
  31673. type: [String, Number],
  31674. default: uni.$u.props.noticeBar.duration
  31675. },
  31676. // 是否禁止用手滑动切换
  31677. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  31678. disableTouch: {
  31679. type: Boolean,
  31680. default: uni.$u.props.noticeBar.disableTouch
  31681. },
  31682. // 跳转的页面路径
  31683. url: {
  31684. type: String,
  31685. default: uni.$u.props.noticeBar.url
  31686. },
  31687. // 页面跳转的类型
  31688. linkType: {
  31689. type: String,
  31690. default: uni.$u.props.noticeBar.linkType
  31691. }
  31692. }
  31693. };
  31694. exports.default = _default;
  31695. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  31696. /***/ }),
  31697. /* 822 */,
  31698. /* 823 */,
  31699. /* 824 */,
  31700. /* 825 */,
  31701. /* 826 */,
  31702. /* 827 */,
  31703. /* 828 */,
  31704. /* 829 */,
  31705. /* 830 */,
  31706. /* 831 */,
  31707. /* 832 */,
  31708. /* 833 */,
  31709. /* 834 */,
  31710. /* 835 */,
  31711. /* 836 */
  31712. /*!***********************************************************************************!*\
  31713. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-line/props.js ***!
  31714. \***********************************************************************************/
  31715. /*! no static exports found */
  31716. /***/ (function(module, exports, __webpack_require__) {
  31717. "use strict";
  31718. /* WEBPACK VAR INJECTION */(function(uni) {
  31719. Object.defineProperty(exports, "__esModule", {
  31720. value: true
  31721. });
  31722. exports.default = void 0;
  31723. var _default = {
  31724. props: {
  31725. color: {
  31726. type: String,
  31727. default: uni.$u.props.line.color
  31728. },
  31729. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  31730. length: {
  31731. type: [String, Number],
  31732. default: uni.$u.props.line.length
  31733. },
  31734. // 线条方向,col-竖向,row-横向
  31735. direction: {
  31736. type: String,
  31737. default: uni.$u.props.line.direction
  31738. },
  31739. // 是否显示细边框
  31740. hairline: {
  31741. type: Boolean,
  31742. default: uni.$u.props.line.hairline
  31743. },
  31744. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  31745. margin: {
  31746. type: [String, Number],
  31747. default: uni.$u.props.line.margin
  31748. },
  31749. // 是否虚线,true-虚线,false-实线
  31750. dashed: {
  31751. type: Boolean,
  31752. default: uni.$u.props.line.dashed
  31753. }
  31754. }
  31755. };
  31756. exports.default = _default;
  31757. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  31758. /***/ }),
  31759. /* 837 */,
  31760. /* 838 */,
  31761. /* 839 */,
  31762. /* 840 */,
  31763. /* 841 */,
  31764. /* 842 */,
  31765. /* 843 */,
  31766. /* 844 */
  31767. /*!*****************************************************************************************!*\
  31768. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-transition/props.js ***!
  31769. \*****************************************************************************************/
  31770. /*! no static exports found */
  31771. /***/ (function(module, exports, __webpack_require__) {
  31772. "use strict";
  31773. /* WEBPACK VAR INJECTION */(function(uni) {
  31774. Object.defineProperty(exports, "__esModule", {
  31775. value: true
  31776. });
  31777. exports.default = void 0;
  31778. var _default = {
  31779. props: {
  31780. // 是否展示组件
  31781. show: {
  31782. type: Boolean,
  31783. default: uni.$u.props.transition.show
  31784. },
  31785. // 使用的动画模式
  31786. mode: {
  31787. type: String,
  31788. default: uni.$u.props.transition.mode
  31789. },
  31790. // 动画的执行时间,单位ms
  31791. duration: {
  31792. type: [String, Number],
  31793. default: uni.$u.props.transition.duration
  31794. },
  31795. // 使用的动画过渡函数
  31796. timingFunction: {
  31797. type: String,
  31798. default: uni.$u.props.transition.timingFunction
  31799. }
  31800. }
  31801. };
  31802. exports.default = _default;
  31803. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  31804. /***/ }),
  31805. /* 845 */
  31806. /*!**********************************************************************************************!*\
  31807. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-transition/transition.js ***!
  31808. \**********************************************************************************************/
  31809. /*! no static exports found */
  31810. /***/ (function(module, exports, __webpack_require__) {
  31811. "use strict";
  31812. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  31813. Object.defineProperty(exports, "__esModule", {
  31814. value: true
  31815. });
  31816. exports.default = void 0;
  31817. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 59));
  31818. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 61));
  31819. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 846));
  31820. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  31821. var nextTick = function nextTick() {
  31822. return new Promise(function (resolve) {
  31823. return setTimeout(resolve, 1000 / 50);
  31824. });
  31825. };
  31826. // nvue动画模块实现细节抽离在外部文件
  31827. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  31828. var getClassNames = function getClassNames(name) {
  31829. return {
  31830. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  31831. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  31832. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  31833. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  31834. };
  31835. };
  31836. var _default = {
  31837. methods: {
  31838. // 组件被点击发出事件
  31839. clickHandler: function clickHandler() {
  31840. this.$emit('click');
  31841. },
  31842. // vue版本的组件进场处理
  31843. vueEnter: function vueEnter() {
  31844. var _this = this;
  31845. // 动画进入时的类名
  31846. var classNames = getClassNames(this.mode);
  31847. // 定义状态和发出动画进入前事件
  31848. this.status = 'enter';
  31849. this.$emit('beforeEnter');
  31850. this.inited = true;
  31851. this.display = true;
  31852. this.classes = classNames.enter;
  31853. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  31854. return _regenerator.default.wrap(function _callee$(_context) {
  31855. while (1) {
  31856. switch (_context.prev = _context.next) {
  31857. case 0:
  31858. // 标识动画尚未结束
  31859. _this.$emit('enter');
  31860. _this.transitionEnded = false;
  31861. // 组件动画进入后触发的事件
  31862. _this.$emit('afterEnter');
  31863. // 赋予组件enter-to类名
  31864. _this.classes = classNames['enter-to'];
  31865. case 4:
  31866. case "end":
  31867. return _context.stop();
  31868. }
  31869. }
  31870. }, _callee);
  31871. })));
  31872. },
  31873. // 动画离场处理
  31874. vueLeave: function vueLeave() {
  31875. var _this2 = this;
  31876. // 如果不是展示状态,无需执行逻辑
  31877. if (!this.display) return;
  31878. var classNames = getClassNames(this.mode);
  31879. // 标记离开状态和发出事件
  31880. this.status = 'leave';
  31881. this.$emit('beforeLeave');
  31882. // 获得类名
  31883. this.classes = classNames.leave;
  31884. this.$nextTick(function () {
  31885. // 动画正在离场的状态
  31886. _this2.transitionEnded = false;
  31887. _this2.$emit('leave');
  31888. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  31889. setTimeout(_this2.onTransitionEnd, _this2.duration);
  31890. _this2.classes = classNames['leave-to'];
  31891. });
  31892. },
  31893. // 完成过渡后触发
  31894. onTransitionEnd: function onTransitionEnd() {
  31895. // 如果已经是结束的状态,无需再处理
  31896. if (this.transitionEnded) return;
  31897. this.transitionEnded = true;
  31898. // 发出组件动画执行后的事件
  31899. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  31900. if (!this.show && this.display) {
  31901. this.display = false;
  31902. this.inited = false;
  31903. }
  31904. }
  31905. }
  31906. };
  31907. exports.default = _default;
  31908. /***/ }),
  31909. /* 846 */
  31910. /*!************************************************************************************************!*\
  31911. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  31912. \************************************************************************************************/
  31913. /*! no static exports found */
  31914. /***/ (function(module, exports, __webpack_require__) {
  31915. "use strict";
  31916. Object.defineProperty(exports, "__esModule", {
  31917. value: true
  31918. });
  31919. exports.default = void 0;
  31920. var _default = {
  31921. fade: {
  31922. enter: {
  31923. opacity: 0
  31924. },
  31925. 'enter-to': {
  31926. opacity: 1
  31927. },
  31928. leave: {
  31929. opacity: 1
  31930. },
  31931. 'leave-to': {
  31932. opacity: 0
  31933. }
  31934. },
  31935. 'fade-up': {
  31936. enter: {
  31937. opacity: 0,
  31938. transform: 'translateY(100%)'
  31939. },
  31940. 'enter-to': {
  31941. opacity: 1,
  31942. transform: 'translateY(0)'
  31943. },
  31944. leave: {
  31945. opacity: 1,
  31946. transform: 'translateY(0)'
  31947. },
  31948. 'leave-to': {
  31949. opacity: 0,
  31950. transform: 'translateY(100%)'
  31951. }
  31952. },
  31953. 'fade-down': {
  31954. enter: {
  31955. opacity: 0,
  31956. transform: 'translateY(-100%)'
  31957. },
  31958. 'enter-to': {
  31959. opacity: 1,
  31960. transform: 'translateY(0)'
  31961. },
  31962. leave: {
  31963. opacity: 1,
  31964. transform: 'translateY(0)'
  31965. },
  31966. 'leave-to': {
  31967. opacity: 0,
  31968. transform: 'translateY(-100%)'
  31969. }
  31970. },
  31971. 'fade-left': {
  31972. enter: {
  31973. opacity: 0,
  31974. transform: 'translateX(-100%)'
  31975. },
  31976. 'enter-to': {
  31977. opacity: 1,
  31978. transform: 'translateY(0)'
  31979. },
  31980. leave: {
  31981. opacity: 1,
  31982. transform: 'translateY(0)'
  31983. },
  31984. 'leave-to': {
  31985. opacity: 0,
  31986. transform: 'translateX(-100%)'
  31987. }
  31988. },
  31989. 'fade-right': {
  31990. enter: {
  31991. opacity: 0,
  31992. transform: 'translateX(100%)'
  31993. },
  31994. 'enter-to': {
  31995. opacity: 1,
  31996. transform: 'translateY(0)'
  31997. },
  31998. leave: {
  31999. opacity: 1,
  32000. transform: 'translateY(0)'
  32001. },
  32002. 'leave-to': {
  32003. opacity: 0,
  32004. transform: 'translateX(100%)'
  32005. }
  32006. },
  32007. 'slide-up': {
  32008. enter: {
  32009. transform: 'translateY(100%)'
  32010. },
  32011. 'enter-to': {
  32012. transform: 'translateY(0)'
  32013. },
  32014. leave: {
  32015. transform: 'translateY(0)'
  32016. },
  32017. 'leave-to': {
  32018. transform: 'translateY(100%)'
  32019. }
  32020. },
  32021. 'slide-down': {
  32022. enter: {
  32023. transform: 'translateY(-100%)'
  32024. },
  32025. 'enter-to': {
  32026. transform: 'translateY(0)'
  32027. },
  32028. leave: {
  32029. transform: 'translateY(0)'
  32030. },
  32031. 'leave-to': {
  32032. transform: 'translateY(-100%)'
  32033. }
  32034. },
  32035. 'slide-left': {
  32036. enter: {
  32037. transform: 'translateX(-100%)'
  32038. },
  32039. 'enter-to': {
  32040. transform: 'translateY(0)'
  32041. },
  32042. leave: {
  32043. transform: 'translateY(0)'
  32044. },
  32045. 'leave-to': {
  32046. transform: 'translateX(-100%)'
  32047. }
  32048. },
  32049. 'slide-right': {
  32050. enter: {
  32051. transform: 'translateX(100%)'
  32052. },
  32053. 'enter-to': {
  32054. transform: 'translateY(0)'
  32055. },
  32056. leave: {
  32057. transform: 'translateY(0)'
  32058. },
  32059. 'leave-to': {
  32060. transform: 'translateX(100%)'
  32061. }
  32062. },
  32063. zoom: {
  32064. enter: {
  32065. transform: 'scale(0.95)'
  32066. },
  32067. 'enter-to': {
  32068. transform: 'scale(1)'
  32069. },
  32070. leave: {
  32071. transform: 'scale(1)'
  32072. },
  32073. 'leave-to': {
  32074. transform: 'scale(0.95)'
  32075. }
  32076. },
  32077. 'fade-zoom': {
  32078. enter: {
  32079. opacity: 0,
  32080. transform: 'scale(0.95)'
  32081. },
  32082. 'enter-to': {
  32083. opacity: 1,
  32084. transform: 'scale(1)'
  32085. },
  32086. leave: {
  32087. opacity: 1,
  32088. transform: 'scale(1)'
  32089. },
  32090. 'leave-to': {
  32091. opacity: 0,
  32092. transform: 'scale(0.95)'
  32093. }
  32094. }
  32095. };
  32096. exports.default = _default;
  32097. /***/ }),
  32098. /* 847 */,
  32099. /* 848 */,
  32100. /* 849 */,
  32101. /* 850 */,
  32102. /* 851 */,
  32103. /* 852 */,
  32104. /* 853 */,
  32105. /* 854 */
  32106. /*!*****************************************************************************************!*\
  32107. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  32108. \*****************************************************************************************/
  32109. /*! no static exports found */
  32110. /***/ (function(module, exports, __webpack_require__) {
  32111. "use strict";
  32112. /* WEBPACK VAR INJECTION */(function(uni) {
  32113. Object.defineProperty(exports, "__esModule", {
  32114. value: true
  32115. });
  32116. exports.default = void 0;
  32117. var _default = {
  32118. props: {
  32119. bgColor: {
  32120. type: String,
  32121. default: uni.$u.props.statusBar.bgColor
  32122. }
  32123. }
  32124. };
  32125. exports.default = _default;
  32126. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  32127. /***/ }),
  32128. /* 855 */,
  32129. /* 856 */,
  32130. /* 857 */,
  32131. /* 858 */,
  32132. /* 859 */,
  32133. /* 860 */,
  32134. /* 861 */,
  32135. /* 862 */
  32136. /*!******************************************************************************************!*\
  32137. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  32138. \******************************************************************************************/
  32139. /*! no static exports found */
  32140. /***/ (function(module, exports, __webpack_require__) {
  32141. "use strict";
  32142. Object.defineProperty(exports, "__esModule", {
  32143. value: true
  32144. });
  32145. exports.default = void 0;
  32146. var _default = {
  32147. props: {}
  32148. };
  32149. exports.default = _default;
  32150. /***/ }),
  32151. /* 863 */,
  32152. /* 864 */,
  32153. /* 865 */,
  32154. /* 866 */,
  32155. /* 867 */,
  32156. /* 868 */,
  32157. /* 869 */,
  32158. /* 870 */
  32159. /*!*************************************************************************************!*\
  32160. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/libs/util/async-validator.js ***!
  32161. \*************************************************************************************/
  32162. /*! no static exports found */
  32163. /***/ (function(module, exports, __webpack_require__) {
  32164. "use strict";
  32165. /* WEBPACK VAR INJECTION */(function(process) {
  32166. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  32167. Object.defineProperty(exports, "__esModule", {
  32168. value: true
  32169. });
  32170. exports.default = void 0;
  32171. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  32172. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  32173. 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; }
  32174. 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; }
  32175. function _extends() {
  32176. _extends = Object.assign || function (target) {
  32177. for (var i = 1; i < arguments.length; i++) {
  32178. var source = arguments[i];
  32179. for (var key in source) {
  32180. if (Object.prototype.hasOwnProperty.call(source, key)) {
  32181. target[key] = source[key];
  32182. }
  32183. }
  32184. }
  32185. return target;
  32186. };
  32187. return _extends.apply(this, arguments);
  32188. }
  32189. /* eslint no-console:0 */
  32190. var formatRegExp = /%[sdj%]/g;
  32191. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  32192. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"慧研学惠生活","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  32193. warning = function warning(type, errors) {
  32194. if (typeof console !== 'undefined' && console.warn) {
  32195. if (errors.every(function (e) {
  32196. return typeof e === 'string';
  32197. })) {
  32198. console.warn(type, errors);
  32199. }
  32200. }
  32201. };
  32202. }
  32203. function convertFieldsError(errors) {
  32204. if (!errors || !errors.length) return null;
  32205. var fields = {};
  32206. errors.forEach(function (error) {
  32207. var field = error.field;
  32208. fields[field] = fields[field] || [];
  32209. fields[field].push(error);
  32210. });
  32211. return fields;
  32212. }
  32213. function format() {
  32214. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  32215. args[_key] = arguments[_key];
  32216. }
  32217. var i = 1;
  32218. var f = args[0];
  32219. var len = args.length;
  32220. if (typeof f === 'function') {
  32221. return f.apply(null, args.slice(1));
  32222. }
  32223. if (typeof f === 'string') {
  32224. var str = String(f).replace(formatRegExp, function (x) {
  32225. if (x === '%%') {
  32226. return '%';
  32227. }
  32228. if (i >= len) {
  32229. return x;
  32230. }
  32231. switch (x) {
  32232. case '%s':
  32233. return String(args[i++]);
  32234. case '%d':
  32235. return Number(args[i++]);
  32236. case '%j':
  32237. try {
  32238. return JSON.stringify(args[i++]);
  32239. } catch (_) {
  32240. return '[Circular]';
  32241. }
  32242. break;
  32243. default:
  32244. return x;
  32245. }
  32246. });
  32247. for (var arg = args[i]; i < len; arg = args[++i]) {
  32248. str += " ".concat(arg);
  32249. }
  32250. return str;
  32251. }
  32252. return f;
  32253. }
  32254. function isNativeStringType(type) {
  32255. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  32256. }
  32257. function isEmptyValue(value, type) {
  32258. if (value === undefined || value === null) {
  32259. return true;
  32260. }
  32261. if (type === 'array' && Array.isArray(value) && !value.length) {
  32262. return true;
  32263. }
  32264. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  32265. return true;
  32266. }
  32267. return false;
  32268. }
  32269. function asyncParallelArray(arr, func, callback) {
  32270. var results = [];
  32271. var total = 0;
  32272. var arrLength = arr.length;
  32273. function count(errors) {
  32274. results.push.apply(results, errors);
  32275. total++;
  32276. if (total === arrLength) {
  32277. callback(results);
  32278. }
  32279. }
  32280. arr.forEach(function (a) {
  32281. func(a, count);
  32282. });
  32283. }
  32284. function asyncSerialArray(arr, func, callback) {
  32285. var index = 0;
  32286. var arrLength = arr.length;
  32287. function next(errors) {
  32288. if (errors && errors.length) {
  32289. callback(errors);
  32290. return;
  32291. }
  32292. var original = index;
  32293. index += 1;
  32294. if (original < arrLength) {
  32295. func(arr[original], next);
  32296. } else {
  32297. callback([]);
  32298. }
  32299. }
  32300. next([]);
  32301. }
  32302. function flattenObjArr(objArr) {
  32303. var ret = [];
  32304. Object.keys(objArr).forEach(function (k) {
  32305. ret.push.apply(ret, objArr[k]);
  32306. });
  32307. return ret;
  32308. }
  32309. function asyncMap(objArr, option, func, callback) {
  32310. if (option.first) {
  32311. var _pending = new Promise(function (resolve, reject) {
  32312. var next = function next(errors) {
  32313. callback(errors);
  32314. return errors.length ? reject({
  32315. errors: errors,
  32316. fields: convertFieldsError(errors)
  32317. }) : resolve();
  32318. };
  32319. var flattenArr = flattenObjArr(objArr);
  32320. asyncSerialArray(flattenArr, func, next);
  32321. });
  32322. _pending.catch(function (e) {
  32323. return e;
  32324. });
  32325. return _pending;
  32326. }
  32327. var firstFields = option.firstFields || [];
  32328. if (firstFields === true) {
  32329. firstFields = Object.keys(objArr);
  32330. }
  32331. var objArrKeys = Object.keys(objArr);
  32332. var objArrLength = objArrKeys.length;
  32333. var total = 0;
  32334. var results = [];
  32335. var pending = new Promise(function (resolve, reject) {
  32336. var next = function next(errors) {
  32337. results.push.apply(results, errors);
  32338. total++;
  32339. if (total === objArrLength) {
  32340. callback(results);
  32341. return results.length ? reject({
  32342. errors: results,
  32343. fields: convertFieldsError(results)
  32344. }) : resolve();
  32345. }
  32346. };
  32347. if (!objArrKeys.length) {
  32348. callback(results);
  32349. resolve();
  32350. }
  32351. objArrKeys.forEach(function (key) {
  32352. var arr = objArr[key];
  32353. if (firstFields.indexOf(key) !== -1) {
  32354. asyncSerialArray(arr, func, next);
  32355. } else {
  32356. asyncParallelArray(arr, func, next);
  32357. }
  32358. });
  32359. });
  32360. pending.catch(function (e) {
  32361. return e;
  32362. });
  32363. return pending;
  32364. }
  32365. function complementError(rule) {
  32366. return function (oe) {
  32367. if (oe && oe.message) {
  32368. oe.field = oe.field || rule.fullField;
  32369. return oe;
  32370. }
  32371. return {
  32372. message: typeof oe === 'function' ? oe() : oe,
  32373. field: oe.field || rule.fullField
  32374. };
  32375. };
  32376. }
  32377. function deepMerge(target, source) {
  32378. if (source) {
  32379. for (var s in source) {
  32380. if (source.hasOwnProperty(s)) {
  32381. var value = source[s];
  32382. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  32383. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  32384. } else {
  32385. target[s] = value;
  32386. }
  32387. }
  32388. }
  32389. }
  32390. return target;
  32391. }
  32392. /**
  32393. * Rule for validating required fields.
  32394. *
  32395. * @param rule The validation rule.
  32396. * @param value The value of the field on the source object.
  32397. * @param source The source object being validated.
  32398. * @param errors An array of errors that this rule may add
  32399. * validation errors to.
  32400. * @param options The validation options.
  32401. * @param options.messages The validation messages.
  32402. */
  32403. function required(rule, value, source, errors, options, type) {
  32404. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  32405. errors.push(format(options.messages.required, rule.fullField));
  32406. }
  32407. }
  32408. /**
  32409. * Rule for validating whitespace.
  32410. *
  32411. * @param rule The validation rule.
  32412. * @param value The value of the field on the source object.
  32413. * @param source The source object being validated.
  32414. * @param errors An array of errors that this rule may add
  32415. * validation errors to.
  32416. * @param options The validation options.
  32417. * @param options.messages The validation messages.
  32418. */
  32419. function whitespace(rule, value, source, errors, options) {
  32420. if (/^\s+$/.test(value) || value === '') {
  32421. errors.push(format(options.messages.whitespace, rule.fullField));
  32422. }
  32423. }
  32424. /* eslint max-len:0 */
  32425. var pattern = {
  32426. // http://emailregex.com/
  32427. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  32428. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  32429. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  32430. };
  32431. var types = {
  32432. integer: function integer(value) {
  32433. return /^(-)?\d+$/.test(value);
  32434. },
  32435. float: function float(value) {
  32436. return /^(-)?\d+(\.\d+)?$/.test(value);
  32437. },
  32438. array: function array(value) {
  32439. return Array.isArray(value);
  32440. },
  32441. regexp: function regexp(value) {
  32442. if (value instanceof RegExp) {
  32443. return true;
  32444. }
  32445. try {
  32446. return !!new RegExp(value);
  32447. } catch (e) {
  32448. return false;
  32449. }
  32450. },
  32451. date: function date(value) {
  32452. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  32453. },
  32454. number: function number(value) {
  32455. if (isNaN(value)) {
  32456. return false;
  32457. }
  32458. // 修改源码,将字符串数值先转为数值
  32459. return typeof +value === 'number';
  32460. },
  32461. object: function object(value) {
  32462. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  32463. },
  32464. method: function method(value) {
  32465. return typeof value === 'function';
  32466. },
  32467. email: function email(value) {
  32468. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  32469. },
  32470. url: function url(value) {
  32471. return typeof value === 'string' && !!value.match(pattern.url);
  32472. },
  32473. hex: function hex(value) {
  32474. return typeof value === 'string' && !!value.match(pattern.hex);
  32475. }
  32476. };
  32477. /**
  32478. * Rule for validating the type of a value.
  32479. *
  32480. * @param rule The validation rule.
  32481. * @param value The value of the field on the source object.
  32482. * @param source The source object being validated.
  32483. * @param errors An array of errors that this rule may add
  32484. * validation errors to.
  32485. * @param options The validation options.
  32486. * @param options.messages The validation messages.
  32487. */
  32488. function type(rule, value, source, errors, options) {
  32489. if (rule.required && value === undefined) {
  32490. required(rule, value, source, errors, options);
  32491. return;
  32492. }
  32493. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  32494. var ruleType = rule.type;
  32495. if (custom.indexOf(ruleType) > -1) {
  32496. if (!types[ruleType](value)) {
  32497. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  32498. } // straight typeof check
  32499. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  32500. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  32501. }
  32502. }
  32503. /**
  32504. * Rule for validating minimum and maximum allowed values.
  32505. *
  32506. * @param rule The validation rule.
  32507. * @param value The value of the field on the source object.
  32508. * @param source The source object being validated.
  32509. * @param errors An array of errors that this rule may add
  32510. * validation errors to.
  32511. * @param options The validation options.
  32512. * @param options.messages The validation messages.
  32513. */
  32514. function range(rule, value, source, errors, options) {
  32515. var len = typeof rule.len === 'number';
  32516. var min = typeof rule.min === 'number';
  32517. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  32518. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  32519. var val = value;
  32520. var key = null;
  32521. var num = typeof value === 'number';
  32522. var str = typeof value === 'string';
  32523. var arr = Array.isArray(value);
  32524. if (num) {
  32525. key = 'number';
  32526. } else if (str) {
  32527. key = 'string';
  32528. } else if (arr) {
  32529. key = 'array';
  32530. } // if the value is not of a supported type for range validation
  32531. // the validation rule rule should use the
  32532. // type property to also test for a particular type
  32533. if (!key) {
  32534. return false;
  32535. }
  32536. if (arr) {
  32537. val = value.length;
  32538. }
  32539. if (str) {
  32540. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  32541. val = value.replace(spRegexp, '_').length;
  32542. }
  32543. if (len) {
  32544. if (val !== rule.len) {
  32545. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  32546. }
  32547. } else if (min && !max && val < rule.min) {
  32548. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  32549. } else if (max && !min && val > rule.max) {
  32550. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  32551. } else if (min && max && (val < rule.min || val > rule.max)) {
  32552. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  32553. }
  32554. }
  32555. var ENUM = 'enum';
  32556. /**
  32557. * Rule for validating a value exists in an enumerable list.
  32558. *
  32559. * @param rule The validation rule.
  32560. * @param value The value of the field on the source object.
  32561. * @param source The source object being validated.
  32562. * @param errors An array of errors that this rule may add
  32563. * validation errors to.
  32564. * @param options The validation options.
  32565. * @param options.messages The validation messages.
  32566. */
  32567. function enumerable(rule, value, source, errors, options) {
  32568. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  32569. if (rule[ENUM].indexOf(value) === -1) {
  32570. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  32571. }
  32572. }
  32573. /**
  32574. * Rule for validating a regular expression pattern.
  32575. *
  32576. * @param rule The validation rule.
  32577. * @param value The value of the field on the source object.
  32578. * @param source The source object being validated.
  32579. * @param errors An array of errors that this rule may add
  32580. * validation errors to.
  32581. * @param options The validation options.
  32582. * @param options.messages The validation messages.
  32583. */
  32584. function pattern$1(rule, value, source, errors, options) {
  32585. if (rule.pattern) {
  32586. if (rule.pattern instanceof RegExp) {
  32587. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  32588. // flag is accidentally set to `true`, which in a validation scenario
  32589. // is not necessary and the result might be misleading
  32590. rule.pattern.lastIndex = 0;
  32591. if (!rule.pattern.test(value)) {
  32592. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  32593. }
  32594. } else if (typeof rule.pattern === 'string') {
  32595. var _pattern = new RegExp(rule.pattern);
  32596. if (!_pattern.test(value)) {
  32597. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  32598. }
  32599. }
  32600. }
  32601. }
  32602. var rules = {
  32603. required: required,
  32604. whitespace: whitespace,
  32605. type: type,
  32606. range: range,
  32607. enum: enumerable,
  32608. pattern: pattern$1
  32609. };
  32610. /**
  32611. * Performs validation for string types.
  32612. *
  32613. * @param rule The validation rule.
  32614. * @param value The value of the field on the source object.
  32615. * @param callback The callback function.
  32616. * @param source The source object being validated.
  32617. * @param options The validation options.
  32618. * @param options.messages The validation messages.
  32619. */
  32620. function string(rule, value, callback, source, options) {
  32621. var errors = [];
  32622. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32623. if (validate) {
  32624. if (isEmptyValue(value, 'string') && !rule.required) {
  32625. return callback();
  32626. }
  32627. rules.required(rule, value, source, errors, options, 'string');
  32628. if (!isEmptyValue(value, 'string')) {
  32629. rules.type(rule, value, source, errors, options);
  32630. rules.range(rule, value, source, errors, options);
  32631. rules.pattern(rule, value, source, errors, options);
  32632. if (rule.whitespace === true) {
  32633. rules.whitespace(rule, value, source, errors, options);
  32634. }
  32635. }
  32636. }
  32637. callback(errors);
  32638. }
  32639. /**
  32640. * Validates a function.
  32641. *
  32642. * @param rule The validation rule.
  32643. * @param value The value of the field on the source object.
  32644. * @param callback The callback function.
  32645. * @param source The source object being validated.
  32646. * @param options The validation options.
  32647. * @param options.messages The validation messages.
  32648. */
  32649. function method(rule, value, callback, source, options) {
  32650. var errors = [];
  32651. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32652. if (validate) {
  32653. if (isEmptyValue(value) && !rule.required) {
  32654. return callback();
  32655. }
  32656. rules.required(rule, value, source, errors, options);
  32657. if (value !== undefined) {
  32658. rules.type(rule, value, source, errors, options);
  32659. }
  32660. }
  32661. callback(errors);
  32662. }
  32663. /**
  32664. * Validates a number.
  32665. *
  32666. * @param rule The validation rule.
  32667. * @param value The value of the field on the source object.
  32668. * @param callback The callback function.
  32669. * @param source The source object being validated.
  32670. * @param options The validation options.
  32671. * @param options.messages The validation messages.
  32672. */
  32673. function number(rule, value, callback, source, options) {
  32674. var errors = [];
  32675. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32676. if (validate) {
  32677. if (value === '') {
  32678. value = undefined;
  32679. }
  32680. if (isEmptyValue(value) && !rule.required) {
  32681. return callback();
  32682. }
  32683. rules.required(rule, value, source, errors, options);
  32684. if (value !== undefined) {
  32685. rules.type(rule, value, source, errors, options);
  32686. rules.range(rule, value, source, errors, options);
  32687. }
  32688. }
  32689. callback(errors);
  32690. }
  32691. /**
  32692. * Validates a boolean.
  32693. *
  32694. * @param rule The validation rule.
  32695. * @param value The value of the field on the source object.
  32696. * @param callback The callback function.
  32697. * @param source The source object being validated.
  32698. * @param options The validation options.
  32699. * @param options.messages The validation messages.
  32700. */
  32701. function _boolean(rule, value, callback, source, options) {
  32702. var errors = [];
  32703. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32704. if (validate) {
  32705. if (isEmptyValue(value) && !rule.required) {
  32706. return callback();
  32707. }
  32708. rules.required(rule, value, source, errors, options);
  32709. if (value !== undefined) {
  32710. rules.type(rule, value, source, errors, options);
  32711. }
  32712. }
  32713. callback(errors);
  32714. }
  32715. /**
  32716. * Validates the regular expression type.
  32717. *
  32718. * @param rule The validation rule.
  32719. * @param value The value of the field on the source object.
  32720. * @param callback The callback function.
  32721. * @param source The source object being validated.
  32722. * @param options The validation options.
  32723. * @param options.messages The validation messages.
  32724. */
  32725. function regexp(rule, value, callback, source, options) {
  32726. var errors = [];
  32727. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32728. if (validate) {
  32729. if (isEmptyValue(value) && !rule.required) {
  32730. return callback();
  32731. }
  32732. rules.required(rule, value, source, errors, options);
  32733. if (!isEmptyValue(value)) {
  32734. rules.type(rule, value, source, errors, options);
  32735. }
  32736. }
  32737. callback(errors);
  32738. }
  32739. /**
  32740. * Validates a number is an integer.
  32741. *
  32742. * @param rule The validation rule.
  32743. * @param value The value of the field on the source object.
  32744. * @param callback The callback function.
  32745. * @param source The source object being validated.
  32746. * @param options The validation options.
  32747. * @param options.messages The validation messages.
  32748. */
  32749. function integer(rule, value, callback, source, options) {
  32750. var errors = [];
  32751. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32752. if (validate) {
  32753. if (isEmptyValue(value) && !rule.required) {
  32754. return callback();
  32755. }
  32756. rules.required(rule, value, source, errors, options);
  32757. if (value !== undefined) {
  32758. rules.type(rule, value, source, errors, options);
  32759. rules.range(rule, value, source, errors, options);
  32760. }
  32761. }
  32762. callback(errors);
  32763. }
  32764. /**
  32765. * Validates a number is a floating point number.
  32766. *
  32767. * @param rule The validation rule.
  32768. * @param value The value of the field on the source object.
  32769. * @param callback The callback function.
  32770. * @param source The source object being validated.
  32771. * @param options The validation options.
  32772. * @param options.messages The validation messages.
  32773. */
  32774. function floatFn(rule, value, callback, source, options) {
  32775. var errors = [];
  32776. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32777. if (validate) {
  32778. if (isEmptyValue(value) && !rule.required) {
  32779. return callback();
  32780. }
  32781. rules.required(rule, value, source, errors, options);
  32782. if (value !== undefined) {
  32783. rules.type(rule, value, source, errors, options);
  32784. rules.range(rule, value, source, errors, options);
  32785. }
  32786. }
  32787. callback(errors);
  32788. }
  32789. /**
  32790. * Validates an array.
  32791. *
  32792. * @param rule The validation rule.
  32793. * @param value The value of the field on the source object.
  32794. * @param callback The callback function.
  32795. * @param source The source object being validated.
  32796. * @param options The validation options.
  32797. * @param options.messages The validation messages.
  32798. */
  32799. function array(rule, value, callback, source, options) {
  32800. var errors = [];
  32801. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32802. if (validate) {
  32803. if (isEmptyValue(value, 'array') && !rule.required) {
  32804. return callback();
  32805. }
  32806. rules.required(rule, value, source, errors, options, 'array');
  32807. if (!isEmptyValue(value, 'array')) {
  32808. rules.type(rule, value, source, errors, options);
  32809. rules.range(rule, value, source, errors, options);
  32810. }
  32811. }
  32812. callback(errors);
  32813. }
  32814. /**
  32815. * Validates an object.
  32816. *
  32817. * @param rule The validation rule.
  32818. * @param value The value of the field on the source object.
  32819. * @param callback The callback function.
  32820. * @param source The source object being validated.
  32821. * @param options The validation options.
  32822. * @param options.messages The validation messages.
  32823. */
  32824. function object(rule, value, callback, source, options) {
  32825. var errors = [];
  32826. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32827. if (validate) {
  32828. if (isEmptyValue(value) && !rule.required) {
  32829. return callback();
  32830. }
  32831. rules.required(rule, value, source, errors, options);
  32832. if (value !== undefined) {
  32833. rules.type(rule, value, source, errors, options);
  32834. }
  32835. }
  32836. callback(errors);
  32837. }
  32838. var ENUM$1 = 'enum';
  32839. /**
  32840. * Validates an enumerable list.
  32841. *
  32842. * @param rule The validation rule.
  32843. * @param value The value of the field on the source object.
  32844. * @param callback The callback function.
  32845. * @param source The source object being validated.
  32846. * @param options The validation options.
  32847. * @param options.messages The validation messages.
  32848. */
  32849. function enumerable$1(rule, value, callback, source, options) {
  32850. var errors = [];
  32851. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32852. if (validate) {
  32853. if (isEmptyValue(value) && !rule.required) {
  32854. return callback();
  32855. }
  32856. rules.required(rule, value, source, errors, options);
  32857. if (value !== undefined) {
  32858. rules[ENUM$1](rule, value, source, errors, options);
  32859. }
  32860. }
  32861. callback(errors);
  32862. }
  32863. /**
  32864. * Validates a regular expression pattern.
  32865. *
  32866. * Performs validation when a rule only contains
  32867. * a pattern property but is not declared as a string type.
  32868. *
  32869. * @param rule The validation rule.
  32870. * @param value The value of the field on the source object.
  32871. * @param callback The callback function.
  32872. * @param source The source object being validated.
  32873. * @param options The validation options.
  32874. * @param options.messages The validation messages.
  32875. */
  32876. function pattern$2(rule, value, callback, source, options) {
  32877. var errors = [];
  32878. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32879. if (validate) {
  32880. if (isEmptyValue(value, 'string') && !rule.required) {
  32881. return callback();
  32882. }
  32883. rules.required(rule, value, source, errors, options);
  32884. if (!isEmptyValue(value, 'string')) {
  32885. rules.pattern(rule, value, source, errors, options);
  32886. }
  32887. }
  32888. callback(errors);
  32889. }
  32890. function date(rule, value, callback, source, options) {
  32891. var errors = [];
  32892. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32893. if (validate) {
  32894. if (isEmptyValue(value) && !rule.required) {
  32895. return callback();
  32896. }
  32897. rules.required(rule, value, source, errors, options);
  32898. if (!isEmptyValue(value)) {
  32899. var dateObject;
  32900. if (typeof value === 'number') {
  32901. dateObject = new Date(value);
  32902. } else {
  32903. dateObject = value;
  32904. }
  32905. rules.type(rule, dateObject, source, errors, options);
  32906. if (dateObject) {
  32907. rules.range(rule, dateObject.getTime(), source, errors, options);
  32908. }
  32909. }
  32910. }
  32911. callback(errors);
  32912. }
  32913. function required$1(rule, value, callback, source, options) {
  32914. var errors = [];
  32915. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  32916. rules.required(rule, value, source, errors, options, type);
  32917. callback(errors);
  32918. }
  32919. function type$1(rule, value, callback, source, options) {
  32920. var ruleType = rule.type;
  32921. var errors = [];
  32922. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32923. if (validate) {
  32924. if (isEmptyValue(value, ruleType) && !rule.required) {
  32925. return callback();
  32926. }
  32927. rules.required(rule, value, source, errors, options, ruleType);
  32928. if (!isEmptyValue(value, ruleType)) {
  32929. rules.type(rule, value, source, errors, options);
  32930. }
  32931. }
  32932. callback(errors);
  32933. }
  32934. /**
  32935. * Performs validation for any type.
  32936. *
  32937. * @param rule The validation rule.
  32938. * @param value The value of the field on the source object.
  32939. * @param callback The callback function.
  32940. * @param source The source object being validated.
  32941. * @param options The validation options.
  32942. * @param options.messages The validation messages.
  32943. */
  32944. function any(rule, value, callback, source, options) {
  32945. var errors = [];
  32946. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  32947. if (validate) {
  32948. if (isEmptyValue(value) && !rule.required) {
  32949. return callback();
  32950. }
  32951. rules.required(rule, value, source, errors, options);
  32952. }
  32953. callback(errors);
  32954. }
  32955. var validators = {
  32956. string: string,
  32957. method: method,
  32958. number: number,
  32959. boolean: _boolean,
  32960. regexp: regexp,
  32961. integer: integer,
  32962. float: floatFn,
  32963. array: array,
  32964. object: object,
  32965. enum: enumerable$1,
  32966. pattern: pattern$2,
  32967. date: date,
  32968. url: type$1,
  32969. hex: type$1,
  32970. email: type$1,
  32971. required: required$1,
  32972. any: any
  32973. };
  32974. function newMessages() {
  32975. return {
  32976. default: 'Validation error on field %s',
  32977. required: '%s is required',
  32978. enum: '%s must be one of %s',
  32979. whitespace: '%s cannot be empty',
  32980. date: {
  32981. format: '%s date %s is invalid for format %s',
  32982. parse: '%s date could not be parsed, %s is invalid ',
  32983. invalid: '%s date %s is invalid'
  32984. },
  32985. types: {
  32986. string: '%s is not a %s',
  32987. method: '%s is not a %s (function)',
  32988. array: '%s is not an %s',
  32989. object: '%s is not an %s',
  32990. number: '%s is not a %s',
  32991. date: '%s is not a %s',
  32992. boolean: '%s is not a %s',
  32993. integer: '%s is not an %s',
  32994. float: '%s is not a %s',
  32995. regexp: '%s is not a valid %s',
  32996. email: '%s is not a valid %s',
  32997. url: '%s is not a valid %s',
  32998. hex: '%s is not a valid %s'
  32999. },
  33000. string: {
  33001. len: '%s must be exactly %s characters',
  33002. min: '%s must be at least %s characters',
  33003. max: '%s cannot be longer than %s characters',
  33004. range: '%s must be between %s and %s characters'
  33005. },
  33006. number: {
  33007. len: '%s must equal %s',
  33008. min: '%s cannot be less than %s',
  33009. max: '%s cannot be greater than %s',
  33010. range: '%s must be between %s and %s'
  33011. },
  33012. array: {
  33013. len: '%s must be exactly %s in length',
  33014. min: '%s cannot be less than %s in length',
  33015. max: '%s cannot be greater than %s in length',
  33016. range: '%s must be between %s and %s in length'
  33017. },
  33018. pattern: {
  33019. mismatch: '%s value %s does not match pattern %s'
  33020. },
  33021. clone: function clone() {
  33022. var cloned = JSON.parse(JSON.stringify(this));
  33023. cloned.clone = this.clone;
  33024. return cloned;
  33025. }
  33026. };
  33027. }
  33028. var messages = newMessages();
  33029. /**
  33030. * Encapsulates a validation schema.
  33031. *
  33032. * @param descriptor An object declaring validation rules
  33033. * for this schema.
  33034. */
  33035. function Schema(descriptor) {
  33036. this.rules = null;
  33037. this._messages = messages;
  33038. this.define(descriptor);
  33039. }
  33040. Schema.prototype = {
  33041. messages: function messages(_messages) {
  33042. if (_messages) {
  33043. this._messages = deepMerge(newMessages(), _messages);
  33044. }
  33045. return this._messages;
  33046. },
  33047. define: function define(rules) {
  33048. if (!rules) {
  33049. throw new Error('Cannot configure a schema with no rules');
  33050. }
  33051. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  33052. throw new Error('Rules must be an object');
  33053. }
  33054. this.rules = {};
  33055. var z;
  33056. var item;
  33057. for (z in rules) {
  33058. if (rules.hasOwnProperty(z)) {
  33059. item = rules[z];
  33060. this.rules[z] = Array.isArray(item) ? item : [item];
  33061. }
  33062. }
  33063. },
  33064. validate: function validate(source_, o, oc) {
  33065. var _this = this;
  33066. if (o === void 0) {
  33067. o = {};
  33068. }
  33069. if (oc === void 0) {
  33070. oc = function oc() {};
  33071. }
  33072. var source = source_;
  33073. var options = o;
  33074. var callback = oc;
  33075. if (typeof options === 'function') {
  33076. callback = options;
  33077. options = {};
  33078. }
  33079. if (!this.rules || Object.keys(this.rules).length === 0) {
  33080. if (callback) {
  33081. callback();
  33082. }
  33083. return Promise.resolve();
  33084. }
  33085. function complete(results) {
  33086. var i;
  33087. var errors = [];
  33088. var fields = {};
  33089. function add(e) {
  33090. if (Array.isArray(e)) {
  33091. var _errors;
  33092. errors = (_errors = errors).concat.apply(_errors, e);
  33093. } else {
  33094. errors.push(e);
  33095. }
  33096. }
  33097. for (i = 0; i < results.length; i++) {
  33098. add(results[i]);
  33099. }
  33100. if (!errors.length) {
  33101. errors = null;
  33102. fields = null;
  33103. } else {
  33104. fields = convertFieldsError(errors);
  33105. }
  33106. callback(errors, fields);
  33107. }
  33108. if (options.messages) {
  33109. var messages$1 = this.messages();
  33110. if (messages$1 === messages) {
  33111. messages$1 = newMessages();
  33112. }
  33113. deepMerge(messages$1, options.messages);
  33114. options.messages = messages$1;
  33115. } else {
  33116. options.messages = this.messages();
  33117. }
  33118. var arr;
  33119. var value;
  33120. var series = {};
  33121. var keys = options.keys || Object.keys(this.rules);
  33122. keys.forEach(function (z) {
  33123. arr = _this.rules[z];
  33124. value = source[z];
  33125. arr.forEach(function (r) {
  33126. var rule = r;
  33127. if (typeof rule.transform === 'function') {
  33128. if (source === source_) {
  33129. source = _objectSpread({}, source);
  33130. }
  33131. value = source[z] = rule.transform(value);
  33132. }
  33133. if (typeof rule === 'function') {
  33134. rule = {
  33135. validator: rule
  33136. };
  33137. } else {
  33138. rule = _objectSpread({}, rule);
  33139. }
  33140. rule.validator = _this.getValidationMethod(rule);
  33141. rule.field = z;
  33142. rule.fullField = rule.fullField || z;
  33143. rule.type = _this.getType(rule);
  33144. if (!rule.validator) {
  33145. return;
  33146. }
  33147. series[z] = series[z] || [];
  33148. series[z].push({
  33149. rule: rule,
  33150. value: value,
  33151. source: source,
  33152. field: z
  33153. });
  33154. });
  33155. });
  33156. var errorFields = {};
  33157. return asyncMap(series, options, function (data, doIt) {
  33158. var rule = data.rule;
  33159. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  33160. deep = deep && (rule.required || !rule.required && data.value);
  33161. rule.field = data.field;
  33162. function addFullfield(key, schema) {
  33163. return _objectSpread(_objectSpread({}, schema), {}, {
  33164. fullField: "".concat(rule.fullField, ".").concat(key)
  33165. });
  33166. }
  33167. function cb(e) {
  33168. if (e === void 0) {
  33169. e = [];
  33170. }
  33171. var errors = e;
  33172. if (!Array.isArray(errors)) {
  33173. errors = [errors];
  33174. }
  33175. if (!options.suppressWarning && errors.length) {
  33176. Schema.warning('async-validator:', errors);
  33177. }
  33178. if (errors.length && rule.message) {
  33179. errors = [].concat(rule.message);
  33180. }
  33181. errors = errors.map(complementError(rule));
  33182. if (options.first && errors.length) {
  33183. errorFields[rule.field] = 1;
  33184. return doIt(errors);
  33185. }
  33186. if (!deep) {
  33187. doIt(errors);
  33188. } else {
  33189. // if rule is required but the target object
  33190. // does not exist fail at the rule level and don't
  33191. // go deeper
  33192. if (rule.required && !data.value) {
  33193. if (rule.message) {
  33194. errors = [].concat(rule.message).map(complementError(rule));
  33195. } else if (options.error) {
  33196. errors = [options.error(rule, format(options.messages.required, rule.field))];
  33197. } else {
  33198. errors = [];
  33199. }
  33200. return doIt(errors);
  33201. }
  33202. var fieldsSchema = {};
  33203. if (rule.defaultField) {
  33204. for (var k in data.value) {
  33205. if (data.value.hasOwnProperty(k)) {
  33206. fieldsSchema[k] = rule.defaultField;
  33207. }
  33208. }
  33209. }
  33210. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  33211. for (var f in fieldsSchema) {
  33212. if (fieldsSchema.hasOwnProperty(f)) {
  33213. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  33214. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  33215. }
  33216. }
  33217. var schema = new Schema(fieldsSchema);
  33218. schema.messages(options.messages);
  33219. if (data.rule.options) {
  33220. data.rule.options.messages = options.messages;
  33221. data.rule.options.error = options.error;
  33222. }
  33223. schema.validate(data.value, data.rule.options || options, function (errs) {
  33224. var finalErrors = [];
  33225. if (errors && errors.length) {
  33226. finalErrors.push.apply(finalErrors, errors);
  33227. }
  33228. if (errs && errs.length) {
  33229. finalErrors.push.apply(finalErrors, errs);
  33230. }
  33231. doIt(finalErrors.length ? finalErrors : null);
  33232. });
  33233. }
  33234. }
  33235. var res;
  33236. if (rule.asyncValidator) {
  33237. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  33238. } else if (rule.validator) {
  33239. res = rule.validator(rule, data.value, cb, data.source, options);
  33240. if (res === true) {
  33241. cb();
  33242. } else if (res === false) {
  33243. cb(rule.message || "".concat(rule.field, " fails"));
  33244. } else if (res instanceof Array) {
  33245. cb(res);
  33246. } else if (res instanceof Error) {
  33247. cb(res.message);
  33248. }
  33249. }
  33250. if (res && res.then) {
  33251. res.then(function () {
  33252. return cb();
  33253. }, function (e) {
  33254. return cb(e);
  33255. });
  33256. }
  33257. }, function (results) {
  33258. complete(results);
  33259. });
  33260. },
  33261. getType: function getType(rule) {
  33262. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  33263. rule.type = 'pattern';
  33264. }
  33265. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  33266. throw new Error(format('Unknown rule type %s', rule.type));
  33267. }
  33268. return rule.type || 'string';
  33269. },
  33270. getValidationMethod: function getValidationMethod(rule) {
  33271. if (typeof rule.validator === 'function') {
  33272. return rule.validator;
  33273. }
  33274. var keys = Object.keys(rule);
  33275. var messageIndex = keys.indexOf('message');
  33276. if (messageIndex !== -1) {
  33277. keys.splice(messageIndex, 1);
  33278. }
  33279. if (keys.length === 1 && keys[0] === 'required') {
  33280. return validators.required;
  33281. }
  33282. return validators[this.getType(rule)] || false;
  33283. }
  33284. };
  33285. Schema.register = function register(type, validator) {
  33286. if (typeof validator !== 'function') {
  33287. throw new Error('Cannot register a validator by type, validator is not a function');
  33288. }
  33289. validators[type] = validator;
  33290. };
  33291. Schema.warning = warning;
  33292. Schema.messages = messages;
  33293. var _default = Schema; // # sourceMappingURL=index.js.map
  33294. exports.default = _default;
  33295. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 353)))
  33296. /***/ }),
  33297. /* 871 */,
  33298. /* 872 */,
  33299. /* 873 */,
  33300. /* 874 */,
  33301. /* 875 */,
  33302. /* 876 */,
  33303. /* 877 */,
  33304. /* 878 */,
  33305. /* 879 */,
  33306. /* 880 */,
  33307. /* 881 */,
  33308. /* 882 */,
  33309. /* 883 */,
  33310. /* 884 */,
  33311. /* 885 */,
  33312. /* 886 */,
  33313. /* 887 */,
  33314. /* 888 */,
  33315. /* 889 */,
  33316. /* 890 */
  33317. /*!*************************************************************************************!*\
  33318. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-picker/props.js ***!
  33319. \*************************************************************************************/
  33320. /*! no static exports found */
  33321. /***/ (function(module, exports, __webpack_require__) {
  33322. "use strict";
  33323. /* WEBPACK VAR INJECTION */(function(uni) {
  33324. Object.defineProperty(exports, "__esModule", {
  33325. value: true
  33326. });
  33327. exports.default = void 0;
  33328. var _default = {
  33329. props: {
  33330. // 是否展示picker弹窗
  33331. show: {
  33332. type: Boolean,
  33333. default: uni.$u.props.picker.show
  33334. },
  33335. // 是否展示顶部的操作栏
  33336. showToolbar: {
  33337. type: Boolean,
  33338. default: uni.$u.props.picker.showToolbar
  33339. },
  33340. // 顶部标题
  33341. title: {
  33342. type: String,
  33343. default: uni.$u.props.picker.title
  33344. },
  33345. // 对象数组,设置每一列的数据
  33346. columns: {
  33347. type: Array,
  33348. default: uni.$u.props.picker.columns
  33349. },
  33350. // 是否显示加载中状态
  33351. loading: {
  33352. type: Boolean,
  33353. default: uni.$u.props.picker.loading
  33354. },
  33355. // 各列中,单个选项的高度
  33356. itemHeight: {
  33357. type: [String, Number],
  33358. default: uni.$u.props.picker.itemHeight
  33359. },
  33360. // 取消按钮的文字
  33361. cancelText: {
  33362. type: String,
  33363. default: uni.$u.props.picker.cancelText
  33364. },
  33365. // 确认按钮的文字
  33366. confirmText: {
  33367. type: String,
  33368. default: uni.$u.props.picker.confirmText
  33369. },
  33370. // 取消按钮的颜色
  33371. cancelColor: {
  33372. type: String,
  33373. default: uni.$u.props.picker.cancelColor
  33374. },
  33375. // 确认按钮的颜色
  33376. confirmColor: {
  33377. type: String,
  33378. default: uni.$u.props.picker.confirmColor
  33379. },
  33380. // 每列中可见选项的数量
  33381. visibleItemCount: {
  33382. type: [String, Number],
  33383. default: uni.$u.props.picker.visibleItemCount
  33384. },
  33385. // 选项对象中,需要展示的属性键名
  33386. keyName: {
  33387. type: String,
  33388. default: uni.$u.props.picker.keyName
  33389. },
  33390. // 是否允许点击遮罩关闭选择器
  33391. closeOnClickOverlay: {
  33392. type: Boolean,
  33393. default: uni.$u.props.picker.closeOnClickOverlay
  33394. },
  33395. // 各列的默认索引
  33396. defaultIndex: {
  33397. type: Array,
  33398. default: uni.$u.props.picker.defaultIndex
  33399. },
  33400. // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
  33401. immediateChange: {
  33402. type: Boolean,
  33403. default: uni.$u.props.picker.immediateChange
  33404. }
  33405. }
  33406. };
  33407. exports.default = _default;
  33408. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33409. /***/ }),
  33410. /* 891 */,
  33411. /* 892 */,
  33412. /* 893 */,
  33413. /* 894 */,
  33414. /* 895 */,
  33415. /* 896 */,
  33416. /* 897 */,
  33417. /* 898 */,
  33418. /* 899 */,
  33419. /* 900 */,
  33420. /* 901 */,
  33421. /* 902 */,
  33422. /* 903 */,
  33423. /* 904 */,
  33424. /* 905 */,
  33425. /* 906 */,
  33426. /* 907 */,
  33427. /* 908 */,
  33428. /* 909 */,
  33429. /* 910 */,
  33430. /* 911 */,
  33431. /* 912 */
  33432. /*!********************************************************************************************!*\
  33433. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-column-notice/props.js ***!
  33434. \********************************************************************************************/
  33435. /*! no static exports found */
  33436. /***/ (function(module, exports, __webpack_require__) {
  33437. "use strict";
  33438. /* WEBPACK VAR INJECTION */(function(uni) {
  33439. Object.defineProperty(exports, "__esModule", {
  33440. value: true
  33441. });
  33442. exports.default = void 0;
  33443. var _default = {
  33444. props: {
  33445. // 显示的内容,字符串
  33446. text: {
  33447. type: [Array],
  33448. default: uni.$u.props.columnNotice.text
  33449. },
  33450. // 是否显示左侧的音量图标
  33451. icon: {
  33452. type: String,
  33453. default: uni.$u.props.columnNotice.icon
  33454. },
  33455. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  33456. mode: {
  33457. type: String,
  33458. default: uni.$u.props.columnNotice.mode
  33459. },
  33460. // 文字颜色,各图标也会使用文字颜色
  33461. color: {
  33462. type: String,
  33463. default: uni.$u.props.columnNotice.color
  33464. },
  33465. // 背景颜色
  33466. bgColor: {
  33467. type: String,
  33468. default: uni.$u.props.columnNotice.bgColor
  33469. },
  33470. // 字体大小,单位px
  33471. fontSize: {
  33472. type: [String, Number],
  33473. default: uni.$u.props.columnNotice.fontSize
  33474. },
  33475. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  33476. speed: {
  33477. type: [String, Number],
  33478. default: uni.$u.props.columnNotice.speed
  33479. },
  33480. // direction = row时,是否使用步进形式滚动
  33481. step: {
  33482. type: Boolean,
  33483. default: uni.$u.props.columnNotice.step
  33484. },
  33485. // 滚动一个周期的时间长,单位ms
  33486. duration: {
  33487. type: [String, Number],
  33488. default: uni.$u.props.columnNotice.duration
  33489. },
  33490. // 是否禁止用手滑动切换
  33491. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  33492. disableTouch: {
  33493. type: Boolean,
  33494. default: uni.$u.props.columnNotice.disableTouch
  33495. }
  33496. }
  33497. };
  33498. exports.default = _default;
  33499. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33500. /***/ }),
  33501. /* 913 */,
  33502. /* 914 */,
  33503. /* 915 */,
  33504. /* 916 */,
  33505. /* 917 */,
  33506. /* 918 */,
  33507. /* 919 */,
  33508. /* 920 */
  33509. /*!*****************************************************************************************!*\
  33510. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-row-notice/props.js ***!
  33511. \*****************************************************************************************/
  33512. /*! no static exports found */
  33513. /***/ (function(module, exports, __webpack_require__) {
  33514. "use strict";
  33515. /* WEBPACK VAR INJECTION */(function(uni) {
  33516. Object.defineProperty(exports, "__esModule", {
  33517. value: true
  33518. });
  33519. exports.default = void 0;
  33520. var _default = {
  33521. props: {
  33522. // 显示的内容,字符串
  33523. text: {
  33524. type: String,
  33525. default: uni.$u.props.rowNotice.text
  33526. },
  33527. // 是否显示左侧的音量图标
  33528. icon: {
  33529. type: String,
  33530. default: uni.$u.props.rowNotice.icon
  33531. },
  33532. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  33533. mode: {
  33534. type: String,
  33535. default: uni.$u.props.rowNotice.mode
  33536. },
  33537. // 文字颜色,各图标也会使用文字颜色
  33538. color: {
  33539. type: String,
  33540. default: uni.$u.props.rowNotice.color
  33541. },
  33542. // 背景颜色
  33543. bgColor: {
  33544. type: String,
  33545. default: uni.$u.props.rowNotice.bgColor
  33546. },
  33547. // 字体大小,单位px
  33548. fontSize: {
  33549. type: [String, Number],
  33550. default: uni.$u.props.rowNotice.fontSize
  33551. },
  33552. // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
  33553. speed: {
  33554. type: [String, Number],
  33555. default: uni.$u.props.rowNotice.speed
  33556. }
  33557. }
  33558. };
  33559. exports.default = _default;
  33560. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33561. /***/ }),
  33562. /* 921 */,
  33563. /* 922 */,
  33564. /* 923 */,
  33565. /* 924 */,
  33566. /* 925 */,
  33567. /* 926 */,
  33568. /* 927 */,
  33569. /* 928 */
  33570. /*!**************************************************************************************!*\
  33571. !*** F:/项目/HBuilderProjects/test/uni_modules/uview-ui/components/u-toolbar/props.js ***!
  33572. \**************************************************************************************/
  33573. /*! no static exports found */
  33574. /***/ (function(module, exports, __webpack_require__) {
  33575. "use strict";
  33576. /* WEBPACK VAR INJECTION */(function(uni) {
  33577. Object.defineProperty(exports, "__esModule", {
  33578. value: true
  33579. });
  33580. exports.default = void 0;
  33581. var _default = {
  33582. props: {
  33583. // 是否展示工具条
  33584. show: {
  33585. type: Boolean,
  33586. default: uni.$u.props.toolbar.show
  33587. },
  33588. // 取消按钮的文字
  33589. cancelText: {
  33590. type: String,
  33591. default: uni.$u.props.toolbar.cancelText
  33592. },
  33593. // 确认按钮的文字
  33594. confirmText: {
  33595. type: String,
  33596. default: uni.$u.props.toolbar.confirmText
  33597. },
  33598. // 取消按钮的颜色
  33599. cancelColor: {
  33600. type: String,
  33601. default: uni.$u.props.toolbar.cancelColor
  33602. },
  33603. // 确认按钮的颜色
  33604. confirmColor: {
  33605. type: String,
  33606. default: uni.$u.props.toolbar.confirmColor
  33607. },
  33608. // 标题文字
  33609. title: {
  33610. type: String,
  33611. default: uni.$u.props.toolbar.title
  33612. }
  33613. }
  33614. };
  33615. exports.default = _default;
  33616. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33617. /***/ })
  33618. ]]);
  33619. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map