vendor.js 701 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901
  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__DA01967",
  754. appName: "工具箱",
  755. appVersion: "1.0.0",
  756. appVersionCode: "1",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "4.15",
  759. uniRuntimeVersion: "4.15",
  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__DA01967",
  853. appName: "工具箱",
  854. appVersion: "1.0.0",
  855. appVersionCode: "1",
  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(r, l) {
  2482. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2483. if (null != t) {
  2484. var e,
  2485. n,
  2486. i,
  2487. u,
  2488. a = [],
  2489. f = !0,
  2490. o = !1;
  2491. try {
  2492. if (i = (t = t.call(r)).next, 0 === l) {
  2493. if (Object(t) !== t) return;
  2494. f = !1;
  2495. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2496. ;
  2497. }
  2498. } catch (r) {
  2499. o = !0, n = r;
  2500. } finally {
  2501. try {
  2502. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2503. } finally {
  2504. if (o) throw n;
  2505. }
  2506. }
  2507. return a;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function toPropertyKey(t) {
  2587. var i = toPrimitive(t, "string");
  2588. return "symbol" == _typeof(i) ? i : i + "";
  2589. }
  2590. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(o) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2601. return typeof o;
  2602. } : function (o) {
  2603. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function toPrimitive(t, r) {
  2616. if ("object" != _typeof(t) || !t) return t;
  2617. var e = t[Symbol.toPrimitive];
  2618. if (void 0 !== e) {
  2619. var i = e.call(t, r || "default");
  2620. if ("object" != _typeof(i)) return i;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return ("string" === r ? String : Number)(t);
  2624. }
  2625. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(t, e, r) {
  2636. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2637. var o = [null];
  2638. o.push.apply(o, e);
  2639. var p = new (t.bind.apply(t, o))();
  2640. return r && setPrototypeOf(p, r.prototype), p;
  2641. }
  2642. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2643. /***/ }),
  2644. /* 16 */
  2645. /*!***************************************************************!*\
  2646. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2647. \***************************************************************/
  2648. /*! no static exports found */
  2649. /***/ (function(module, exports) {
  2650. function _setPrototypeOf(o, p) {
  2651. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2652. o.__proto__ = p;
  2653. return o;
  2654. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. return _setPrototypeOf(o, p);
  2656. }
  2657. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2658. /***/ }),
  2659. /* 17 */
  2660. /*!*************************************************************************!*\
  2661. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2662. \*************************************************************************/
  2663. /*! no static exports found */
  2664. /***/ (function(module, exports) {
  2665. function _isNativeReflectConstruct() {
  2666. try {
  2667. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2668. } catch (t) {}
  2669. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2670. return !!t;
  2671. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2672. }
  2673. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2674. /***/ }),
  2675. /* 18 */
  2676. /*!******************************************************************!*\
  2677. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2678. \******************************************************************/
  2679. /*! no static exports found */
  2680. /***/ (function(module, exports, __webpack_require__) {
  2681. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2682. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2683. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2684. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2685. function _toConsumableArray(arr) {
  2686. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2687. }
  2688. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2689. /***/ }),
  2690. /* 19 */
  2691. /*!******************************************************************!*\
  2692. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2693. \******************************************************************/
  2694. /*! no static exports found */
  2695. /***/ (function(module, exports, __webpack_require__) {
  2696. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2697. function _arrayWithoutHoles(arr) {
  2698. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2699. }
  2700. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2701. /***/ }),
  2702. /* 20 */
  2703. /*!****************************************************************!*\
  2704. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2705. \****************************************************************/
  2706. /*! no static exports found */
  2707. /***/ (function(module, exports) {
  2708. function _iterableToArray(iter) {
  2709. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2710. }
  2711. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 21 */
  2714. /*!******************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2716. \******************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _nonIterableSpread() {
  2720. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2721. }
  2722. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 22 */
  2725. /*!*************************************************************!*\
  2726. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2727. \*************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports, __webpack_require__) {
  2730. "use strict";
  2731. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2732. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2733. Object.defineProperty(exports, "__esModule", {
  2734. value: true
  2735. });
  2736. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2737. exports.compileI18nJsonStr = compileI18nJsonStr;
  2738. exports.hasI18nJson = hasI18nJson;
  2739. exports.initVueI18n = initVueI18n;
  2740. exports.isI18nStr = isI18nStr;
  2741. exports.isString = void 0;
  2742. exports.normalizeLocale = normalizeLocale;
  2743. exports.parseI18nJson = parseI18nJson;
  2744. exports.resolveLocale = resolveLocale;
  2745. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2746. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2747. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2748. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2749. var isObject = function isObject(val) {
  2750. return val !== null && (0, _typeof2.default)(val) === 'object';
  2751. };
  2752. var defaultDelimiters = ['{', '}'];
  2753. var BaseFormatter = /*#__PURE__*/function () {
  2754. function BaseFormatter() {
  2755. (0, _classCallCheck2.default)(this, BaseFormatter);
  2756. this._caches = Object.create(null);
  2757. }
  2758. (0, _createClass2.default)(BaseFormatter, [{
  2759. key: "interpolate",
  2760. value: function interpolate(message, values) {
  2761. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2762. if (!values) {
  2763. return [message];
  2764. }
  2765. var tokens = this._caches[message];
  2766. if (!tokens) {
  2767. tokens = parse(message, delimiters);
  2768. this._caches[message] = tokens;
  2769. }
  2770. return compile(tokens, values);
  2771. }
  2772. }]);
  2773. return BaseFormatter;
  2774. }();
  2775. exports.Formatter = BaseFormatter;
  2776. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2777. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2778. function parse(format, _ref) {
  2779. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2780. startDelimiter = _ref2[0],
  2781. endDelimiter = _ref2[1];
  2782. var tokens = [];
  2783. var position = 0;
  2784. var text = '';
  2785. while (position < format.length) {
  2786. var char = format[position++];
  2787. if (char === startDelimiter) {
  2788. if (text) {
  2789. tokens.push({
  2790. type: 'text',
  2791. value: text
  2792. });
  2793. }
  2794. text = '';
  2795. var sub = '';
  2796. char = format[position++];
  2797. while (char !== undefined && char !== endDelimiter) {
  2798. sub += char;
  2799. char = format[position++];
  2800. }
  2801. var isClosed = char === endDelimiter;
  2802. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2803. tokens.push({
  2804. value: sub,
  2805. type: type
  2806. });
  2807. }
  2808. // else if (char === '%') {
  2809. // // when found rails i18n syntax, skip text capture
  2810. // if (format[position] !== '{') {
  2811. // text += char
  2812. // }
  2813. // }
  2814. else {
  2815. text += char;
  2816. }
  2817. }
  2818. text && tokens.push({
  2819. type: 'text',
  2820. value: text
  2821. });
  2822. return tokens;
  2823. }
  2824. function compile(tokens, values) {
  2825. var compiled = [];
  2826. var index = 0;
  2827. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2828. if (mode === 'unknown') {
  2829. return compiled;
  2830. }
  2831. while (index < tokens.length) {
  2832. var token = tokens[index];
  2833. switch (token.type) {
  2834. case 'text':
  2835. compiled.push(token.value);
  2836. break;
  2837. case 'list':
  2838. compiled.push(values[parseInt(token.value, 10)]);
  2839. break;
  2840. case 'named':
  2841. if (mode === 'named') {
  2842. compiled.push(values[token.value]);
  2843. } else {
  2844. if (true) {
  2845. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2846. }
  2847. }
  2848. break;
  2849. case 'unknown':
  2850. if (true) {
  2851. console.warn("Detect 'unknown' type of token!");
  2852. }
  2853. break;
  2854. }
  2855. index++;
  2856. }
  2857. return compiled;
  2858. }
  2859. var LOCALE_ZH_HANS = 'zh-Hans';
  2860. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2861. var LOCALE_ZH_HANT = 'zh-Hant';
  2862. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2863. var LOCALE_EN = 'en';
  2864. exports.LOCALE_EN = LOCALE_EN;
  2865. var LOCALE_FR = 'fr';
  2866. exports.LOCALE_FR = LOCALE_FR;
  2867. var LOCALE_ES = 'es';
  2868. exports.LOCALE_ES = LOCALE_ES;
  2869. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2870. var hasOwn = function hasOwn(val, key) {
  2871. return hasOwnProperty.call(val, key);
  2872. };
  2873. var defaultFormatter = new BaseFormatter();
  2874. function include(str, parts) {
  2875. return !!parts.find(function (part) {
  2876. return str.indexOf(part) !== -1;
  2877. });
  2878. }
  2879. function startsWith(str, parts) {
  2880. return parts.find(function (part) {
  2881. return str.indexOf(part) === 0;
  2882. });
  2883. }
  2884. function normalizeLocale(locale, messages) {
  2885. if (!locale) {
  2886. return;
  2887. }
  2888. locale = locale.trim().replace(/_/g, '-');
  2889. if (messages && messages[locale]) {
  2890. return locale;
  2891. }
  2892. locale = locale.toLowerCase();
  2893. if (locale === 'chinese') {
  2894. // 支付宝
  2895. return LOCALE_ZH_HANS;
  2896. }
  2897. if (locale.indexOf('zh') === 0) {
  2898. if (locale.indexOf('-hans') > -1) {
  2899. return LOCALE_ZH_HANS;
  2900. }
  2901. if (locale.indexOf('-hant') > -1) {
  2902. return LOCALE_ZH_HANT;
  2903. }
  2904. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2905. return LOCALE_ZH_HANT;
  2906. }
  2907. return LOCALE_ZH_HANS;
  2908. }
  2909. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2910. if (messages && Object.keys(messages).length > 0) {
  2911. locales = Object.keys(messages);
  2912. }
  2913. var lang = startsWith(locale, locales);
  2914. if (lang) {
  2915. return lang;
  2916. }
  2917. }
  2918. var I18n = /*#__PURE__*/function () {
  2919. function I18n(_ref3) {
  2920. var locale = _ref3.locale,
  2921. fallbackLocale = _ref3.fallbackLocale,
  2922. messages = _ref3.messages,
  2923. watcher = _ref3.watcher,
  2924. formater = _ref3.formater;
  2925. (0, _classCallCheck2.default)(this, I18n);
  2926. this.locale = LOCALE_EN;
  2927. this.fallbackLocale = LOCALE_EN;
  2928. this.message = {};
  2929. this.messages = {};
  2930. this.watchers = [];
  2931. if (fallbackLocale) {
  2932. this.fallbackLocale = fallbackLocale;
  2933. }
  2934. this.formater = formater || defaultFormatter;
  2935. this.messages = messages || {};
  2936. this.setLocale(locale || LOCALE_EN);
  2937. if (watcher) {
  2938. this.watchLocale(watcher);
  2939. }
  2940. }
  2941. (0, _createClass2.default)(I18n, [{
  2942. key: "setLocale",
  2943. value: function setLocale(locale) {
  2944. var _this = this;
  2945. var oldLocale = this.locale;
  2946. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2947. if (!this.messages[this.locale]) {
  2948. // 可能初始化时不存在
  2949. this.messages[this.locale] = {};
  2950. }
  2951. this.message = this.messages[this.locale];
  2952. // 仅发生变化时,通知
  2953. if (oldLocale !== this.locale) {
  2954. this.watchers.forEach(function (watcher) {
  2955. watcher(_this.locale, oldLocale);
  2956. });
  2957. }
  2958. }
  2959. }, {
  2960. key: "getLocale",
  2961. value: function getLocale() {
  2962. return this.locale;
  2963. }
  2964. }, {
  2965. key: "watchLocale",
  2966. value: function watchLocale(fn) {
  2967. var _this2 = this;
  2968. var index = this.watchers.push(fn) - 1;
  2969. return function () {
  2970. _this2.watchers.splice(index, 1);
  2971. };
  2972. }
  2973. }, {
  2974. key: "add",
  2975. value: function add(locale, message) {
  2976. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2977. var curMessages = this.messages[locale];
  2978. if (curMessages) {
  2979. if (override) {
  2980. Object.assign(curMessages, message);
  2981. } else {
  2982. Object.keys(message).forEach(function (key) {
  2983. if (!hasOwn(curMessages, key)) {
  2984. curMessages[key] = message[key];
  2985. }
  2986. });
  2987. }
  2988. } else {
  2989. this.messages[locale] = message;
  2990. }
  2991. }
  2992. }, {
  2993. key: "f",
  2994. value: function f(message, values, delimiters) {
  2995. return this.formater.interpolate(message, values, delimiters).join('');
  2996. }
  2997. }, {
  2998. key: "t",
  2999. value: function t(key, locale, values) {
  3000. var message = this.message;
  3001. if (typeof locale === 'string') {
  3002. locale = normalizeLocale(locale, this.messages);
  3003. locale && (message = this.messages[locale]);
  3004. } else {
  3005. values = locale;
  3006. }
  3007. if (!hasOwn(message, key)) {
  3008. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3009. return key;
  3010. }
  3011. return this.formater.interpolate(message[key], values).join('');
  3012. }
  3013. }]);
  3014. return I18n;
  3015. }();
  3016. exports.I18n = I18n;
  3017. function watchAppLocale(appVm, i18n) {
  3018. // 需要保证 watch 的触发在组件渲染之前
  3019. if (appVm.$watchLocale) {
  3020. // vue2
  3021. appVm.$watchLocale(function (newLocale) {
  3022. i18n.setLocale(newLocale);
  3023. });
  3024. } else {
  3025. appVm.$watch(function () {
  3026. return appVm.$locale;
  3027. }, function (newLocale) {
  3028. i18n.setLocale(newLocale);
  3029. });
  3030. }
  3031. }
  3032. function getDefaultLocale() {
  3033. if (typeof uni !== 'undefined' && uni.getLocale) {
  3034. return uni.getLocale();
  3035. }
  3036. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3037. if (typeof global !== 'undefined' && global.getLocale) {
  3038. return global.getLocale();
  3039. }
  3040. return LOCALE_EN;
  3041. }
  3042. function initVueI18n(locale) {
  3043. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3044. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3045. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3046. // 兼容旧版本入参
  3047. if (typeof locale !== 'string') {
  3048. var _ref4 = [messages, locale];
  3049. locale = _ref4[0];
  3050. messages = _ref4[1];
  3051. }
  3052. if (typeof locale !== 'string') {
  3053. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3054. locale = getDefaultLocale();
  3055. }
  3056. if (typeof fallbackLocale !== 'string') {
  3057. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3058. }
  3059. var i18n = new I18n({
  3060. locale: locale,
  3061. fallbackLocale: fallbackLocale,
  3062. messages: messages,
  3063. watcher: watcher
  3064. });
  3065. var _t = function t(key, values) {
  3066. if (typeof getApp !== 'function') {
  3067. // app view
  3068. /* eslint-disable no-func-assign */
  3069. _t = function t(key, values) {
  3070. return i18n.t(key, values);
  3071. };
  3072. } else {
  3073. var isWatchedAppLocale = false;
  3074. _t = function t(key, values) {
  3075. var appVm = getApp().$vm;
  3076. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3077. // options: {
  3078. // type: Array,
  3079. // default () {
  3080. // return [{
  3081. // icon: 'shop',
  3082. // text: t("uni-goods-nav.options.shop"),
  3083. // }, {
  3084. // icon: 'cart',
  3085. // text: t("uni-goods-nav.options.cart")
  3086. // }]
  3087. // }
  3088. // },
  3089. if (appVm) {
  3090. // 触发响应式
  3091. appVm.$locale;
  3092. if (!isWatchedAppLocale) {
  3093. isWatchedAppLocale = true;
  3094. watchAppLocale(appVm, i18n);
  3095. }
  3096. }
  3097. return i18n.t(key, values);
  3098. };
  3099. }
  3100. return _t(key, values);
  3101. };
  3102. return {
  3103. i18n: i18n,
  3104. f: function f(message, values, delimiters) {
  3105. return i18n.f(message, values, delimiters);
  3106. },
  3107. t: function t(key, values) {
  3108. return _t(key, values);
  3109. },
  3110. add: function add(locale, message) {
  3111. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3112. return i18n.add(locale, message, override);
  3113. },
  3114. watch: function watch(fn) {
  3115. return i18n.watchLocale(fn);
  3116. },
  3117. getLocale: function getLocale() {
  3118. return i18n.getLocale();
  3119. },
  3120. setLocale: function setLocale(newLocale) {
  3121. return i18n.setLocale(newLocale);
  3122. }
  3123. };
  3124. }
  3125. var isString = function isString(val) {
  3126. return typeof val === 'string';
  3127. };
  3128. exports.isString = isString;
  3129. var formater;
  3130. function hasI18nJson(jsonObj, delimiters) {
  3131. if (!formater) {
  3132. formater = new BaseFormatter();
  3133. }
  3134. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3135. var value = jsonObj[key];
  3136. if (isString(value)) {
  3137. if (isI18nStr(value, delimiters)) {
  3138. return true;
  3139. }
  3140. } else {
  3141. return hasI18nJson(value, delimiters);
  3142. }
  3143. });
  3144. }
  3145. function parseI18nJson(jsonObj, values, delimiters) {
  3146. if (!formater) {
  3147. formater = new BaseFormatter();
  3148. }
  3149. walkJsonObj(jsonObj, function (jsonObj, key) {
  3150. var value = jsonObj[key];
  3151. if (isString(value)) {
  3152. if (isI18nStr(value, delimiters)) {
  3153. jsonObj[key] = compileStr(value, values, delimiters);
  3154. }
  3155. } else {
  3156. parseI18nJson(value, values, delimiters);
  3157. }
  3158. });
  3159. return jsonObj;
  3160. }
  3161. function compileI18nJsonStr(jsonStr, _ref5) {
  3162. var locale = _ref5.locale,
  3163. locales = _ref5.locales,
  3164. delimiters = _ref5.delimiters;
  3165. if (!isI18nStr(jsonStr, delimiters)) {
  3166. return jsonStr;
  3167. }
  3168. if (!formater) {
  3169. formater = new BaseFormatter();
  3170. }
  3171. var localeValues = [];
  3172. Object.keys(locales).forEach(function (name) {
  3173. if (name !== locale) {
  3174. localeValues.push({
  3175. locale: name,
  3176. values: locales[name]
  3177. });
  3178. }
  3179. });
  3180. localeValues.unshift({
  3181. locale: locale,
  3182. values: locales[locale]
  3183. });
  3184. try {
  3185. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3186. } catch (e) {}
  3187. return jsonStr;
  3188. }
  3189. function isI18nStr(value, delimiters) {
  3190. return value.indexOf(delimiters[0]) > -1;
  3191. }
  3192. function compileStr(value, values, delimiters) {
  3193. return formater.interpolate(value, values, delimiters).join('');
  3194. }
  3195. function compileValue(jsonObj, key, localeValues, delimiters) {
  3196. var value = jsonObj[key];
  3197. if (isString(value)) {
  3198. // 存在国际化
  3199. if (isI18nStr(value, delimiters)) {
  3200. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3201. if (localeValues.length > 1) {
  3202. // 格式化国际化语言
  3203. var valueLocales = jsonObj[key + 'Locales'] = {};
  3204. localeValues.forEach(function (localValue) {
  3205. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3206. });
  3207. }
  3208. }
  3209. } else {
  3210. compileJsonObj(value, localeValues, delimiters);
  3211. }
  3212. }
  3213. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3214. walkJsonObj(jsonObj, function (jsonObj, key) {
  3215. compileValue(jsonObj, key, localeValues, delimiters);
  3216. });
  3217. return jsonObj;
  3218. }
  3219. function walkJsonObj(jsonObj, walk) {
  3220. if (Array.isArray(jsonObj)) {
  3221. for (var i = 0; i < jsonObj.length; i++) {
  3222. if (walk(jsonObj, i)) {
  3223. return true;
  3224. }
  3225. }
  3226. } else if (isObject(jsonObj)) {
  3227. for (var key in jsonObj) {
  3228. if (walk(jsonObj, key)) {
  3229. return true;
  3230. }
  3231. }
  3232. }
  3233. return false;
  3234. }
  3235. function resolveLocale(locales) {
  3236. return function (locale) {
  3237. if (!locale) {
  3238. return locale;
  3239. }
  3240. locale = normalizeLocale(locale) || locale;
  3241. return resolveLocaleChain(locale).find(function (locale) {
  3242. return locales.indexOf(locale) > -1;
  3243. });
  3244. };
  3245. }
  3246. function resolveLocaleChain(locale) {
  3247. var chain = [];
  3248. var tokens = locale.split('-');
  3249. while (tokens.length) {
  3250. chain.push(tokens.join('-'));
  3251. tokens.pop();
  3252. }
  3253. return chain;
  3254. }
  3255. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3256. /***/ }),
  3257. /* 23 */
  3258. /*!***************************************************************!*\
  3259. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3260. \***************************************************************/
  3261. /*! no static exports found */
  3262. /***/ (function(module, exports) {
  3263. function _classCallCheck(instance, Constructor) {
  3264. if (!(instance instanceof Constructor)) {
  3265. throw new TypeError("Cannot call a class as a function");
  3266. }
  3267. }
  3268. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3269. /***/ }),
  3270. /* 24 */
  3271. /*!************************************************************!*\
  3272. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3273. \************************************************************/
  3274. /*! no static exports found */
  3275. /***/ (function(module, exports, __webpack_require__) {
  3276. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3277. function _defineProperties(target, props) {
  3278. for (var i = 0; i < props.length; i++) {
  3279. var descriptor = props[i];
  3280. descriptor.enumerable = descriptor.enumerable || false;
  3281. descriptor.configurable = true;
  3282. if ("value" in descriptor) descriptor.writable = true;
  3283. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3284. }
  3285. }
  3286. function _createClass(Constructor, protoProps, staticProps) {
  3287. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3288. if (staticProps) _defineProperties(Constructor, staticProps);
  3289. Object.defineProperty(Constructor, "prototype", {
  3290. writable: false
  3291. });
  3292. return Constructor;
  3293. }
  3294. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3295. /***/ }),
  3296. /* 25 */
  3297. /*!******************************************************************************************!*\
  3298. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3299. \******************************************************************************************/
  3300. /*! exports provided: default */
  3301. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3302. "use strict";
  3303. __webpack_require__.r(__webpack_exports__);
  3304. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3305. * Vue.js v2.6.11
  3306. * (c) 2014-2023 Evan You
  3307. * Released under the MIT License.
  3308. */
  3309. /* */
  3310. var emptyObject = Object.freeze({});
  3311. // These helpers produce better VM code in JS engines due to their
  3312. // explicitness and function inlining.
  3313. function isUndef (v) {
  3314. return v === undefined || v === null
  3315. }
  3316. function isDef (v) {
  3317. return v !== undefined && v !== null
  3318. }
  3319. function isTrue (v) {
  3320. return v === true
  3321. }
  3322. function isFalse (v) {
  3323. return v === false
  3324. }
  3325. /**
  3326. * Check if value is primitive.
  3327. */
  3328. function isPrimitive (value) {
  3329. return (
  3330. typeof value === 'string' ||
  3331. typeof value === 'number' ||
  3332. // $flow-disable-line
  3333. typeof value === 'symbol' ||
  3334. typeof value === 'boolean'
  3335. )
  3336. }
  3337. /**
  3338. * Quick object check - this is primarily used to tell
  3339. * Objects from primitive values when we know the value
  3340. * is a JSON-compliant type.
  3341. */
  3342. function isObject (obj) {
  3343. return obj !== null && typeof obj === 'object'
  3344. }
  3345. /**
  3346. * Get the raw type string of a value, e.g., [object Object].
  3347. */
  3348. var _toString = Object.prototype.toString;
  3349. function toRawType (value) {
  3350. return _toString.call(value).slice(8, -1)
  3351. }
  3352. /**
  3353. * Strict object type check. Only returns true
  3354. * for plain JavaScript objects.
  3355. */
  3356. function isPlainObject (obj) {
  3357. return _toString.call(obj) === '[object Object]'
  3358. }
  3359. function isRegExp (v) {
  3360. return _toString.call(v) === '[object RegExp]'
  3361. }
  3362. /**
  3363. * Check if val is a valid array index.
  3364. */
  3365. function isValidArrayIndex (val) {
  3366. var n = parseFloat(String(val));
  3367. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3368. }
  3369. function isPromise (val) {
  3370. return (
  3371. isDef(val) &&
  3372. typeof val.then === 'function' &&
  3373. typeof val.catch === 'function'
  3374. )
  3375. }
  3376. /**
  3377. * Convert a value to a string that is actually rendered.
  3378. */
  3379. function toString (val) {
  3380. return val == null
  3381. ? ''
  3382. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3383. ? JSON.stringify(val, null, 2)
  3384. : String(val)
  3385. }
  3386. /**
  3387. * Convert an input value to a number for persistence.
  3388. * If the conversion fails, return original string.
  3389. */
  3390. function toNumber (val) {
  3391. var n = parseFloat(val);
  3392. return isNaN(n) ? val : n
  3393. }
  3394. /**
  3395. * Make a map and return a function for checking if a key
  3396. * is in that map.
  3397. */
  3398. function makeMap (
  3399. str,
  3400. expectsLowerCase
  3401. ) {
  3402. var map = Object.create(null);
  3403. var list = str.split(',');
  3404. for (var i = 0; i < list.length; i++) {
  3405. map[list[i]] = true;
  3406. }
  3407. return expectsLowerCase
  3408. ? function (val) { return map[val.toLowerCase()]; }
  3409. : function (val) { return map[val]; }
  3410. }
  3411. /**
  3412. * Check if a tag is a built-in tag.
  3413. */
  3414. var isBuiltInTag = makeMap('slot,component', true);
  3415. /**
  3416. * Check if an attribute is a reserved attribute.
  3417. */
  3418. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3419. /**
  3420. * Remove an item from an array.
  3421. */
  3422. function remove (arr, item) {
  3423. if (arr.length) {
  3424. var index = arr.indexOf(item);
  3425. if (index > -1) {
  3426. return arr.splice(index, 1)
  3427. }
  3428. }
  3429. }
  3430. /**
  3431. * Check whether an object has the property.
  3432. */
  3433. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3434. function hasOwn (obj, key) {
  3435. return hasOwnProperty.call(obj, key)
  3436. }
  3437. /**
  3438. * Create a cached version of a pure function.
  3439. */
  3440. function cached (fn) {
  3441. var cache = Object.create(null);
  3442. return (function cachedFn (str) {
  3443. var hit = cache[str];
  3444. return hit || (cache[str] = fn(str))
  3445. })
  3446. }
  3447. /**
  3448. * Camelize a hyphen-delimited string.
  3449. */
  3450. var camelizeRE = /-(\w)/g;
  3451. var camelize = cached(function (str) {
  3452. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3453. });
  3454. /**
  3455. * Capitalize a string.
  3456. */
  3457. var capitalize = cached(function (str) {
  3458. return str.charAt(0).toUpperCase() + str.slice(1)
  3459. });
  3460. /**
  3461. * Hyphenate a camelCase string.
  3462. */
  3463. var hyphenateRE = /\B([A-Z])/g;
  3464. var hyphenate = cached(function (str) {
  3465. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3466. });
  3467. /**
  3468. * Simple bind polyfill for environments that do not support it,
  3469. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3470. * since native bind is now performant enough in most browsers.
  3471. * But removing it would mean breaking code that was able to run in
  3472. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3473. */
  3474. /* istanbul ignore next */
  3475. function polyfillBind (fn, ctx) {
  3476. function boundFn (a) {
  3477. var l = arguments.length;
  3478. return l
  3479. ? l > 1
  3480. ? fn.apply(ctx, arguments)
  3481. : fn.call(ctx, a)
  3482. : fn.call(ctx)
  3483. }
  3484. boundFn._length = fn.length;
  3485. return boundFn
  3486. }
  3487. function nativeBind (fn, ctx) {
  3488. return fn.bind(ctx)
  3489. }
  3490. var bind = Function.prototype.bind
  3491. ? nativeBind
  3492. : polyfillBind;
  3493. /**
  3494. * Convert an Array-like object to a real Array.
  3495. */
  3496. function toArray (list, start) {
  3497. start = start || 0;
  3498. var i = list.length - start;
  3499. var ret = new Array(i);
  3500. while (i--) {
  3501. ret[i] = list[i + start];
  3502. }
  3503. return ret
  3504. }
  3505. /**
  3506. * Mix properties into target object.
  3507. */
  3508. function extend (to, _from) {
  3509. for (var key in _from) {
  3510. to[key] = _from[key];
  3511. }
  3512. return to
  3513. }
  3514. /**
  3515. * Merge an Array of Objects into a single Object.
  3516. */
  3517. function toObject (arr) {
  3518. var res = {};
  3519. for (var i = 0; i < arr.length; i++) {
  3520. if (arr[i]) {
  3521. extend(res, arr[i]);
  3522. }
  3523. }
  3524. return res
  3525. }
  3526. /* eslint-disable no-unused-vars */
  3527. /**
  3528. * Perform no operation.
  3529. * Stubbing args to make Flow happy without leaving useless transpiled code
  3530. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3531. */
  3532. function noop (a, b, c) {}
  3533. /**
  3534. * Always return false.
  3535. */
  3536. var no = function (a, b, c) { return false; };
  3537. /* eslint-enable no-unused-vars */
  3538. /**
  3539. * Return the same value.
  3540. */
  3541. var identity = function (_) { return _; };
  3542. /**
  3543. * Check if two values are loosely equal - that is,
  3544. * if they are plain objects, do they have the same shape?
  3545. */
  3546. function looseEqual (a, b) {
  3547. if (a === b) { return true }
  3548. var isObjectA = isObject(a);
  3549. var isObjectB = isObject(b);
  3550. if (isObjectA && isObjectB) {
  3551. try {
  3552. var isArrayA = Array.isArray(a);
  3553. var isArrayB = Array.isArray(b);
  3554. if (isArrayA && isArrayB) {
  3555. return a.length === b.length && a.every(function (e, i) {
  3556. return looseEqual(e, b[i])
  3557. })
  3558. } else if (a instanceof Date && b instanceof Date) {
  3559. return a.getTime() === b.getTime()
  3560. } else if (!isArrayA && !isArrayB) {
  3561. var keysA = Object.keys(a);
  3562. var keysB = Object.keys(b);
  3563. return keysA.length === keysB.length && keysA.every(function (key) {
  3564. return looseEqual(a[key], b[key])
  3565. })
  3566. } else {
  3567. /* istanbul ignore next */
  3568. return false
  3569. }
  3570. } catch (e) {
  3571. /* istanbul ignore next */
  3572. return false
  3573. }
  3574. } else if (!isObjectA && !isObjectB) {
  3575. return String(a) === String(b)
  3576. } else {
  3577. return false
  3578. }
  3579. }
  3580. /**
  3581. * Return the first index at which a loosely equal value can be
  3582. * found in the array (if value is a plain object, the array must
  3583. * contain an object of the same shape), or -1 if it is not present.
  3584. */
  3585. function looseIndexOf (arr, val) {
  3586. for (var i = 0; i < arr.length; i++) {
  3587. if (looseEqual(arr[i], val)) { return i }
  3588. }
  3589. return -1
  3590. }
  3591. /**
  3592. * Ensure a function is called only once.
  3593. */
  3594. function once (fn) {
  3595. var called = false;
  3596. return function () {
  3597. if (!called) {
  3598. called = true;
  3599. fn.apply(this, arguments);
  3600. }
  3601. }
  3602. }
  3603. var ASSET_TYPES = [
  3604. 'component',
  3605. 'directive',
  3606. 'filter'
  3607. ];
  3608. var LIFECYCLE_HOOKS = [
  3609. 'beforeCreate',
  3610. 'created',
  3611. 'beforeMount',
  3612. 'mounted',
  3613. 'beforeUpdate',
  3614. 'updated',
  3615. 'beforeDestroy',
  3616. 'destroyed',
  3617. 'activated',
  3618. 'deactivated',
  3619. 'errorCaptured',
  3620. 'serverPrefetch'
  3621. ];
  3622. /* */
  3623. var config = ({
  3624. /**
  3625. * Option merge strategies (used in core/util/options)
  3626. */
  3627. // $flow-disable-line
  3628. optionMergeStrategies: Object.create(null),
  3629. /**
  3630. * Whether to suppress warnings.
  3631. */
  3632. silent: false,
  3633. /**
  3634. * Show production mode tip message on boot?
  3635. */
  3636. productionTip: "development" !== 'production',
  3637. /**
  3638. * Whether to enable devtools
  3639. */
  3640. devtools: "development" !== 'production',
  3641. /**
  3642. * Whether to record perf
  3643. */
  3644. performance: false,
  3645. /**
  3646. * Error handler for watcher errors
  3647. */
  3648. errorHandler: null,
  3649. /**
  3650. * Warn handler for watcher warns
  3651. */
  3652. warnHandler: null,
  3653. /**
  3654. * Ignore certain custom elements
  3655. */
  3656. ignoredElements: [],
  3657. /**
  3658. * Custom user key aliases for v-on
  3659. */
  3660. // $flow-disable-line
  3661. keyCodes: Object.create(null),
  3662. /**
  3663. * Check if a tag is reserved so that it cannot be registered as a
  3664. * component. This is platform-dependent and may be overwritten.
  3665. */
  3666. isReservedTag: no,
  3667. /**
  3668. * Check if an attribute is reserved so that it cannot be used as a component
  3669. * prop. This is platform-dependent and may be overwritten.
  3670. */
  3671. isReservedAttr: no,
  3672. /**
  3673. * Check if a tag is an unknown element.
  3674. * Platform-dependent.
  3675. */
  3676. isUnknownElement: no,
  3677. /**
  3678. * Get the namespace of an element
  3679. */
  3680. getTagNamespace: noop,
  3681. /**
  3682. * Parse the real tag name for the specific platform.
  3683. */
  3684. parsePlatformTagName: identity,
  3685. /**
  3686. * Check if an attribute must be bound using property, e.g. value
  3687. * Platform-dependent.
  3688. */
  3689. mustUseProp: no,
  3690. /**
  3691. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3692. * This will significantly reduce performance if set to false.
  3693. */
  3694. async: true,
  3695. /**
  3696. * Exposed for legacy reasons
  3697. */
  3698. _lifecycleHooks: LIFECYCLE_HOOKS
  3699. });
  3700. /* */
  3701. /**
  3702. * unicode letters used for parsing html tags, component names and property paths.
  3703. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3704. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3705. */
  3706. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  3707. /**
  3708. * Check if a string starts with $ or _
  3709. */
  3710. function isReserved (str) {
  3711. var c = (str + '').charCodeAt(0);
  3712. return c === 0x24 || c === 0x5F
  3713. }
  3714. /**
  3715. * Define a property.
  3716. */
  3717. function def (obj, key, val, enumerable) {
  3718. Object.defineProperty(obj, key, {
  3719. value: val,
  3720. enumerable: !!enumerable,
  3721. writable: true,
  3722. configurable: true
  3723. });
  3724. }
  3725. /**
  3726. * Parse simple path.
  3727. */
  3728. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3729. function parsePath (path) {
  3730. if (bailRE.test(path)) {
  3731. return
  3732. }
  3733. var segments = path.split('.');
  3734. return function (obj) {
  3735. for (var i = 0; i < segments.length; i++) {
  3736. if (!obj) { return }
  3737. obj = obj[segments[i]];
  3738. }
  3739. return obj
  3740. }
  3741. }
  3742. /* */
  3743. // can we use __proto__?
  3744. var hasProto = '__proto__' in {};
  3745. // Browser environment sniffing
  3746. var inBrowser = typeof window !== 'undefined';
  3747. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3748. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3749. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3750. var isIE = UA && /msie|trident/.test(UA);
  3751. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3752. var isEdge = UA && UA.indexOf('edge/') > 0;
  3753. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3754. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3755. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3756. var isPhantomJS = UA && /phantomjs/.test(UA);
  3757. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3758. // Firefox has a "watch" function on Object.prototype...
  3759. var nativeWatch = ({}).watch;
  3760. if (inBrowser) {
  3761. try {
  3762. var opts = {};
  3763. Object.defineProperty(opts, 'passive', ({
  3764. get: function get () {
  3765. }
  3766. })); // https://github.com/facebook/flow/issues/285
  3767. window.addEventListener('test-passive', null, opts);
  3768. } catch (e) {}
  3769. }
  3770. // this needs to be lazy-evaled because vue may be required before
  3771. // vue-server-renderer can set VUE_ENV
  3772. var _isServer;
  3773. var isServerRendering = function () {
  3774. if (_isServer === undefined) {
  3775. /* istanbul ignore if */
  3776. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3777. // detect presence of vue-server-renderer and avoid
  3778. // Webpack shimming the process
  3779. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3780. } else {
  3781. _isServer = false;
  3782. }
  3783. }
  3784. return _isServer
  3785. };
  3786. // detect devtools
  3787. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3788. /* istanbul ignore next */
  3789. function isNative (Ctor) {
  3790. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3791. }
  3792. var hasSymbol =
  3793. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3794. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3795. var _Set;
  3796. /* istanbul ignore if */ // $flow-disable-line
  3797. if (typeof Set !== 'undefined' && isNative(Set)) {
  3798. // use native Set when available.
  3799. _Set = Set;
  3800. } else {
  3801. // a non-standard Set polyfill that only works with primitive keys.
  3802. _Set = /*@__PURE__*/(function () {
  3803. function Set () {
  3804. this.set = Object.create(null);
  3805. }
  3806. Set.prototype.has = function has (key) {
  3807. return this.set[key] === true
  3808. };
  3809. Set.prototype.add = function add (key) {
  3810. this.set[key] = true;
  3811. };
  3812. Set.prototype.clear = function clear () {
  3813. this.set = Object.create(null);
  3814. };
  3815. return Set;
  3816. }());
  3817. }
  3818. /* */
  3819. var warn = noop;
  3820. var tip = noop;
  3821. var generateComponentTrace = (noop); // work around flow check
  3822. var formatComponentName = (noop);
  3823. if (true) {
  3824. var hasConsole = typeof console !== 'undefined';
  3825. var classifyRE = /(?:^|[-_])(\w)/g;
  3826. var classify = function (str) { return str
  3827. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3828. .replace(/[-_]/g, ''); };
  3829. warn = function (msg, vm) {
  3830. var trace = vm ? generateComponentTrace(vm) : '';
  3831. if (config.warnHandler) {
  3832. config.warnHandler.call(null, msg, vm, trace);
  3833. } else if (hasConsole && (!config.silent)) {
  3834. console.error(("[Vue warn]: " + msg + trace));
  3835. }
  3836. };
  3837. tip = function (msg, vm) {
  3838. if (hasConsole && (!config.silent)) {
  3839. console.warn("[Vue tip]: " + msg + (
  3840. vm ? generateComponentTrace(vm) : ''
  3841. ));
  3842. }
  3843. };
  3844. formatComponentName = function (vm, includeFile) {
  3845. if (vm.$root === vm) {
  3846. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3847. return ('') + vm.$options.__file
  3848. }
  3849. return '<Root>'
  3850. }
  3851. var options = typeof vm === 'function' && vm.cid != null
  3852. ? vm.options
  3853. : vm._isVue
  3854. ? vm.$options || vm.constructor.options
  3855. : vm;
  3856. var name = options.name || options._componentTag;
  3857. var file = options.__file;
  3858. if (!name && file) {
  3859. var match = file.match(/([^/\\]+)\.vue$/);
  3860. name = match && match[1];
  3861. }
  3862. return (
  3863. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3864. (file && includeFile !== false ? (" at " + file) : '')
  3865. )
  3866. };
  3867. var repeat = function (str, n) {
  3868. var res = '';
  3869. while (n) {
  3870. if (n % 2 === 1) { res += str; }
  3871. if (n > 1) { str += str; }
  3872. n >>= 1;
  3873. }
  3874. return res
  3875. };
  3876. generateComponentTrace = function (vm) {
  3877. if (vm._isVue && vm.$parent) {
  3878. var tree = [];
  3879. var currentRecursiveSequence = 0;
  3880. while (vm && vm.$options.name !== 'PageBody') {
  3881. if (tree.length > 0) {
  3882. var last = tree[tree.length - 1];
  3883. if (last.constructor === vm.constructor) {
  3884. currentRecursiveSequence++;
  3885. vm = vm.$parent;
  3886. continue
  3887. } else if (currentRecursiveSequence > 0) {
  3888. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3889. currentRecursiveSequence = 0;
  3890. }
  3891. }
  3892. !vm.$options.isReserved && tree.push(vm);
  3893. vm = vm.$parent;
  3894. }
  3895. return '\n\nfound in\n\n' + tree
  3896. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3897. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3898. : formatComponentName(vm))); })
  3899. .join('\n')
  3900. } else {
  3901. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3902. }
  3903. };
  3904. }
  3905. /* */
  3906. var uid = 0;
  3907. /**
  3908. * A dep is an observable that can have multiple
  3909. * directives subscribing to it.
  3910. */
  3911. var Dep = function Dep () {
  3912. this.id = uid++;
  3913. this.subs = [];
  3914. };
  3915. Dep.prototype.addSub = function addSub (sub) {
  3916. this.subs.push(sub);
  3917. };
  3918. Dep.prototype.removeSub = function removeSub (sub) {
  3919. remove(this.subs, sub);
  3920. };
  3921. Dep.prototype.depend = function depend () {
  3922. if (Dep.SharedObject.target) {
  3923. Dep.SharedObject.target.addDep(this);
  3924. }
  3925. };
  3926. Dep.prototype.notify = function notify () {
  3927. // stabilize the subscriber list first
  3928. var subs = this.subs.slice();
  3929. if ( true && !config.async) {
  3930. // subs aren't sorted in scheduler if not running async
  3931. // we need to sort them now to make sure they fire in correct
  3932. // order
  3933. subs.sort(function (a, b) { return a.id - b.id; });
  3934. }
  3935. for (var i = 0, l = subs.length; i < l; i++) {
  3936. subs[i].update();
  3937. }
  3938. };
  3939. // The current target watcher being evaluated.
  3940. // This is globally unique because only one watcher
  3941. // can be evaluated at a time.
  3942. // fixed by xxxxxx (nvue shared vuex)
  3943. /* eslint-disable no-undef */
  3944. Dep.SharedObject = {};
  3945. Dep.SharedObject.target = null;
  3946. Dep.SharedObject.targetStack = [];
  3947. function pushTarget (target) {
  3948. Dep.SharedObject.targetStack.push(target);
  3949. Dep.SharedObject.target = target;
  3950. Dep.target = target;
  3951. }
  3952. function popTarget () {
  3953. Dep.SharedObject.targetStack.pop();
  3954. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3955. Dep.target = Dep.SharedObject.target;
  3956. }
  3957. /* */
  3958. var VNode = function VNode (
  3959. tag,
  3960. data,
  3961. children,
  3962. text,
  3963. elm,
  3964. context,
  3965. componentOptions,
  3966. asyncFactory
  3967. ) {
  3968. this.tag = tag;
  3969. this.data = data;
  3970. this.children = children;
  3971. this.text = text;
  3972. this.elm = elm;
  3973. this.ns = undefined;
  3974. this.context = context;
  3975. this.fnContext = undefined;
  3976. this.fnOptions = undefined;
  3977. this.fnScopeId = undefined;
  3978. this.key = data && data.key;
  3979. this.componentOptions = componentOptions;
  3980. this.componentInstance = undefined;
  3981. this.parent = undefined;
  3982. this.raw = false;
  3983. this.isStatic = false;
  3984. this.isRootInsert = true;
  3985. this.isComment = false;
  3986. this.isCloned = false;
  3987. this.isOnce = false;
  3988. this.asyncFactory = asyncFactory;
  3989. this.asyncMeta = undefined;
  3990. this.isAsyncPlaceholder = false;
  3991. };
  3992. var prototypeAccessors = { child: { configurable: true } };
  3993. // DEPRECATED: alias for componentInstance for backwards compat.
  3994. /* istanbul ignore next */
  3995. prototypeAccessors.child.get = function () {
  3996. return this.componentInstance
  3997. };
  3998. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3999. var createEmptyVNode = function (text) {
  4000. if ( text === void 0 ) text = '';
  4001. var node = new VNode();
  4002. node.text = text;
  4003. node.isComment = true;
  4004. return node
  4005. };
  4006. function createTextVNode (val) {
  4007. return new VNode(undefined, undefined, undefined, String(val))
  4008. }
  4009. // optimized shallow clone
  4010. // used for static nodes and slot nodes because they may be reused across
  4011. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4012. // on their elm reference.
  4013. function cloneVNode (vnode) {
  4014. var cloned = new VNode(
  4015. vnode.tag,
  4016. vnode.data,
  4017. // #7975
  4018. // clone children array to avoid mutating original in case of cloning
  4019. // a child.
  4020. vnode.children && vnode.children.slice(),
  4021. vnode.text,
  4022. vnode.elm,
  4023. vnode.context,
  4024. vnode.componentOptions,
  4025. vnode.asyncFactory
  4026. );
  4027. cloned.ns = vnode.ns;
  4028. cloned.isStatic = vnode.isStatic;
  4029. cloned.key = vnode.key;
  4030. cloned.isComment = vnode.isComment;
  4031. cloned.fnContext = vnode.fnContext;
  4032. cloned.fnOptions = vnode.fnOptions;
  4033. cloned.fnScopeId = vnode.fnScopeId;
  4034. cloned.asyncMeta = vnode.asyncMeta;
  4035. cloned.isCloned = true;
  4036. return cloned
  4037. }
  4038. /*
  4039. * not type checking this file because flow doesn't play well with
  4040. * dynamically accessing methods on Array prototype
  4041. */
  4042. var arrayProto = Array.prototype;
  4043. var arrayMethods = Object.create(arrayProto);
  4044. var methodsToPatch = [
  4045. 'push',
  4046. 'pop',
  4047. 'shift',
  4048. 'unshift',
  4049. 'splice',
  4050. 'sort',
  4051. 'reverse'
  4052. ];
  4053. /**
  4054. * Intercept mutating methods and emit events
  4055. */
  4056. methodsToPatch.forEach(function (method) {
  4057. // cache original method
  4058. var original = arrayProto[method];
  4059. def(arrayMethods, method, function mutator () {
  4060. var args = [], len = arguments.length;
  4061. while ( len-- ) args[ len ] = arguments[ len ];
  4062. var result = original.apply(this, args);
  4063. var ob = this.__ob__;
  4064. var inserted;
  4065. switch (method) {
  4066. case 'push':
  4067. case 'unshift':
  4068. inserted = args;
  4069. break
  4070. case 'splice':
  4071. inserted = args.slice(2);
  4072. break
  4073. }
  4074. if (inserted) { ob.observeArray(inserted); }
  4075. // notify change
  4076. ob.dep.notify();
  4077. return result
  4078. });
  4079. });
  4080. /* */
  4081. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4082. /**
  4083. * In some cases we may want to disable observation inside a component's
  4084. * update computation.
  4085. */
  4086. var shouldObserve = true;
  4087. function toggleObserving (value) {
  4088. shouldObserve = value;
  4089. }
  4090. /**
  4091. * Observer class that is attached to each observed
  4092. * object. Once attached, the observer converts the target
  4093. * object's property keys into getter/setters that
  4094. * collect dependencies and dispatch updates.
  4095. */
  4096. var Observer = function Observer (value) {
  4097. this.value = value;
  4098. this.dep = new Dep();
  4099. this.vmCount = 0;
  4100. def(value, '__ob__', this);
  4101. if (Array.isArray(value)) {
  4102. if (hasProto) {
  4103. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4104. if(value.push !== value.__proto__.push){
  4105. copyAugment(value, arrayMethods, arrayKeys);
  4106. } else {
  4107. protoAugment(value, arrayMethods);
  4108. }
  4109. }
  4110. } else {
  4111. copyAugment(value, arrayMethods, arrayKeys);
  4112. }
  4113. this.observeArray(value);
  4114. } else {
  4115. this.walk(value);
  4116. }
  4117. };
  4118. /**
  4119. * Walk through all properties and convert them into
  4120. * getter/setters. This method should only be called when
  4121. * value type is Object.
  4122. */
  4123. Observer.prototype.walk = function walk (obj) {
  4124. var keys = Object.keys(obj);
  4125. for (var i = 0; i < keys.length; i++) {
  4126. defineReactive$$1(obj, keys[i]);
  4127. }
  4128. };
  4129. /**
  4130. * Observe a list of Array items.
  4131. */
  4132. Observer.prototype.observeArray = function observeArray (items) {
  4133. for (var i = 0, l = items.length; i < l; i++) {
  4134. observe(items[i]);
  4135. }
  4136. };
  4137. // helpers
  4138. /**
  4139. * Augment a target Object or Array by intercepting
  4140. * the prototype chain using __proto__
  4141. */
  4142. function protoAugment (target, src) {
  4143. /* eslint-disable no-proto */
  4144. target.__proto__ = src;
  4145. /* eslint-enable no-proto */
  4146. }
  4147. /**
  4148. * Augment a target Object or Array by defining
  4149. * hidden properties.
  4150. */
  4151. /* istanbul ignore next */
  4152. function copyAugment (target, src, keys) {
  4153. for (var i = 0, l = keys.length; i < l; i++) {
  4154. var key = keys[i];
  4155. def(target, key, src[key]);
  4156. }
  4157. }
  4158. /**
  4159. * Attempt to create an observer instance for a value,
  4160. * returns the new observer if successfully observed,
  4161. * or the existing observer if the value already has one.
  4162. */
  4163. function observe (value, asRootData) {
  4164. if (!isObject(value) || value instanceof VNode) {
  4165. return
  4166. }
  4167. var ob;
  4168. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4169. ob = value.__ob__;
  4170. } else if (
  4171. shouldObserve &&
  4172. !isServerRendering() &&
  4173. (Array.isArray(value) || isPlainObject(value)) &&
  4174. Object.isExtensible(value) &&
  4175. !value._isVue &&
  4176. !value.__v_isMPComponent
  4177. ) {
  4178. ob = new Observer(value);
  4179. }
  4180. if (asRootData && ob) {
  4181. ob.vmCount++;
  4182. }
  4183. return ob
  4184. }
  4185. /**
  4186. * Define a reactive property on an Object.
  4187. */
  4188. function defineReactive$$1 (
  4189. obj,
  4190. key,
  4191. val,
  4192. customSetter,
  4193. shallow
  4194. ) {
  4195. var dep = new Dep();
  4196. var property = Object.getOwnPropertyDescriptor(obj, key);
  4197. if (property && property.configurable === false) {
  4198. return
  4199. }
  4200. // cater for pre-defined getter/setters
  4201. var getter = property && property.get;
  4202. var setter = property && property.set;
  4203. if ((!getter || setter) && arguments.length === 2) {
  4204. val = obj[key];
  4205. }
  4206. var childOb = !shallow && observe(val);
  4207. Object.defineProperty(obj, key, {
  4208. enumerable: true,
  4209. configurable: true,
  4210. get: function reactiveGetter () {
  4211. var value = getter ? getter.call(obj) : val;
  4212. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4213. dep.depend();
  4214. if (childOb) {
  4215. childOb.dep.depend();
  4216. if (Array.isArray(value)) {
  4217. dependArray(value);
  4218. }
  4219. }
  4220. }
  4221. return value
  4222. },
  4223. set: function reactiveSetter (newVal) {
  4224. var value = getter ? getter.call(obj) : val;
  4225. /* eslint-disable no-self-compare */
  4226. if (newVal === value || (newVal !== newVal && value !== value)) {
  4227. return
  4228. }
  4229. /* eslint-enable no-self-compare */
  4230. if ( true && customSetter) {
  4231. customSetter();
  4232. }
  4233. // #7981: for accessor properties without setter
  4234. if (getter && !setter) { return }
  4235. if (setter) {
  4236. setter.call(obj, newVal);
  4237. } else {
  4238. val = newVal;
  4239. }
  4240. childOb = !shallow && observe(newVal);
  4241. dep.notify();
  4242. }
  4243. });
  4244. }
  4245. /**
  4246. * Set a property on an object. Adds the new property and
  4247. * triggers change notification if the property doesn't
  4248. * already exist.
  4249. */
  4250. function set (target, key, val) {
  4251. if ( true &&
  4252. (isUndef(target) || isPrimitive(target))
  4253. ) {
  4254. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4255. }
  4256. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4257. target.length = Math.max(target.length, key);
  4258. target.splice(key, 1, val);
  4259. return val
  4260. }
  4261. if (key in target && !(key in Object.prototype)) {
  4262. target[key] = val;
  4263. return val
  4264. }
  4265. var ob = (target).__ob__;
  4266. if (target._isVue || (ob && ob.vmCount)) {
  4267. true && warn(
  4268. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4269. 'at runtime - declare it upfront in the data option.'
  4270. );
  4271. return val
  4272. }
  4273. if (!ob) {
  4274. target[key] = val;
  4275. return val
  4276. }
  4277. defineReactive$$1(ob.value, key, val);
  4278. ob.dep.notify();
  4279. return val
  4280. }
  4281. /**
  4282. * Delete a property and trigger change if necessary.
  4283. */
  4284. function del (target, key) {
  4285. if ( true &&
  4286. (isUndef(target) || isPrimitive(target))
  4287. ) {
  4288. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4289. }
  4290. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4291. target.splice(key, 1);
  4292. return
  4293. }
  4294. var ob = (target).__ob__;
  4295. if (target._isVue || (ob && ob.vmCount)) {
  4296. true && warn(
  4297. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4298. '- just set it to null.'
  4299. );
  4300. return
  4301. }
  4302. if (!hasOwn(target, key)) {
  4303. return
  4304. }
  4305. delete target[key];
  4306. if (!ob) {
  4307. return
  4308. }
  4309. ob.dep.notify();
  4310. }
  4311. /**
  4312. * Collect dependencies on array elements when the array is touched, since
  4313. * we cannot intercept array element access like property getters.
  4314. */
  4315. function dependArray (value) {
  4316. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4317. e = value[i];
  4318. e && e.__ob__ && e.__ob__.dep.depend();
  4319. if (Array.isArray(e)) {
  4320. dependArray(e);
  4321. }
  4322. }
  4323. }
  4324. /* */
  4325. /**
  4326. * Option overwriting strategies are functions that handle
  4327. * how to merge a parent option value and a child option
  4328. * value into the final value.
  4329. */
  4330. var strats = config.optionMergeStrategies;
  4331. /**
  4332. * Options with restrictions
  4333. */
  4334. if (true) {
  4335. strats.el = strats.propsData = function (parent, child, vm, key) {
  4336. if (!vm) {
  4337. warn(
  4338. "option \"" + key + "\" can only be used during instance " +
  4339. 'creation with the `new` keyword.'
  4340. );
  4341. }
  4342. return defaultStrat(parent, child)
  4343. };
  4344. }
  4345. /**
  4346. * Helper that recursively merges two data objects together.
  4347. */
  4348. function mergeData (to, from) {
  4349. if (!from) { return to }
  4350. var key, toVal, fromVal;
  4351. var keys = hasSymbol
  4352. ? Reflect.ownKeys(from)
  4353. : Object.keys(from);
  4354. for (var i = 0; i < keys.length; i++) {
  4355. key = keys[i];
  4356. // in case the object is already observed...
  4357. if (key === '__ob__') { continue }
  4358. toVal = to[key];
  4359. fromVal = from[key];
  4360. if (!hasOwn(to, key)) {
  4361. set(to, key, fromVal);
  4362. } else if (
  4363. toVal !== fromVal &&
  4364. isPlainObject(toVal) &&
  4365. isPlainObject(fromVal)
  4366. ) {
  4367. mergeData(toVal, fromVal);
  4368. }
  4369. }
  4370. return to
  4371. }
  4372. /**
  4373. * Data
  4374. */
  4375. function mergeDataOrFn (
  4376. parentVal,
  4377. childVal,
  4378. vm
  4379. ) {
  4380. if (!vm) {
  4381. // in a Vue.extend merge, both should be functions
  4382. if (!childVal) {
  4383. return parentVal
  4384. }
  4385. if (!parentVal) {
  4386. return childVal
  4387. }
  4388. // when parentVal & childVal are both present,
  4389. // we need to return a function that returns the
  4390. // merged result of both functions... no need to
  4391. // check if parentVal is a function here because
  4392. // it has to be a function to pass previous merges.
  4393. return function mergedDataFn () {
  4394. return mergeData(
  4395. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4396. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4397. )
  4398. }
  4399. } else {
  4400. return function mergedInstanceDataFn () {
  4401. // instance merge
  4402. var instanceData = typeof childVal === 'function'
  4403. ? childVal.call(vm, vm)
  4404. : childVal;
  4405. var defaultData = typeof parentVal === 'function'
  4406. ? parentVal.call(vm, vm)
  4407. : parentVal;
  4408. if (instanceData) {
  4409. return mergeData(instanceData, defaultData)
  4410. } else {
  4411. return defaultData
  4412. }
  4413. }
  4414. }
  4415. }
  4416. strats.data = function (
  4417. parentVal,
  4418. childVal,
  4419. vm
  4420. ) {
  4421. if (!vm) {
  4422. if (childVal && typeof childVal !== 'function') {
  4423. true && warn(
  4424. 'The "data" option should be a function ' +
  4425. 'that returns a per-instance value in component ' +
  4426. 'definitions.',
  4427. vm
  4428. );
  4429. return parentVal
  4430. }
  4431. return mergeDataOrFn(parentVal, childVal)
  4432. }
  4433. return mergeDataOrFn(parentVal, childVal, vm)
  4434. };
  4435. /**
  4436. * Hooks and props are merged as arrays.
  4437. */
  4438. function mergeHook (
  4439. parentVal,
  4440. childVal
  4441. ) {
  4442. var res = childVal
  4443. ? parentVal
  4444. ? parentVal.concat(childVal)
  4445. : Array.isArray(childVal)
  4446. ? childVal
  4447. : [childVal]
  4448. : parentVal;
  4449. return res
  4450. ? dedupeHooks(res)
  4451. : res
  4452. }
  4453. function dedupeHooks (hooks) {
  4454. var res = [];
  4455. for (var i = 0; i < hooks.length; i++) {
  4456. if (res.indexOf(hooks[i]) === -1) {
  4457. res.push(hooks[i]);
  4458. }
  4459. }
  4460. return res
  4461. }
  4462. LIFECYCLE_HOOKS.forEach(function (hook) {
  4463. strats[hook] = mergeHook;
  4464. });
  4465. /**
  4466. * Assets
  4467. *
  4468. * When a vm is present (instance creation), we need to do
  4469. * a three-way merge between constructor options, instance
  4470. * options and parent options.
  4471. */
  4472. function mergeAssets (
  4473. parentVal,
  4474. childVal,
  4475. vm,
  4476. key
  4477. ) {
  4478. var res = Object.create(parentVal || null);
  4479. if (childVal) {
  4480. true && assertObjectType(key, childVal, vm);
  4481. return extend(res, childVal)
  4482. } else {
  4483. return res
  4484. }
  4485. }
  4486. ASSET_TYPES.forEach(function (type) {
  4487. strats[type + 's'] = mergeAssets;
  4488. });
  4489. /**
  4490. * Watchers.
  4491. *
  4492. * Watchers hashes should not overwrite one
  4493. * another, so we merge them as arrays.
  4494. */
  4495. strats.watch = function (
  4496. parentVal,
  4497. childVal,
  4498. vm,
  4499. key
  4500. ) {
  4501. // work around Firefox's Object.prototype.watch...
  4502. if (parentVal === nativeWatch) { parentVal = undefined; }
  4503. if (childVal === nativeWatch) { childVal = undefined; }
  4504. /* istanbul ignore if */
  4505. if (!childVal) { return Object.create(parentVal || null) }
  4506. if (true) {
  4507. assertObjectType(key, childVal, vm);
  4508. }
  4509. if (!parentVal) { return childVal }
  4510. var ret = {};
  4511. extend(ret, parentVal);
  4512. for (var key$1 in childVal) {
  4513. var parent = ret[key$1];
  4514. var child = childVal[key$1];
  4515. if (parent && !Array.isArray(parent)) {
  4516. parent = [parent];
  4517. }
  4518. ret[key$1] = parent
  4519. ? parent.concat(child)
  4520. : Array.isArray(child) ? child : [child];
  4521. }
  4522. return ret
  4523. };
  4524. /**
  4525. * Other object hashes.
  4526. */
  4527. strats.props =
  4528. strats.methods =
  4529. strats.inject =
  4530. strats.computed = function (
  4531. parentVal,
  4532. childVal,
  4533. vm,
  4534. key
  4535. ) {
  4536. if (childVal && "development" !== 'production') {
  4537. assertObjectType(key, childVal, vm);
  4538. }
  4539. if (!parentVal) { return childVal }
  4540. var ret = Object.create(null);
  4541. extend(ret, parentVal);
  4542. if (childVal) { extend(ret, childVal); }
  4543. return ret
  4544. };
  4545. strats.provide = mergeDataOrFn;
  4546. /**
  4547. * Default strategy.
  4548. */
  4549. var defaultStrat = function (parentVal, childVal) {
  4550. return childVal === undefined
  4551. ? parentVal
  4552. : childVal
  4553. };
  4554. /**
  4555. * Validate component names
  4556. */
  4557. function checkComponents (options) {
  4558. for (var key in options.components) {
  4559. validateComponentName(key);
  4560. }
  4561. }
  4562. function validateComponentName (name) {
  4563. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4564. warn(
  4565. 'Invalid component name: "' + name + '". Component names ' +
  4566. 'should conform to valid custom element name in html5 specification.'
  4567. );
  4568. }
  4569. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4570. warn(
  4571. 'Do not use built-in or reserved HTML elements as component ' +
  4572. 'id: ' + name
  4573. );
  4574. }
  4575. }
  4576. /**
  4577. * Ensure all props option syntax are normalized into the
  4578. * Object-based format.
  4579. */
  4580. function normalizeProps (options, vm) {
  4581. var props = options.props;
  4582. if (!props) { return }
  4583. var res = {};
  4584. var i, val, name;
  4585. if (Array.isArray(props)) {
  4586. i = props.length;
  4587. while (i--) {
  4588. val = props[i];
  4589. if (typeof val === 'string') {
  4590. name = camelize(val);
  4591. res[name] = { type: null };
  4592. } else if (true) {
  4593. warn('props must be strings when using array syntax.');
  4594. }
  4595. }
  4596. } else if (isPlainObject(props)) {
  4597. for (var key in props) {
  4598. val = props[key];
  4599. name = camelize(key);
  4600. res[name] = isPlainObject(val)
  4601. ? val
  4602. : { type: val };
  4603. }
  4604. } else if (true) {
  4605. warn(
  4606. "Invalid value for option \"props\": expected an Array or an Object, " +
  4607. "but got " + (toRawType(props)) + ".",
  4608. vm
  4609. );
  4610. }
  4611. options.props = res;
  4612. }
  4613. /**
  4614. * Normalize all injections into Object-based format
  4615. */
  4616. function normalizeInject (options, vm) {
  4617. var inject = options.inject;
  4618. if (!inject) { return }
  4619. var normalized = options.inject = {};
  4620. if (Array.isArray(inject)) {
  4621. for (var i = 0; i < inject.length; i++) {
  4622. normalized[inject[i]] = { from: inject[i] };
  4623. }
  4624. } else if (isPlainObject(inject)) {
  4625. for (var key in inject) {
  4626. var val = inject[key];
  4627. normalized[key] = isPlainObject(val)
  4628. ? extend({ from: key }, val)
  4629. : { from: val };
  4630. }
  4631. } else if (true) {
  4632. warn(
  4633. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4634. "but got " + (toRawType(inject)) + ".",
  4635. vm
  4636. );
  4637. }
  4638. }
  4639. /**
  4640. * Normalize raw function directives into object format.
  4641. */
  4642. function normalizeDirectives (options) {
  4643. var dirs = options.directives;
  4644. if (dirs) {
  4645. for (var key in dirs) {
  4646. var def$$1 = dirs[key];
  4647. if (typeof def$$1 === 'function') {
  4648. dirs[key] = { bind: def$$1, update: def$$1 };
  4649. }
  4650. }
  4651. }
  4652. }
  4653. function assertObjectType (name, value, vm) {
  4654. if (!isPlainObject(value)) {
  4655. warn(
  4656. "Invalid value for option \"" + name + "\": expected an Object, " +
  4657. "but got " + (toRawType(value)) + ".",
  4658. vm
  4659. );
  4660. }
  4661. }
  4662. /**
  4663. * Merge two option objects into a new one.
  4664. * Core utility used in both instantiation and inheritance.
  4665. */
  4666. function mergeOptions (
  4667. parent,
  4668. child,
  4669. vm
  4670. ) {
  4671. if (true) {
  4672. checkComponents(child);
  4673. }
  4674. if (typeof child === 'function') {
  4675. child = child.options;
  4676. }
  4677. normalizeProps(child, vm);
  4678. normalizeInject(child, vm);
  4679. normalizeDirectives(child);
  4680. // Apply extends and mixins on the child options,
  4681. // but only if it is a raw options object that isn't
  4682. // the result of another mergeOptions call.
  4683. // Only merged options has the _base property.
  4684. if (!child._base) {
  4685. if (child.extends) {
  4686. parent = mergeOptions(parent, child.extends, vm);
  4687. }
  4688. if (child.mixins) {
  4689. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4690. parent = mergeOptions(parent, child.mixins[i], vm);
  4691. }
  4692. }
  4693. }
  4694. var options = {};
  4695. var key;
  4696. for (key in parent) {
  4697. mergeField(key);
  4698. }
  4699. for (key in child) {
  4700. if (!hasOwn(parent, key)) {
  4701. mergeField(key);
  4702. }
  4703. }
  4704. function mergeField (key) {
  4705. var strat = strats[key] || defaultStrat;
  4706. options[key] = strat(parent[key], child[key], vm, key);
  4707. }
  4708. return options
  4709. }
  4710. /**
  4711. * Resolve an asset.
  4712. * This function is used because child instances need access
  4713. * to assets defined in its ancestor chain.
  4714. */
  4715. function resolveAsset (
  4716. options,
  4717. type,
  4718. id,
  4719. warnMissing
  4720. ) {
  4721. /* istanbul ignore if */
  4722. if (typeof id !== 'string') {
  4723. return
  4724. }
  4725. var assets = options[type];
  4726. // check local registration variations first
  4727. if (hasOwn(assets, id)) { return assets[id] }
  4728. var camelizedId = camelize(id);
  4729. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4730. var PascalCaseId = capitalize(camelizedId);
  4731. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4732. // fallback to prototype chain
  4733. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4734. if ( true && warnMissing && !res) {
  4735. warn(
  4736. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4737. options
  4738. );
  4739. }
  4740. return res
  4741. }
  4742. /* */
  4743. function validateProp (
  4744. key,
  4745. propOptions,
  4746. propsData,
  4747. vm
  4748. ) {
  4749. var prop = propOptions[key];
  4750. var absent = !hasOwn(propsData, key);
  4751. var value = propsData[key];
  4752. // boolean casting
  4753. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4754. if (booleanIndex > -1) {
  4755. if (absent && !hasOwn(prop, 'default')) {
  4756. value = false;
  4757. } else if (value === '' || value === hyphenate(key)) {
  4758. // only cast empty string / same name to boolean if
  4759. // boolean has higher priority
  4760. var stringIndex = getTypeIndex(String, prop.type);
  4761. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4762. value = true;
  4763. }
  4764. }
  4765. }
  4766. // check default value
  4767. if (value === undefined) {
  4768. value = getPropDefaultValue(vm, prop, key);
  4769. // since the default value is a fresh copy,
  4770. // make sure to observe it.
  4771. var prevShouldObserve = shouldObserve;
  4772. toggleObserving(true);
  4773. observe(value);
  4774. toggleObserving(prevShouldObserve);
  4775. }
  4776. if (
  4777. true
  4778. ) {
  4779. assertProp(prop, key, value, vm, absent);
  4780. }
  4781. return value
  4782. }
  4783. /**
  4784. * Get the default value of a prop.
  4785. */
  4786. function getPropDefaultValue (vm, prop, key) {
  4787. // no default, return undefined
  4788. if (!hasOwn(prop, 'default')) {
  4789. return undefined
  4790. }
  4791. var def = prop.default;
  4792. // warn against non-factory defaults for Object & Array
  4793. if ( true && isObject(def)) {
  4794. warn(
  4795. 'Invalid default value for prop "' + key + '": ' +
  4796. 'Props with type Object/Array must use a factory function ' +
  4797. 'to return the default value.',
  4798. vm
  4799. );
  4800. }
  4801. // the raw prop value was also undefined from previous render,
  4802. // return previous default value to avoid unnecessary watcher trigger
  4803. if (vm && vm.$options.propsData &&
  4804. vm.$options.propsData[key] === undefined &&
  4805. vm._props[key] !== undefined
  4806. ) {
  4807. return vm._props[key]
  4808. }
  4809. // call factory function for non-Function types
  4810. // a value is Function if its prototype is function even across different execution context
  4811. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4812. ? def.call(vm)
  4813. : def
  4814. }
  4815. /**
  4816. * Assert whether a prop is valid.
  4817. */
  4818. function assertProp (
  4819. prop,
  4820. name,
  4821. value,
  4822. vm,
  4823. absent
  4824. ) {
  4825. if (prop.required && absent) {
  4826. warn(
  4827. 'Missing required prop: "' + name + '"',
  4828. vm
  4829. );
  4830. return
  4831. }
  4832. if (value == null && !prop.required) {
  4833. return
  4834. }
  4835. var type = prop.type;
  4836. var valid = !type || type === true;
  4837. var expectedTypes = [];
  4838. if (type) {
  4839. if (!Array.isArray(type)) {
  4840. type = [type];
  4841. }
  4842. for (var i = 0; i < type.length && !valid; i++) {
  4843. var assertedType = assertType(value, type[i]);
  4844. expectedTypes.push(assertedType.expectedType || '');
  4845. valid = assertedType.valid;
  4846. }
  4847. }
  4848. if (!valid) {
  4849. warn(
  4850. getInvalidTypeMessage(name, value, expectedTypes),
  4851. vm
  4852. );
  4853. return
  4854. }
  4855. var validator = prop.validator;
  4856. if (validator) {
  4857. if (!validator(value)) {
  4858. warn(
  4859. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4860. vm
  4861. );
  4862. }
  4863. }
  4864. }
  4865. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4866. function assertType (value, type) {
  4867. var valid;
  4868. var expectedType = getType(type);
  4869. if (simpleCheckRE.test(expectedType)) {
  4870. var t = typeof value;
  4871. valid = t === expectedType.toLowerCase();
  4872. // for primitive wrapper objects
  4873. if (!valid && t === 'object') {
  4874. valid = value instanceof type;
  4875. }
  4876. } else if (expectedType === 'Object') {
  4877. valid = isPlainObject(value);
  4878. } else if (expectedType === 'Array') {
  4879. valid = Array.isArray(value);
  4880. } else {
  4881. valid = value instanceof type;
  4882. }
  4883. return {
  4884. valid: valid,
  4885. expectedType: expectedType
  4886. }
  4887. }
  4888. /**
  4889. * Use function string name to check built-in types,
  4890. * because a simple equality check will fail when running
  4891. * across different vms / iframes.
  4892. */
  4893. function getType (fn) {
  4894. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4895. return match ? match[1] : ''
  4896. }
  4897. function isSameType (a, b) {
  4898. return getType(a) === getType(b)
  4899. }
  4900. function getTypeIndex (type, expectedTypes) {
  4901. if (!Array.isArray(expectedTypes)) {
  4902. return isSameType(expectedTypes, type) ? 0 : -1
  4903. }
  4904. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4905. if (isSameType(expectedTypes[i], type)) {
  4906. return i
  4907. }
  4908. }
  4909. return -1
  4910. }
  4911. function getInvalidTypeMessage (name, value, expectedTypes) {
  4912. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4913. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4914. var expectedType = expectedTypes[0];
  4915. var receivedType = toRawType(value);
  4916. var expectedValue = styleValue(value, expectedType);
  4917. var receivedValue = styleValue(value, receivedType);
  4918. // check if we need to specify expected value
  4919. if (expectedTypes.length === 1 &&
  4920. isExplicable(expectedType) &&
  4921. !isBoolean(expectedType, receivedType)) {
  4922. message += " with value " + expectedValue;
  4923. }
  4924. message += ", got " + receivedType + " ";
  4925. // check if we need to specify received value
  4926. if (isExplicable(receivedType)) {
  4927. message += "with value " + receivedValue + ".";
  4928. }
  4929. return message
  4930. }
  4931. function styleValue (value, type) {
  4932. if (type === 'String') {
  4933. return ("\"" + value + "\"")
  4934. } else if (type === 'Number') {
  4935. return ("" + (Number(value)))
  4936. } else {
  4937. return ("" + value)
  4938. }
  4939. }
  4940. function isExplicable (value) {
  4941. var explicitTypes = ['string', 'number', 'boolean'];
  4942. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4943. }
  4944. function isBoolean () {
  4945. var args = [], len = arguments.length;
  4946. while ( len-- ) args[ len ] = arguments[ len ];
  4947. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4948. }
  4949. /* */
  4950. function handleError (err, vm, info) {
  4951. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4952. // See: https://github.com/vuejs/vuex/issues/1505
  4953. pushTarget();
  4954. try {
  4955. if (vm) {
  4956. var cur = vm;
  4957. while ((cur = cur.$parent)) {
  4958. var hooks = cur.$options.errorCaptured;
  4959. if (hooks) {
  4960. for (var i = 0; i < hooks.length; i++) {
  4961. try {
  4962. var capture = hooks[i].call(cur, err, vm, info) === false;
  4963. if (capture) { return }
  4964. } catch (e) {
  4965. globalHandleError(e, cur, 'errorCaptured hook');
  4966. }
  4967. }
  4968. }
  4969. }
  4970. }
  4971. globalHandleError(err, vm, info);
  4972. } finally {
  4973. popTarget();
  4974. }
  4975. }
  4976. function invokeWithErrorHandling (
  4977. handler,
  4978. context,
  4979. args,
  4980. vm,
  4981. info
  4982. ) {
  4983. var res;
  4984. try {
  4985. res = args ? handler.apply(context, args) : handler.call(context);
  4986. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4987. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4988. // issue #9511
  4989. // avoid catch triggering multiple times when nested calls
  4990. res._handled = true;
  4991. }
  4992. } catch (e) {
  4993. handleError(e, vm, info);
  4994. }
  4995. return res
  4996. }
  4997. function globalHandleError (err, vm, info) {
  4998. if (config.errorHandler) {
  4999. try {
  5000. return config.errorHandler.call(null, err, vm, info)
  5001. } catch (e) {
  5002. // if the user intentionally throws the original error in the handler,
  5003. // do not log it twice
  5004. if (e !== err) {
  5005. logError(e, null, 'config.errorHandler');
  5006. }
  5007. }
  5008. }
  5009. logError(err, vm, info);
  5010. }
  5011. function logError (err, vm, info) {
  5012. if (true) {
  5013. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5014. }
  5015. /* istanbul ignore else */
  5016. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5017. console.error(err);
  5018. } else {
  5019. throw err
  5020. }
  5021. }
  5022. /* */
  5023. var callbacks = [];
  5024. var pending = false;
  5025. function flushCallbacks () {
  5026. pending = false;
  5027. var copies = callbacks.slice(0);
  5028. callbacks.length = 0;
  5029. for (var i = 0; i < copies.length; i++) {
  5030. copies[i]();
  5031. }
  5032. }
  5033. // Here we have async deferring wrappers using microtasks.
  5034. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5035. // However, it has subtle problems when state is changed right before repaint
  5036. // (e.g. #6813, out-in transitions).
  5037. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5038. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5039. // So we now use microtasks everywhere, again.
  5040. // A major drawback of this tradeoff is that there are some scenarios
  5041. // where microtasks have too high a priority and fire in between supposedly
  5042. // sequential events (e.g. #4521, #6690, which have workarounds)
  5043. // or even between bubbling of the same event (#6566).
  5044. var timerFunc;
  5045. // The nextTick behavior leverages the microtask queue, which can be accessed
  5046. // via either native Promise.then or MutationObserver.
  5047. // MutationObserver has wider support, however it is seriously bugged in
  5048. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5049. // completely stops working after triggering a few times... so, if native
  5050. // Promise is available, we will use it:
  5051. /* istanbul ignore next, $flow-disable-line */
  5052. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5053. var p = Promise.resolve();
  5054. timerFunc = function () {
  5055. p.then(flushCallbacks);
  5056. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5057. // it can get stuck in a weird state where callbacks are pushed into the
  5058. // microtask queue but the queue isn't being flushed, until the browser
  5059. // needs to do some other work, e.g. handle a timer. Therefore we can
  5060. // "force" the microtask queue to be flushed by adding an empty timer.
  5061. if (isIOS) { setTimeout(noop); }
  5062. };
  5063. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5064. isNative(MutationObserver) ||
  5065. // PhantomJS and iOS 7.x
  5066. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5067. )) {
  5068. // Use MutationObserver where native Promise is not available,
  5069. // e.g. PhantomJS, iOS7, Android 4.4
  5070. // (#6466 MutationObserver is unreliable in IE11)
  5071. var counter = 1;
  5072. var observer = new MutationObserver(flushCallbacks);
  5073. var textNode = document.createTextNode(String(counter));
  5074. observer.observe(textNode, {
  5075. characterData: true
  5076. });
  5077. timerFunc = function () {
  5078. counter = (counter + 1) % 2;
  5079. textNode.data = String(counter);
  5080. };
  5081. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5082. // Fallback to setImmediate.
  5083. // Technically it leverages the (macro) task queue,
  5084. // but it is still a better choice than setTimeout.
  5085. timerFunc = function () {
  5086. setImmediate(flushCallbacks);
  5087. };
  5088. } else {
  5089. // Fallback to setTimeout.
  5090. timerFunc = function () {
  5091. setTimeout(flushCallbacks, 0);
  5092. };
  5093. }
  5094. function nextTick (cb, ctx) {
  5095. var _resolve;
  5096. callbacks.push(function () {
  5097. if (cb) {
  5098. try {
  5099. cb.call(ctx);
  5100. } catch (e) {
  5101. handleError(e, ctx, 'nextTick');
  5102. }
  5103. } else if (_resolve) {
  5104. _resolve(ctx);
  5105. }
  5106. });
  5107. if (!pending) {
  5108. pending = true;
  5109. timerFunc();
  5110. }
  5111. // $flow-disable-line
  5112. if (!cb && typeof Promise !== 'undefined') {
  5113. return new Promise(function (resolve) {
  5114. _resolve = resolve;
  5115. })
  5116. }
  5117. }
  5118. /* */
  5119. /* not type checking this file because flow doesn't play well with Proxy */
  5120. var initProxy;
  5121. if (true) {
  5122. var allowedGlobals = makeMap(
  5123. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5124. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5125. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5126. 'require' // for Webpack/Browserify
  5127. );
  5128. var warnNonPresent = function (target, key) {
  5129. warn(
  5130. "Property or method \"" + key + "\" is not defined on the instance but " +
  5131. 'referenced during render. Make sure that this property is reactive, ' +
  5132. 'either in the data option, or for class-based components, by ' +
  5133. 'initializing the property. ' +
  5134. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5135. target
  5136. );
  5137. };
  5138. var warnReservedPrefix = function (target, key) {
  5139. warn(
  5140. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5141. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5142. 'prevent conflicts with Vue internals. ' +
  5143. 'See: https://vuejs.org/v2/api/#data',
  5144. target
  5145. );
  5146. };
  5147. var hasProxy =
  5148. typeof Proxy !== 'undefined' && isNative(Proxy);
  5149. if (hasProxy) {
  5150. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5151. config.keyCodes = new Proxy(config.keyCodes, {
  5152. set: function set (target, key, value) {
  5153. if (isBuiltInModifier(key)) {
  5154. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5155. return false
  5156. } else {
  5157. target[key] = value;
  5158. return true
  5159. }
  5160. }
  5161. });
  5162. }
  5163. var hasHandler = {
  5164. has: function has (target, key) {
  5165. var has = key in target;
  5166. var isAllowed = allowedGlobals(key) ||
  5167. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5168. if (!has && !isAllowed) {
  5169. if (key in target.$data) { warnReservedPrefix(target, key); }
  5170. else { warnNonPresent(target, key); }
  5171. }
  5172. return has || !isAllowed
  5173. }
  5174. };
  5175. var getHandler = {
  5176. get: function get (target, key) {
  5177. if (typeof key === 'string' && !(key in target)) {
  5178. if (key in target.$data) { warnReservedPrefix(target, key); }
  5179. else { warnNonPresent(target, key); }
  5180. }
  5181. return target[key]
  5182. }
  5183. };
  5184. initProxy = function initProxy (vm) {
  5185. if (hasProxy) {
  5186. // determine which proxy handler to use
  5187. var options = vm.$options;
  5188. var handlers = options.render && options.render._withStripped
  5189. ? getHandler
  5190. : hasHandler;
  5191. vm._renderProxy = new Proxy(vm, handlers);
  5192. } else {
  5193. vm._renderProxy = vm;
  5194. }
  5195. };
  5196. }
  5197. /* */
  5198. var seenObjects = new _Set();
  5199. /**
  5200. * Recursively traverse an object to evoke all converted
  5201. * getters, so that every nested property inside the object
  5202. * is collected as a "deep" dependency.
  5203. */
  5204. function traverse (val) {
  5205. _traverse(val, seenObjects);
  5206. seenObjects.clear();
  5207. }
  5208. function _traverse (val, seen) {
  5209. var i, keys;
  5210. var isA = Array.isArray(val);
  5211. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5212. return
  5213. }
  5214. if (val.__ob__) {
  5215. var depId = val.__ob__.dep.id;
  5216. if (seen.has(depId)) {
  5217. return
  5218. }
  5219. seen.add(depId);
  5220. }
  5221. if (isA) {
  5222. i = val.length;
  5223. while (i--) { _traverse(val[i], seen); }
  5224. } else {
  5225. keys = Object.keys(val);
  5226. i = keys.length;
  5227. while (i--) { _traverse(val[keys[i]], seen); }
  5228. }
  5229. }
  5230. var mark;
  5231. var measure;
  5232. if (true) {
  5233. var perf = inBrowser && window.performance;
  5234. /* istanbul ignore if */
  5235. if (
  5236. perf &&
  5237. perf.mark &&
  5238. perf.measure &&
  5239. perf.clearMarks &&
  5240. perf.clearMeasures
  5241. ) {
  5242. mark = function (tag) { return perf.mark(tag); };
  5243. measure = function (name, startTag, endTag) {
  5244. perf.measure(name, startTag, endTag);
  5245. perf.clearMarks(startTag);
  5246. perf.clearMarks(endTag);
  5247. // perf.clearMeasures(name)
  5248. };
  5249. }
  5250. }
  5251. /* */
  5252. var normalizeEvent = cached(function (name) {
  5253. var passive = name.charAt(0) === '&';
  5254. name = passive ? name.slice(1) : name;
  5255. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5256. name = once$$1 ? name.slice(1) : name;
  5257. var capture = name.charAt(0) === '!';
  5258. name = capture ? name.slice(1) : name;
  5259. return {
  5260. name: name,
  5261. once: once$$1,
  5262. capture: capture,
  5263. passive: passive
  5264. }
  5265. });
  5266. function createFnInvoker (fns, vm) {
  5267. function invoker () {
  5268. var arguments$1 = arguments;
  5269. var fns = invoker.fns;
  5270. if (Array.isArray(fns)) {
  5271. var cloned = fns.slice();
  5272. for (var i = 0; i < cloned.length; i++) {
  5273. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5274. }
  5275. } else {
  5276. // return handler return value for single handlers
  5277. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5278. }
  5279. }
  5280. invoker.fns = fns;
  5281. return invoker
  5282. }
  5283. function updateListeners (
  5284. on,
  5285. oldOn,
  5286. add,
  5287. remove$$1,
  5288. createOnceHandler,
  5289. vm
  5290. ) {
  5291. var name, def$$1, cur, old, event;
  5292. for (name in on) {
  5293. def$$1 = cur = on[name];
  5294. old = oldOn[name];
  5295. event = normalizeEvent(name);
  5296. if (isUndef(cur)) {
  5297. true && warn(
  5298. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5299. vm
  5300. );
  5301. } else if (isUndef(old)) {
  5302. if (isUndef(cur.fns)) {
  5303. cur = on[name] = createFnInvoker(cur, vm);
  5304. }
  5305. if (isTrue(event.once)) {
  5306. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5307. }
  5308. add(event.name, cur, event.capture, event.passive, event.params);
  5309. } else if (cur !== old) {
  5310. old.fns = cur;
  5311. on[name] = old;
  5312. }
  5313. }
  5314. for (name in oldOn) {
  5315. if (isUndef(on[name])) {
  5316. event = normalizeEvent(name);
  5317. remove$$1(event.name, oldOn[name], event.capture);
  5318. }
  5319. }
  5320. }
  5321. /* */
  5322. /* */
  5323. // fixed by xxxxxx (mp properties)
  5324. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5325. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5326. if (isUndef(propOptions)) {
  5327. return res
  5328. }
  5329. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5330. var attrs = data.attrs;
  5331. var props = data.props;
  5332. if (isDef(attrs) || isDef(props)) {
  5333. for (var key in propOptions) {
  5334. var altKey = hyphenate(key);
  5335. var result = checkProp(res, props, key, altKey, true) ||
  5336. checkProp(res, attrs, key, altKey, false);
  5337. // externalClass
  5338. if (
  5339. result &&
  5340. res[key] &&
  5341. externalClasses.indexOf(altKey) !== -1 &&
  5342. context[camelize(res[key])]
  5343. ) {
  5344. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5345. res[key] = context[camelize(res[key])];
  5346. }
  5347. }
  5348. }
  5349. return res
  5350. }
  5351. function extractPropsFromVNodeData (
  5352. data,
  5353. Ctor,
  5354. tag,
  5355. context// fixed by xxxxxx
  5356. ) {
  5357. // we are only extracting raw values here.
  5358. // validation and default values are handled in the child
  5359. // component itself.
  5360. var propOptions = Ctor.options.props;
  5361. if (isUndef(propOptions)) {
  5362. // fixed by xxxxxx
  5363. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5364. }
  5365. var res = {};
  5366. var attrs = data.attrs;
  5367. var props = data.props;
  5368. if (isDef(attrs) || isDef(props)) {
  5369. for (var key in propOptions) {
  5370. var altKey = hyphenate(key);
  5371. if (true) {
  5372. var keyInLowerCase = key.toLowerCase();
  5373. if (
  5374. key !== keyInLowerCase &&
  5375. attrs && hasOwn(attrs, keyInLowerCase)
  5376. ) {
  5377. tip(
  5378. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5379. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5380. " \"" + key + "\". " +
  5381. "Note that HTML attributes are case-insensitive and camelCased " +
  5382. "props need to use their kebab-case equivalents when using in-DOM " +
  5383. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5384. );
  5385. }
  5386. }
  5387. checkProp(res, props, key, altKey, true) ||
  5388. checkProp(res, attrs, key, altKey, false);
  5389. }
  5390. }
  5391. // fixed by xxxxxx
  5392. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5393. }
  5394. function checkProp (
  5395. res,
  5396. hash,
  5397. key,
  5398. altKey,
  5399. preserve
  5400. ) {
  5401. if (isDef(hash)) {
  5402. if (hasOwn(hash, key)) {
  5403. res[key] = hash[key];
  5404. if (!preserve) {
  5405. delete hash[key];
  5406. }
  5407. return true
  5408. } else if (hasOwn(hash, altKey)) {
  5409. res[key] = hash[altKey];
  5410. if (!preserve) {
  5411. delete hash[altKey];
  5412. }
  5413. return true
  5414. }
  5415. }
  5416. return false
  5417. }
  5418. /* */
  5419. // The template compiler attempts to minimize the need for normalization by
  5420. // statically analyzing the template at compile time.
  5421. //
  5422. // For plain HTML markup, normalization can be completely skipped because the
  5423. // generated render function is guaranteed to return Array<VNode>. There are
  5424. // two cases where extra normalization is needed:
  5425. // 1. When the children contains components - because a functional component
  5426. // may return an Array instead of a single root. In this case, just a simple
  5427. // normalization is needed - if any child is an Array, we flatten the whole
  5428. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5429. // because functional components already normalize their own children.
  5430. function simpleNormalizeChildren (children) {
  5431. for (var i = 0; i < children.length; i++) {
  5432. if (Array.isArray(children[i])) {
  5433. return Array.prototype.concat.apply([], children)
  5434. }
  5435. }
  5436. return children
  5437. }
  5438. // 2. When the children contains constructs that always generated nested Arrays,
  5439. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5440. // with hand-written render functions / JSX. In such cases a full normalization
  5441. // is needed to cater to all possible types of children values.
  5442. function normalizeChildren (children) {
  5443. return isPrimitive(children)
  5444. ? [createTextVNode(children)]
  5445. : Array.isArray(children)
  5446. ? normalizeArrayChildren(children)
  5447. : undefined
  5448. }
  5449. function isTextNode (node) {
  5450. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5451. }
  5452. function normalizeArrayChildren (children, nestedIndex) {
  5453. var res = [];
  5454. var i, c, lastIndex, last;
  5455. for (i = 0; i < children.length; i++) {
  5456. c = children[i];
  5457. if (isUndef(c) || typeof c === 'boolean') { continue }
  5458. lastIndex = res.length - 1;
  5459. last = res[lastIndex];
  5460. // nested
  5461. if (Array.isArray(c)) {
  5462. if (c.length > 0) {
  5463. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5464. // merge adjacent text nodes
  5465. if (isTextNode(c[0]) && isTextNode(last)) {
  5466. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5467. c.shift();
  5468. }
  5469. res.push.apply(res, c);
  5470. }
  5471. } else if (isPrimitive(c)) {
  5472. if (isTextNode(last)) {
  5473. // merge adjacent text nodes
  5474. // this is necessary for SSR hydration because text nodes are
  5475. // essentially merged when rendered to HTML strings
  5476. res[lastIndex] = createTextVNode(last.text + c);
  5477. } else if (c !== '') {
  5478. // convert primitive to vnode
  5479. res.push(createTextVNode(c));
  5480. }
  5481. } else {
  5482. if (isTextNode(c) && isTextNode(last)) {
  5483. // merge adjacent text nodes
  5484. res[lastIndex] = createTextVNode(last.text + c.text);
  5485. } else {
  5486. // default key for nested array children (likely generated by v-for)
  5487. if (isTrue(children._isVList) &&
  5488. isDef(c.tag) &&
  5489. isUndef(c.key) &&
  5490. isDef(nestedIndex)) {
  5491. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5492. }
  5493. res.push(c);
  5494. }
  5495. }
  5496. }
  5497. return res
  5498. }
  5499. /* */
  5500. function initProvide (vm) {
  5501. var provide = vm.$options.provide;
  5502. if (provide) {
  5503. vm._provided = typeof provide === 'function'
  5504. ? provide.call(vm)
  5505. : provide;
  5506. }
  5507. }
  5508. function initInjections (vm) {
  5509. var result = resolveInject(vm.$options.inject, vm);
  5510. if (result) {
  5511. toggleObserving(false);
  5512. Object.keys(result).forEach(function (key) {
  5513. /* istanbul ignore else */
  5514. if (true) {
  5515. defineReactive$$1(vm, key, result[key], function () {
  5516. warn(
  5517. "Avoid mutating an injected value directly since the changes will be " +
  5518. "overwritten whenever the provided component re-renders. " +
  5519. "injection being mutated: \"" + key + "\"",
  5520. vm
  5521. );
  5522. });
  5523. } else {}
  5524. });
  5525. toggleObserving(true);
  5526. }
  5527. }
  5528. function resolveInject (inject, vm) {
  5529. if (inject) {
  5530. // inject is :any because flow is not smart enough to figure out cached
  5531. var result = Object.create(null);
  5532. var keys = hasSymbol
  5533. ? Reflect.ownKeys(inject)
  5534. : Object.keys(inject);
  5535. for (var i = 0; i < keys.length; i++) {
  5536. var key = keys[i];
  5537. // #6574 in case the inject object is observed...
  5538. if (key === '__ob__') { continue }
  5539. var provideKey = inject[key].from;
  5540. var source = vm;
  5541. while (source) {
  5542. if (source._provided && hasOwn(source._provided, provideKey)) {
  5543. result[key] = source._provided[provideKey];
  5544. break
  5545. }
  5546. source = source.$parent;
  5547. }
  5548. if (!source) {
  5549. if ('default' in inject[key]) {
  5550. var provideDefault = inject[key].default;
  5551. result[key] = typeof provideDefault === 'function'
  5552. ? provideDefault.call(vm)
  5553. : provideDefault;
  5554. } else if (true) {
  5555. warn(("Injection \"" + key + "\" not found"), vm);
  5556. }
  5557. }
  5558. }
  5559. return result
  5560. }
  5561. }
  5562. /* */
  5563. /**
  5564. * Runtime helper for resolving raw children VNodes into a slot object.
  5565. */
  5566. function resolveSlots (
  5567. children,
  5568. context
  5569. ) {
  5570. if (!children || !children.length) {
  5571. return {}
  5572. }
  5573. var slots = {};
  5574. for (var i = 0, l = children.length; i < l; i++) {
  5575. var child = children[i];
  5576. var data = child.data;
  5577. // remove slot attribute if the node is resolved as a Vue slot node
  5578. if (data && data.attrs && data.attrs.slot) {
  5579. delete data.attrs.slot;
  5580. }
  5581. // named slots should only be respected if the vnode was rendered in the
  5582. // same context.
  5583. if ((child.context === context || child.fnContext === context) &&
  5584. data && data.slot != null
  5585. ) {
  5586. var name = data.slot;
  5587. var slot = (slots[name] || (slots[name] = []));
  5588. if (child.tag === 'template') {
  5589. slot.push.apply(slot, child.children || []);
  5590. } else {
  5591. slot.push(child);
  5592. }
  5593. } else {
  5594. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5595. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5596. (slots['page'] || (slots['page'] = [])).push(child);
  5597. }else{
  5598. (slots.default || (slots.default = [])).push(child);
  5599. }
  5600. }
  5601. }
  5602. // ignore slots that contains only whitespace
  5603. for (var name$1 in slots) {
  5604. if (slots[name$1].every(isWhitespace)) {
  5605. delete slots[name$1];
  5606. }
  5607. }
  5608. return slots
  5609. }
  5610. function isWhitespace (node) {
  5611. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5612. }
  5613. /* */
  5614. function normalizeScopedSlots (
  5615. slots,
  5616. normalSlots,
  5617. prevSlots
  5618. ) {
  5619. var res;
  5620. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5621. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5622. var key = slots && slots.$key;
  5623. if (!slots) {
  5624. res = {};
  5625. } else if (slots._normalized) {
  5626. // fast path 1: child component re-render only, parent did not change
  5627. return slots._normalized
  5628. } else if (
  5629. isStable &&
  5630. prevSlots &&
  5631. prevSlots !== emptyObject &&
  5632. key === prevSlots.$key &&
  5633. !hasNormalSlots &&
  5634. !prevSlots.$hasNormal
  5635. ) {
  5636. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5637. // only need to normalize once
  5638. return prevSlots
  5639. } else {
  5640. res = {};
  5641. for (var key$1 in slots) {
  5642. if (slots[key$1] && key$1[0] !== '$') {
  5643. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5644. }
  5645. }
  5646. }
  5647. // expose normal slots on scopedSlots
  5648. for (var key$2 in normalSlots) {
  5649. if (!(key$2 in res)) {
  5650. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5651. }
  5652. }
  5653. // avoriaz seems to mock a non-extensible $scopedSlots object
  5654. // and when that is passed down this would cause an error
  5655. if (slots && Object.isExtensible(slots)) {
  5656. (slots)._normalized = res;
  5657. }
  5658. def(res, '$stable', isStable);
  5659. def(res, '$key', key);
  5660. def(res, '$hasNormal', hasNormalSlots);
  5661. return res
  5662. }
  5663. function normalizeScopedSlot(normalSlots, key, fn) {
  5664. var normalized = function () {
  5665. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5666. res = res && typeof res === 'object' && !Array.isArray(res)
  5667. ? [res] // single vnode
  5668. : normalizeChildren(res);
  5669. return res && (
  5670. res.length === 0 ||
  5671. (res.length === 1 && res[0].isComment) // #9658
  5672. ) ? undefined
  5673. : res
  5674. };
  5675. // this is a slot using the new v-slot syntax without scope. although it is
  5676. // compiled as a scoped slot, render fn users would expect it to be present
  5677. // on this.$slots because the usage is semantically a normal slot.
  5678. if (fn.proxy) {
  5679. Object.defineProperty(normalSlots, key, {
  5680. get: normalized,
  5681. enumerable: true,
  5682. configurable: true
  5683. });
  5684. }
  5685. return normalized
  5686. }
  5687. function proxyNormalSlot(slots, key) {
  5688. return function () { return slots[key]; }
  5689. }
  5690. /* */
  5691. /**
  5692. * Runtime helper for rendering v-for lists.
  5693. */
  5694. function renderList (
  5695. val,
  5696. render
  5697. ) {
  5698. var ret, i, l, keys, key;
  5699. if (Array.isArray(val) || typeof val === 'string') {
  5700. ret = new Array(val.length);
  5701. for (i = 0, l = val.length; i < l; i++) {
  5702. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5703. }
  5704. } else if (typeof val === 'number') {
  5705. ret = new Array(val);
  5706. for (i = 0; i < val; i++) {
  5707. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5708. }
  5709. } else if (isObject(val)) {
  5710. if (hasSymbol && val[Symbol.iterator]) {
  5711. ret = [];
  5712. var iterator = val[Symbol.iterator]();
  5713. var result = iterator.next();
  5714. while (!result.done) {
  5715. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5716. result = iterator.next();
  5717. }
  5718. } else {
  5719. keys = Object.keys(val);
  5720. ret = new Array(keys.length);
  5721. for (i = 0, l = keys.length; i < l; i++) {
  5722. key = keys[i];
  5723. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5724. }
  5725. }
  5726. }
  5727. if (!isDef(ret)) {
  5728. ret = [];
  5729. }
  5730. (ret)._isVList = true;
  5731. return ret
  5732. }
  5733. /* */
  5734. /**
  5735. * Runtime helper for rendering <slot>
  5736. */
  5737. function renderSlot (
  5738. name,
  5739. fallback,
  5740. props,
  5741. bindObject
  5742. ) {
  5743. var scopedSlotFn = this.$scopedSlots[name];
  5744. var nodes;
  5745. if (scopedSlotFn) { // scoped slot
  5746. props = props || {};
  5747. if (bindObject) {
  5748. if ( true && !isObject(bindObject)) {
  5749. warn(
  5750. 'slot v-bind without argument expects an Object',
  5751. this
  5752. );
  5753. }
  5754. props = extend(extend({}, bindObject), props);
  5755. }
  5756. // fixed by xxxxxx app-plus scopedSlot
  5757. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5758. } else {
  5759. nodes = this.$slots[name] || fallback;
  5760. }
  5761. var target = props && props.slot;
  5762. if (target) {
  5763. return this.$createElement('template', { slot: target }, nodes)
  5764. } else {
  5765. return nodes
  5766. }
  5767. }
  5768. /* */
  5769. /**
  5770. * Runtime helper for resolving filters
  5771. */
  5772. function resolveFilter (id) {
  5773. return resolveAsset(this.$options, 'filters', id, true) || identity
  5774. }
  5775. /* */
  5776. function isKeyNotMatch (expect, actual) {
  5777. if (Array.isArray(expect)) {
  5778. return expect.indexOf(actual) === -1
  5779. } else {
  5780. return expect !== actual
  5781. }
  5782. }
  5783. /**
  5784. * Runtime helper for checking keyCodes from config.
  5785. * exposed as Vue.prototype._k
  5786. * passing in eventKeyName as last argument separately for backwards compat
  5787. */
  5788. function checkKeyCodes (
  5789. eventKeyCode,
  5790. key,
  5791. builtInKeyCode,
  5792. eventKeyName,
  5793. builtInKeyName
  5794. ) {
  5795. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5796. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5797. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5798. } else if (mappedKeyCode) {
  5799. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5800. } else if (eventKeyName) {
  5801. return hyphenate(eventKeyName) !== key
  5802. }
  5803. }
  5804. /* */
  5805. /**
  5806. * Runtime helper for merging v-bind="object" into a VNode's data.
  5807. */
  5808. function bindObjectProps (
  5809. data,
  5810. tag,
  5811. value,
  5812. asProp,
  5813. isSync
  5814. ) {
  5815. if (value) {
  5816. if (!isObject(value)) {
  5817. true && warn(
  5818. 'v-bind without argument expects an Object or Array value',
  5819. this
  5820. );
  5821. } else {
  5822. if (Array.isArray(value)) {
  5823. value = toObject(value);
  5824. }
  5825. var hash;
  5826. var loop = function ( key ) {
  5827. if (
  5828. key === 'class' ||
  5829. key === 'style' ||
  5830. isReservedAttribute(key)
  5831. ) {
  5832. hash = data;
  5833. } else {
  5834. var type = data.attrs && data.attrs.type;
  5835. hash = asProp || config.mustUseProp(tag, type, key)
  5836. ? data.domProps || (data.domProps = {})
  5837. : data.attrs || (data.attrs = {});
  5838. }
  5839. var camelizedKey = camelize(key);
  5840. var hyphenatedKey = hyphenate(key);
  5841. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5842. hash[key] = value[key];
  5843. if (isSync) {
  5844. var on = data.on || (data.on = {});
  5845. on[("update:" + key)] = function ($event) {
  5846. value[key] = $event;
  5847. };
  5848. }
  5849. }
  5850. };
  5851. for (var key in value) loop( key );
  5852. }
  5853. }
  5854. return data
  5855. }
  5856. /* */
  5857. /**
  5858. * Runtime helper for rendering static trees.
  5859. */
  5860. function renderStatic (
  5861. index,
  5862. isInFor
  5863. ) {
  5864. var cached = this._staticTrees || (this._staticTrees = []);
  5865. var tree = cached[index];
  5866. // if has already-rendered static tree and not inside v-for,
  5867. // we can reuse the same tree.
  5868. if (tree && !isInFor) {
  5869. return tree
  5870. }
  5871. // otherwise, render a fresh tree.
  5872. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5873. this._renderProxy,
  5874. null,
  5875. this // for render fns generated for functional component templates
  5876. );
  5877. markStatic(tree, ("__static__" + index), false);
  5878. return tree
  5879. }
  5880. /**
  5881. * Runtime helper for v-once.
  5882. * Effectively it means marking the node as static with a unique key.
  5883. */
  5884. function markOnce (
  5885. tree,
  5886. index,
  5887. key
  5888. ) {
  5889. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5890. return tree
  5891. }
  5892. function markStatic (
  5893. tree,
  5894. key,
  5895. isOnce
  5896. ) {
  5897. if (Array.isArray(tree)) {
  5898. for (var i = 0; i < tree.length; i++) {
  5899. if (tree[i] && typeof tree[i] !== 'string') {
  5900. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5901. }
  5902. }
  5903. } else {
  5904. markStaticNode(tree, key, isOnce);
  5905. }
  5906. }
  5907. function markStaticNode (node, key, isOnce) {
  5908. node.isStatic = true;
  5909. node.key = key;
  5910. node.isOnce = isOnce;
  5911. }
  5912. /* */
  5913. function bindObjectListeners (data, value) {
  5914. if (value) {
  5915. if (!isPlainObject(value)) {
  5916. true && warn(
  5917. 'v-on without argument expects an Object value',
  5918. this
  5919. );
  5920. } else {
  5921. var on = data.on = data.on ? extend({}, data.on) : {};
  5922. for (var key in value) {
  5923. var existing = on[key];
  5924. var ours = value[key];
  5925. on[key] = existing ? [].concat(existing, ours) : ours;
  5926. }
  5927. }
  5928. }
  5929. return data
  5930. }
  5931. /* */
  5932. function resolveScopedSlots (
  5933. fns, // see flow/vnode
  5934. res,
  5935. // the following are added in 2.6
  5936. hasDynamicKeys,
  5937. contentHashKey
  5938. ) {
  5939. res = res || { $stable: !hasDynamicKeys };
  5940. for (var i = 0; i < fns.length; i++) {
  5941. var slot = fns[i];
  5942. if (Array.isArray(slot)) {
  5943. resolveScopedSlots(slot, res, hasDynamicKeys);
  5944. } else if (slot) {
  5945. // marker for reverse proxying v-slot without scope on this.$slots
  5946. if (slot.proxy) {
  5947. slot.fn.proxy = true;
  5948. }
  5949. res[slot.key] = slot.fn;
  5950. }
  5951. }
  5952. if (contentHashKey) {
  5953. (res).$key = contentHashKey;
  5954. }
  5955. return res
  5956. }
  5957. /* */
  5958. function bindDynamicKeys (baseObj, values) {
  5959. for (var i = 0; i < values.length; i += 2) {
  5960. var key = values[i];
  5961. if (typeof key === 'string' && key) {
  5962. baseObj[values[i]] = values[i + 1];
  5963. } else if ( true && key !== '' && key !== null) {
  5964. // null is a special value for explicitly removing a binding
  5965. warn(
  5966. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5967. this
  5968. );
  5969. }
  5970. }
  5971. return baseObj
  5972. }
  5973. // helper to dynamically append modifier runtime markers to event names.
  5974. // ensure only append when value is already string, otherwise it will be cast
  5975. // to string and cause the type check to miss.
  5976. function prependModifier (value, symbol) {
  5977. return typeof value === 'string' ? symbol + value : value
  5978. }
  5979. /* */
  5980. function installRenderHelpers (target) {
  5981. target._o = markOnce;
  5982. target._n = toNumber;
  5983. target._s = toString;
  5984. target._l = renderList;
  5985. target._t = renderSlot;
  5986. target._q = looseEqual;
  5987. target._i = looseIndexOf;
  5988. target._m = renderStatic;
  5989. target._f = resolveFilter;
  5990. target._k = checkKeyCodes;
  5991. target._b = bindObjectProps;
  5992. target._v = createTextVNode;
  5993. target._e = createEmptyVNode;
  5994. target._u = resolveScopedSlots;
  5995. target._g = bindObjectListeners;
  5996. target._d = bindDynamicKeys;
  5997. target._p = prependModifier;
  5998. }
  5999. /* */
  6000. function FunctionalRenderContext (
  6001. data,
  6002. props,
  6003. children,
  6004. parent,
  6005. Ctor
  6006. ) {
  6007. var this$1 = this;
  6008. var options = Ctor.options;
  6009. // ensure the createElement function in functional components
  6010. // gets a unique context - this is necessary for correct named slot check
  6011. var contextVm;
  6012. if (hasOwn(parent, '_uid')) {
  6013. contextVm = Object.create(parent);
  6014. // $flow-disable-line
  6015. contextVm._original = parent;
  6016. } else {
  6017. // the context vm passed in is a functional context as well.
  6018. // in this case we want to make sure we are able to get a hold to the
  6019. // real context instance.
  6020. contextVm = parent;
  6021. // $flow-disable-line
  6022. parent = parent._original;
  6023. }
  6024. var isCompiled = isTrue(options._compiled);
  6025. var needNormalization = !isCompiled;
  6026. this.data = data;
  6027. this.props = props;
  6028. this.children = children;
  6029. this.parent = parent;
  6030. this.listeners = data.on || emptyObject;
  6031. this.injections = resolveInject(options.inject, parent);
  6032. this.slots = function () {
  6033. if (!this$1.$slots) {
  6034. normalizeScopedSlots(
  6035. data.scopedSlots,
  6036. this$1.$slots = resolveSlots(children, parent)
  6037. );
  6038. }
  6039. return this$1.$slots
  6040. };
  6041. Object.defineProperty(this, 'scopedSlots', ({
  6042. enumerable: true,
  6043. get: function get () {
  6044. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6045. }
  6046. }));
  6047. // support for compiled functional template
  6048. if (isCompiled) {
  6049. // exposing $options for renderStatic()
  6050. this.$options = options;
  6051. // pre-resolve slots for renderSlot()
  6052. this.$slots = this.slots();
  6053. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6054. }
  6055. if (options._scopeId) {
  6056. this._c = function (a, b, c, d) {
  6057. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6058. if (vnode && !Array.isArray(vnode)) {
  6059. vnode.fnScopeId = options._scopeId;
  6060. vnode.fnContext = parent;
  6061. }
  6062. return vnode
  6063. };
  6064. } else {
  6065. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6066. }
  6067. }
  6068. installRenderHelpers(FunctionalRenderContext.prototype);
  6069. function createFunctionalComponent (
  6070. Ctor,
  6071. propsData,
  6072. data,
  6073. contextVm,
  6074. children
  6075. ) {
  6076. var options = Ctor.options;
  6077. var props = {};
  6078. var propOptions = options.props;
  6079. if (isDef(propOptions)) {
  6080. for (var key in propOptions) {
  6081. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6082. }
  6083. } else {
  6084. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6085. if (isDef(data.props)) { mergeProps(props, data.props); }
  6086. }
  6087. var renderContext = new FunctionalRenderContext(
  6088. data,
  6089. props,
  6090. children,
  6091. contextVm,
  6092. Ctor
  6093. );
  6094. var vnode = options.render.call(null, renderContext._c, renderContext);
  6095. if (vnode instanceof VNode) {
  6096. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6097. } else if (Array.isArray(vnode)) {
  6098. var vnodes = normalizeChildren(vnode) || [];
  6099. var res = new Array(vnodes.length);
  6100. for (var i = 0; i < vnodes.length; i++) {
  6101. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6102. }
  6103. return res
  6104. }
  6105. }
  6106. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6107. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6108. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6109. // that should not be matched to match.
  6110. var clone = cloneVNode(vnode);
  6111. clone.fnContext = contextVm;
  6112. clone.fnOptions = options;
  6113. if (true) {
  6114. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6115. }
  6116. if (data.slot) {
  6117. (clone.data || (clone.data = {})).slot = data.slot;
  6118. }
  6119. return clone
  6120. }
  6121. function mergeProps (to, from) {
  6122. for (var key in from) {
  6123. to[camelize(key)] = from[key];
  6124. }
  6125. }
  6126. /* */
  6127. /* */
  6128. /* */
  6129. /* */
  6130. // inline hooks to be invoked on component VNodes during patch
  6131. var componentVNodeHooks = {
  6132. init: function init (vnode, hydrating) {
  6133. if (
  6134. vnode.componentInstance &&
  6135. !vnode.componentInstance._isDestroyed &&
  6136. vnode.data.keepAlive
  6137. ) {
  6138. // kept-alive components, treat as a patch
  6139. var mountedNode = vnode; // work around flow
  6140. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6141. } else {
  6142. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6143. vnode,
  6144. activeInstance
  6145. );
  6146. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6147. }
  6148. },
  6149. prepatch: function prepatch (oldVnode, vnode) {
  6150. var options = vnode.componentOptions;
  6151. var child = vnode.componentInstance = oldVnode.componentInstance;
  6152. updateChildComponent(
  6153. child,
  6154. options.propsData, // updated props
  6155. options.listeners, // updated listeners
  6156. vnode, // new parent vnode
  6157. options.children // new children
  6158. );
  6159. },
  6160. insert: function insert (vnode) {
  6161. var context = vnode.context;
  6162. var componentInstance = vnode.componentInstance;
  6163. if (!componentInstance._isMounted) {
  6164. callHook(componentInstance, 'onServiceCreated');
  6165. callHook(componentInstance, 'onServiceAttached');
  6166. componentInstance._isMounted = true;
  6167. callHook(componentInstance, 'mounted');
  6168. }
  6169. if (vnode.data.keepAlive) {
  6170. if (context._isMounted) {
  6171. // vue-router#1212
  6172. // During updates, a kept-alive component's child components may
  6173. // change, so directly walking the tree here may call activated hooks
  6174. // on incorrect children. Instead we push them into a queue which will
  6175. // be processed after the whole patch process ended.
  6176. queueActivatedComponent(componentInstance);
  6177. } else {
  6178. activateChildComponent(componentInstance, true /* direct */);
  6179. }
  6180. }
  6181. },
  6182. destroy: function destroy (vnode) {
  6183. var componentInstance = vnode.componentInstance;
  6184. if (!componentInstance._isDestroyed) {
  6185. if (!vnode.data.keepAlive) {
  6186. componentInstance.$destroy();
  6187. } else {
  6188. deactivateChildComponent(componentInstance, true /* direct */);
  6189. }
  6190. }
  6191. }
  6192. };
  6193. var hooksToMerge = Object.keys(componentVNodeHooks);
  6194. function createComponent (
  6195. Ctor,
  6196. data,
  6197. context,
  6198. children,
  6199. tag
  6200. ) {
  6201. if (isUndef(Ctor)) {
  6202. return
  6203. }
  6204. var baseCtor = context.$options._base;
  6205. // plain options object: turn it into a constructor
  6206. if (isObject(Ctor)) {
  6207. Ctor = baseCtor.extend(Ctor);
  6208. }
  6209. // if at this stage it's not a constructor or an async component factory,
  6210. // reject.
  6211. if (typeof Ctor !== 'function') {
  6212. if (true) {
  6213. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6214. }
  6215. return
  6216. }
  6217. // async component
  6218. var asyncFactory;
  6219. if (isUndef(Ctor.cid)) {
  6220. asyncFactory = Ctor;
  6221. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6222. if (Ctor === undefined) {
  6223. // return a placeholder node for async component, which is rendered
  6224. // as a comment node but preserves all the raw information for the node.
  6225. // the information will be used for async server-rendering and hydration.
  6226. return createAsyncPlaceholder(
  6227. asyncFactory,
  6228. data,
  6229. context,
  6230. children,
  6231. tag
  6232. )
  6233. }
  6234. }
  6235. data = data || {};
  6236. // resolve constructor options in case global mixins are applied after
  6237. // component constructor creation
  6238. resolveConstructorOptions(Ctor);
  6239. // transform component v-model data into props & events
  6240. if (isDef(data.model)) {
  6241. transformModel(Ctor.options, data);
  6242. }
  6243. // extract props
  6244. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6245. // functional component
  6246. if (isTrue(Ctor.options.functional)) {
  6247. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6248. }
  6249. // extract listeners, since these needs to be treated as
  6250. // child component listeners instead of DOM listeners
  6251. var listeners = data.on;
  6252. // replace with listeners with .native modifier
  6253. // so it gets processed during parent component patch.
  6254. data.on = data.nativeOn;
  6255. if (isTrue(Ctor.options.abstract)) {
  6256. // abstract components do not keep anything
  6257. // other than props & listeners & slot
  6258. // work around flow
  6259. var slot = data.slot;
  6260. data = {};
  6261. if (slot) {
  6262. data.slot = slot;
  6263. }
  6264. }
  6265. // install component management hooks onto the placeholder node
  6266. installComponentHooks(data);
  6267. // return a placeholder vnode
  6268. var name = Ctor.options.name || tag;
  6269. var vnode = new VNode(
  6270. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6271. data, undefined, undefined, undefined, context,
  6272. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6273. asyncFactory
  6274. );
  6275. return vnode
  6276. }
  6277. function createComponentInstanceForVnode (
  6278. vnode, // we know it's MountedComponentVNode but flow doesn't
  6279. parent // activeInstance in lifecycle state
  6280. ) {
  6281. var options = {
  6282. _isComponent: true,
  6283. _parentVnode: vnode,
  6284. parent: parent
  6285. };
  6286. // check inline-template render functions
  6287. var inlineTemplate = vnode.data.inlineTemplate;
  6288. if (isDef(inlineTemplate)) {
  6289. options.render = inlineTemplate.render;
  6290. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6291. }
  6292. return new vnode.componentOptions.Ctor(options)
  6293. }
  6294. function installComponentHooks (data) {
  6295. var hooks = data.hook || (data.hook = {});
  6296. for (var i = 0; i < hooksToMerge.length; i++) {
  6297. var key = hooksToMerge[i];
  6298. var existing = hooks[key];
  6299. var toMerge = componentVNodeHooks[key];
  6300. if (existing !== toMerge && !(existing && existing._merged)) {
  6301. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6302. }
  6303. }
  6304. }
  6305. function mergeHook$1 (f1, f2) {
  6306. var merged = function (a, b) {
  6307. // flow complains about extra args which is why we use any
  6308. f1(a, b);
  6309. f2(a, b);
  6310. };
  6311. merged._merged = true;
  6312. return merged
  6313. }
  6314. // transform component v-model info (value and callback) into
  6315. // prop and event handler respectively.
  6316. function transformModel (options, data) {
  6317. var prop = (options.model && options.model.prop) || 'value';
  6318. var event = (options.model && options.model.event) || 'input'
  6319. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6320. var on = data.on || (data.on = {});
  6321. var existing = on[event];
  6322. var callback = data.model.callback;
  6323. if (isDef(existing)) {
  6324. if (
  6325. Array.isArray(existing)
  6326. ? existing.indexOf(callback) === -1
  6327. : existing !== callback
  6328. ) {
  6329. on[event] = [callback].concat(existing);
  6330. }
  6331. } else {
  6332. on[event] = callback;
  6333. }
  6334. }
  6335. /* */
  6336. var SIMPLE_NORMALIZE = 1;
  6337. var ALWAYS_NORMALIZE = 2;
  6338. // wrapper function for providing a more flexible interface
  6339. // without getting yelled at by flow
  6340. function createElement (
  6341. context,
  6342. tag,
  6343. data,
  6344. children,
  6345. normalizationType,
  6346. alwaysNormalize
  6347. ) {
  6348. if (Array.isArray(data) || isPrimitive(data)) {
  6349. normalizationType = children;
  6350. children = data;
  6351. data = undefined;
  6352. }
  6353. if (isTrue(alwaysNormalize)) {
  6354. normalizationType = ALWAYS_NORMALIZE;
  6355. }
  6356. return _createElement(context, tag, data, children, normalizationType)
  6357. }
  6358. function _createElement (
  6359. context,
  6360. tag,
  6361. data,
  6362. children,
  6363. normalizationType
  6364. ) {
  6365. if (isDef(data) && isDef((data).__ob__)) {
  6366. true && warn(
  6367. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6368. 'Always create fresh vnode data objects in each render!',
  6369. context
  6370. );
  6371. return createEmptyVNode()
  6372. }
  6373. // object syntax in v-bind
  6374. if (isDef(data) && isDef(data.is)) {
  6375. tag = data.is;
  6376. }
  6377. if (!tag) {
  6378. // in case of component :is set to falsy value
  6379. return createEmptyVNode()
  6380. }
  6381. // warn against non-primitive key
  6382. if ( true &&
  6383. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6384. ) {
  6385. {
  6386. warn(
  6387. 'Avoid using non-primitive value as key, ' +
  6388. 'use string/number value instead.',
  6389. context
  6390. );
  6391. }
  6392. }
  6393. // support single function children as default scoped slot
  6394. if (Array.isArray(children) &&
  6395. typeof children[0] === 'function'
  6396. ) {
  6397. data = data || {};
  6398. data.scopedSlots = { default: children[0] };
  6399. children.length = 0;
  6400. }
  6401. if (normalizationType === ALWAYS_NORMALIZE) {
  6402. children = normalizeChildren(children);
  6403. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6404. children = simpleNormalizeChildren(children);
  6405. }
  6406. var vnode, ns;
  6407. if (typeof tag === 'string') {
  6408. var Ctor;
  6409. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6410. if (config.isReservedTag(tag)) {
  6411. // platform built-in elements
  6412. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6413. warn(
  6414. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6415. context
  6416. );
  6417. }
  6418. vnode = new VNode(
  6419. config.parsePlatformTagName(tag), data, children,
  6420. undefined, undefined, context
  6421. );
  6422. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6423. // component
  6424. vnode = createComponent(Ctor, data, context, children, tag);
  6425. } else {
  6426. // unknown or unlisted namespaced elements
  6427. // check at runtime because it may get assigned a namespace when its
  6428. // parent normalizes children
  6429. vnode = new VNode(
  6430. tag, data, children,
  6431. undefined, undefined, context
  6432. );
  6433. }
  6434. } else {
  6435. // direct component options / constructor
  6436. vnode = createComponent(tag, data, context, children);
  6437. }
  6438. if (Array.isArray(vnode)) {
  6439. return vnode
  6440. } else if (isDef(vnode)) {
  6441. if (isDef(ns)) { applyNS(vnode, ns); }
  6442. if (isDef(data)) { registerDeepBindings(data); }
  6443. return vnode
  6444. } else {
  6445. return createEmptyVNode()
  6446. }
  6447. }
  6448. function applyNS (vnode, ns, force) {
  6449. vnode.ns = ns;
  6450. if (vnode.tag === 'foreignObject') {
  6451. // use default namespace inside foreignObject
  6452. ns = undefined;
  6453. force = true;
  6454. }
  6455. if (isDef(vnode.children)) {
  6456. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6457. var child = vnode.children[i];
  6458. if (isDef(child.tag) && (
  6459. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6460. applyNS(child, ns, force);
  6461. }
  6462. }
  6463. }
  6464. }
  6465. // ref #5318
  6466. // necessary to ensure parent re-render when deep bindings like :style and
  6467. // :class are used on slot nodes
  6468. function registerDeepBindings (data) {
  6469. if (isObject(data.style)) {
  6470. traverse(data.style);
  6471. }
  6472. if (isObject(data.class)) {
  6473. traverse(data.class);
  6474. }
  6475. }
  6476. /* */
  6477. function initRender (vm) {
  6478. vm._vnode = null; // the root of the child tree
  6479. vm._staticTrees = null; // v-once cached trees
  6480. var options = vm.$options;
  6481. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6482. var renderContext = parentVnode && parentVnode.context;
  6483. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6484. vm.$scopedSlots = emptyObject;
  6485. // bind the createElement fn to this instance
  6486. // so that we get proper render context inside it.
  6487. // args order: tag, data, children, normalizationType, alwaysNormalize
  6488. // internal version is used by render functions compiled from templates
  6489. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6490. // normalization is always applied for the public version, used in
  6491. // user-written render functions.
  6492. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6493. // $attrs & $listeners are exposed for easier HOC creation.
  6494. // they need to be reactive so that HOCs using them are always updated
  6495. var parentData = parentVnode && parentVnode.data;
  6496. /* istanbul ignore else */
  6497. if (true) {
  6498. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6499. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6500. }, true);
  6501. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6502. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6503. }, true);
  6504. } else {}
  6505. }
  6506. var currentRenderingInstance = null;
  6507. function renderMixin (Vue) {
  6508. // install runtime convenience helpers
  6509. installRenderHelpers(Vue.prototype);
  6510. Vue.prototype.$nextTick = function (fn) {
  6511. return nextTick(fn, this)
  6512. };
  6513. Vue.prototype._render = function () {
  6514. var vm = this;
  6515. var ref = vm.$options;
  6516. var render = ref.render;
  6517. var _parentVnode = ref._parentVnode;
  6518. if (_parentVnode) {
  6519. vm.$scopedSlots = normalizeScopedSlots(
  6520. _parentVnode.data.scopedSlots,
  6521. vm.$slots,
  6522. vm.$scopedSlots
  6523. );
  6524. }
  6525. // set parent vnode. this allows render functions to have access
  6526. // to the data on the placeholder node.
  6527. vm.$vnode = _parentVnode;
  6528. // render self
  6529. var vnode;
  6530. try {
  6531. // There's no need to maintain a stack because all render fns are called
  6532. // separately from one another. Nested component's render fns are called
  6533. // when parent component is patched.
  6534. currentRenderingInstance = vm;
  6535. vnode = render.call(vm._renderProxy, vm.$createElement);
  6536. } catch (e) {
  6537. handleError(e, vm, "render");
  6538. // return error render result,
  6539. // or previous vnode to prevent render error causing blank component
  6540. /* istanbul ignore else */
  6541. if ( true && vm.$options.renderError) {
  6542. try {
  6543. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6544. } catch (e) {
  6545. handleError(e, vm, "renderError");
  6546. vnode = vm._vnode;
  6547. }
  6548. } else {
  6549. vnode = vm._vnode;
  6550. }
  6551. } finally {
  6552. currentRenderingInstance = null;
  6553. }
  6554. // if the returned array contains only a single node, allow it
  6555. if (Array.isArray(vnode) && vnode.length === 1) {
  6556. vnode = vnode[0];
  6557. }
  6558. // return empty vnode in case the render function errored out
  6559. if (!(vnode instanceof VNode)) {
  6560. if ( true && Array.isArray(vnode)) {
  6561. warn(
  6562. 'Multiple root nodes returned from render function. Render function ' +
  6563. 'should return a single root node.',
  6564. vm
  6565. );
  6566. }
  6567. vnode = createEmptyVNode();
  6568. }
  6569. // set parent
  6570. vnode.parent = _parentVnode;
  6571. return vnode
  6572. };
  6573. }
  6574. /* */
  6575. function ensureCtor (comp, base) {
  6576. if (
  6577. comp.__esModule ||
  6578. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6579. ) {
  6580. comp = comp.default;
  6581. }
  6582. return isObject(comp)
  6583. ? base.extend(comp)
  6584. : comp
  6585. }
  6586. function createAsyncPlaceholder (
  6587. factory,
  6588. data,
  6589. context,
  6590. children,
  6591. tag
  6592. ) {
  6593. var node = createEmptyVNode();
  6594. node.asyncFactory = factory;
  6595. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6596. return node
  6597. }
  6598. function resolveAsyncComponent (
  6599. factory,
  6600. baseCtor
  6601. ) {
  6602. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6603. return factory.errorComp
  6604. }
  6605. if (isDef(factory.resolved)) {
  6606. return factory.resolved
  6607. }
  6608. var owner = currentRenderingInstance;
  6609. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6610. // already pending
  6611. factory.owners.push(owner);
  6612. }
  6613. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6614. return factory.loadingComp
  6615. }
  6616. if (owner && !isDef(factory.owners)) {
  6617. var owners = factory.owners = [owner];
  6618. var sync = true;
  6619. var timerLoading = null;
  6620. var timerTimeout = null
  6621. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6622. var forceRender = function (renderCompleted) {
  6623. for (var i = 0, l = owners.length; i < l; i++) {
  6624. (owners[i]).$forceUpdate();
  6625. }
  6626. if (renderCompleted) {
  6627. owners.length = 0;
  6628. if (timerLoading !== null) {
  6629. clearTimeout(timerLoading);
  6630. timerLoading = null;
  6631. }
  6632. if (timerTimeout !== null) {
  6633. clearTimeout(timerTimeout);
  6634. timerTimeout = null;
  6635. }
  6636. }
  6637. };
  6638. var resolve = once(function (res) {
  6639. // cache resolved
  6640. factory.resolved = ensureCtor(res, baseCtor);
  6641. // invoke callbacks only if this is not a synchronous resolve
  6642. // (async resolves are shimmed as synchronous during SSR)
  6643. if (!sync) {
  6644. forceRender(true);
  6645. } else {
  6646. owners.length = 0;
  6647. }
  6648. });
  6649. var reject = once(function (reason) {
  6650. true && warn(
  6651. "Failed to resolve async component: " + (String(factory)) +
  6652. (reason ? ("\nReason: " + reason) : '')
  6653. );
  6654. if (isDef(factory.errorComp)) {
  6655. factory.error = true;
  6656. forceRender(true);
  6657. }
  6658. });
  6659. var res = factory(resolve, reject);
  6660. if (isObject(res)) {
  6661. if (isPromise(res)) {
  6662. // () => Promise
  6663. if (isUndef(factory.resolved)) {
  6664. res.then(resolve, reject);
  6665. }
  6666. } else if (isPromise(res.component)) {
  6667. res.component.then(resolve, reject);
  6668. if (isDef(res.error)) {
  6669. factory.errorComp = ensureCtor(res.error, baseCtor);
  6670. }
  6671. if (isDef(res.loading)) {
  6672. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6673. if (res.delay === 0) {
  6674. factory.loading = true;
  6675. } else {
  6676. timerLoading = setTimeout(function () {
  6677. timerLoading = null;
  6678. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6679. factory.loading = true;
  6680. forceRender(false);
  6681. }
  6682. }, res.delay || 200);
  6683. }
  6684. }
  6685. if (isDef(res.timeout)) {
  6686. timerTimeout = setTimeout(function () {
  6687. timerTimeout = null;
  6688. if (isUndef(factory.resolved)) {
  6689. reject(
  6690. true
  6691. ? ("timeout (" + (res.timeout) + "ms)")
  6692. : undefined
  6693. );
  6694. }
  6695. }, res.timeout);
  6696. }
  6697. }
  6698. }
  6699. sync = false;
  6700. // return in case resolved synchronously
  6701. return factory.loading
  6702. ? factory.loadingComp
  6703. : factory.resolved
  6704. }
  6705. }
  6706. /* */
  6707. function isAsyncPlaceholder (node) {
  6708. return node.isComment && node.asyncFactory
  6709. }
  6710. /* */
  6711. function getFirstComponentChild (children) {
  6712. if (Array.isArray(children)) {
  6713. for (var i = 0; i < children.length; i++) {
  6714. var c = children[i];
  6715. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6716. return c
  6717. }
  6718. }
  6719. }
  6720. }
  6721. /* */
  6722. /* */
  6723. function initEvents (vm) {
  6724. vm._events = Object.create(null);
  6725. vm._hasHookEvent = false;
  6726. // init parent attached events
  6727. var listeners = vm.$options._parentListeners;
  6728. if (listeners) {
  6729. updateComponentListeners(vm, listeners);
  6730. }
  6731. }
  6732. var target;
  6733. function add (event, fn) {
  6734. target.$on(event, fn);
  6735. }
  6736. function remove$1 (event, fn) {
  6737. target.$off(event, fn);
  6738. }
  6739. function createOnceHandler (event, fn) {
  6740. var _target = target;
  6741. return function onceHandler () {
  6742. var res = fn.apply(null, arguments);
  6743. if (res !== null) {
  6744. _target.$off(event, onceHandler);
  6745. }
  6746. }
  6747. }
  6748. function updateComponentListeners (
  6749. vm,
  6750. listeners,
  6751. oldListeners
  6752. ) {
  6753. target = vm;
  6754. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6755. target = undefined;
  6756. }
  6757. function eventsMixin (Vue) {
  6758. var hookRE = /^hook:/;
  6759. Vue.prototype.$on = function (event, fn) {
  6760. var vm = this;
  6761. if (Array.isArray(event)) {
  6762. for (var i = 0, l = event.length; i < l; i++) {
  6763. vm.$on(event[i], fn);
  6764. }
  6765. } else {
  6766. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6767. // optimize hook:event cost by using a boolean flag marked at registration
  6768. // instead of a hash lookup
  6769. if (hookRE.test(event)) {
  6770. vm._hasHookEvent = true;
  6771. }
  6772. }
  6773. return vm
  6774. };
  6775. Vue.prototype.$once = function (event, fn) {
  6776. var vm = this;
  6777. function on () {
  6778. vm.$off(event, on);
  6779. fn.apply(vm, arguments);
  6780. }
  6781. on.fn = fn;
  6782. vm.$on(event, on);
  6783. return vm
  6784. };
  6785. Vue.prototype.$off = function (event, fn) {
  6786. var vm = this;
  6787. // all
  6788. if (!arguments.length) {
  6789. vm._events = Object.create(null);
  6790. return vm
  6791. }
  6792. // array of events
  6793. if (Array.isArray(event)) {
  6794. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6795. vm.$off(event[i$1], fn);
  6796. }
  6797. return vm
  6798. }
  6799. // specific event
  6800. var cbs = vm._events[event];
  6801. if (!cbs) {
  6802. return vm
  6803. }
  6804. if (!fn) {
  6805. vm._events[event] = null;
  6806. return vm
  6807. }
  6808. // specific handler
  6809. var cb;
  6810. var i = cbs.length;
  6811. while (i--) {
  6812. cb = cbs[i];
  6813. if (cb === fn || cb.fn === fn) {
  6814. cbs.splice(i, 1);
  6815. break
  6816. }
  6817. }
  6818. return vm
  6819. };
  6820. Vue.prototype.$emit = function (event) {
  6821. var vm = this;
  6822. if (true) {
  6823. var lowerCaseEvent = event.toLowerCase();
  6824. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6825. tip(
  6826. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6827. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6828. "Note that HTML attributes are case-insensitive and you cannot use " +
  6829. "v-on to listen to camelCase events when using in-DOM templates. " +
  6830. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6831. );
  6832. }
  6833. }
  6834. var cbs = vm._events[event];
  6835. if (cbs) {
  6836. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6837. var args = toArray(arguments, 1);
  6838. var info = "event handler for \"" + event + "\"";
  6839. for (var i = 0, l = cbs.length; i < l; i++) {
  6840. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6841. }
  6842. }
  6843. return vm
  6844. };
  6845. }
  6846. /* */
  6847. var activeInstance = null;
  6848. var isUpdatingChildComponent = false;
  6849. function setActiveInstance(vm) {
  6850. var prevActiveInstance = activeInstance;
  6851. activeInstance = vm;
  6852. return function () {
  6853. activeInstance = prevActiveInstance;
  6854. }
  6855. }
  6856. function initLifecycle (vm) {
  6857. var options = vm.$options;
  6858. // locate first non-abstract parent
  6859. var parent = options.parent;
  6860. if (parent && !options.abstract) {
  6861. while (parent.$options.abstract && parent.$parent) {
  6862. parent = parent.$parent;
  6863. }
  6864. parent.$children.push(vm);
  6865. }
  6866. vm.$parent = parent;
  6867. vm.$root = parent ? parent.$root : vm;
  6868. vm.$children = [];
  6869. vm.$refs = {};
  6870. vm._watcher = null;
  6871. vm._inactive = null;
  6872. vm._directInactive = false;
  6873. vm._isMounted = false;
  6874. vm._isDestroyed = false;
  6875. vm._isBeingDestroyed = false;
  6876. }
  6877. function lifecycleMixin (Vue) {
  6878. Vue.prototype._update = function (vnode, hydrating) {
  6879. var vm = this;
  6880. var prevEl = vm.$el;
  6881. var prevVnode = vm._vnode;
  6882. var restoreActiveInstance = setActiveInstance(vm);
  6883. vm._vnode = vnode;
  6884. // Vue.prototype.__patch__ is injected in entry points
  6885. // based on the rendering backend used.
  6886. if (!prevVnode) {
  6887. // initial render
  6888. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6889. } else {
  6890. // updates
  6891. vm.$el = vm.__patch__(prevVnode, vnode);
  6892. }
  6893. restoreActiveInstance();
  6894. // update __vue__ reference
  6895. if (prevEl) {
  6896. prevEl.__vue__ = null;
  6897. }
  6898. if (vm.$el) {
  6899. vm.$el.__vue__ = vm;
  6900. }
  6901. // if parent is an HOC, update its $el as well
  6902. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6903. vm.$parent.$el = vm.$el;
  6904. }
  6905. // updated hook is called by the scheduler to ensure that children are
  6906. // updated in a parent's updated hook.
  6907. };
  6908. Vue.prototype.$forceUpdate = function () {
  6909. var vm = this;
  6910. if (vm._watcher) {
  6911. vm._watcher.update();
  6912. }
  6913. };
  6914. Vue.prototype.$destroy = function () {
  6915. var vm = this;
  6916. if (vm._isBeingDestroyed) {
  6917. return
  6918. }
  6919. callHook(vm, 'beforeDestroy');
  6920. vm._isBeingDestroyed = true;
  6921. // remove self from parent
  6922. var parent = vm.$parent;
  6923. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6924. remove(parent.$children, vm);
  6925. }
  6926. // teardown watchers
  6927. if (vm._watcher) {
  6928. vm._watcher.teardown();
  6929. }
  6930. var i = vm._watchers.length;
  6931. while (i--) {
  6932. vm._watchers[i].teardown();
  6933. }
  6934. // remove reference from data ob
  6935. // frozen object may not have observer.
  6936. if (vm._data.__ob__) {
  6937. vm._data.__ob__.vmCount--;
  6938. }
  6939. // call the last hook...
  6940. vm._isDestroyed = true;
  6941. // invoke destroy hooks on current rendered tree
  6942. vm.__patch__(vm._vnode, null);
  6943. // fire destroyed hook
  6944. callHook(vm, 'destroyed');
  6945. // turn off all instance listeners.
  6946. vm.$off();
  6947. // remove __vue__ reference
  6948. if (vm.$el) {
  6949. vm.$el.__vue__ = null;
  6950. }
  6951. // release circular reference (#6759)
  6952. if (vm.$vnode) {
  6953. vm.$vnode.parent = null;
  6954. }
  6955. };
  6956. }
  6957. function updateChildComponent (
  6958. vm,
  6959. propsData,
  6960. listeners,
  6961. parentVnode,
  6962. renderChildren
  6963. ) {
  6964. if (true) {
  6965. isUpdatingChildComponent = true;
  6966. }
  6967. // determine whether component has slot children
  6968. // we need to do this before overwriting $options._renderChildren.
  6969. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6970. // dynamic slot names). Static scoped slots compiled from template has the
  6971. // "$stable" marker.
  6972. var newScopedSlots = parentVnode.data.scopedSlots;
  6973. var oldScopedSlots = vm.$scopedSlots;
  6974. var hasDynamicScopedSlot = !!(
  6975. (newScopedSlots && !newScopedSlots.$stable) ||
  6976. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6977. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6978. );
  6979. // Any static slot children from the parent may have changed during parent's
  6980. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6981. // update is necessary to ensure correctness.
  6982. var needsForceUpdate = !!(
  6983. renderChildren || // has new static slots
  6984. vm.$options._renderChildren || // has old static slots
  6985. hasDynamicScopedSlot
  6986. );
  6987. vm.$options._parentVnode = parentVnode;
  6988. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6989. if (vm._vnode) { // update child tree's parent
  6990. vm._vnode.parent = parentVnode;
  6991. }
  6992. vm.$options._renderChildren = renderChildren;
  6993. // update $attrs and $listeners hash
  6994. // these are also reactive so they may trigger child update if the child
  6995. // used them during render
  6996. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6997. vm.$listeners = listeners || emptyObject;
  6998. // update props
  6999. if (propsData && vm.$options.props) {
  7000. toggleObserving(false);
  7001. var props = vm._props;
  7002. var propKeys = vm.$options._propKeys || [];
  7003. for (var i = 0; i < propKeys.length; i++) {
  7004. var key = propKeys[i];
  7005. var propOptions = vm.$options.props; // wtf flow?
  7006. props[key] = validateProp(key, propOptions, propsData, vm);
  7007. }
  7008. toggleObserving(true);
  7009. // keep a copy of raw propsData
  7010. vm.$options.propsData = propsData;
  7011. }
  7012. // fixed by xxxxxx update properties(mp runtime)
  7013. vm._$updateProperties && vm._$updateProperties(vm);
  7014. // update listeners
  7015. listeners = listeners || emptyObject;
  7016. var oldListeners = vm.$options._parentListeners;
  7017. vm.$options._parentListeners = listeners;
  7018. updateComponentListeners(vm, listeners, oldListeners);
  7019. // resolve slots + force update if has children
  7020. if (needsForceUpdate) {
  7021. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7022. vm.$forceUpdate();
  7023. }
  7024. if (true) {
  7025. isUpdatingChildComponent = false;
  7026. }
  7027. }
  7028. function isInInactiveTree (vm) {
  7029. while (vm && (vm = vm.$parent)) {
  7030. if (vm._inactive) { return true }
  7031. }
  7032. return false
  7033. }
  7034. function activateChildComponent (vm, direct) {
  7035. if (direct) {
  7036. vm._directInactive = false;
  7037. if (isInInactiveTree(vm)) {
  7038. return
  7039. }
  7040. } else if (vm._directInactive) {
  7041. return
  7042. }
  7043. if (vm._inactive || vm._inactive === null) {
  7044. vm._inactive = false;
  7045. for (var i = 0; i < vm.$children.length; i++) {
  7046. activateChildComponent(vm.$children[i]);
  7047. }
  7048. callHook(vm, 'activated');
  7049. }
  7050. }
  7051. function deactivateChildComponent (vm, direct) {
  7052. if (direct) {
  7053. vm._directInactive = true;
  7054. if (isInInactiveTree(vm)) {
  7055. return
  7056. }
  7057. }
  7058. if (!vm._inactive) {
  7059. vm._inactive = true;
  7060. for (var i = 0; i < vm.$children.length; i++) {
  7061. deactivateChildComponent(vm.$children[i]);
  7062. }
  7063. callHook(vm, 'deactivated');
  7064. }
  7065. }
  7066. function callHook (vm, hook) {
  7067. // #7573 disable dep collection when invoking lifecycle hooks
  7068. pushTarget();
  7069. var handlers = vm.$options[hook];
  7070. var info = hook + " hook";
  7071. if (handlers) {
  7072. for (var i = 0, j = handlers.length; i < j; i++) {
  7073. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7074. }
  7075. }
  7076. if (vm._hasHookEvent) {
  7077. vm.$emit('hook:' + hook);
  7078. }
  7079. popTarget();
  7080. }
  7081. /* */
  7082. var MAX_UPDATE_COUNT = 100;
  7083. var queue = [];
  7084. var activatedChildren = [];
  7085. var has = {};
  7086. var circular = {};
  7087. var waiting = false;
  7088. var flushing = false;
  7089. var index = 0;
  7090. /**
  7091. * Reset the scheduler's state.
  7092. */
  7093. function resetSchedulerState () {
  7094. index = queue.length = activatedChildren.length = 0;
  7095. has = {};
  7096. if (true) {
  7097. circular = {};
  7098. }
  7099. waiting = flushing = false;
  7100. }
  7101. // Async edge case #6566 requires saving the timestamp when event listeners are
  7102. // attached. However, calling performance.now() has a perf overhead especially
  7103. // if the page has thousands of event listeners. Instead, we take a timestamp
  7104. // every time the scheduler flushes and use that for all event listeners
  7105. // attached during that flush.
  7106. var currentFlushTimestamp = 0;
  7107. // Async edge case fix requires storing an event listener's attach timestamp.
  7108. var getNow = Date.now;
  7109. // Determine what event timestamp the browser is using. Annoyingly, the
  7110. // timestamp can either be hi-res (relative to page load) or low-res
  7111. // (relative to UNIX epoch), so in order to compare time we have to use the
  7112. // same timestamp type when saving the flush timestamp.
  7113. // All IE versions use low-res event timestamps, and have problematic clock
  7114. // implementations (#9632)
  7115. if (inBrowser && !isIE) {
  7116. var performance = window.performance;
  7117. if (
  7118. performance &&
  7119. typeof performance.now === 'function' &&
  7120. getNow() > document.createEvent('Event').timeStamp
  7121. ) {
  7122. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7123. // smaller than it, it means the event is using a hi-res timestamp,
  7124. // and we need to use the hi-res version for event listener timestamps as
  7125. // well.
  7126. getNow = function () { return performance.now(); };
  7127. }
  7128. }
  7129. /**
  7130. * Flush both queues and run the watchers.
  7131. */
  7132. function flushSchedulerQueue () {
  7133. currentFlushTimestamp = getNow();
  7134. flushing = true;
  7135. var watcher, id;
  7136. // Sort queue before flush.
  7137. // This ensures that:
  7138. // 1. Components are updated from parent to child. (because parent is always
  7139. // created before the child)
  7140. // 2. A component's user watchers are run before its render watcher (because
  7141. // user watchers are created before the render watcher)
  7142. // 3. If a component is destroyed during a parent component's watcher run,
  7143. // its watchers can be skipped.
  7144. queue.sort(function (a, b) { return a.id - b.id; });
  7145. // do not cache length because more watchers might be pushed
  7146. // as we run existing watchers
  7147. for (index = 0; index < queue.length; index++) {
  7148. watcher = queue[index];
  7149. if (watcher.before) {
  7150. watcher.before();
  7151. }
  7152. id = watcher.id;
  7153. has[id] = null;
  7154. watcher.run();
  7155. // in dev build, check and stop circular updates.
  7156. if ( true && has[id] != null) {
  7157. circular[id] = (circular[id] || 0) + 1;
  7158. if (circular[id] > MAX_UPDATE_COUNT) {
  7159. warn(
  7160. 'You may have an infinite update loop ' + (
  7161. watcher.user
  7162. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7163. : "in a component render function."
  7164. ),
  7165. watcher.vm
  7166. );
  7167. break
  7168. }
  7169. }
  7170. }
  7171. // keep copies of post queues before resetting state
  7172. var activatedQueue = activatedChildren.slice();
  7173. var updatedQueue = queue.slice();
  7174. resetSchedulerState();
  7175. // call component updated and activated hooks
  7176. callActivatedHooks(activatedQueue);
  7177. callUpdatedHooks(updatedQueue);
  7178. // devtool hook
  7179. /* istanbul ignore if */
  7180. if (devtools && config.devtools) {
  7181. devtools.emit('flush');
  7182. }
  7183. }
  7184. function callUpdatedHooks (queue) {
  7185. var i = queue.length;
  7186. while (i--) {
  7187. var watcher = queue[i];
  7188. var vm = watcher.vm;
  7189. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7190. callHook(vm, 'updated');
  7191. }
  7192. }
  7193. }
  7194. /**
  7195. * Queue a kept-alive component that was activated during patch.
  7196. * The queue will be processed after the entire tree has been patched.
  7197. */
  7198. function queueActivatedComponent (vm) {
  7199. // setting _inactive to false here so that a render function can
  7200. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7201. vm._inactive = false;
  7202. activatedChildren.push(vm);
  7203. }
  7204. function callActivatedHooks (queue) {
  7205. for (var i = 0; i < queue.length; i++) {
  7206. queue[i]._inactive = true;
  7207. activateChildComponent(queue[i], true /* true */);
  7208. }
  7209. }
  7210. /**
  7211. * Push a watcher into the watcher queue.
  7212. * Jobs with duplicate IDs will be skipped unless it's
  7213. * pushed when the queue is being flushed.
  7214. */
  7215. function queueWatcher (watcher) {
  7216. var id = watcher.id;
  7217. if (has[id] == null) {
  7218. has[id] = true;
  7219. if (!flushing) {
  7220. queue.push(watcher);
  7221. } else {
  7222. // if already flushing, splice the watcher based on its id
  7223. // if already past its id, it will be run next immediately.
  7224. var i = queue.length - 1;
  7225. while (i > index && queue[i].id > watcher.id) {
  7226. i--;
  7227. }
  7228. queue.splice(i + 1, 0, watcher);
  7229. }
  7230. // queue the flush
  7231. if (!waiting) {
  7232. waiting = true;
  7233. if ( true && !config.async) {
  7234. flushSchedulerQueue();
  7235. return
  7236. }
  7237. nextTick(flushSchedulerQueue);
  7238. }
  7239. }
  7240. }
  7241. /* */
  7242. var uid$2 = 0;
  7243. /**
  7244. * A watcher parses an expression, collects dependencies,
  7245. * and fires callback when the expression value changes.
  7246. * This is used for both the $watch() api and directives.
  7247. */
  7248. var Watcher = function Watcher (
  7249. vm,
  7250. expOrFn,
  7251. cb,
  7252. options,
  7253. isRenderWatcher
  7254. ) {
  7255. this.vm = vm;
  7256. if (isRenderWatcher) {
  7257. vm._watcher = this;
  7258. }
  7259. vm._watchers.push(this);
  7260. // options
  7261. if (options) {
  7262. this.deep = !!options.deep;
  7263. this.user = !!options.user;
  7264. this.lazy = !!options.lazy;
  7265. this.sync = !!options.sync;
  7266. this.before = options.before;
  7267. } else {
  7268. this.deep = this.user = this.lazy = this.sync = false;
  7269. }
  7270. this.cb = cb;
  7271. this.id = ++uid$2; // uid for batching
  7272. this.active = true;
  7273. this.dirty = this.lazy; // for lazy watchers
  7274. this.deps = [];
  7275. this.newDeps = [];
  7276. this.depIds = new _Set();
  7277. this.newDepIds = new _Set();
  7278. this.expression = true
  7279. ? expOrFn.toString()
  7280. : undefined;
  7281. // parse expression for getter
  7282. if (typeof expOrFn === 'function') {
  7283. this.getter = expOrFn;
  7284. } else {
  7285. this.getter = parsePath(expOrFn);
  7286. if (!this.getter) {
  7287. this.getter = noop;
  7288. true && warn(
  7289. "Failed watching path: \"" + expOrFn + "\" " +
  7290. 'Watcher only accepts simple dot-delimited paths. ' +
  7291. 'For full control, use a function instead.',
  7292. vm
  7293. );
  7294. }
  7295. }
  7296. this.value = this.lazy
  7297. ? undefined
  7298. : this.get();
  7299. };
  7300. /**
  7301. * Evaluate the getter, and re-collect dependencies.
  7302. */
  7303. Watcher.prototype.get = function get () {
  7304. pushTarget(this);
  7305. var value;
  7306. var vm = this.vm;
  7307. try {
  7308. value = this.getter.call(vm, vm);
  7309. } catch (e) {
  7310. if (this.user) {
  7311. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7312. } else {
  7313. throw e
  7314. }
  7315. } finally {
  7316. // "touch" every property so they are all tracked as
  7317. // dependencies for deep watching
  7318. if (this.deep) {
  7319. traverse(value);
  7320. }
  7321. popTarget();
  7322. this.cleanupDeps();
  7323. }
  7324. return value
  7325. };
  7326. /**
  7327. * Add a dependency to this directive.
  7328. */
  7329. Watcher.prototype.addDep = function addDep (dep) {
  7330. var id = dep.id;
  7331. if (!this.newDepIds.has(id)) {
  7332. this.newDepIds.add(id);
  7333. this.newDeps.push(dep);
  7334. if (!this.depIds.has(id)) {
  7335. dep.addSub(this);
  7336. }
  7337. }
  7338. };
  7339. /**
  7340. * Clean up for dependency collection.
  7341. */
  7342. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7343. var i = this.deps.length;
  7344. while (i--) {
  7345. var dep = this.deps[i];
  7346. if (!this.newDepIds.has(dep.id)) {
  7347. dep.removeSub(this);
  7348. }
  7349. }
  7350. var tmp = this.depIds;
  7351. this.depIds = this.newDepIds;
  7352. this.newDepIds = tmp;
  7353. this.newDepIds.clear();
  7354. tmp = this.deps;
  7355. this.deps = this.newDeps;
  7356. this.newDeps = tmp;
  7357. this.newDeps.length = 0;
  7358. };
  7359. /**
  7360. * Subscriber interface.
  7361. * Will be called when a dependency changes.
  7362. */
  7363. Watcher.prototype.update = function update () {
  7364. /* istanbul ignore else */
  7365. if (this.lazy) {
  7366. this.dirty = true;
  7367. } else if (this.sync) {
  7368. this.run();
  7369. } else {
  7370. queueWatcher(this);
  7371. }
  7372. };
  7373. /**
  7374. * Scheduler job interface.
  7375. * Will be called by the scheduler.
  7376. */
  7377. Watcher.prototype.run = function run () {
  7378. if (this.active) {
  7379. var value = this.get();
  7380. if (
  7381. value !== this.value ||
  7382. // Deep watchers and watchers on Object/Arrays should fire even
  7383. // when the value is the same, because the value may
  7384. // have mutated.
  7385. isObject(value) ||
  7386. this.deep
  7387. ) {
  7388. // set new value
  7389. var oldValue = this.value;
  7390. this.value = value;
  7391. if (this.user) {
  7392. try {
  7393. this.cb.call(this.vm, value, oldValue);
  7394. } catch (e) {
  7395. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7396. }
  7397. } else {
  7398. this.cb.call(this.vm, value, oldValue);
  7399. }
  7400. }
  7401. }
  7402. };
  7403. /**
  7404. * Evaluate the value of the watcher.
  7405. * This only gets called for lazy watchers.
  7406. */
  7407. Watcher.prototype.evaluate = function evaluate () {
  7408. this.value = this.get();
  7409. this.dirty = false;
  7410. };
  7411. /**
  7412. * Depend on all deps collected by this watcher.
  7413. */
  7414. Watcher.prototype.depend = function depend () {
  7415. var i = this.deps.length;
  7416. while (i--) {
  7417. this.deps[i].depend();
  7418. }
  7419. };
  7420. /**
  7421. * Remove self from all dependencies' subscriber list.
  7422. */
  7423. Watcher.prototype.teardown = function teardown () {
  7424. if (this.active) {
  7425. // remove self from vm's watcher list
  7426. // this is a somewhat expensive operation so we skip it
  7427. // if the vm is being destroyed.
  7428. if (!this.vm._isBeingDestroyed) {
  7429. remove(this.vm._watchers, this);
  7430. }
  7431. var i = this.deps.length;
  7432. while (i--) {
  7433. this.deps[i].removeSub(this);
  7434. }
  7435. this.active = false;
  7436. }
  7437. };
  7438. /* */
  7439. var sharedPropertyDefinition = {
  7440. enumerable: true,
  7441. configurable: true,
  7442. get: noop,
  7443. set: noop
  7444. };
  7445. function proxy (target, sourceKey, key) {
  7446. sharedPropertyDefinition.get = function proxyGetter () {
  7447. return this[sourceKey][key]
  7448. };
  7449. sharedPropertyDefinition.set = function proxySetter (val) {
  7450. this[sourceKey][key] = val;
  7451. };
  7452. Object.defineProperty(target, key, sharedPropertyDefinition);
  7453. }
  7454. function initState (vm) {
  7455. vm._watchers = [];
  7456. var opts = vm.$options;
  7457. if (opts.props) { initProps(vm, opts.props); }
  7458. if (opts.methods) { initMethods(vm, opts.methods); }
  7459. if (opts.data) {
  7460. initData(vm);
  7461. } else {
  7462. observe(vm._data = {}, true /* asRootData */);
  7463. }
  7464. if (opts.computed) { initComputed(vm, opts.computed); }
  7465. if (opts.watch && opts.watch !== nativeWatch) {
  7466. initWatch(vm, opts.watch);
  7467. }
  7468. }
  7469. function initProps (vm, propsOptions) {
  7470. var propsData = vm.$options.propsData || {};
  7471. var props = vm._props = {};
  7472. // cache prop keys so that future props updates can iterate using Array
  7473. // instead of dynamic object key enumeration.
  7474. var keys = vm.$options._propKeys = [];
  7475. var isRoot = !vm.$parent;
  7476. // root instance props should be converted
  7477. if (!isRoot) {
  7478. toggleObserving(false);
  7479. }
  7480. var loop = function ( key ) {
  7481. keys.push(key);
  7482. var value = validateProp(key, propsOptions, propsData, vm);
  7483. /* istanbul ignore else */
  7484. if (true) {
  7485. var hyphenatedKey = hyphenate(key);
  7486. if (isReservedAttribute(hyphenatedKey) ||
  7487. config.isReservedAttr(hyphenatedKey)) {
  7488. warn(
  7489. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7490. vm
  7491. );
  7492. }
  7493. defineReactive$$1(props, key, value, function () {
  7494. if (!isRoot && !isUpdatingChildComponent) {
  7495. {
  7496. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7497. return
  7498. }
  7499. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7500. if(
  7501. key === 'value' &&
  7502. Array.isArray(vm.$options.behaviors) &&
  7503. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7504. ){
  7505. return
  7506. }
  7507. if(vm._getFormData){
  7508. return
  7509. }
  7510. var $parent = vm.$parent;
  7511. while($parent){
  7512. if($parent.__next_tick_pending){
  7513. return
  7514. }
  7515. $parent = $parent.$parent;
  7516. }
  7517. }
  7518. warn(
  7519. "Avoid mutating a prop directly since the value will be " +
  7520. "overwritten whenever the parent component re-renders. " +
  7521. "Instead, use a data or computed property based on the prop's " +
  7522. "value. Prop being mutated: \"" + key + "\"",
  7523. vm
  7524. );
  7525. }
  7526. });
  7527. } else {}
  7528. // static props are already proxied on the component's prototype
  7529. // during Vue.extend(). We only need to proxy props defined at
  7530. // instantiation here.
  7531. if (!(key in vm)) {
  7532. proxy(vm, "_props", key);
  7533. }
  7534. };
  7535. for (var key in propsOptions) loop( key );
  7536. toggleObserving(true);
  7537. }
  7538. function initData (vm) {
  7539. var data = vm.$options.data;
  7540. data = vm._data = typeof data === 'function'
  7541. ? getData(data, vm)
  7542. : data || {};
  7543. if (!isPlainObject(data)) {
  7544. data = {};
  7545. true && warn(
  7546. 'data functions should return an object:\n' +
  7547. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7548. vm
  7549. );
  7550. }
  7551. // proxy data on instance
  7552. var keys = Object.keys(data);
  7553. var props = vm.$options.props;
  7554. var methods = vm.$options.methods;
  7555. var i = keys.length;
  7556. while (i--) {
  7557. var key = keys[i];
  7558. if (true) {
  7559. if (methods && hasOwn(methods, key)) {
  7560. warn(
  7561. ("Method \"" + key + "\" has already been defined as a data property."),
  7562. vm
  7563. );
  7564. }
  7565. }
  7566. if (props && hasOwn(props, key)) {
  7567. true && warn(
  7568. "The data property \"" + key + "\" is already declared as a prop. " +
  7569. "Use prop default value instead.",
  7570. vm
  7571. );
  7572. } else if (!isReserved(key)) {
  7573. proxy(vm, "_data", key);
  7574. }
  7575. }
  7576. // observe data
  7577. observe(data, true /* asRootData */);
  7578. }
  7579. function getData (data, vm) {
  7580. // #7573 disable dep collection when invoking data getters
  7581. pushTarget();
  7582. try {
  7583. return data.call(vm, vm)
  7584. } catch (e) {
  7585. handleError(e, vm, "data()");
  7586. return {}
  7587. } finally {
  7588. popTarget();
  7589. }
  7590. }
  7591. var computedWatcherOptions = { lazy: true };
  7592. function initComputed (vm, computed) {
  7593. // $flow-disable-line
  7594. var watchers = vm._computedWatchers = Object.create(null);
  7595. // computed properties are just getters during SSR
  7596. var isSSR = isServerRendering();
  7597. for (var key in computed) {
  7598. var userDef = computed[key];
  7599. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7600. if ( true && getter == null) {
  7601. warn(
  7602. ("Getter is missing for computed property \"" + key + "\"."),
  7603. vm
  7604. );
  7605. }
  7606. if (!isSSR) {
  7607. // create internal watcher for the computed property.
  7608. watchers[key] = new Watcher(
  7609. vm,
  7610. getter || noop,
  7611. noop,
  7612. computedWatcherOptions
  7613. );
  7614. }
  7615. // component-defined computed properties are already defined on the
  7616. // component prototype. We only need to define computed properties defined
  7617. // at instantiation here.
  7618. if (!(key in vm)) {
  7619. defineComputed(vm, key, userDef);
  7620. } else if (true) {
  7621. if (key in vm.$data) {
  7622. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7623. } else if (vm.$options.props && key in vm.$options.props) {
  7624. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7625. }
  7626. }
  7627. }
  7628. }
  7629. function defineComputed (
  7630. target,
  7631. key,
  7632. userDef
  7633. ) {
  7634. var shouldCache = !isServerRendering();
  7635. if (typeof userDef === 'function') {
  7636. sharedPropertyDefinition.get = shouldCache
  7637. ? createComputedGetter(key)
  7638. : createGetterInvoker(userDef);
  7639. sharedPropertyDefinition.set = noop;
  7640. } else {
  7641. sharedPropertyDefinition.get = userDef.get
  7642. ? shouldCache && userDef.cache !== false
  7643. ? createComputedGetter(key)
  7644. : createGetterInvoker(userDef.get)
  7645. : noop;
  7646. sharedPropertyDefinition.set = userDef.set || noop;
  7647. }
  7648. if ( true &&
  7649. sharedPropertyDefinition.set === noop) {
  7650. sharedPropertyDefinition.set = function () {
  7651. warn(
  7652. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7653. this
  7654. );
  7655. };
  7656. }
  7657. Object.defineProperty(target, key, sharedPropertyDefinition);
  7658. }
  7659. function createComputedGetter (key) {
  7660. return function computedGetter () {
  7661. var watcher = this._computedWatchers && this._computedWatchers[key];
  7662. if (watcher) {
  7663. if (watcher.dirty) {
  7664. watcher.evaluate();
  7665. }
  7666. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7667. watcher.depend();
  7668. }
  7669. return watcher.value
  7670. }
  7671. }
  7672. }
  7673. function createGetterInvoker(fn) {
  7674. return function computedGetter () {
  7675. return fn.call(this, this)
  7676. }
  7677. }
  7678. function initMethods (vm, methods) {
  7679. var props = vm.$options.props;
  7680. for (var key in methods) {
  7681. if (true) {
  7682. if (typeof methods[key] !== 'function') {
  7683. warn(
  7684. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7685. "Did you reference the function correctly?",
  7686. vm
  7687. );
  7688. }
  7689. if (props && hasOwn(props, key)) {
  7690. warn(
  7691. ("Method \"" + key + "\" has already been defined as a prop."),
  7692. vm
  7693. );
  7694. }
  7695. if ((key in vm) && isReserved(key)) {
  7696. warn(
  7697. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7698. "Avoid defining component methods that start with _ or $."
  7699. );
  7700. }
  7701. }
  7702. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7703. }
  7704. }
  7705. function initWatch (vm, watch) {
  7706. for (var key in watch) {
  7707. var handler = watch[key];
  7708. if (Array.isArray(handler)) {
  7709. for (var i = 0; i < handler.length; i++) {
  7710. createWatcher(vm, key, handler[i]);
  7711. }
  7712. } else {
  7713. createWatcher(vm, key, handler);
  7714. }
  7715. }
  7716. }
  7717. function createWatcher (
  7718. vm,
  7719. expOrFn,
  7720. handler,
  7721. options
  7722. ) {
  7723. if (isPlainObject(handler)) {
  7724. options = handler;
  7725. handler = handler.handler;
  7726. }
  7727. if (typeof handler === 'string') {
  7728. handler = vm[handler];
  7729. }
  7730. return vm.$watch(expOrFn, handler, options)
  7731. }
  7732. function stateMixin (Vue) {
  7733. // flow somehow has problems with directly declared definition object
  7734. // when using Object.defineProperty, so we have to procedurally build up
  7735. // the object here.
  7736. var dataDef = {};
  7737. dataDef.get = function () { return this._data };
  7738. var propsDef = {};
  7739. propsDef.get = function () { return this._props };
  7740. if (true) {
  7741. dataDef.set = function () {
  7742. warn(
  7743. 'Avoid replacing instance root $data. ' +
  7744. 'Use nested data properties instead.',
  7745. this
  7746. );
  7747. };
  7748. propsDef.set = function () {
  7749. warn("$props is readonly.", this);
  7750. };
  7751. }
  7752. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7753. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7754. Vue.prototype.$set = set;
  7755. Vue.prototype.$delete = del;
  7756. Vue.prototype.$watch = function (
  7757. expOrFn,
  7758. cb,
  7759. options
  7760. ) {
  7761. var vm = this;
  7762. if (isPlainObject(cb)) {
  7763. return createWatcher(vm, expOrFn, cb, options)
  7764. }
  7765. options = options || {};
  7766. options.user = true;
  7767. var watcher = new Watcher(vm, expOrFn, cb, options);
  7768. if (options.immediate) {
  7769. try {
  7770. cb.call(vm, watcher.value);
  7771. } catch (error) {
  7772. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7773. }
  7774. }
  7775. return function unwatchFn () {
  7776. watcher.teardown();
  7777. }
  7778. };
  7779. }
  7780. /* */
  7781. var uid$3 = 0;
  7782. function initMixin (Vue) {
  7783. Vue.prototype._init = function (options) {
  7784. var vm = this;
  7785. // a uid
  7786. vm._uid = uid$3++;
  7787. var startTag, endTag;
  7788. /* istanbul ignore if */
  7789. if ( true && config.performance && mark) {
  7790. startTag = "vue-perf-start:" + (vm._uid);
  7791. endTag = "vue-perf-end:" + (vm._uid);
  7792. mark(startTag);
  7793. }
  7794. // a flag to avoid this being observed
  7795. vm._isVue = true;
  7796. // merge options
  7797. if (options && options._isComponent) {
  7798. // optimize internal component instantiation
  7799. // since dynamic options merging is pretty slow, and none of the
  7800. // internal component options needs special treatment.
  7801. initInternalComponent(vm, options);
  7802. } else {
  7803. vm.$options = mergeOptions(
  7804. resolveConstructorOptions(vm.constructor),
  7805. options || {},
  7806. vm
  7807. );
  7808. }
  7809. /* istanbul ignore else */
  7810. if (true) {
  7811. initProxy(vm);
  7812. } else {}
  7813. // expose real self
  7814. vm._self = vm;
  7815. initLifecycle(vm);
  7816. initEvents(vm);
  7817. initRender(vm);
  7818. callHook(vm, 'beforeCreate');
  7819. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7820. initState(vm);
  7821. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7822. !vm._$fallback && callHook(vm, 'created');
  7823. /* istanbul ignore if */
  7824. if ( true && config.performance && mark) {
  7825. vm._name = formatComponentName(vm, false);
  7826. mark(endTag);
  7827. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7828. }
  7829. if (vm.$options.el) {
  7830. vm.$mount(vm.$options.el);
  7831. }
  7832. };
  7833. }
  7834. function initInternalComponent (vm, options) {
  7835. var opts = vm.$options = Object.create(vm.constructor.options);
  7836. // doing this because it's faster than dynamic enumeration.
  7837. var parentVnode = options._parentVnode;
  7838. opts.parent = options.parent;
  7839. opts._parentVnode = parentVnode;
  7840. var vnodeComponentOptions = parentVnode.componentOptions;
  7841. opts.propsData = vnodeComponentOptions.propsData;
  7842. opts._parentListeners = vnodeComponentOptions.listeners;
  7843. opts._renderChildren = vnodeComponentOptions.children;
  7844. opts._componentTag = vnodeComponentOptions.tag;
  7845. if (options.render) {
  7846. opts.render = options.render;
  7847. opts.staticRenderFns = options.staticRenderFns;
  7848. }
  7849. }
  7850. function resolveConstructorOptions (Ctor) {
  7851. var options = Ctor.options;
  7852. if (Ctor.super) {
  7853. var superOptions = resolveConstructorOptions(Ctor.super);
  7854. var cachedSuperOptions = Ctor.superOptions;
  7855. if (superOptions !== cachedSuperOptions) {
  7856. // super option changed,
  7857. // need to resolve new options.
  7858. Ctor.superOptions = superOptions;
  7859. // check if there are any late-modified/attached options (#4976)
  7860. var modifiedOptions = resolveModifiedOptions(Ctor);
  7861. // update base extend options
  7862. if (modifiedOptions) {
  7863. extend(Ctor.extendOptions, modifiedOptions);
  7864. }
  7865. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7866. if (options.name) {
  7867. options.components[options.name] = Ctor;
  7868. }
  7869. }
  7870. }
  7871. return options
  7872. }
  7873. function resolveModifiedOptions (Ctor) {
  7874. var modified;
  7875. var latest = Ctor.options;
  7876. var sealed = Ctor.sealedOptions;
  7877. for (var key in latest) {
  7878. if (latest[key] !== sealed[key]) {
  7879. if (!modified) { modified = {}; }
  7880. modified[key] = latest[key];
  7881. }
  7882. }
  7883. return modified
  7884. }
  7885. function Vue (options) {
  7886. if ( true &&
  7887. !(this instanceof Vue)
  7888. ) {
  7889. warn('Vue is a constructor and should be called with the `new` keyword');
  7890. }
  7891. this._init(options);
  7892. }
  7893. initMixin(Vue);
  7894. stateMixin(Vue);
  7895. eventsMixin(Vue);
  7896. lifecycleMixin(Vue);
  7897. renderMixin(Vue);
  7898. /* */
  7899. function initUse (Vue) {
  7900. Vue.use = function (plugin) {
  7901. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7902. if (installedPlugins.indexOf(plugin) > -1) {
  7903. return this
  7904. }
  7905. // additional parameters
  7906. var args = toArray(arguments, 1);
  7907. args.unshift(this);
  7908. if (typeof plugin.install === 'function') {
  7909. plugin.install.apply(plugin, args);
  7910. } else if (typeof plugin === 'function') {
  7911. plugin.apply(null, args);
  7912. }
  7913. installedPlugins.push(plugin);
  7914. return this
  7915. };
  7916. }
  7917. /* */
  7918. function initMixin$1 (Vue) {
  7919. Vue.mixin = function (mixin) {
  7920. this.options = mergeOptions(this.options, mixin);
  7921. return this
  7922. };
  7923. }
  7924. /* */
  7925. function initExtend (Vue) {
  7926. /**
  7927. * Each instance constructor, including Vue, has a unique
  7928. * cid. This enables us to create wrapped "child
  7929. * constructors" for prototypal inheritance and cache them.
  7930. */
  7931. Vue.cid = 0;
  7932. var cid = 1;
  7933. /**
  7934. * Class inheritance
  7935. */
  7936. Vue.extend = function (extendOptions) {
  7937. extendOptions = extendOptions || {};
  7938. var Super = this;
  7939. var SuperId = Super.cid;
  7940. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7941. if (cachedCtors[SuperId]) {
  7942. return cachedCtors[SuperId]
  7943. }
  7944. var name = extendOptions.name || Super.options.name;
  7945. if ( true && name) {
  7946. validateComponentName(name);
  7947. }
  7948. var Sub = function VueComponent (options) {
  7949. this._init(options);
  7950. };
  7951. Sub.prototype = Object.create(Super.prototype);
  7952. Sub.prototype.constructor = Sub;
  7953. Sub.cid = cid++;
  7954. Sub.options = mergeOptions(
  7955. Super.options,
  7956. extendOptions
  7957. );
  7958. Sub['super'] = Super;
  7959. // For props and computed properties, we define the proxy getters on
  7960. // the Vue instances at extension time, on the extended prototype. This
  7961. // avoids Object.defineProperty calls for each instance created.
  7962. if (Sub.options.props) {
  7963. initProps$1(Sub);
  7964. }
  7965. if (Sub.options.computed) {
  7966. initComputed$1(Sub);
  7967. }
  7968. // allow further extension/mixin/plugin usage
  7969. Sub.extend = Super.extend;
  7970. Sub.mixin = Super.mixin;
  7971. Sub.use = Super.use;
  7972. // create asset registers, so extended classes
  7973. // can have their private assets too.
  7974. ASSET_TYPES.forEach(function (type) {
  7975. Sub[type] = Super[type];
  7976. });
  7977. // enable recursive self-lookup
  7978. if (name) {
  7979. Sub.options.components[name] = Sub;
  7980. }
  7981. // keep a reference to the super options at extension time.
  7982. // later at instantiation we can check if Super's options have
  7983. // been updated.
  7984. Sub.superOptions = Super.options;
  7985. Sub.extendOptions = extendOptions;
  7986. Sub.sealedOptions = extend({}, Sub.options);
  7987. // cache constructor
  7988. cachedCtors[SuperId] = Sub;
  7989. return Sub
  7990. };
  7991. }
  7992. function initProps$1 (Comp) {
  7993. var props = Comp.options.props;
  7994. for (var key in props) {
  7995. proxy(Comp.prototype, "_props", key);
  7996. }
  7997. }
  7998. function initComputed$1 (Comp) {
  7999. var computed = Comp.options.computed;
  8000. for (var key in computed) {
  8001. defineComputed(Comp.prototype, key, computed[key]);
  8002. }
  8003. }
  8004. /* */
  8005. function initAssetRegisters (Vue) {
  8006. /**
  8007. * Create asset registration methods.
  8008. */
  8009. ASSET_TYPES.forEach(function (type) {
  8010. Vue[type] = function (
  8011. id,
  8012. definition
  8013. ) {
  8014. if (!definition) {
  8015. return this.options[type + 's'][id]
  8016. } else {
  8017. /* istanbul ignore if */
  8018. if ( true && type === 'component') {
  8019. validateComponentName(id);
  8020. }
  8021. if (type === 'component' && isPlainObject(definition)) {
  8022. definition.name = definition.name || id;
  8023. definition = this.options._base.extend(definition);
  8024. }
  8025. if (type === 'directive' && typeof definition === 'function') {
  8026. definition = { bind: definition, update: definition };
  8027. }
  8028. this.options[type + 's'][id] = definition;
  8029. return definition
  8030. }
  8031. };
  8032. });
  8033. }
  8034. /* */
  8035. function getComponentName (opts) {
  8036. return opts && (opts.Ctor.options.name || opts.tag)
  8037. }
  8038. function matches (pattern, name) {
  8039. if (Array.isArray(pattern)) {
  8040. return pattern.indexOf(name) > -1
  8041. } else if (typeof pattern === 'string') {
  8042. return pattern.split(',').indexOf(name) > -1
  8043. } else if (isRegExp(pattern)) {
  8044. return pattern.test(name)
  8045. }
  8046. /* istanbul ignore next */
  8047. return false
  8048. }
  8049. function pruneCache (keepAliveInstance, filter) {
  8050. var cache = keepAliveInstance.cache;
  8051. var keys = keepAliveInstance.keys;
  8052. var _vnode = keepAliveInstance._vnode;
  8053. for (var key in cache) {
  8054. var cachedNode = cache[key];
  8055. if (cachedNode) {
  8056. var name = getComponentName(cachedNode.componentOptions);
  8057. if (name && !filter(name)) {
  8058. pruneCacheEntry(cache, key, keys, _vnode);
  8059. }
  8060. }
  8061. }
  8062. }
  8063. function pruneCacheEntry (
  8064. cache,
  8065. key,
  8066. keys,
  8067. current
  8068. ) {
  8069. var cached$$1 = cache[key];
  8070. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8071. cached$$1.componentInstance.$destroy();
  8072. }
  8073. cache[key] = null;
  8074. remove(keys, key);
  8075. }
  8076. var patternTypes = [String, RegExp, Array];
  8077. var KeepAlive = {
  8078. name: 'keep-alive',
  8079. abstract: true,
  8080. props: {
  8081. include: patternTypes,
  8082. exclude: patternTypes,
  8083. max: [String, Number]
  8084. },
  8085. created: function created () {
  8086. this.cache = Object.create(null);
  8087. this.keys = [];
  8088. },
  8089. destroyed: function destroyed () {
  8090. for (var key in this.cache) {
  8091. pruneCacheEntry(this.cache, key, this.keys);
  8092. }
  8093. },
  8094. mounted: function mounted () {
  8095. var this$1 = this;
  8096. this.$watch('include', function (val) {
  8097. pruneCache(this$1, function (name) { return matches(val, name); });
  8098. });
  8099. this.$watch('exclude', function (val) {
  8100. pruneCache(this$1, function (name) { return !matches(val, name); });
  8101. });
  8102. },
  8103. render: function render () {
  8104. var slot = this.$slots.default;
  8105. var vnode = getFirstComponentChild(slot);
  8106. var componentOptions = vnode && vnode.componentOptions;
  8107. if (componentOptions) {
  8108. // check pattern
  8109. var name = getComponentName(componentOptions);
  8110. var ref = this;
  8111. var include = ref.include;
  8112. var exclude = ref.exclude;
  8113. if (
  8114. // not included
  8115. (include && (!name || !matches(include, name))) ||
  8116. // excluded
  8117. (exclude && name && matches(exclude, name))
  8118. ) {
  8119. return vnode
  8120. }
  8121. var ref$1 = this;
  8122. var cache = ref$1.cache;
  8123. var keys = ref$1.keys;
  8124. var key = vnode.key == null
  8125. // same constructor may get registered as different local components
  8126. // so cid alone is not enough (#3269)
  8127. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8128. : vnode.key;
  8129. if (cache[key]) {
  8130. vnode.componentInstance = cache[key].componentInstance;
  8131. // make current key freshest
  8132. remove(keys, key);
  8133. keys.push(key);
  8134. } else {
  8135. cache[key] = vnode;
  8136. keys.push(key);
  8137. // prune oldest entry
  8138. if (this.max && keys.length > parseInt(this.max)) {
  8139. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8140. }
  8141. }
  8142. vnode.data.keepAlive = true;
  8143. }
  8144. return vnode || (slot && slot[0])
  8145. }
  8146. };
  8147. var builtInComponents = {
  8148. KeepAlive: KeepAlive
  8149. };
  8150. /* */
  8151. function initGlobalAPI (Vue) {
  8152. // config
  8153. var configDef = {};
  8154. configDef.get = function () { return config; };
  8155. if (true) {
  8156. configDef.set = function () {
  8157. warn(
  8158. 'Do not replace the Vue.config object, set individual fields instead.'
  8159. );
  8160. };
  8161. }
  8162. Object.defineProperty(Vue, 'config', configDef);
  8163. // exposed util methods.
  8164. // NOTE: these are not considered part of the public API - avoid relying on
  8165. // them unless you are aware of the risk.
  8166. Vue.util = {
  8167. warn: warn,
  8168. extend: extend,
  8169. mergeOptions: mergeOptions,
  8170. defineReactive: defineReactive$$1
  8171. };
  8172. Vue.set = set;
  8173. Vue.delete = del;
  8174. Vue.nextTick = nextTick;
  8175. // 2.6 explicit observable API
  8176. Vue.observable = function (obj) {
  8177. observe(obj);
  8178. return obj
  8179. };
  8180. Vue.options = Object.create(null);
  8181. ASSET_TYPES.forEach(function (type) {
  8182. Vue.options[type + 's'] = Object.create(null);
  8183. });
  8184. // this is used to identify the "base" constructor to extend all plain-object
  8185. // components with in Weex's multi-instance scenarios.
  8186. Vue.options._base = Vue;
  8187. extend(Vue.options.components, builtInComponents);
  8188. initUse(Vue);
  8189. initMixin$1(Vue);
  8190. initExtend(Vue);
  8191. initAssetRegisters(Vue);
  8192. }
  8193. initGlobalAPI(Vue);
  8194. Object.defineProperty(Vue.prototype, '$isServer', {
  8195. get: isServerRendering
  8196. });
  8197. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8198. get: function get () {
  8199. /* istanbul ignore next */
  8200. return this.$vnode && this.$vnode.ssrContext
  8201. }
  8202. });
  8203. // expose FunctionalRenderContext for ssr runtime helper installation
  8204. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8205. value: FunctionalRenderContext
  8206. });
  8207. Vue.version = '2.6.11';
  8208. /**
  8209. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8210. */
  8211. var ARRAYTYPE = '[object Array]';
  8212. var OBJECTTYPE = '[object Object]';
  8213. var NULLTYPE = '[object Null]';
  8214. var UNDEFINEDTYPE = '[object Undefined]';
  8215. // const FUNCTIONTYPE = '[object Function]'
  8216. function diff(current, pre) {
  8217. var result = {};
  8218. syncKeys(current, pre);
  8219. _diff(current, pre, '', result);
  8220. return result
  8221. }
  8222. function syncKeys(current, pre) {
  8223. if (current === pre) { return }
  8224. var rootCurrentType = type(current);
  8225. var rootPreType = type(pre);
  8226. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8227. if(Object.keys(current).length >= Object.keys(pre).length){
  8228. for (var key in pre) {
  8229. var currentValue = current[key];
  8230. if (currentValue === undefined) {
  8231. current[key] = null;
  8232. } else {
  8233. syncKeys(currentValue, pre[key]);
  8234. }
  8235. }
  8236. }
  8237. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8238. if (current.length >= pre.length) {
  8239. pre.forEach(function (item, index) {
  8240. syncKeys(current[index], item);
  8241. });
  8242. }
  8243. }
  8244. }
  8245. function nullOrUndefined(currentType, preType) {
  8246. if(
  8247. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8248. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8249. ) {
  8250. return false
  8251. }
  8252. return true
  8253. }
  8254. function _diff(current, pre, path, result) {
  8255. if (current === pre) { return }
  8256. var rootCurrentType = type(current);
  8257. var rootPreType = type(pre);
  8258. if (rootCurrentType == OBJECTTYPE) {
  8259. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8260. setResult(result, path, current);
  8261. } else {
  8262. var loop = function ( key ) {
  8263. var currentValue = current[key];
  8264. var preValue = pre[key];
  8265. var currentType = type(currentValue);
  8266. var preType = type(preValue);
  8267. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8268. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8269. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8270. }
  8271. } else if (currentType == ARRAYTYPE) {
  8272. if (preType != ARRAYTYPE) {
  8273. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8274. } else {
  8275. if (currentValue.length < preValue.length) {
  8276. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8277. } else {
  8278. currentValue.forEach(function (item, index) {
  8279. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8280. });
  8281. }
  8282. }
  8283. } else if (currentType == OBJECTTYPE) {
  8284. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8285. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8286. } else {
  8287. for (var subKey in currentValue) {
  8288. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8289. }
  8290. }
  8291. }
  8292. };
  8293. for (var key in current) loop( key );
  8294. }
  8295. } else if (rootCurrentType == ARRAYTYPE) {
  8296. if (rootPreType != ARRAYTYPE) {
  8297. setResult(result, path, current);
  8298. } else {
  8299. if (current.length < pre.length) {
  8300. setResult(result, path, current);
  8301. } else {
  8302. current.forEach(function (item, index) {
  8303. _diff(item, pre[index], path + '[' + index + ']', result);
  8304. });
  8305. }
  8306. }
  8307. } else {
  8308. setResult(result, path, current);
  8309. }
  8310. }
  8311. function setResult(result, k, v) {
  8312. // if (type(v) != FUNCTIONTYPE) {
  8313. result[k] = v;
  8314. // }
  8315. }
  8316. function type(obj) {
  8317. return Object.prototype.toString.call(obj)
  8318. }
  8319. /* */
  8320. function flushCallbacks$1(vm) {
  8321. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8322. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工具箱","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8323. var mpInstance = vm.$scope;
  8324. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8325. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8326. }
  8327. var copies = vm.__next_tick_callbacks.slice(0);
  8328. vm.__next_tick_callbacks.length = 0;
  8329. for (var i = 0; i < copies.length; i++) {
  8330. copies[i]();
  8331. }
  8332. }
  8333. }
  8334. function hasRenderWatcher(vm) {
  8335. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8336. }
  8337. function nextTick$1(vm, cb) {
  8338. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8339. //2.nextTick 之前存在 render watcher
  8340. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8341. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工具箱","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8342. var mpInstance = vm.$scope;
  8343. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8344. ']:nextVueTick');
  8345. }
  8346. return nextTick(cb, vm)
  8347. }else{
  8348. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工具箱","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8349. var mpInstance$1 = vm.$scope;
  8350. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8351. ']:nextMPTick');
  8352. }
  8353. }
  8354. var _resolve;
  8355. if (!vm.__next_tick_callbacks) {
  8356. vm.__next_tick_callbacks = [];
  8357. }
  8358. vm.__next_tick_callbacks.push(function () {
  8359. if (cb) {
  8360. try {
  8361. cb.call(vm);
  8362. } catch (e) {
  8363. handleError(e, vm, 'nextTick');
  8364. }
  8365. } else if (_resolve) {
  8366. _resolve(vm);
  8367. }
  8368. });
  8369. // $flow-disable-line
  8370. if (!cb && typeof Promise !== 'undefined') {
  8371. return new Promise(function (resolve) {
  8372. _resolve = resolve;
  8373. })
  8374. }
  8375. }
  8376. /* */
  8377. function clearInstance(key, value) {
  8378. // 简易去除 Vue 和小程序组件实例
  8379. if (value) {
  8380. if (value._isVue || value.__v_isMPComponent) {
  8381. return {}
  8382. }
  8383. }
  8384. return value
  8385. }
  8386. function cloneWithData(vm) {
  8387. // 确保当前 vm 所有数据被同步
  8388. var ret = Object.create(null);
  8389. var dataKeys = [].concat(
  8390. Object.keys(vm._data || {}),
  8391. Object.keys(vm._computedWatchers || {}));
  8392. dataKeys.reduce(function(ret, key) {
  8393. ret[key] = vm[key];
  8394. return ret
  8395. }, ret);
  8396. // vue-composition-api
  8397. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8398. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8399. if (rawBindings) {
  8400. Object.keys(rawBindings).forEach(function (key) {
  8401. ret[key] = vm[key];
  8402. });
  8403. }
  8404. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8405. Object.assign(ret, vm.$mp.data || {});
  8406. if (
  8407. Array.isArray(vm.$options.behaviors) &&
  8408. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8409. ) { //form-field
  8410. ret['name'] = vm.name;
  8411. ret['value'] = vm.value;
  8412. }
  8413. return JSON.parse(JSON.stringify(ret, clearInstance))
  8414. }
  8415. var patch = function(oldVnode, vnode) {
  8416. var this$1 = this;
  8417. if (vnode === null) { //destroy
  8418. return
  8419. }
  8420. if (this.mpType === 'page' || this.mpType === 'component') {
  8421. var mpInstance = this.$scope;
  8422. var data = Object.create(null);
  8423. try {
  8424. data = cloneWithData(this);
  8425. } catch (err) {
  8426. console.error(err);
  8427. }
  8428. data.__webviewId__ = mpInstance.data.__webviewId__;
  8429. var mpData = Object.create(null);
  8430. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8431. mpData[key] = mpInstance.data[key];
  8432. });
  8433. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8434. if (Object.keys(diffData).length) {
  8435. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工具箱","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8436. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8437. ']差量更新',
  8438. JSON.stringify(diffData));
  8439. }
  8440. this.__next_tick_pending = true;
  8441. mpInstance.setData(diffData, function () {
  8442. this$1.__next_tick_pending = false;
  8443. flushCallbacks$1(this$1);
  8444. });
  8445. } else {
  8446. flushCallbacks$1(this);
  8447. }
  8448. }
  8449. };
  8450. /* */
  8451. function createEmptyRender() {
  8452. }
  8453. function mountComponent$1(
  8454. vm,
  8455. el,
  8456. hydrating
  8457. ) {
  8458. if (!vm.mpType) {//main.js 中的 new Vue
  8459. return vm
  8460. }
  8461. if (vm.mpType === 'app') {
  8462. vm.$options.render = createEmptyRender;
  8463. }
  8464. if (!vm.$options.render) {
  8465. vm.$options.render = createEmptyRender;
  8466. if (true) {
  8467. /* istanbul ignore if */
  8468. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8469. vm.$options.el || el) {
  8470. warn(
  8471. 'You are using the runtime-only build of Vue where the template ' +
  8472. 'compiler is not available. Either pre-compile the templates into ' +
  8473. 'render functions, or use the compiler-included build.',
  8474. vm
  8475. );
  8476. } else {
  8477. warn(
  8478. 'Failed to mount component: template or render function not defined.',
  8479. vm
  8480. );
  8481. }
  8482. }
  8483. }
  8484. !vm._$fallback && callHook(vm, 'beforeMount');
  8485. var updateComponent = function () {
  8486. vm._update(vm._render(), hydrating);
  8487. };
  8488. // we set this to vm._watcher inside the watcher's constructor
  8489. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8490. // component's mounted hook), which relies on vm._watcher being already defined
  8491. new Watcher(vm, updateComponent, noop, {
  8492. before: function before() {
  8493. if (vm._isMounted && !vm._isDestroyed) {
  8494. callHook(vm, 'beforeUpdate');
  8495. }
  8496. }
  8497. }, true /* isRenderWatcher */);
  8498. hydrating = false;
  8499. return vm
  8500. }
  8501. /* */
  8502. function renderClass (
  8503. staticClass,
  8504. dynamicClass
  8505. ) {
  8506. if (isDef(staticClass) || isDef(dynamicClass)) {
  8507. return concat(staticClass, stringifyClass(dynamicClass))
  8508. }
  8509. /* istanbul ignore next */
  8510. return ''
  8511. }
  8512. function concat (a, b) {
  8513. return a ? b ? (a + ' ' + b) : a : (b || '')
  8514. }
  8515. function stringifyClass (value) {
  8516. if (Array.isArray(value)) {
  8517. return stringifyArray(value)
  8518. }
  8519. if (isObject(value)) {
  8520. return stringifyObject(value)
  8521. }
  8522. if (typeof value === 'string') {
  8523. return value
  8524. }
  8525. /* istanbul ignore next */
  8526. return ''
  8527. }
  8528. function stringifyArray (value) {
  8529. var res = '';
  8530. var stringified;
  8531. for (var i = 0, l = value.length; i < l; i++) {
  8532. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8533. if (res) { res += ' '; }
  8534. res += stringified;
  8535. }
  8536. }
  8537. return res
  8538. }
  8539. function stringifyObject (value) {
  8540. var res = '';
  8541. for (var key in value) {
  8542. if (value[key]) {
  8543. if (res) { res += ' '; }
  8544. res += key;
  8545. }
  8546. }
  8547. return res
  8548. }
  8549. /* */
  8550. var parseStyleText = cached(function (cssText) {
  8551. var res = {};
  8552. var listDelimiter = /;(?![^(]*\))/g;
  8553. var propertyDelimiter = /:(.+)/;
  8554. cssText.split(listDelimiter).forEach(function (item) {
  8555. if (item) {
  8556. var tmp = item.split(propertyDelimiter);
  8557. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8558. }
  8559. });
  8560. return res
  8561. });
  8562. // normalize possible array / string values into Object
  8563. function normalizeStyleBinding (bindingStyle) {
  8564. if (Array.isArray(bindingStyle)) {
  8565. return toObject(bindingStyle)
  8566. }
  8567. if (typeof bindingStyle === 'string') {
  8568. return parseStyleText(bindingStyle)
  8569. }
  8570. return bindingStyle
  8571. }
  8572. /* */
  8573. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8574. function getTarget(obj, path) {
  8575. var parts = path.split('.');
  8576. var key = parts[0];
  8577. if (key.indexOf('__$n') === 0) { //number index
  8578. key = parseInt(key.replace('__$n', ''));
  8579. }
  8580. if (parts.length === 1) {
  8581. return obj[key]
  8582. }
  8583. return getTarget(obj[key], parts.slice(1).join('.'))
  8584. }
  8585. function internalMixin(Vue) {
  8586. Vue.config.errorHandler = function(err, vm, info) {
  8587. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8588. console.error(err);
  8589. /* eslint-disable no-undef */
  8590. var app = typeof getApp === 'function' && getApp();
  8591. if (app && app.onError) {
  8592. app.onError(err);
  8593. }
  8594. };
  8595. var oldEmit = Vue.prototype.$emit;
  8596. Vue.prototype.$emit = function(event) {
  8597. if (this.$scope && event) {
  8598. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8599. if (triggerEvent) {
  8600. try {
  8601. triggerEvent.call(this.$scope, event, {
  8602. __args__: toArray(arguments, 1)
  8603. });
  8604. } catch (error) {
  8605. }
  8606. }
  8607. }
  8608. return oldEmit.apply(this, arguments)
  8609. };
  8610. Vue.prototype.$nextTick = function(fn) {
  8611. return nextTick$1(this, fn)
  8612. };
  8613. MP_METHODS.forEach(function (method) {
  8614. Vue.prototype[method] = function(args) {
  8615. if (this.$scope && this.$scope[method]) {
  8616. return this.$scope[method](args)
  8617. }
  8618. // mp-alipay
  8619. if (typeof my === 'undefined') {
  8620. return
  8621. }
  8622. if (method === 'createSelectorQuery') {
  8623. /* eslint-disable no-undef */
  8624. return my.createSelectorQuery(args)
  8625. } else if (method === 'createIntersectionObserver') {
  8626. /* eslint-disable no-undef */
  8627. return my.createIntersectionObserver(args)
  8628. }
  8629. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8630. };
  8631. });
  8632. Vue.prototype.__init_provide = initProvide;
  8633. Vue.prototype.__init_injections = initInjections;
  8634. Vue.prototype.__call_hook = function(hook, args) {
  8635. var vm = this;
  8636. // #7573 disable dep collection when invoking lifecycle hooks
  8637. pushTarget();
  8638. var handlers = vm.$options[hook];
  8639. var info = hook + " hook";
  8640. var ret;
  8641. if (handlers) {
  8642. for (var i = 0, j = handlers.length; i < j; i++) {
  8643. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8644. }
  8645. }
  8646. if (vm._hasHookEvent) {
  8647. vm.$emit('hook:' + hook, args);
  8648. }
  8649. popTarget();
  8650. return ret
  8651. };
  8652. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8653. if (Array.isArray(modifiers)) {
  8654. if (modifiers.indexOf('trim') !== -1) {
  8655. value = value.trim();
  8656. }
  8657. if (modifiers.indexOf('number') !== -1) {
  8658. value = this._n(value);
  8659. }
  8660. }
  8661. if (!target) {
  8662. target = this;
  8663. }
  8664. // 解决动态属性添加
  8665. Vue.set(target, key, value);
  8666. };
  8667. Vue.prototype.__set_sync = function(target, key, value) {
  8668. if (!target) {
  8669. target = this;
  8670. }
  8671. // 解决动态属性添加
  8672. Vue.set(target, key, value);
  8673. };
  8674. Vue.prototype.__get_orig = function(item) {
  8675. if (isPlainObject(item)) {
  8676. return item['$orig'] || item
  8677. }
  8678. return item
  8679. };
  8680. Vue.prototype.__get_value = function(dataPath, target) {
  8681. return getTarget(target || this, dataPath)
  8682. };
  8683. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8684. return renderClass(staticClass, dynamicClass)
  8685. };
  8686. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8687. if (!dynamicStyle && !staticStyle) {
  8688. return ''
  8689. }
  8690. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8691. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8692. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8693. };
  8694. Vue.prototype.__map = function(val, iteratee) {
  8695. //TODO 暂不考虑 string
  8696. var ret, i, l, keys, key;
  8697. if (Array.isArray(val)) {
  8698. ret = new Array(val.length);
  8699. for (i = 0, l = val.length; i < l; i++) {
  8700. ret[i] = iteratee(val[i], i);
  8701. }
  8702. return ret
  8703. } else if (isObject(val)) {
  8704. keys = Object.keys(val);
  8705. ret = Object.create(null);
  8706. for (i = 0, l = keys.length; i < l; i++) {
  8707. key = keys[i];
  8708. ret[key] = iteratee(val[key], key, i);
  8709. }
  8710. return ret
  8711. } else if (typeof val === 'number') {
  8712. ret = new Array(val);
  8713. for (i = 0, l = val; i < l; i++) {
  8714. // 第一个参数暂时仍和小程序一致
  8715. ret[i] = iteratee(i, i);
  8716. }
  8717. return ret
  8718. }
  8719. return []
  8720. };
  8721. }
  8722. /* */
  8723. var LIFECYCLE_HOOKS$1 = [
  8724. //App
  8725. 'onLaunch',
  8726. 'onShow',
  8727. 'onHide',
  8728. 'onUniNViewMessage',
  8729. 'onPageNotFound',
  8730. 'onThemeChange',
  8731. 'onError',
  8732. 'onUnhandledRejection',
  8733. //Page
  8734. 'onInit',
  8735. 'onLoad',
  8736. // 'onShow',
  8737. 'onReady',
  8738. // 'onHide',
  8739. 'onUnload',
  8740. 'onPullDownRefresh',
  8741. 'onReachBottom',
  8742. 'onTabItemTap',
  8743. 'onAddToFavorites',
  8744. 'onShareTimeline',
  8745. 'onShareAppMessage',
  8746. 'onResize',
  8747. 'onPageScroll',
  8748. 'onNavigationBarButtonTap',
  8749. 'onBackPress',
  8750. 'onNavigationBarSearchInputChanged',
  8751. 'onNavigationBarSearchInputConfirmed',
  8752. 'onNavigationBarSearchInputClicked',
  8753. 'onUploadDouyinVideo',
  8754. 'onNFCReadMessage',
  8755. //Component
  8756. // 'onReady', // 兼容旧版本,应该移除该事件
  8757. 'onPageShow',
  8758. 'onPageHide',
  8759. 'onPageResize'
  8760. ];
  8761. function lifecycleMixin$1(Vue) {
  8762. //fixed vue-class-component
  8763. var oldExtend = Vue.extend;
  8764. Vue.extend = function(extendOptions) {
  8765. extendOptions = extendOptions || {};
  8766. var methods = extendOptions.methods;
  8767. if (methods) {
  8768. Object.keys(methods).forEach(function (methodName) {
  8769. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8770. extendOptions[methodName] = methods[methodName];
  8771. delete methods[methodName];
  8772. }
  8773. });
  8774. }
  8775. return oldExtend.call(this, extendOptions)
  8776. };
  8777. var strategies = Vue.config.optionMergeStrategies;
  8778. var mergeHook = strategies.created;
  8779. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8780. strategies[hook] = mergeHook;
  8781. });
  8782. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8783. }
  8784. /* */
  8785. // install platform patch function
  8786. Vue.prototype.__patch__ = patch;
  8787. // public mount method
  8788. Vue.prototype.$mount = function(
  8789. el ,
  8790. hydrating
  8791. ) {
  8792. return mountComponent$1(this, el, hydrating)
  8793. };
  8794. lifecycleMixin$1(Vue);
  8795. internalMixin(Vue);
  8796. /* */
  8797. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8798. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8799. /***/ }),
  8800. /* 26 */
  8801. /*!****************************************************************************************!*\
  8802. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/pages.json ***!
  8803. \****************************************************************************************/
  8804. /*! no static exports found */
  8805. /***/ (function(module, exports) {
  8806. /***/ }),
  8807. /* 27 */,
  8808. /* 28 */,
  8809. /* 29 */,
  8810. /* 30 */,
  8811. /* 31 */,
  8812. /* 32 */
  8813. /*!**********************************************************************************************************!*\
  8814. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8815. \**********************************************************************************************************/
  8816. /*! exports provided: default */
  8817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8818. "use strict";
  8819. __webpack_require__.r(__webpack_exports__);
  8820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8821. /* globals __VUE_SSR_CONTEXT__ */
  8822. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8823. // This module is a runtime utility for cleaner component module output and will
  8824. // be included in the final webpack user bundle.
  8825. function normalizeComponent (
  8826. scriptExports,
  8827. render,
  8828. staticRenderFns,
  8829. functionalTemplate,
  8830. injectStyles,
  8831. scopeId,
  8832. moduleIdentifier, /* server only */
  8833. shadowMode, /* vue-cli only */
  8834. components, // fixed by xxxxxx auto components
  8835. renderjs // fixed by xxxxxx renderjs
  8836. ) {
  8837. // Vue.extend constructor export interop
  8838. var options = typeof scriptExports === 'function'
  8839. ? scriptExports.options
  8840. : scriptExports
  8841. // fixed by xxxxxx auto components
  8842. if (components) {
  8843. if (!options.components) {
  8844. options.components = {}
  8845. }
  8846. var hasOwn = Object.prototype.hasOwnProperty
  8847. for (var name in components) {
  8848. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8849. options.components[name] = components[name]
  8850. }
  8851. }
  8852. }
  8853. // fixed by xxxxxx renderjs
  8854. if (renderjs) {
  8855. if(typeof renderjs.beforeCreate === 'function'){
  8856. renderjs.beforeCreate = [renderjs.beforeCreate]
  8857. }
  8858. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8859. this[renderjs.__module] = this
  8860. });
  8861. (options.mixins || (options.mixins = [])).push(renderjs)
  8862. }
  8863. // render functions
  8864. if (render) {
  8865. options.render = render
  8866. options.staticRenderFns = staticRenderFns
  8867. options._compiled = true
  8868. }
  8869. // functional template
  8870. if (functionalTemplate) {
  8871. options.functional = true
  8872. }
  8873. // scopedId
  8874. if (scopeId) {
  8875. options._scopeId = 'data-v-' + scopeId
  8876. }
  8877. var hook
  8878. if (moduleIdentifier) { // server build
  8879. hook = function (context) {
  8880. // 2.3 injection
  8881. context =
  8882. context || // cached call
  8883. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8884. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8885. // 2.2 with runInNewContext: true
  8886. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8887. context = __VUE_SSR_CONTEXT__
  8888. }
  8889. // inject component styles
  8890. if (injectStyles) {
  8891. injectStyles.call(this, context)
  8892. }
  8893. // register component module identifier for async chunk inferrence
  8894. if (context && context._registeredComponents) {
  8895. context._registeredComponents.add(moduleIdentifier)
  8896. }
  8897. }
  8898. // used by ssr in case component is cached and beforeCreate
  8899. // never gets called
  8900. options._ssrRegister = hook
  8901. } else if (injectStyles) {
  8902. hook = shadowMode
  8903. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8904. : injectStyles
  8905. }
  8906. if (hook) {
  8907. if (options.functional) {
  8908. // for template-only hot-reload because in that case the render fn doesn't
  8909. // go through the normalizer
  8910. options._injectStyles = hook
  8911. // register for functioal component in vue file
  8912. var originalRender = options.render
  8913. options.render = function renderWithStyleInjection (h, context) {
  8914. hook.call(context)
  8915. return originalRender(h, context)
  8916. }
  8917. } else {
  8918. // inject component registration as beforeCreate hook
  8919. var existing = options.beforeCreate
  8920. options.beforeCreate = existing
  8921. ? [].concat(existing, hook)
  8922. : [hook]
  8923. }
  8924. }
  8925. return {
  8926. exports: scriptExports,
  8927. options: options
  8928. }
  8929. }
  8930. /***/ }),
  8931. /* 33 */
  8932. /*!********************************************************************************************!*\
  8933. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/store/index.js ***!
  8934. \********************************************************************************************/
  8935. /*! no static exports found */
  8936. /***/ (function(module, exports, __webpack_require__) {
  8937. "use strict";
  8938. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8939. Object.defineProperty(exports, "__esModule", {
  8940. value: true
  8941. });
  8942. exports.default = void 0;
  8943. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  8944. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 34));
  8945. _vue.default.use(_vuex.default); // vue的插件机制
  8946. // Vuex.Store 构造器选项
  8947. var store = new _vuex.default.Store({
  8948. // 为了不和页面或组件的data中的造成混淆,state中的变量前面建议加上$符号
  8949. state: {
  8950. // 用户信息
  8951. $userInfo: {
  8952. id: 1
  8953. }
  8954. }
  8955. });
  8956. var _default = store;
  8957. exports.default = _default;
  8958. /***/ }),
  8959. /* 34 */
  8960. /*!**************************************************************************************!*\
  8961. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  8962. \**************************************************************************************/
  8963. /*! no static exports found */
  8964. /***/ (function(module, exports, __webpack_require__) {
  8965. "use strict";
  8966. /* WEBPACK VAR INJECTION */(function(global) {/*!
  8967. * vuex v3.6.2
  8968. * (c) 2021 Evan You
  8969. * @license MIT
  8970. */
  8971. function applyMixin (Vue) {
  8972. var version = Number(Vue.version.split('.')[0]);
  8973. if (version >= 2) {
  8974. Vue.mixin({ beforeCreate: vuexInit });
  8975. } else {
  8976. // override init and inject vuex init procedure
  8977. // for 1.x backwards compatibility.
  8978. var _init = Vue.prototype._init;
  8979. Vue.prototype._init = function (options) {
  8980. if ( options === void 0 ) options = {};
  8981. options.init = options.init
  8982. ? [vuexInit].concat(options.init)
  8983. : vuexInit;
  8984. _init.call(this, options);
  8985. };
  8986. }
  8987. /**
  8988. * Vuex init hook, injected into each instances init hooks list.
  8989. */
  8990. function vuexInit () {
  8991. var options = this.$options;
  8992. // store injection
  8993. if (options.store) {
  8994. this.$store = typeof options.store === 'function'
  8995. ? options.store()
  8996. : options.store;
  8997. } else if (options.parent && options.parent.$store) {
  8998. this.$store = options.parent.$store;
  8999. }
  9000. }
  9001. }
  9002. var target = typeof window !== 'undefined'
  9003. ? window
  9004. : typeof global !== 'undefined'
  9005. ? global
  9006. : {};
  9007. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  9008. function devtoolPlugin (store) {
  9009. if (!devtoolHook) { return }
  9010. store._devtoolHook = devtoolHook;
  9011. devtoolHook.emit('vuex:init', store);
  9012. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  9013. store.replaceState(targetState);
  9014. });
  9015. store.subscribe(function (mutation, state) {
  9016. devtoolHook.emit('vuex:mutation', mutation, state);
  9017. }, { prepend: true });
  9018. store.subscribeAction(function (action, state) {
  9019. devtoolHook.emit('vuex:action', action, state);
  9020. }, { prepend: true });
  9021. }
  9022. /**
  9023. * Get the first item that pass the test
  9024. * by second argument function
  9025. *
  9026. * @param {Array} list
  9027. * @param {Function} f
  9028. * @return {*}
  9029. */
  9030. function find (list, f) {
  9031. return list.filter(f)[0]
  9032. }
  9033. /**
  9034. * Deep copy the given object considering circular structure.
  9035. * This function caches all nested objects and its copies.
  9036. * If it detects circular structure, use cached copy to avoid infinite loop.
  9037. *
  9038. * @param {*} obj
  9039. * @param {Array<Object>} cache
  9040. * @return {*}
  9041. */
  9042. function deepCopy (obj, cache) {
  9043. if ( cache === void 0 ) cache = [];
  9044. // just return if obj is immutable value
  9045. if (obj === null || typeof obj !== 'object') {
  9046. return obj
  9047. }
  9048. // if obj is hit, it is in circular structure
  9049. var hit = find(cache, function (c) { return c.original === obj; });
  9050. if (hit) {
  9051. return hit.copy
  9052. }
  9053. var copy = Array.isArray(obj) ? [] : {};
  9054. // put the copy into cache at first
  9055. // because we want to refer it in recursive deepCopy
  9056. cache.push({
  9057. original: obj,
  9058. copy: copy
  9059. });
  9060. Object.keys(obj).forEach(function (key) {
  9061. copy[key] = deepCopy(obj[key], cache);
  9062. });
  9063. return copy
  9064. }
  9065. /**
  9066. * forEach for object
  9067. */
  9068. function forEachValue (obj, fn) {
  9069. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  9070. }
  9071. function isObject (obj) {
  9072. return obj !== null && typeof obj === 'object'
  9073. }
  9074. function isPromise (val) {
  9075. return val && typeof val.then === 'function'
  9076. }
  9077. function assert (condition, msg) {
  9078. if (!condition) { throw new Error(("[vuex] " + msg)) }
  9079. }
  9080. function partial (fn, arg) {
  9081. return function () {
  9082. return fn(arg)
  9083. }
  9084. }
  9085. // Base data struct for store's module, package with some attribute and method
  9086. var Module = function Module (rawModule, runtime) {
  9087. this.runtime = runtime;
  9088. // Store some children item
  9089. this._children = Object.create(null);
  9090. // Store the origin module object which passed by programmer
  9091. this._rawModule = rawModule;
  9092. var rawState = rawModule.state;
  9093. // Store the origin module's state
  9094. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  9095. };
  9096. var prototypeAccessors = { namespaced: { configurable: true } };
  9097. prototypeAccessors.namespaced.get = function () {
  9098. return !!this._rawModule.namespaced
  9099. };
  9100. Module.prototype.addChild = function addChild (key, module) {
  9101. this._children[key] = module;
  9102. };
  9103. Module.prototype.removeChild = function removeChild (key) {
  9104. delete this._children[key];
  9105. };
  9106. Module.prototype.getChild = function getChild (key) {
  9107. return this._children[key]
  9108. };
  9109. Module.prototype.hasChild = function hasChild (key) {
  9110. return key in this._children
  9111. };
  9112. Module.prototype.update = function update (rawModule) {
  9113. this._rawModule.namespaced = rawModule.namespaced;
  9114. if (rawModule.actions) {
  9115. this._rawModule.actions = rawModule.actions;
  9116. }
  9117. if (rawModule.mutations) {
  9118. this._rawModule.mutations = rawModule.mutations;
  9119. }
  9120. if (rawModule.getters) {
  9121. this._rawModule.getters = rawModule.getters;
  9122. }
  9123. };
  9124. Module.prototype.forEachChild = function forEachChild (fn) {
  9125. forEachValue(this._children, fn);
  9126. };
  9127. Module.prototype.forEachGetter = function forEachGetter (fn) {
  9128. if (this._rawModule.getters) {
  9129. forEachValue(this._rawModule.getters, fn);
  9130. }
  9131. };
  9132. Module.prototype.forEachAction = function forEachAction (fn) {
  9133. if (this._rawModule.actions) {
  9134. forEachValue(this._rawModule.actions, fn);
  9135. }
  9136. };
  9137. Module.prototype.forEachMutation = function forEachMutation (fn) {
  9138. if (this._rawModule.mutations) {
  9139. forEachValue(this._rawModule.mutations, fn);
  9140. }
  9141. };
  9142. Object.defineProperties( Module.prototype, prototypeAccessors );
  9143. var ModuleCollection = function ModuleCollection (rawRootModule) {
  9144. // register root module (Vuex.Store options)
  9145. this.register([], rawRootModule, false);
  9146. };
  9147. ModuleCollection.prototype.get = function get (path) {
  9148. return path.reduce(function (module, key) {
  9149. return module.getChild(key)
  9150. }, this.root)
  9151. };
  9152. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  9153. var module = this.root;
  9154. return path.reduce(function (namespace, key) {
  9155. module = module.getChild(key);
  9156. return namespace + (module.namespaced ? key + '/' : '')
  9157. }, '')
  9158. };
  9159. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  9160. update([], this.root, rawRootModule);
  9161. };
  9162. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  9163. var this$1 = this;
  9164. if ( runtime === void 0 ) runtime = true;
  9165. if ((true)) {
  9166. assertRawModule(path, rawModule);
  9167. }
  9168. var newModule = new Module(rawModule, runtime);
  9169. if (path.length === 0) {
  9170. this.root = newModule;
  9171. } else {
  9172. var parent = this.get(path.slice(0, -1));
  9173. parent.addChild(path[path.length - 1], newModule);
  9174. }
  9175. // register nested modules
  9176. if (rawModule.modules) {
  9177. forEachValue(rawModule.modules, function (rawChildModule, key) {
  9178. this$1.register(path.concat(key), rawChildModule, runtime);
  9179. });
  9180. }
  9181. };
  9182. ModuleCollection.prototype.unregister = function unregister (path) {
  9183. var parent = this.get(path.slice(0, -1));
  9184. var key = path[path.length - 1];
  9185. var child = parent.getChild(key);
  9186. if (!child) {
  9187. if ((true)) {
  9188. console.warn(
  9189. "[vuex] trying to unregister module '" + key + "', which is " +
  9190. "not registered"
  9191. );
  9192. }
  9193. return
  9194. }
  9195. if (!child.runtime) {
  9196. return
  9197. }
  9198. parent.removeChild(key);
  9199. };
  9200. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  9201. var parent = this.get(path.slice(0, -1));
  9202. var key = path[path.length - 1];
  9203. if (parent) {
  9204. return parent.hasChild(key)
  9205. }
  9206. return false
  9207. };
  9208. function update (path, targetModule, newModule) {
  9209. if ((true)) {
  9210. assertRawModule(path, newModule);
  9211. }
  9212. // update target module
  9213. targetModule.update(newModule);
  9214. // update nested modules
  9215. if (newModule.modules) {
  9216. for (var key in newModule.modules) {
  9217. if (!targetModule.getChild(key)) {
  9218. if ((true)) {
  9219. console.warn(
  9220. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  9221. 'manual reload is needed'
  9222. );
  9223. }
  9224. return
  9225. }
  9226. update(
  9227. path.concat(key),
  9228. targetModule.getChild(key),
  9229. newModule.modules[key]
  9230. );
  9231. }
  9232. }
  9233. }
  9234. var functionAssert = {
  9235. assert: function (value) { return typeof value === 'function'; },
  9236. expected: 'function'
  9237. };
  9238. var objectAssert = {
  9239. assert: function (value) { return typeof value === 'function' ||
  9240. (typeof value === 'object' && typeof value.handler === 'function'); },
  9241. expected: 'function or object with "handler" function'
  9242. };
  9243. var assertTypes = {
  9244. getters: functionAssert,
  9245. mutations: functionAssert,
  9246. actions: objectAssert
  9247. };
  9248. function assertRawModule (path, rawModule) {
  9249. Object.keys(assertTypes).forEach(function (key) {
  9250. if (!rawModule[key]) { return }
  9251. var assertOptions = assertTypes[key];
  9252. forEachValue(rawModule[key], function (value, type) {
  9253. assert(
  9254. assertOptions.assert(value),
  9255. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  9256. );
  9257. });
  9258. });
  9259. }
  9260. function makeAssertionMessage (path, key, type, value, expected) {
  9261. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  9262. if (path.length > 0) {
  9263. buf += " in module \"" + (path.join('.')) + "\"";
  9264. }
  9265. buf += " is " + (JSON.stringify(value)) + ".";
  9266. return buf
  9267. }
  9268. var Vue; // bind on install
  9269. var Store = function Store (options) {
  9270. var this$1 = this;
  9271. if ( options === void 0 ) options = {};
  9272. // Auto install if it is not done yet and `window` has `Vue`.
  9273. // To allow users to avoid auto-installation in some cases,
  9274. // this code should be placed here. See #731
  9275. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  9276. install(window.Vue);
  9277. }
  9278. if ((true)) {
  9279. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  9280. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  9281. assert(this instanceof Store, "store must be called with the new operator.");
  9282. }
  9283. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  9284. var strict = options.strict; if ( strict === void 0 ) strict = false;
  9285. // store internal state
  9286. this._committing = false;
  9287. this._actions = Object.create(null);
  9288. this._actionSubscribers = [];
  9289. this._mutations = Object.create(null);
  9290. this._wrappedGetters = Object.create(null);
  9291. this._modules = new ModuleCollection(options);
  9292. this._modulesNamespaceMap = Object.create(null);
  9293. this._subscribers = [];
  9294. this._watcherVM = new Vue();
  9295. this._makeLocalGettersCache = Object.create(null);
  9296. // bind commit and dispatch to self
  9297. var store = this;
  9298. var ref = this;
  9299. var dispatch = ref.dispatch;
  9300. var commit = ref.commit;
  9301. this.dispatch = function boundDispatch (type, payload) {
  9302. return dispatch.call(store, type, payload)
  9303. };
  9304. this.commit = function boundCommit (type, payload, options) {
  9305. return commit.call(store, type, payload, options)
  9306. };
  9307. // strict mode
  9308. this.strict = strict;
  9309. var state = this._modules.root.state;
  9310. // init root module.
  9311. // this also recursively registers all sub-modules
  9312. // and collects all module getters inside this._wrappedGetters
  9313. installModule(this, state, [], this._modules.root);
  9314. // initialize the store vm, which is responsible for the reactivity
  9315. // (also registers _wrappedGetters as computed properties)
  9316. resetStoreVM(this, state);
  9317. // apply plugins
  9318. plugins.forEach(function (plugin) { return plugin(this$1); });
  9319. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  9320. if (useDevtools) {
  9321. devtoolPlugin(this);
  9322. }
  9323. };
  9324. var prototypeAccessors$1 = { state: { configurable: true } };
  9325. prototypeAccessors$1.state.get = function () {
  9326. return this._vm._data.$$state
  9327. };
  9328. prototypeAccessors$1.state.set = function (v) {
  9329. if ((true)) {
  9330. assert(false, "use store.replaceState() to explicit replace store state.");
  9331. }
  9332. };
  9333. Store.prototype.commit = function commit (_type, _payload, _options) {
  9334. var this$1 = this;
  9335. // check object-style commit
  9336. var ref = unifyObjectStyle(_type, _payload, _options);
  9337. var type = ref.type;
  9338. var payload = ref.payload;
  9339. var options = ref.options;
  9340. var mutation = { type: type, payload: payload };
  9341. var entry = this._mutations[type];
  9342. if (!entry) {
  9343. if ((true)) {
  9344. console.error(("[vuex] unknown mutation type: " + type));
  9345. }
  9346. return
  9347. }
  9348. this._withCommit(function () {
  9349. entry.forEach(function commitIterator (handler) {
  9350. handler(payload);
  9351. });
  9352. });
  9353. this._subscribers
  9354. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  9355. .forEach(function (sub) { return sub(mutation, this$1.state); });
  9356. if (
  9357. ( true) &&
  9358. options && options.silent
  9359. ) {
  9360. console.warn(
  9361. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  9362. 'Use the filter functionality in the vue-devtools'
  9363. );
  9364. }
  9365. };
  9366. Store.prototype.dispatch = function dispatch (_type, _payload) {
  9367. var this$1 = this;
  9368. // check object-style dispatch
  9369. var ref = unifyObjectStyle(_type, _payload);
  9370. var type = ref.type;
  9371. var payload = ref.payload;
  9372. var action = { type: type, payload: payload };
  9373. var entry = this._actions[type];
  9374. if (!entry) {
  9375. if ((true)) {
  9376. console.error(("[vuex] unknown action type: " + type));
  9377. }
  9378. return
  9379. }
  9380. try {
  9381. this._actionSubscribers
  9382. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  9383. .filter(function (sub) { return sub.before; })
  9384. .forEach(function (sub) { return sub.before(action, this$1.state); });
  9385. } catch (e) {
  9386. if ((true)) {
  9387. console.warn("[vuex] error in before action subscribers: ");
  9388. console.error(e);
  9389. }
  9390. }
  9391. var result = entry.length > 1
  9392. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  9393. : entry[0](payload);
  9394. return new Promise(function (resolve, reject) {
  9395. result.then(function (res) {
  9396. try {
  9397. this$1._actionSubscribers
  9398. .filter(function (sub) { return sub.after; })
  9399. .forEach(function (sub) { return sub.after(action, this$1.state); });
  9400. } catch (e) {
  9401. if ((true)) {
  9402. console.warn("[vuex] error in after action subscribers: ");
  9403. console.error(e);
  9404. }
  9405. }
  9406. resolve(res);
  9407. }, function (error) {
  9408. try {
  9409. this$1._actionSubscribers
  9410. .filter(function (sub) { return sub.error; })
  9411. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  9412. } catch (e) {
  9413. if ((true)) {
  9414. console.warn("[vuex] error in error action subscribers: ");
  9415. console.error(e);
  9416. }
  9417. }
  9418. reject(error);
  9419. });
  9420. })
  9421. };
  9422. Store.prototype.subscribe = function subscribe (fn, options) {
  9423. return genericSubscribe(fn, this._subscribers, options)
  9424. };
  9425. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  9426. var subs = typeof fn === 'function' ? { before: fn } : fn;
  9427. return genericSubscribe(subs, this._actionSubscribers, options)
  9428. };
  9429. Store.prototype.watch = function watch (getter, cb, options) {
  9430. var this$1 = this;
  9431. if ((true)) {
  9432. assert(typeof getter === 'function', "store.watch only accepts a function.");
  9433. }
  9434. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  9435. };
  9436. Store.prototype.replaceState = function replaceState (state) {
  9437. var this$1 = this;
  9438. this._withCommit(function () {
  9439. this$1._vm._data.$$state = state;
  9440. });
  9441. };
  9442. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  9443. if ( options === void 0 ) options = {};
  9444. if (typeof path === 'string') { path = [path]; }
  9445. if ((true)) {
  9446. assert(Array.isArray(path), "module path must be a string or an Array.");
  9447. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  9448. }
  9449. this._modules.register(path, rawModule);
  9450. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  9451. // reset store to update getters...
  9452. resetStoreVM(this, this.state);
  9453. };
  9454. Store.prototype.unregisterModule = function unregisterModule (path) {
  9455. var this$1 = this;
  9456. if (typeof path === 'string') { path = [path]; }
  9457. if ((true)) {
  9458. assert(Array.isArray(path), "module path must be a string or an Array.");
  9459. }
  9460. this._modules.unregister(path);
  9461. this._withCommit(function () {
  9462. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  9463. Vue.delete(parentState, path[path.length - 1]);
  9464. });
  9465. resetStore(this);
  9466. };
  9467. Store.prototype.hasModule = function hasModule (path) {
  9468. if (typeof path === 'string') { path = [path]; }
  9469. if ((true)) {
  9470. assert(Array.isArray(path), "module path must be a string or an Array.");
  9471. }
  9472. return this._modules.isRegistered(path)
  9473. };
  9474. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  9475. this._modules.update(newOptions);
  9476. resetStore(this, true);
  9477. };
  9478. Store.prototype._withCommit = function _withCommit (fn) {
  9479. var committing = this._committing;
  9480. this._committing = true;
  9481. fn();
  9482. this._committing = committing;
  9483. };
  9484. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  9485. function genericSubscribe (fn, subs, options) {
  9486. if (subs.indexOf(fn) < 0) {
  9487. options && options.prepend
  9488. ? subs.unshift(fn)
  9489. : subs.push(fn);
  9490. }
  9491. return function () {
  9492. var i = subs.indexOf(fn);
  9493. if (i > -1) {
  9494. subs.splice(i, 1);
  9495. }
  9496. }
  9497. }
  9498. function resetStore (store, hot) {
  9499. store._actions = Object.create(null);
  9500. store._mutations = Object.create(null);
  9501. store._wrappedGetters = Object.create(null);
  9502. store._modulesNamespaceMap = Object.create(null);
  9503. var state = store.state;
  9504. // init all modules
  9505. installModule(store, state, [], store._modules.root, true);
  9506. // reset vm
  9507. resetStoreVM(store, state, hot);
  9508. }
  9509. function resetStoreVM (store, state, hot) {
  9510. var oldVm = store._vm;
  9511. // bind store public getters
  9512. store.getters = {};
  9513. // reset local getters cache
  9514. store._makeLocalGettersCache = Object.create(null);
  9515. var wrappedGetters = store._wrappedGetters;
  9516. var computed = {};
  9517. forEachValue(wrappedGetters, function (fn, key) {
  9518. // use computed to leverage its lazy-caching mechanism
  9519. // direct inline function use will lead to closure preserving oldVm.
  9520. // using partial to return function with only arguments preserved in closure environment.
  9521. computed[key] = partial(fn, store);
  9522. Object.defineProperty(store.getters, key, {
  9523. get: function () { return store._vm[key]; },
  9524. enumerable: true // for local getters
  9525. });
  9526. });
  9527. // use a Vue instance to store the state tree
  9528. // suppress warnings just in case the user has added
  9529. // some funky global mixins
  9530. var silent = Vue.config.silent;
  9531. Vue.config.silent = true;
  9532. store._vm = new Vue({
  9533. data: {
  9534. $$state: state
  9535. },
  9536. computed: computed
  9537. });
  9538. Vue.config.silent = silent;
  9539. // enable strict mode for new vm
  9540. if (store.strict) {
  9541. enableStrictMode(store);
  9542. }
  9543. if (oldVm) {
  9544. if (hot) {
  9545. // dispatch changes in all subscribed watchers
  9546. // to force getter re-evaluation for hot reloading.
  9547. store._withCommit(function () {
  9548. oldVm._data.$$state = null;
  9549. });
  9550. }
  9551. Vue.nextTick(function () { return oldVm.$destroy(); });
  9552. }
  9553. }
  9554. function installModule (store, rootState, path, module, hot) {
  9555. var isRoot = !path.length;
  9556. var namespace = store._modules.getNamespace(path);
  9557. // register in namespace map
  9558. if (module.namespaced) {
  9559. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  9560. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  9561. }
  9562. store._modulesNamespaceMap[namespace] = module;
  9563. }
  9564. // set state
  9565. if (!isRoot && !hot) {
  9566. var parentState = getNestedState(rootState, path.slice(0, -1));
  9567. var moduleName = path[path.length - 1];
  9568. store._withCommit(function () {
  9569. if ((true)) {
  9570. if (moduleName in parentState) {
  9571. console.warn(
  9572. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  9573. );
  9574. }
  9575. }
  9576. Vue.set(parentState, moduleName, module.state);
  9577. });
  9578. }
  9579. var local = module.context = makeLocalContext(store, namespace, path);
  9580. module.forEachMutation(function (mutation, key) {
  9581. var namespacedType = namespace + key;
  9582. registerMutation(store, namespacedType, mutation, local);
  9583. });
  9584. module.forEachAction(function (action, key) {
  9585. var type = action.root ? key : namespace + key;
  9586. var handler = action.handler || action;
  9587. registerAction(store, type, handler, local);
  9588. });
  9589. module.forEachGetter(function (getter, key) {
  9590. var namespacedType = namespace + key;
  9591. registerGetter(store, namespacedType, getter, local);
  9592. });
  9593. module.forEachChild(function (child, key) {
  9594. installModule(store, rootState, path.concat(key), child, hot);
  9595. });
  9596. }
  9597. /**
  9598. * make localized dispatch, commit, getters and state
  9599. * if there is no namespace, just use root ones
  9600. */
  9601. function makeLocalContext (store, namespace, path) {
  9602. var noNamespace = namespace === '';
  9603. var local = {
  9604. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  9605. var args = unifyObjectStyle(_type, _payload, _options);
  9606. var payload = args.payload;
  9607. var options = args.options;
  9608. var type = args.type;
  9609. if (!options || !options.root) {
  9610. type = namespace + type;
  9611. if (( true) && !store._actions[type]) {
  9612. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  9613. return
  9614. }
  9615. }
  9616. return store.dispatch(type, payload)
  9617. },
  9618. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  9619. var args = unifyObjectStyle(_type, _payload, _options);
  9620. var payload = args.payload;
  9621. var options = args.options;
  9622. var type = args.type;
  9623. if (!options || !options.root) {
  9624. type = namespace + type;
  9625. if (( true) && !store._mutations[type]) {
  9626. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  9627. return
  9628. }
  9629. }
  9630. store.commit(type, payload, options);
  9631. }
  9632. };
  9633. // getters and state object must be gotten lazily
  9634. // because they will be changed by vm update
  9635. Object.defineProperties(local, {
  9636. getters: {
  9637. get: noNamespace
  9638. ? function () { return store.getters; }
  9639. : function () { return makeLocalGetters(store, namespace); }
  9640. },
  9641. state: {
  9642. get: function () { return getNestedState(store.state, path); }
  9643. }
  9644. });
  9645. return local
  9646. }
  9647. function makeLocalGetters (store, namespace) {
  9648. if (!store._makeLocalGettersCache[namespace]) {
  9649. var gettersProxy = {};
  9650. var splitPos = namespace.length;
  9651. Object.keys(store.getters).forEach(function (type) {
  9652. // skip if the target getter is not match this namespace
  9653. if (type.slice(0, splitPos) !== namespace) { return }
  9654. // extract local getter type
  9655. var localType = type.slice(splitPos);
  9656. // Add a port to the getters proxy.
  9657. // Define as getter property because
  9658. // we do not want to evaluate the getters in this time.
  9659. Object.defineProperty(gettersProxy, localType, {
  9660. get: function () { return store.getters[type]; },
  9661. enumerable: true
  9662. });
  9663. });
  9664. store._makeLocalGettersCache[namespace] = gettersProxy;
  9665. }
  9666. return store._makeLocalGettersCache[namespace]
  9667. }
  9668. function registerMutation (store, type, handler, local) {
  9669. var entry = store._mutations[type] || (store._mutations[type] = []);
  9670. entry.push(function wrappedMutationHandler (payload) {
  9671. handler.call(store, local.state, payload);
  9672. });
  9673. }
  9674. function registerAction (store, type, handler, local) {
  9675. var entry = store._actions[type] || (store._actions[type] = []);
  9676. entry.push(function wrappedActionHandler (payload) {
  9677. var res = handler.call(store, {
  9678. dispatch: local.dispatch,
  9679. commit: local.commit,
  9680. getters: local.getters,
  9681. state: local.state,
  9682. rootGetters: store.getters,
  9683. rootState: store.state
  9684. }, payload);
  9685. if (!isPromise(res)) {
  9686. res = Promise.resolve(res);
  9687. }
  9688. if (store._devtoolHook) {
  9689. return res.catch(function (err) {
  9690. store._devtoolHook.emit('vuex:error', err);
  9691. throw err
  9692. })
  9693. } else {
  9694. return res
  9695. }
  9696. });
  9697. }
  9698. function registerGetter (store, type, rawGetter, local) {
  9699. if (store._wrappedGetters[type]) {
  9700. if ((true)) {
  9701. console.error(("[vuex] duplicate getter key: " + type));
  9702. }
  9703. return
  9704. }
  9705. store._wrappedGetters[type] = function wrappedGetter (store) {
  9706. return rawGetter(
  9707. local.state, // local state
  9708. local.getters, // local getters
  9709. store.state, // root state
  9710. store.getters // root getters
  9711. )
  9712. };
  9713. }
  9714. function enableStrictMode (store) {
  9715. store._vm.$watch(function () { return this._data.$$state }, function () {
  9716. if ((true)) {
  9717. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  9718. }
  9719. }, { deep: true, sync: true });
  9720. }
  9721. function getNestedState (state, path) {
  9722. return path.reduce(function (state, key) { return state[key]; }, state)
  9723. }
  9724. function unifyObjectStyle (type, payload, options) {
  9725. if (isObject(type) && type.type) {
  9726. options = payload;
  9727. payload = type;
  9728. type = type.type;
  9729. }
  9730. if ((true)) {
  9731. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  9732. }
  9733. return { type: type, payload: payload, options: options }
  9734. }
  9735. function install (_Vue) {
  9736. if (Vue && _Vue === Vue) {
  9737. if ((true)) {
  9738. console.error(
  9739. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  9740. );
  9741. }
  9742. return
  9743. }
  9744. Vue = _Vue;
  9745. applyMixin(Vue);
  9746. }
  9747. /**
  9748. * Reduce the code which written in Vue.js for getting the state.
  9749. * @param {String} [namespace] - Module's namespace
  9750. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  9751. * @param {Object}
  9752. */
  9753. var mapState = normalizeNamespace(function (namespace, states) {
  9754. var res = {};
  9755. if (( true) && !isValidMap(states)) {
  9756. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  9757. }
  9758. normalizeMap(states).forEach(function (ref) {
  9759. var key = ref.key;
  9760. var val = ref.val;
  9761. res[key] = function mappedState () {
  9762. var state = this.$store.state;
  9763. var getters = this.$store.getters;
  9764. if (namespace) {
  9765. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  9766. if (!module) {
  9767. return
  9768. }
  9769. state = module.context.state;
  9770. getters = module.context.getters;
  9771. }
  9772. return typeof val === 'function'
  9773. ? val.call(this, state, getters)
  9774. : state[val]
  9775. };
  9776. // mark vuex getter for devtools
  9777. res[key].vuex = true;
  9778. });
  9779. return res
  9780. });
  9781. /**
  9782. * Reduce the code which written in Vue.js for committing the mutation
  9783. * @param {String} [namespace] - Module's namespace
  9784. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  9785. * @return {Object}
  9786. */
  9787. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  9788. var res = {};
  9789. if (( true) && !isValidMap(mutations)) {
  9790. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  9791. }
  9792. normalizeMap(mutations).forEach(function (ref) {
  9793. var key = ref.key;
  9794. var val = ref.val;
  9795. res[key] = function mappedMutation () {
  9796. var args = [], len = arguments.length;
  9797. while ( len-- ) args[ len ] = arguments[ len ];
  9798. // Get the commit method from store
  9799. var commit = this.$store.commit;
  9800. if (namespace) {
  9801. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  9802. if (!module) {
  9803. return
  9804. }
  9805. commit = module.context.commit;
  9806. }
  9807. return typeof val === 'function'
  9808. ? val.apply(this, [commit].concat(args))
  9809. : commit.apply(this.$store, [val].concat(args))
  9810. };
  9811. });
  9812. return res
  9813. });
  9814. /**
  9815. * Reduce the code which written in Vue.js for getting the getters
  9816. * @param {String} [namespace] - Module's namespace
  9817. * @param {Object|Array} getters
  9818. * @return {Object}
  9819. */
  9820. var mapGetters = normalizeNamespace(function (namespace, getters) {
  9821. var res = {};
  9822. if (( true) && !isValidMap(getters)) {
  9823. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  9824. }
  9825. normalizeMap(getters).forEach(function (ref) {
  9826. var key = ref.key;
  9827. var val = ref.val;
  9828. // The namespace has been mutated by normalizeNamespace
  9829. val = namespace + val;
  9830. res[key] = function mappedGetter () {
  9831. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  9832. return
  9833. }
  9834. if (( true) && !(val in this.$store.getters)) {
  9835. console.error(("[vuex] unknown getter: " + val));
  9836. return
  9837. }
  9838. return this.$store.getters[val]
  9839. };
  9840. // mark vuex getter for devtools
  9841. res[key].vuex = true;
  9842. });
  9843. return res
  9844. });
  9845. /**
  9846. * Reduce the code which written in Vue.js for dispatch the action
  9847. * @param {String} [namespace] - Module's namespace
  9848. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  9849. * @return {Object}
  9850. */
  9851. var mapActions = normalizeNamespace(function (namespace, actions) {
  9852. var res = {};
  9853. if (( true) && !isValidMap(actions)) {
  9854. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  9855. }
  9856. normalizeMap(actions).forEach(function (ref) {
  9857. var key = ref.key;
  9858. var val = ref.val;
  9859. res[key] = function mappedAction () {
  9860. var args = [], len = arguments.length;
  9861. while ( len-- ) args[ len ] = arguments[ len ];
  9862. // get dispatch function from store
  9863. var dispatch = this.$store.dispatch;
  9864. if (namespace) {
  9865. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  9866. if (!module) {
  9867. return
  9868. }
  9869. dispatch = module.context.dispatch;
  9870. }
  9871. return typeof val === 'function'
  9872. ? val.apply(this, [dispatch].concat(args))
  9873. : dispatch.apply(this.$store, [val].concat(args))
  9874. };
  9875. });
  9876. return res
  9877. });
  9878. /**
  9879. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  9880. * @param {String} namespace
  9881. * @return {Object}
  9882. */
  9883. var createNamespacedHelpers = function (namespace) { return ({
  9884. mapState: mapState.bind(null, namespace),
  9885. mapGetters: mapGetters.bind(null, namespace),
  9886. mapMutations: mapMutations.bind(null, namespace),
  9887. mapActions: mapActions.bind(null, namespace)
  9888. }); };
  9889. /**
  9890. * Normalize the map
  9891. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  9892. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  9893. * @param {Array|Object} map
  9894. * @return {Object}
  9895. */
  9896. function normalizeMap (map) {
  9897. if (!isValidMap(map)) {
  9898. return []
  9899. }
  9900. return Array.isArray(map)
  9901. ? map.map(function (key) { return ({ key: key, val: key }); })
  9902. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  9903. }
  9904. /**
  9905. * Validate whether given map is valid or not
  9906. * @param {*} map
  9907. * @return {Boolean}
  9908. */
  9909. function isValidMap (map) {
  9910. return Array.isArray(map) || isObject(map)
  9911. }
  9912. /**
  9913. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  9914. * @param {Function} fn
  9915. * @return {Function}
  9916. */
  9917. function normalizeNamespace (fn) {
  9918. return function (namespace, map) {
  9919. if (typeof namespace !== 'string') {
  9920. map = namespace;
  9921. namespace = '';
  9922. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  9923. namespace += '/';
  9924. }
  9925. return fn(namespace, map)
  9926. }
  9927. }
  9928. /**
  9929. * Search a special module from store by namespace. if module not exist, print error message.
  9930. * @param {Object} store
  9931. * @param {String} helper
  9932. * @param {String} namespace
  9933. * @return {Object}
  9934. */
  9935. function getModuleByNamespace (store, helper, namespace) {
  9936. var module = store._modulesNamespaceMap[namespace];
  9937. if (( true) && !module) {
  9938. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  9939. }
  9940. return module
  9941. }
  9942. // Credits: borrowed code from fcomb/redux-logger
  9943. function createLogger (ref) {
  9944. if ( ref === void 0 ) ref = {};
  9945. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  9946. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  9947. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  9948. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  9949. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  9950. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  9951. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  9952. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  9953. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  9954. return function (store) {
  9955. var prevState = deepCopy(store.state);
  9956. if (typeof logger === 'undefined') {
  9957. return
  9958. }
  9959. if (logMutations) {
  9960. store.subscribe(function (mutation, state) {
  9961. var nextState = deepCopy(state);
  9962. if (filter(mutation, prevState, nextState)) {
  9963. var formattedTime = getFormattedTime();
  9964. var formattedMutation = mutationTransformer(mutation);
  9965. var message = "mutation " + (mutation.type) + formattedTime;
  9966. startMessage(logger, message, collapsed);
  9967. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  9968. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  9969. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  9970. endMessage(logger);
  9971. }
  9972. prevState = nextState;
  9973. });
  9974. }
  9975. if (logActions) {
  9976. store.subscribeAction(function (action, state) {
  9977. if (actionFilter(action, state)) {
  9978. var formattedTime = getFormattedTime();
  9979. var formattedAction = actionTransformer(action);
  9980. var message = "action " + (action.type) + formattedTime;
  9981. startMessage(logger, message, collapsed);
  9982. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  9983. endMessage(logger);
  9984. }
  9985. });
  9986. }
  9987. }
  9988. }
  9989. function startMessage (logger, message, collapsed) {
  9990. var startMessage = collapsed
  9991. ? logger.groupCollapsed
  9992. : logger.group;
  9993. // render
  9994. try {
  9995. startMessage.call(logger, message);
  9996. } catch (e) {
  9997. logger.log(message);
  9998. }
  9999. }
  10000. function endMessage (logger) {
  10001. try {
  10002. logger.groupEnd();
  10003. } catch (e) {
  10004. logger.log('—— log end ——');
  10005. }
  10006. }
  10007. function getFormattedTime () {
  10008. var time = new Date();
  10009. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  10010. }
  10011. function repeat (str, times) {
  10012. return (new Array(times + 1)).join(str)
  10013. }
  10014. function pad (num, maxLength) {
  10015. return repeat('0', maxLength - num.toString().length) + num
  10016. }
  10017. var index_cjs = {
  10018. Store: Store,
  10019. install: install,
  10020. version: '3.6.2',
  10021. mapState: mapState,
  10022. mapMutations: mapMutations,
  10023. mapGetters: mapGetters,
  10024. mapActions: mapActions,
  10025. createNamespacedHelpers: createNamespacedHelpers,
  10026. createLogger: createLogger
  10027. };
  10028. module.exports = index_cjs;
  10029. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  10030. /***/ }),
  10031. /* 35 */
  10032. /*!***********************************************************************************************************!*\
  10033. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/index.js ***!
  10034. \***********************************************************************************************************/
  10035. /*! no static exports found */
  10036. /***/ (function(module, exports, __webpack_require__) {
  10037. "use strict";
  10038. /* WEBPACK VAR INJECTION */(function(uni) {
  10039. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10040. Object.defineProperty(exports, "__esModule", {
  10041. value: true
  10042. });
  10043. exports.default = void 0;
  10044. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10045. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 36));
  10046. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 37));
  10047. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 38));
  10048. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 56));
  10049. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 60));
  10050. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 61));
  10051. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 62));
  10052. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 63));
  10053. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 64));
  10054. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 67));
  10055. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 68));
  10056. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 158));
  10057. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 116));
  10058. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 159));
  10059. 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; }
  10060. 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; }
  10061. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  10062. var pleaseSetTranspileDependencies = {},
  10063. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  10064. // 引入全局mixin
  10065. var $u = _objectSpread(_objectSpread({
  10066. route: _route.default,
  10067. date: _index.default.timeFormat,
  10068. // 另名date
  10069. colorGradient: _colorGradient.default.colorGradient,
  10070. hexToRgb: _colorGradient.default.hexToRgb,
  10071. rgbToHex: _colorGradient.default.rgbToHex,
  10072. colorToRgba: _colorGradient.default.colorToRgba,
  10073. test: _test.default,
  10074. type: ['primary', 'success', 'error', 'warning', 'info'],
  10075. http: new _luchRequest.default(),
  10076. config: _config.default,
  10077. // uView配置信息相关,比如版本号
  10078. zIndex: _zIndex.default,
  10079. debounce: _debounce.default,
  10080. throttle: _throttle.default,
  10081. mixin: _mixin.default,
  10082. mpMixin: _mpMixin.default,
  10083. props: _props.default
  10084. }, _index.default), {}, {
  10085. color: _color.default,
  10086. platform: _platform.default
  10087. });
  10088. // $u挂载到uni对象上
  10089. uni.$u = $u;
  10090. var install = function install(Vue) {
  10091. // 时间格式化,同时两个名称,date和timeFormat
  10092. Vue.filter('timeFormat', function (timestamp, format) {
  10093. return uni.$u.timeFormat(timestamp, format);
  10094. });
  10095. Vue.filter('date', function (timestamp, format) {
  10096. return uni.$u.timeFormat(timestamp, format);
  10097. });
  10098. // 将多久以前的方法,注入到全局过滤器
  10099. Vue.filter('timeFrom', function (timestamp, format) {
  10100. return uni.$u.timeFrom(timestamp, format);
  10101. });
  10102. // 同时挂载到uni和Vue.prototype中
  10103. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  10104. Vue.prototype.$u = $u;
  10105. Vue.mixin(_mixin.default);
  10106. };
  10107. var _default = {
  10108. install: install
  10109. };
  10110. exports.default = _default;
  10111. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10112. /***/ }),
  10113. /* 36 */
  10114. /*!**********************************************************************************************************************!*\
  10115. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  10116. \**********************************************************************************************************************/
  10117. /*! no static exports found */
  10118. /***/ (function(module, exports, __webpack_require__) {
  10119. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  10120. // 定义每个组件都可能需要用到的外部样式以及类名
  10121. props: {
  10122. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  10123. customStyle: {
  10124. type: [Object, String],
  10125. default: function _default() {
  10126. return {};
  10127. }
  10128. },
  10129. customClass: {
  10130. type: String,
  10131. default: ''
  10132. },
  10133. // 跳转的页面路径
  10134. url: {
  10135. type: String,
  10136. default: ''
  10137. },
  10138. // 页面跳转的类型
  10139. linkType: {
  10140. type: String,
  10141. default: 'navigateTo'
  10142. }
  10143. },
  10144. data: function data() {
  10145. return {};
  10146. },
  10147. onLoad: function onLoad() {
  10148. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  10149. this.$u.getRect = this.$uGetRect;
  10150. },
  10151. created: function created() {
  10152. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  10153. this.$u.getRect = this.$uGetRect;
  10154. },
  10155. computed: {
  10156. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  10157. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  10158. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  10159. $u: function $u() {
  10160. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  10161. return uni.$u.deepMerge(uni.$u, {
  10162. props: undefined,
  10163. http: undefined,
  10164. mixin: undefined
  10165. });
  10166. },
  10167. /**
  10168. * 生成bem规则类名
  10169. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  10170. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  10171. * @param {String} name 组件名称
  10172. * @param {Array} fixed 一直会存在的类名
  10173. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  10174. * @returns {Array|string}
  10175. */
  10176. bem: function bem() {
  10177. return function (name, fixed, change) {
  10178. var _this = this;
  10179. // 类名前缀
  10180. var prefix = "u-".concat(name, "--");
  10181. var classes = {};
  10182. if (fixed) {
  10183. fixed.map(function (item) {
  10184. // 这里的类名,会一直存在
  10185. classes[prefix + _this[item]] = true;
  10186. });
  10187. }
  10188. if (change) {
  10189. change.map(function (item) {
  10190. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  10191. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  10192. });
  10193. }
  10194. return Object.keys(classes);
  10195. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  10196. };
  10197. }
  10198. },
  10199. methods: {
  10200. // 跳转某一个页面
  10201. openPage: function openPage() {
  10202. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  10203. var url = this[urlKey];
  10204. if (url) {
  10205. // 执行类似uni.navigateTo的方法
  10206. uni[this.linkType]({
  10207. url: url
  10208. });
  10209. }
  10210. },
  10211. // 查询节点信息
  10212. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  10213. // 解决办法为在组件根部再套一个没有任何作用的view元素
  10214. $uGetRect: function $uGetRect(selector, all) {
  10215. var _this2 = this;
  10216. return new Promise(function (resolve) {
  10217. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  10218. if (all && Array.isArray(rect) && rect.length) {
  10219. resolve(rect);
  10220. }
  10221. if (!all && rect) {
  10222. resolve(rect);
  10223. }
  10224. }).exec();
  10225. });
  10226. },
  10227. getParentData: function getParentData() {
  10228. var _this3 = this;
  10229. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  10230. // 避免在created中去定义parent变量
  10231. if (!this.parent) this.parent = {};
  10232. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  10233. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  10234. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  10235. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  10236. this.parent = uni.$u.$parent.call(this, parentName);
  10237. if (this.parent.children) {
  10238. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  10239. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  10240. }
  10241. if (this.parent && this.parentData) {
  10242. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  10243. Object.keys(this.parentData).map(function (key) {
  10244. _this3.parentData[key] = _this3.parent[key];
  10245. });
  10246. }
  10247. },
  10248. // 阻止事件冒泡
  10249. preventEvent: function preventEvent(e) {
  10250. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  10251. },
  10252. // 空操作
  10253. noop: function noop(e) {
  10254. this.preventEvent(e);
  10255. }
  10256. },
  10257. onReachBottom: function onReachBottom() {
  10258. uni.$emit('uOnReachBottom');
  10259. },
  10260. beforeDestroy: function beforeDestroy() {
  10261. var _this4 = this;
  10262. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  10263. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  10264. if (this.parent && uni.$u.test.array(this.parent.children)) {
  10265. // 组件销毁时,移除父组件中的children数组中对应的实例
  10266. var childrenList = this.parent.children;
  10267. childrenList.map(function (child, index) {
  10268. // 如果相等,则移除
  10269. if (child === _this4) {
  10270. childrenList.splice(index, 1);
  10271. }
  10272. });
  10273. }
  10274. }
  10275. };
  10276. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10277. /***/ }),
  10278. /* 37 */
  10279. /*!************************************************************************************************************************!*\
  10280. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  10281. \************************************************************************************************************************/
  10282. /*! no static exports found */
  10283. /***/ (function(module, exports, __webpack_require__) {
  10284. "use strict";
  10285. Object.defineProperty(exports, "__esModule", {
  10286. value: true
  10287. });
  10288. exports.default = void 0;
  10289. var _default = {
  10290. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  10291. options: {
  10292. virtualHost: true
  10293. }
  10294. };
  10295. exports.default = _default;
  10296. /***/ }),
  10297. /* 38 */
  10298. /*!*****************************************************************************************************************************!*\
  10299. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/index.js ***!
  10300. \*****************************************************************************************************************************/
  10301. /*! no static exports found */
  10302. /***/ (function(module, exports, __webpack_require__) {
  10303. "use strict";
  10304. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10305. Object.defineProperty(exports, "__esModule", {
  10306. value: true
  10307. });
  10308. exports.default = void 0;
  10309. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 39));
  10310. var _default = _Request.default;
  10311. exports.default = _default;
  10312. /***/ }),
  10313. /* 39 */
  10314. /*!************************************************************************************************************************************!*\
  10315. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  10316. \************************************************************************************************************************************/
  10317. /*! no static exports found */
  10318. /***/ (function(module, exports, __webpack_require__) {
  10319. "use strict";
  10320. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10321. Object.defineProperty(exports, "__esModule", {
  10322. value: true
  10323. });
  10324. exports.default = void 0;
  10325. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10326. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  10327. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  10328. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 40));
  10329. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 48));
  10330. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 49));
  10331. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 50));
  10332. var _utils = __webpack_require__(/*! ../utils */ 43);
  10333. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 51));
  10334. 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; }
  10335. 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; }
  10336. var Request = /*#__PURE__*/function () {
  10337. /**
  10338. * @param {Object} arg - 全局配置
  10339. * @param {String} arg.baseURL - 全局根路径
  10340. * @param {Object} arg.header - 全局header
  10341. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  10342. * @param {String} arg.dataType = [json] - 全局默认的dataType
  10343. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  10344. * @param {Object} arg.custom - 全局默认的自定义参数
  10345. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  10346. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  10347. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  10348. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  10349. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  10350. */
  10351. function Request() {
  10352. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  10353. (0, _classCallCheck2.default)(this, Request);
  10354. if (!(0, _utils.isPlainObject)(arg)) {
  10355. arg = {};
  10356. console.warn('设置全局参数必须接收一个Object');
  10357. }
  10358. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  10359. this.interceptors = {
  10360. request: new _InterceptorManager.default(),
  10361. response: new _InterceptorManager.default()
  10362. };
  10363. }
  10364. /**
  10365. * @Function
  10366. * @param {Request~setConfigCallback} f - 设置全局默认配置
  10367. */
  10368. (0, _createClass2.default)(Request, [{
  10369. key: "setConfig",
  10370. value: function setConfig(f) {
  10371. this.config = f(this.config);
  10372. }
  10373. }, {
  10374. key: "middleware",
  10375. value: function middleware(config) {
  10376. config = (0, _mergeConfig.default)(this.config, config);
  10377. var chain = [_dispatchRequest.default, undefined];
  10378. var promise = Promise.resolve(config);
  10379. this.interceptors.request.forEach(function (interceptor) {
  10380. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  10381. });
  10382. this.interceptors.response.forEach(function (interceptor) {
  10383. chain.push(interceptor.fulfilled, interceptor.rejected);
  10384. });
  10385. while (chain.length) {
  10386. promise = promise.then(chain.shift(), chain.shift());
  10387. }
  10388. return promise;
  10389. }
  10390. /**
  10391. * @Function
  10392. * @param {Object} config - 请求配置项
  10393. * @prop {String} options.url - 请求路径
  10394. * @prop {Object} options.data - 请求参数
  10395. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  10396. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  10397. * @prop {Object} [options.header = config.header] - 请求header
  10398. * @prop {Object} [options.method = config.method] - 请求方法
  10399. * @returns {Promise<unknown>}
  10400. */
  10401. }, {
  10402. key: "request",
  10403. value: function request() {
  10404. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  10405. return this.middleware(config);
  10406. }
  10407. }, {
  10408. key: "get",
  10409. value: function get(url) {
  10410. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10411. return this.middleware(_objectSpread({
  10412. url: url,
  10413. method: 'GET'
  10414. }, options));
  10415. }
  10416. }, {
  10417. key: "post",
  10418. value: function post(url, data) {
  10419. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10420. return this.middleware(_objectSpread({
  10421. url: url,
  10422. data: data,
  10423. method: 'POST'
  10424. }, options));
  10425. }
  10426. }, {
  10427. key: "put",
  10428. value: function put(url, data) {
  10429. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10430. return this.middleware(_objectSpread({
  10431. url: url,
  10432. data: data,
  10433. method: 'PUT'
  10434. }, options));
  10435. }
  10436. }, {
  10437. key: "delete",
  10438. value: function _delete(url, data) {
  10439. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10440. return this.middleware(_objectSpread({
  10441. url: url,
  10442. data: data,
  10443. method: 'DELETE'
  10444. }, options));
  10445. }
  10446. }, {
  10447. key: "connect",
  10448. value: function connect(url, data) {
  10449. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10450. return this.middleware(_objectSpread({
  10451. url: url,
  10452. data: data,
  10453. method: 'CONNECT'
  10454. }, options));
  10455. }
  10456. }, {
  10457. key: "head",
  10458. value: function head(url, data) {
  10459. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10460. return this.middleware(_objectSpread({
  10461. url: url,
  10462. data: data,
  10463. method: 'HEAD'
  10464. }, options));
  10465. }
  10466. }, {
  10467. key: "options",
  10468. value: function options(url, data) {
  10469. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10470. return this.middleware(_objectSpread({
  10471. url: url,
  10472. data: data,
  10473. method: 'OPTIONS'
  10474. }, _options));
  10475. }
  10476. }, {
  10477. key: "trace",
  10478. value: function trace(url, data) {
  10479. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10480. return this.middleware(_objectSpread({
  10481. url: url,
  10482. data: data,
  10483. method: 'TRACE'
  10484. }, options));
  10485. }
  10486. }, {
  10487. key: "upload",
  10488. value: function upload(url) {
  10489. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10490. config.url = url;
  10491. config.method = 'UPLOAD';
  10492. return this.middleware(config);
  10493. }
  10494. }, {
  10495. key: "download",
  10496. value: function download(url) {
  10497. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10498. config.url = url;
  10499. config.method = 'DOWNLOAD';
  10500. return this.middleware(config);
  10501. }
  10502. }]);
  10503. return Request;
  10504. }();
  10505. /**
  10506. * setConfig回调
  10507. * @return {Object} - 返回操作后的config
  10508. * @callback Request~setConfigCallback
  10509. * @param {Object} config - 全局默认config
  10510. */
  10511. exports.default = Request;
  10512. /***/ }),
  10513. /* 40 */
  10514. /*!********************************************************************************************************************************************!*\
  10515. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  10516. \********************************************************************************************************************************************/
  10517. /*! no static exports found */
  10518. /***/ (function(module, exports, __webpack_require__) {
  10519. "use strict";
  10520. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10521. Object.defineProperty(exports, "__esModule", {
  10522. value: true
  10523. });
  10524. exports.default = void 0;
  10525. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 41));
  10526. var _default = function _default(config) {
  10527. return (0, _index.default)(config);
  10528. };
  10529. exports.default = _default;
  10530. /***/ }),
  10531. /* 41 */
  10532. /*!**************************************************************************************************************************************!*\
  10533. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  10534. \**************************************************************************************************************************************/
  10535. /*! no static exports found */
  10536. /***/ (function(module, exports, __webpack_require__) {
  10537. "use strict";
  10538. /* WEBPACK VAR INJECTION */(function(uni) {
  10539. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10540. Object.defineProperty(exports, "__esModule", {
  10541. value: true
  10542. });
  10543. exports.default = void 0;
  10544. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10545. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 42));
  10546. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 44));
  10547. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 47));
  10548. var _utils = __webpack_require__(/*! ../utils */ 43);
  10549. 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; }
  10550. 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; }
  10551. /**
  10552. * 返回可选值存在的配置
  10553. * @param {Array} keys - 可选值数组
  10554. * @param {Object} config2 - 配置
  10555. * @return {{}} - 存在的配置项
  10556. */
  10557. var mergeKeys = function mergeKeys(keys, config2) {
  10558. var config = {};
  10559. keys.forEach(function (prop) {
  10560. if (!(0, _utils.isUndefined)(config2[prop])) {
  10561. config[prop] = config2[prop];
  10562. }
  10563. });
  10564. return config;
  10565. };
  10566. var _default = function _default(config) {
  10567. return new Promise(function (resolve, reject) {
  10568. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  10569. var _config = {
  10570. url: fullPath,
  10571. header: config.header,
  10572. complete: function complete(response) {
  10573. config.fullPath = fullPath;
  10574. response.config = config;
  10575. try {
  10576. // 对可能字符串不是json 的情况容错
  10577. if (typeof response.data === 'string') {
  10578. response.data = JSON.parse(response.data);
  10579. }
  10580. // eslint-disable-next-line no-empty
  10581. } catch (e) {}
  10582. (0, _settle.default)(resolve, reject, response);
  10583. }
  10584. };
  10585. var requestTask;
  10586. if (config.method === 'UPLOAD') {
  10587. delete _config.header['content-type'];
  10588. delete _config.header['Content-Type'];
  10589. var otherConfig = {
  10590. filePath: config.filePath,
  10591. name: config.name
  10592. };
  10593. var optionalKeys = ['formData'];
  10594. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  10595. } else if (config.method === 'DOWNLOAD') {
  10596. requestTask = uni.downloadFile(_config);
  10597. } else {
  10598. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  10599. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  10600. }
  10601. if (config.getTask) {
  10602. config.getTask(requestTask, config);
  10603. }
  10604. });
  10605. };
  10606. exports.default = _default;
  10607. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10608. /***/ }),
  10609. /* 42 */
  10610. /*!****************************************************************************************************************************************!*\
  10611. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  10612. \****************************************************************************************************************************************/
  10613. /*! no static exports found */
  10614. /***/ (function(module, exports, __webpack_require__) {
  10615. "use strict";
  10616. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  10617. Object.defineProperty(exports, "__esModule", {
  10618. value: true
  10619. });
  10620. exports.default = buildURL;
  10621. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 43));
  10622. 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); }
  10623. 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; }
  10624. function encode(val) {
  10625. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  10626. }
  10627. /**
  10628. * Build a URL by appending params to the end
  10629. *
  10630. * @param {string} url The base of the url (e.g., http://www.google.com)
  10631. * @param {object} [params] The params to be appended
  10632. * @returns {string} The formatted url
  10633. */
  10634. function buildURL(url, params) {
  10635. /* eslint no-param-reassign:0 */
  10636. if (!params) {
  10637. return url;
  10638. }
  10639. var serializedParams;
  10640. if (utils.isURLSearchParams(params)) {
  10641. serializedParams = params.toString();
  10642. } else {
  10643. var parts = [];
  10644. utils.forEach(params, function (val, key) {
  10645. if (val === null || typeof val === 'undefined') {
  10646. return;
  10647. }
  10648. if (utils.isArray(val)) {
  10649. key = "".concat(key, "[]");
  10650. } else {
  10651. val = [val];
  10652. }
  10653. utils.forEach(val, function (v) {
  10654. if (utils.isDate(v)) {
  10655. v = v.toISOString();
  10656. } else if (utils.isObject(v)) {
  10657. v = JSON.stringify(v);
  10658. }
  10659. parts.push("".concat(encode(key), "=").concat(encode(v)));
  10660. });
  10661. });
  10662. serializedParams = parts.join('&');
  10663. }
  10664. if (serializedParams) {
  10665. var hashmarkIndex = url.indexOf('#');
  10666. if (hashmarkIndex !== -1) {
  10667. url = url.slice(0, hashmarkIndex);
  10668. }
  10669. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  10670. }
  10671. return url;
  10672. }
  10673. /***/ }),
  10674. /* 43 */
  10675. /*!*****************************************************************************************************************************!*\
  10676. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  10677. \*****************************************************************************************************************************/
  10678. /*! no static exports found */
  10679. /***/ (function(module, exports, __webpack_require__) {
  10680. "use strict";
  10681. // utils is a library of generic helper functions non-specific to axios
  10682. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10683. Object.defineProperty(exports, "__esModule", {
  10684. value: true
  10685. });
  10686. exports.deepMerge = deepMerge;
  10687. exports.forEach = forEach;
  10688. exports.isArray = isArray;
  10689. exports.isBoolean = isBoolean;
  10690. exports.isDate = isDate;
  10691. exports.isObject = isObject;
  10692. exports.isPlainObject = isPlainObject;
  10693. exports.isURLSearchParams = isURLSearchParams;
  10694. exports.isUndefined = isUndefined;
  10695. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10696. var toString = Object.prototype.toString;
  10697. /**
  10698. * Determine if a value is an Array
  10699. *
  10700. * @param {Object} val The value to test
  10701. * @returns {boolean} True if value is an Array, otherwise false
  10702. */
  10703. function isArray(val) {
  10704. return toString.call(val) === '[object Array]';
  10705. }
  10706. /**
  10707. * Determine if a value is an Object
  10708. *
  10709. * @param {Object} val The value to test
  10710. * @returns {boolean} True if value is an Object, otherwise false
  10711. */
  10712. function isObject(val) {
  10713. return val !== null && (0, _typeof2.default)(val) === 'object';
  10714. }
  10715. /**
  10716. * Determine if a value is a Date
  10717. *
  10718. * @param {Object} val The value to test
  10719. * @returns {boolean} True if value is a Date, otherwise false
  10720. */
  10721. function isDate(val) {
  10722. return toString.call(val) === '[object Date]';
  10723. }
  10724. /**
  10725. * Determine if a value is a URLSearchParams object
  10726. *
  10727. * @param {Object} val The value to test
  10728. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  10729. */
  10730. function isURLSearchParams(val) {
  10731. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  10732. }
  10733. /**
  10734. * Iterate over an Array or an Object invoking a function for each item.
  10735. *
  10736. * If `obj` is an Array callback will be called passing
  10737. * the value, index, and complete array for each item.
  10738. *
  10739. * If 'obj' is an Object callback will be called passing
  10740. * the value, key, and complete object for each property.
  10741. *
  10742. * @param {Object|Array} obj The object to iterate
  10743. * @param {Function} fn The callback to invoke for each item
  10744. */
  10745. function forEach(obj, fn) {
  10746. // Don't bother if no value provided
  10747. if (obj === null || typeof obj === 'undefined') {
  10748. return;
  10749. }
  10750. // Force an array if not already something iterable
  10751. if ((0, _typeof2.default)(obj) !== 'object') {
  10752. /* eslint no-param-reassign:0 */
  10753. obj = [obj];
  10754. }
  10755. if (isArray(obj)) {
  10756. // Iterate over array values
  10757. for (var i = 0, l = obj.length; i < l; i++) {
  10758. fn.call(null, obj[i], i, obj);
  10759. }
  10760. } else {
  10761. // Iterate over object keys
  10762. for (var key in obj) {
  10763. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  10764. fn.call(null, obj[key], key, obj);
  10765. }
  10766. }
  10767. }
  10768. }
  10769. /**
  10770. * 是否为boolean 值
  10771. * @param val
  10772. * @returns {boolean}
  10773. */
  10774. function isBoolean(val) {
  10775. return typeof val === 'boolean';
  10776. }
  10777. /**
  10778. * 是否为真正的对象{} new Object
  10779. * @param {any} obj - 检测的对象
  10780. * @returns {boolean}
  10781. */
  10782. function isPlainObject(obj) {
  10783. return Object.prototype.toString.call(obj) === '[object Object]';
  10784. }
  10785. /**
  10786. * Function equal to merge with the difference being that no reference
  10787. * to original objects is kept.
  10788. *
  10789. * @see merge
  10790. * @param {Object} obj1 Object to merge
  10791. * @returns {Object} Result of all merge properties
  10792. */
  10793. function deepMerge( /* obj1, obj2, obj3, ... */
  10794. ) {
  10795. var result = {};
  10796. function assignValue(val, key) {
  10797. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  10798. result[key] = deepMerge(result[key], val);
  10799. } else if ((0, _typeof2.default)(val) === 'object') {
  10800. result[key] = deepMerge({}, val);
  10801. } else {
  10802. result[key] = val;
  10803. }
  10804. }
  10805. for (var i = 0, l = arguments.length; i < l; i++) {
  10806. forEach(arguments[i], assignValue);
  10807. }
  10808. return result;
  10809. }
  10810. function isUndefined(val) {
  10811. return typeof val === 'undefined';
  10812. }
  10813. /***/ }),
  10814. /* 44 */
  10815. /*!******************************************************************************************************************************************!*\
  10816. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10817. \******************************************************************************************************************************************/
  10818. /*! no static exports found */
  10819. /***/ (function(module, exports, __webpack_require__) {
  10820. "use strict";
  10821. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10822. Object.defineProperty(exports, "__esModule", {
  10823. value: true
  10824. });
  10825. exports.default = buildFullPath;
  10826. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 45));
  10827. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 46));
  10828. /**
  10829. * Creates a new URL by combining the baseURL with the requestedURL,
  10830. * only when the requestedURL is not already an absolute URL.
  10831. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10832. *
  10833. * @param {string} baseURL The base URL
  10834. * @param {string} requestedURL Absolute or relative URL to combine
  10835. * @returns {string} The combined full path
  10836. */
  10837. function buildFullPath(baseURL, requestedURL) {
  10838. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10839. return (0, _combineURLs.default)(baseURL, requestedURL);
  10840. }
  10841. return requestedURL;
  10842. }
  10843. /***/ }),
  10844. /* 45 */
  10845. /*!*********************************************************************************************************************************************!*\
  10846. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10847. \*********************************************************************************************************************************************/
  10848. /*! no static exports found */
  10849. /***/ (function(module, exports, __webpack_require__) {
  10850. "use strict";
  10851. /**
  10852. * Determines whether the specified URL is absolute
  10853. *
  10854. * @param {string} url The URL to test
  10855. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10856. */
  10857. Object.defineProperty(exports, "__esModule", {
  10858. value: true
  10859. });
  10860. exports.default = isAbsoluteURL;
  10861. function isAbsoluteURL(url) {
  10862. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10863. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10864. // by any combination of letters, digits, plus, period, or hyphen.
  10865. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10866. }
  10867. /***/ }),
  10868. /* 46 */
  10869. /*!*******************************************************************************************************************************************!*\
  10870. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10871. \*******************************************************************************************************************************************/
  10872. /*! no static exports found */
  10873. /***/ (function(module, exports, __webpack_require__) {
  10874. "use strict";
  10875. /**
  10876. * Creates a new URL by combining the specified URLs
  10877. *
  10878. * @param {string} baseURL The base URL
  10879. * @param {string} relativeURL The relative URL
  10880. * @returns {string} The combined URL
  10881. */
  10882. Object.defineProperty(exports, "__esModule", {
  10883. value: true
  10884. });
  10885. exports.default = combineURLs;
  10886. function combineURLs(baseURL, relativeURL) {
  10887. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  10888. }
  10889. /***/ }),
  10890. /* 47 */
  10891. /*!***********************************************************************************************************************************!*\
  10892. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10893. \***********************************************************************************************************************************/
  10894. /*! no static exports found */
  10895. /***/ (function(module, exports, __webpack_require__) {
  10896. "use strict";
  10897. Object.defineProperty(exports, "__esModule", {
  10898. value: true
  10899. });
  10900. exports.default = settle;
  10901. /**
  10902. * Resolve or reject a Promise based on response status.
  10903. *
  10904. * @param {Function} resolve A function that resolves the promise.
  10905. * @param {Function} reject A function that rejects the promise.
  10906. * @param {object} response The response.
  10907. */
  10908. function settle(resolve, reject, response) {
  10909. var validateStatus = response.config.validateStatus;
  10910. var status = response.statusCode;
  10911. if (status && (!validateStatus || validateStatus(status))) {
  10912. resolve(response);
  10913. } else {
  10914. reject(response);
  10915. }
  10916. }
  10917. /***/ }),
  10918. /* 48 */
  10919. /*!***********************************************************************************************************************************************!*\
  10920. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10921. \***********************************************************************************************************************************************/
  10922. /*! no static exports found */
  10923. /***/ (function(module, exports, __webpack_require__) {
  10924. "use strict";
  10925. Object.defineProperty(exports, "__esModule", {
  10926. value: true
  10927. });
  10928. exports.default = void 0;
  10929. function InterceptorManager() {
  10930. this.handlers = [];
  10931. }
  10932. /**
  10933. * Add a new interceptor to the stack
  10934. *
  10935. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10936. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10937. *
  10938. * @return {Number} An ID used to remove interceptor later
  10939. */
  10940. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10941. this.handlers.push({
  10942. fulfilled: fulfilled,
  10943. rejected: rejected
  10944. });
  10945. return this.handlers.length - 1;
  10946. };
  10947. /**
  10948. * Remove an interceptor from the stack
  10949. *
  10950. * @param {Number} id The ID that was returned by `use`
  10951. */
  10952. InterceptorManager.prototype.eject = function eject(id) {
  10953. if (this.handlers[id]) {
  10954. this.handlers[id] = null;
  10955. }
  10956. };
  10957. /**
  10958. * Iterate over all the registered interceptors
  10959. *
  10960. * This method is particularly useful for skipping over any
  10961. * interceptors that may have become `null` calling `eject`.
  10962. *
  10963. * @param {Function} fn The function to call for each interceptor
  10964. */
  10965. InterceptorManager.prototype.forEach = function forEach(fn) {
  10966. this.handlers.forEach(function (h) {
  10967. if (h !== null) {
  10968. fn(h);
  10969. }
  10970. });
  10971. };
  10972. var _default = InterceptorManager;
  10973. exports.default = _default;
  10974. /***/ }),
  10975. /* 49 */
  10976. /*!****************************************************************************************************************************************!*\
  10977. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10978. \****************************************************************************************************************************************/
  10979. /*! no static exports found */
  10980. /***/ (function(module, exports, __webpack_require__) {
  10981. "use strict";
  10982. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10983. Object.defineProperty(exports, "__esModule", {
  10984. value: true
  10985. });
  10986. exports.default = void 0;
  10987. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10988. var _utils = __webpack_require__(/*! ../utils */ 43);
  10989. 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; }
  10990. 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; }
  10991. /**
  10992. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10993. * @param {Array} keys - 配置项
  10994. * @param {Object} globalsConfig - 当前的全局配置
  10995. * @param {Object} config2 - 局部配置
  10996. * @return {{}}
  10997. */
  10998. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10999. var config = {};
  11000. keys.forEach(function (prop) {
  11001. if (!(0, _utils.isUndefined)(config2[prop])) {
  11002. config[prop] = config2[prop];
  11003. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  11004. config[prop] = globalsConfig[prop];
  11005. }
  11006. });
  11007. return config;
  11008. };
  11009. /**
  11010. *
  11011. * @param globalsConfig - 当前实例的全局配置
  11012. * @param config2 - 当前的局部配置
  11013. * @return - 合并后的配置
  11014. */
  11015. var _default = function _default(globalsConfig) {
  11016. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11017. var method = config2.method || globalsConfig.method || 'GET';
  11018. var config = {
  11019. baseURL: globalsConfig.baseURL || '',
  11020. method: method,
  11021. url: config2.url || '',
  11022. params: config2.params || {},
  11023. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  11024. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  11025. };
  11026. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  11027. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  11028. // eslint-disable-next-line no-empty
  11029. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  11030. delete config.header['content-type'];
  11031. delete config.header['Content-Type'];
  11032. var uploadKeys = ['filePath', 'name', 'formData'];
  11033. uploadKeys.forEach(function (prop) {
  11034. if (!(0, _utils.isUndefined)(config2[prop])) {
  11035. config[prop] = config2[prop];
  11036. }
  11037. });
  11038. } else {
  11039. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  11040. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  11041. }
  11042. return config;
  11043. };
  11044. exports.default = _default;
  11045. /***/ }),
  11046. /* 50 */
  11047. /*!*************************************************************************************************************************************!*\
  11048. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  11049. \*************************************************************************************************************************************/
  11050. /*! no static exports found */
  11051. /***/ (function(module, exports, __webpack_require__) {
  11052. "use strict";
  11053. Object.defineProperty(exports, "__esModule", {
  11054. value: true
  11055. });
  11056. exports.default = void 0;
  11057. /**
  11058. * 默认的全局配置
  11059. */
  11060. var _default = {
  11061. baseURL: '',
  11062. header: {},
  11063. method: 'GET',
  11064. dataType: 'json',
  11065. responseType: 'text',
  11066. custom: {},
  11067. timeout: 60000,
  11068. validateStatus: function validateStatus(status) {
  11069. return status >= 200 && status < 300;
  11070. }
  11071. };
  11072. exports.default = _default;
  11073. /***/ }),
  11074. /* 51 */
  11075. /*!***********************************************************************************************************************************!*\
  11076. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  11077. \***********************************************************************************************************************************/
  11078. /*! no static exports found */
  11079. /***/ (function(module, exports, __webpack_require__) {
  11080. "use strict";
  11081. /* WEBPACK VAR INJECTION */(function(Buffer) {
  11082. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11083. Object.defineProperty(exports, "__esModule", {
  11084. value: true
  11085. });
  11086. exports.default = void 0;
  11087. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  11088. /* eslint-disable */
  11089. var clone = function () {
  11090. 'use strict';
  11091. function _instanceof(obj, type) {
  11092. return type != null && obj instanceof type;
  11093. }
  11094. var nativeMap;
  11095. try {
  11096. nativeMap = Map;
  11097. } catch (_) {
  11098. // maybe a reference error because no `Map`. Give it a dummy value that no
  11099. // value will ever be an instanceof.
  11100. nativeMap = function nativeMap() {};
  11101. }
  11102. var nativeSet;
  11103. try {
  11104. nativeSet = Set;
  11105. } catch (_) {
  11106. nativeSet = function nativeSet() {};
  11107. }
  11108. var nativePromise;
  11109. try {
  11110. nativePromise = Promise;
  11111. } catch (_) {
  11112. nativePromise = function nativePromise() {};
  11113. }
  11114. /**
  11115. * Clones (copies) an Object using deep copying.
  11116. *
  11117. * This function supports circular references by default, but if you are certain
  11118. * there are no circular references in your object, you can save some CPU time
  11119. * by calling clone(obj, false).
  11120. *
  11121. * Caution: if `circular` is false and `parent` contains circular references,
  11122. * your program may enter an infinite loop and crash.
  11123. *
  11124. * @param `parent` - the object to be cloned
  11125. * @param `circular` - set to true if the object to be cloned may contain
  11126. * circular references. (optional - true by default)
  11127. * @param `depth` - set to a number if the object is only to be cloned to
  11128. * a particular depth. (optional - defaults to Infinity)
  11129. * @param `prototype` - sets the prototype to be used when cloning an object.
  11130. * (optional - defaults to parent prototype).
  11131. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  11132. * should be cloned as well. Non-enumerable properties on the prototype
  11133. * chain will be ignored. (optional - false by default)
  11134. */
  11135. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  11136. if ((0, _typeof2.default)(circular) === 'object') {
  11137. depth = circular.depth;
  11138. prototype = circular.prototype;
  11139. includeNonEnumerable = circular.includeNonEnumerable;
  11140. circular = circular.circular;
  11141. }
  11142. // maintain two arrays for circular references, where corresponding parents
  11143. // and children have the same index
  11144. var allParents = [];
  11145. var allChildren = [];
  11146. var useBuffer = typeof Buffer != 'undefined';
  11147. if (typeof circular == 'undefined') circular = true;
  11148. if (typeof depth == 'undefined') depth = Infinity;
  11149. // recurse this function so we don't reset allParents and allChildren
  11150. function _clone(parent, depth) {
  11151. // cloning null always returns null
  11152. if (parent === null) return null;
  11153. if (depth === 0) return parent;
  11154. var child;
  11155. var proto;
  11156. if ((0, _typeof2.default)(parent) != 'object') {
  11157. return parent;
  11158. }
  11159. if (_instanceof(parent, nativeMap)) {
  11160. child = new nativeMap();
  11161. } else if (_instanceof(parent, nativeSet)) {
  11162. child = new nativeSet();
  11163. } else if (_instanceof(parent, nativePromise)) {
  11164. child = new nativePromise(function (resolve, reject) {
  11165. parent.then(function (value) {
  11166. resolve(_clone(value, depth - 1));
  11167. }, function (err) {
  11168. reject(_clone(err, depth - 1));
  11169. });
  11170. });
  11171. } else if (clone.__isArray(parent)) {
  11172. child = [];
  11173. } else if (clone.__isRegExp(parent)) {
  11174. child = new RegExp(parent.source, __getRegExpFlags(parent));
  11175. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  11176. } else if (clone.__isDate(parent)) {
  11177. child = new Date(parent.getTime());
  11178. } else if (useBuffer && Buffer.isBuffer(parent)) {
  11179. if (Buffer.from) {
  11180. // Node.js >= 5.10.0
  11181. child = Buffer.from(parent);
  11182. } else {
  11183. // Older Node.js versions
  11184. child = new Buffer(parent.length);
  11185. parent.copy(child);
  11186. }
  11187. return child;
  11188. } else if (_instanceof(parent, Error)) {
  11189. child = Object.create(parent);
  11190. } else {
  11191. if (typeof prototype == 'undefined') {
  11192. proto = Object.getPrototypeOf(parent);
  11193. child = Object.create(proto);
  11194. } else {
  11195. child = Object.create(prototype);
  11196. proto = prototype;
  11197. }
  11198. }
  11199. if (circular) {
  11200. var index = allParents.indexOf(parent);
  11201. if (index != -1) {
  11202. return allChildren[index];
  11203. }
  11204. allParents.push(parent);
  11205. allChildren.push(child);
  11206. }
  11207. if (_instanceof(parent, nativeMap)) {
  11208. parent.forEach(function (value, key) {
  11209. var keyChild = _clone(key, depth - 1);
  11210. var valueChild = _clone(value, depth - 1);
  11211. child.set(keyChild, valueChild);
  11212. });
  11213. }
  11214. if (_instanceof(parent, nativeSet)) {
  11215. parent.forEach(function (value) {
  11216. var entryChild = _clone(value, depth - 1);
  11217. child.add(entryChild);
  11218. });
  11219. }
  11220. for (var i in parent) {
  11221. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  11222. if (attrs) {
  11223. child[i] = _clone(parent[i], depth - 1);
  11224. }
  11225. try {
  11226. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  11227. if (objProperty.set === 'undefined') {
  11228. // no setter defined. Skip cloning this property
  11229. continue;
  11230. }
  11231. child[i] = _clone(parent[i], depth - 1);
  11232. } catch (e) {
  11233. if (e instanceof TypeError) {
  11234. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  11235. // we can't do anything about this, other than inform the user that this property cannot be set.
  11236. continue;
  11237. } else if (e instanceof ReferenceError) {
  11238. //this may happen in non strict mode
  11239. continue;
  11240. }
  11241. }
  11242. }
  11243. if (Object.getOwnPropertySymbols) {
  11244. var symbols = Object.getOwnPropertySymbols(parent);
  11245. for (var i = 0; i < symbols.length; i++) {
  11246. // Don't need to worry about cloning a symbol because it is a primitive,
  11247. // like a number or string.
  11248. var symbol = symbols[i];
  11249. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  11250. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  11251. continue;
  11252. }
  11253. child[symbol] = _clone(parent[symbol], depth - 1);
  11254. Object.defineProperty(child, symbol, descriptor);
  11255. }
  11256. }
  11257. if (includeNonEnumerable) {
  11258. var allPropertyNames = Object.getOwnPropertyNames(parent);
  11259. for (var i = 0; i < allPropertyNames.length; i++) {
  11260. var propertyName = allPropertyNames[i];
  11261. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  11262. if (descriptor && descriptor.enumerable) {
  11263. continue;
  11264. }
  11265. child[propertyName] = _clone(parent[propertyName], depth - 1);
  11266. Object.defineProperty(child, propertyName, descriptor);
  11267. }
  11268. }
  11269. return child;
  11270. }
  11271. return _clone(parent, depth);
  11272. }
  11273. /**
  11274. * Simple flat clone using prototype, accepts only objects, usefull for property
  11275. * override on FLAT configuration object (no nested props).
  11276. *
  11277. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  11278. * works.
  11279. */
  11280. clone.clonePrototype = function clonePrototype(parent) {
  11281. if (parent === null) return null;
  11282. var c = function c() {};
  11283. c.prototype = parent;
  11284. return new c();
  11285. };
  11286. // private utility functions
  11287. function __objToStr(o) {
  11288. return Object.prototype.toString.call(o);
  11289. }
  11290. clone.__objToStr = __objToStr;
  11291. function __isDate(o) {
  11292. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  11293. }
  11294. clone.__isDate = __isDate;
  11295. function __isArray(o) {
  11296. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  11297. }
  11298. clone.__isArray = __isArray;
  11299. function __isRegExp(o) {
  11300. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  11301. }
  11302. clone.__isRegExp = __isRegExp;
  11303. function __getRegExpFlags(re) {
  11304. var flags = '';
  11305. if (re.global) flags += 'g';
  11306. if (re.ignoreCase) flags += 'i';
  11307. if (re.multiline) flags += 'm';
  11308. return flags;
  11309. }
  11310. clone.__getRegExpFlags = __getRegExpFlags;
  11311. return clone;
  11312. }();
  11313. var _default = clone;
  11314. exports.default = _default;
  11315. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../应用/谷歌/HBuilderX.4.15.2024050802/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 52).Buffer))
  11316. /***/ }),
  11317. /* 52 */
  11318. /*!**************************************!*\
  11319. !*** ./node_modules/buffer/index.js ***!
  11320. \**************************************/
  11321. /*! no static exports found */
  11322. /***/ (function(module, exports, __webpack_require__) {
  11323. "use strict";
  11324. /* WEBPACK VAR INJECTION */(function(global) {/*!
  11325. * The buffer module from node.js, for the browser.
  11326. *
  11327. * @author Feross Aboukhadijeh <http://feross.org>
  11328. * @license MIT
  11329. */
  11330. /* eslint-disable no-proto */
  11331. var base64 = __webpack_require__(/*! base64-js */ 53)
  11332. var ieee754 = __webpack_require__(/*! ieee754 */ 54)
  11333. var isArray = __webpack_require__(/*! isarray */ 55)
  11334. exports.Buffer = Buffer
  11335. exports.SlowBuffer = SlowBuffer
  11336. exports.INSPECT_MAX_BYTES = 50
  11337. /**
  11338. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  11339. * === true Use Uint8Array implementation (fastest)
  11340. * === false Use Object implementation (most compatible, even IE6)
  11341. *
  11342. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  11343. * Opera 11.6+, iOS 4.2+.
  11344. *
  11345. * Due to various browser bugs, sometimes the Object implementation will be used even
  11346. * when the browser supports typed arrays.
  11347. *
  11348. * Note:
  11349. *
  11350. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  11351. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  11352. *
  11353. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  11354. *
  11355. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  11356. * incorrect length in some situations.
  11357. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  11358. * get the Object implementation, which is slower but behaves correctly.
  11359. */
  11360. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  11361. ? global.TYPED_ARRAY_SUPPORT
  11362. : typedArraySupport()
  11363. /*
  11364. * Export kMaxLength after typed array support is determined.
  11365. */
  11366. exports.kMaxLength = kMaxLength()
  11367. function typedArraySupport () {
  11368. try {
  11369. var arr = new Uint8Array(1)
  11370. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  11371. return arr.foo() === 42 && // typed array instances can be augmented
  11372. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  11373. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  11374. } catch (e) {
  11375. return false
  11376. }
  11377. }
  11378. function kMaxLength () {
  11379. return Buffer.TYPED_ARRAY_SUPPORT
  11380. ? 0x7fffffff
  11381. : 0x3fffffff
  11382. }
  11383. function createBuffer (that, length) {
  11384. if (kMaxLength() < length) {
  11385. throw new RangeError('Invalid typed array length')
  11386. }
  11387. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11388. // Return an augmented `Uint8Array` instance, for best performance
  11389. that = new Uint8Array(length)
  11390. that.__proto__ = Buffer.prototype
  11391. } else {
  11392. // Fallback: Return an object instance of the Buffer class
  11393. if (that === null) {
  11394. that = new Buffer(length)
  11395. }
  11396. that.length = length
  11397. }
  11398. return that
  11399. }
  11400. /**
  11401. * The Buffer constructor returns instances of `Uint8Array` that have their
  11402. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  11403. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  11404. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  11405. * returns a single octet.
  11406. *
  11407. * The `Uint8Array` prototype remains unmodified.
  11408. */
  11409. function Buffer (arg, encodingOrOffset, length) {
  11410. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  11411. return new Buffer(arg, encodingOrOffset, length)
  11412. }
  11413. // Common case.
  11414. if (typeof arg === 'number') {
  11415. if (typeof encodingOrOffset === 'string') {
  11416. throw new Error(
  11417. 'If encoding is specified then the first argument must be a string'
  11418. )
  11419. }
  11420. return allocUnsafe(this, arg)
  11421. }
  11422. return from(this, arg, encodingOrOffset, length)
  11423. }
  11424. Buffer.poolSize = 8192 // not used by this implementation
  11425. // TODO: Legacy, not needed anymore. Remove in next major version.
  11426. Buffer._augment = function (arr) {
  11427. arr.__proto__ = Buffer.prototype
  11428. return arr
  11429. }
  11430. function from (that, value, encodingOrOffset, length) {
  11431. if (typeof value === 'number') {
  11432. throw new TypeError('"value" argument must not be a number')
  11433. }
  11434. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  11435. return fromArrayBuffer(that, value, encodingOrOffset, length)
  11436. }
  11437. if (typeof value === 'string') {
  11438. return fromString(that, value, encodingOrOffset)
  11439. }
  11440. return fromObject(that, value)
  11441. }
  11442. /**
  11443. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  11444. * if value is a number.
  11445. * Buffer.from(str[, encoding])
  11446. * Buffer.from(array)
  11447. * Buffer.from(buffer)
  11448. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  11449. **/
  11450. Buffer.from = function (value, encodingOrOffset, length) {
  11451. return from(null, value, encodingOrOffset, length)
  11452. }
  11453. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11454. Buffer.prototype.__proto__ = Uint8Array.prototype
  11455. Buffer.__proto__ = Uint8Array
  11456. if (typeof Symbol !== 'undefined' && Symbol.species &&
  11457. Buffer[Symbol.species] === Buffer) {
  11458. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  11459. Object.defineProperty(Buffer, Symbol.species, {
  11460. value: null,
  11461. configurable: true
  11462. })
  11463. }
  11464. }
  11465. function assertSize (size) {
  11466. if (typeof size !== 'number') {
  11467. throw new TypeError('"size" argument must be a number')
  11468. } else if (size < 0) {
  11469. throw new RangeError('"size" argument must not be negative')
  11470. }
  11471. }
  11472. function alloc (that, size, fill, encoding) {
  11473. assertSize(size)
  11474. if (size <= 0) {
  11475. return createBuffer(that, size)
  11476. }
  11477. if (fill !== undefined) {
  11478. // Only pay attention to encoding if it's a string. This
  11479. // prevents accidentally sending in a number that would
  11480. // be interpretted as a start offset.
  11481. return typeof encoding === 'string'
  11482. ? createBuffer(that, size).fill(fill, encoding)
  11483. : createBuffer(that, size).fill(fill)
  11484. }
  11485. return createBuffer(that, size)
  11486. }
  11487. /**
  11488. * Creates a new filled Buffer instance.
  11489. * alloc(size[, fill[, encoding]])
  11490. **/
  11491. Buffer.alloc = function (size, fill, encoding) {
  11492. return alloc(null, size, fill, encoding)
  11493. }
  11494. function allocUnsafe (that, size) {
  11495. assertSize(size)
  11496. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  11497. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  11498. for (var i = 0; i < size; ++i) {
  11499. that[i] = 0
  11500. }
  11501. }
  11502. return that
  11503. }
  11504. /**
  11505. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  11506. * */
  11507. Buffer.allocUnsafe = function (size) {
  11508. return allocUnsafe(null, size)
  11509. }
  11510. /**
  11511. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  11512. */
  11513. Buffer.allocUnsafeSlow = function (size) {
  11514. return allocUnsafe(null, size)
  11515. }
  11516. function fromString (that, string, encoding) {
  11517. if (typeof encoding !== 'string' || encoding === '') {
  11518. encoding = 'utf8'
  11519. }
  11520. if (!Buffer.isEncoding(encoding)) {
  11521. throw new TypeError('"encoding" must be a valid string encoding')
  11522. }
  11523. var length = byteLength(string, encoding) | 0
  11524. that = createBuffer(that, length)
  11525. var actual = that.write(string, encoding)
  11526. if (actual !== length) {
  11527. // Writing a hex string, for example, that contains invalid characters will
  11528. // cause everything after the first invalid character to be ignored. (e.g.
  11529. // 'abxxcd' will be treated as 'ab')
  11530. that = that.slice(0, actual)
  11531. }
  11532. return that
  11533. }
  11534. function fromArrayLike (that, array) {
  11535. var length = array.length < 0 ? 0 : checked(array.length) | 0
  11536. that = createBuffer(that, length)
  11537. for (var i = 0; i < length; i += 1) {
  11538. that[i] = array[i] & 255
  11539. }
  11540. return that
  11541. }
  11542. function fromArrayBuffer (that, array, byteOffset, length) {
  11543. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  11544. if (byteOffset < 0 || array.byteLength < byteOffset) {
  11545. throw new RangeError('\'offset\' is out of bounds')
  11546. }
  11547. if (array.byteLength < byteOffset + (length || 0)) {
  11548. throw new RangeError('\'length\' is out of bounds')
  11549. }
  11550. if (byteOffset === undefined && length === undefined) {
  11551. array = new Uint8Array(array)
  11552. } else if (length === undefined) {
  11553. array = new Uint8Array(array, byteOffset)
  11554. } else {
  11555. array = new Uint8Array(array, byteOffset, length)
  11556. }
  11557. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11558. // Return an augmented `Uint8Array` instance, for best performance
  11559. that = array
  11560. that.__proto__ = Buffer.prototype
  11561. } else {
  11562. // Fallback: Return an object instance of the Buffer class
  11563. that = fromArrayLike(that, array)
  11564. }
  11565. return that
  11566. }
  11567. function fromObject (that, obj) {
  11568. if (Buffer.isBuffer(obj)) {
  11569. var len = checked(obj.length) | 0
  11570. that = createBuffer(that, len)
  11571. if (that.length === 0) {
  11572. return that
  11573. }
  11574. obj.copy(that, 0, 0, len)
  11575. return that
  11576. }
  11577. if (obj) {
  11578. if ((typeof ArrayBuffer !== 'undefined' &&
  11579. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  11580. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  11581. return createBuffer(that, 0)
  11582. }
  11583. return fromArrayLike(that, obj)
  11584. }
  11585. if (obj.type === 'Buffer' && isArray(obj.data)) {
  11586. return fromArrayLike(that, obj.data)
  11587. }
  11588. }
  11589. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  11590. }
  11591. function checked (length) {
  11592. // Note: cannot use `length < kMaxLength()` here because that fails when
  11593. // length is NaN (which is otherwise coerced to zero.)
  11594. if (length >= kMaxLength()) {
  11595. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  11596. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  11597. }
  11598. return length | 0
  11599. }
  11600. function SlowBuffer (length) {
  11601. if (+length != length) { // eslint-disable-line eqeqeq
  11602. length = 0
  11603. }
  11604. return Buffer.alloc(+length)
  11605. }
  11606. Buffer.isBuffer = function isBuffer (b) {
  11607. return !!(b != null && b._isBuffer)
  11608. }
  11609. Buffer.compare = function compare (a, b) {
  11610. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  11611. throw new TypeError('Arguments must be Buffers')
  11612. }
  11613. if (a === b) return 0
  11614. var x = a.length
  11615. var y = b.length
  11616. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  11617. if (a[i] !== b[i]) {
  11618. x = a[i]
  11619. y = b[i]
  11620. break
  11621. }
  11622. }
  11623. if (x < y) return -1
  11624. if (y < x) return 1
  11625. return 0
  11626. }
  11627. Buffer.isEncoding = function isEncoding (encoding) {
  11628. switch (String(encoding).toLowerCase()) {
  11629. case 'hex':
  11630. case 'utf8':
  11631. case 'utf-8':
  11632. case 'ascii':
  11633. case 'latin1':
  11634. case 'binary':
  11635. case 'base64':
  11636. case 'ucs2':
  11637. case 'ucs-2':
  11638. case 'utf16le':
  11639. case 'utf-16le':
  11640. return true
  11641. default:
  11642. return false
  11643. }
  11644. }
  11645. Buffer.concat = function concat (list, length) {
  11646. if (!isArray(list)) {
  11647. throw new TypeError('"list" argument must be an Array of Buffers')
  11648. }
  11649. if (list.length === 0) {
  11650. return Buffer.alloc(0)
  11651. }
  11652. var i
  11653. if (length === undefined) {
  11654. length = 0
  11655. for (i = 0; i < list.length; ++i) {
  11656. length += list[i].length
  11657. }
  11658. }
  11659. var buffer = Buffer.allocUnsafe(length)
  11660. var pos = 0
  11661. for (i = 0; i < list.length; ++i) {
  11662. var buf = list[i]
  11663. if (!Buffer.isBuffer(buf)) {
  11664. throw new TypeError('"list" argument must be an Array of Buffers')
  11665. }
  11666. buf.copy(buffer, pos)
  11667. pos += buf.length
  11668. }
  11669. return buffer
  11670. }
  11671. function byteLength (string, encoding) {
  11672. if (Buffer.isBuffer(string)) {
  11673. return string.length
  11674. }
  11675. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  11676. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  11677. return string.byteLength
  11678. }
  11679. if (typeof string !== 'string') {
  11680. string = '' + string
  11681. }
  11682. var len = string.length
  11683. if (len === 0) return 0
  11684. // Use a for loop to avoid recursion
  11685. var loweredCase = false
  11686. for (;;) {
  11687. switch (encoding) {
  11688. case 'ascii':
  11689. case 'latin1':
  11690. case 'binary':
  11691. return len
  11692. case 'utf8':
  11693. case 'utf-8':
  11694. case undefined:
  11695. return utf8ToBytes(string).length
  11696. case 'ucs2':
  11697. case 'ucs-2':
  11698. case 'utf16le':
  11699. case 'utf-16le':
  11700. return len * 2
  11701. case 'hex':
  11702. return len >>> 1
  11703. case 'base64':
  11704. return base64ToBytes(string).length
  11705. default:
  11706. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  11707. encoding = ('' + encoding).toLowerCase()
  11708. loweredCase = true
  11709. }
  11710. }
  11711. }
  11712. Buffer.byteLength = byteLength
  11713. function slowToString (encoding, start, end) {
  11714. var loweredCase = false
  11715. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  11716. // property of a typed array.
  11717. // This behaves neither like String nor Uint8Array in that we set start/end
  11718. // to their upper/lower bounds if the value passed is out of range.
  11719. // undefined is handled specially as per ECMA-262 6th Edition,
  11720. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  11721. if (start === undefined || start < 0) {
  11722. start = 0
  11723. }
  11724. // Return early if start > this.length. Done here to prevent potential uint32
  11725. // coercion fail below.
  11726. if (start > this.length) {
  11727. return ''
  11728. }
  11729. if (end === undefined || end > this.length) {
  11730. end = this.length
  11731. }
  11732. if (end <= 0) {
  11733. return ''
  11734. }
  11735. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  11736. end >>>= 0
  11737. start >>>= 0
  11738. if (end <= start) {
  11739. return ''
  11740. }
  11741. if (!encoding) encoding = 'utf8'
  11742. while (true) {
  11743. switch (encoding) {
  11744. case 'hex':
  11745. return hexSlice(this, start, end)
  11746. case 'utf8':
  11747. case 'utf-8':
  11748. return utf8Slice(this, start, end)
  11749. case 'ascii':
  11750. return asciiSlice(this, start, end)
  11751. case 'latin1':
  11752. case 'binary':
  11753. return latin1Slice(this, start, end)
  11754. case 'base64':
  11755. return base64Slice(this, start, end)
  11756. case 'ucs2':
  11757. case 'ucs-2':
  11758. case 'utf16le':
  11759. case 'utf-16le':
  11760. return utf16leSlice(this, start, end)
  11761. default:
  11762. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11763. encoding = (encoding + '').toLowerCase()
  11764. loweredCase = true
  11765. }
  11766. }
  11767. }
  11768. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  11769. // Buffer instances.
  11770. Buffer.prototype._isBuffer = true
  11771. function swap (b, n, m) {
  11772. var i = b[n]
  11773. b[n] = b[m]
  11774. b[m] = i
  11775. }
  11776. Buffer.prototype.swap16 = function swap16 () {
  11777. var len = this.length
  11778. if (len % 2 !== 0) {
  11779. throw new RangeError('Buffer size must be a multiple of 16-bits')
  11780. }
  11781. for (var i = 0; i < len; i += 2) {
  11782. swap(this, i, i + 1)
  11783. }
  11784. return this
  11785. }
  11786. Buffer.prototype.swap32 = function swap32 () {
  11787. var len = this.length
  11788. if (len % 4 !== 0) {
  11789. throw new RangeError('Buffer size must be a multiple of 32-bits')
  11790. }
  11791. for (var i = 0; i < len; i += 4) {
  11792. swap(this, i, i + 3)
  11793. swap(this, i + 1, i + 2)
  11794. }
  11795. return this
  11796. }
  11797. Buffer.prototype.swap64 = function swap64 () {
  11798. var len = this.length
  11799. if (len % 8 !== 0) {
  11800. throw new RangeError('Buffer size must be a multiple of 64-bits')
  11801. }
  11802. for (var i = 0; i < len; i += 8) {
  11803. swap(this, i, i + 7)
  11804. swap(this, i + 1, i + 6)
  11805. swap(this, i + 2, i + 5)
  11806. swap(this, i + 3, i + 4)
  11807. }
  11808. return this
  11809. }
  11810. Buffer.prototype.toString = function toString () {
  11811. var length = this.length | 0
  11812. if (length === 0) return ''
  11813. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11814. return slowToString.apply(this, arguments)
  11815. }
  11816. Buffer.prototype.equals = function equals (b) {
  11817. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11818. if (this === b) return true
  11819. return Buffer.compare(this, b) === 0
  11820. }
  11821. Buffer.prototype.inspect = function inspect () {
  11822. var str = ''
  11823. var max = exports.INSPECT_MAX_BYTES
  11824. if (this.length > 0) {
  11825. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11826. if (this.length > max) str += ' ... '
  11827. }
  11828. return '<Buffer ' + str + '>'
  11829. }
  11830. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11831. if (!Buffer.isBuffer(target)) {
  11832. throw new TypeError('Argument must be a Buffer')
  11833. }
  11834. if (start === undefined) {
  11835. start = 0
  11836. }
  11837. if (end === undefined) {
  11838. end = target ? target.length : 0
  11839. }
  11840. if (thisStart === undefined) {
  11841. thisStart = 0
  11842. }
  11843. if (thisEnd === undefined) {
  11844. thisEnd = this.length
  11845. }
  11846. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11847. throw new RangeError('out of range index')
  11848. }
  11849. if (thisStart >= thisEnd && start >= end) {
  11850. return 0
  11851. }
  11852. if (thisStart >= thisEnd) {
  11853. return -1
  11854. }
  11855. if (start >= end) {
  11856. return 1
  11857. }
  11858. start >>>= 0
  11859. end >>>= 0
  11860. thisStart >>>= 0
  11861. thisEnd >>>= 0
  11862. if (this === target) return 0
  11863. var x = thisEnd - thisStart
  11864. var y = end - start
  11865. var len = Math.min(x, y)
  11866. var thisCopy = this.slice(thisStart, thisEnd)
  11867. var targetCopy = target.slice(start, end)
  11868. for (var i = 0; i < len; ++i) {
  11869. if (thisCopy[i] !== targetCopy[i]) {
  11870. x = thisCopy[i]
  11871. y = targetCopy[i]
  11872. break
  11873. }
  11874. }
  11875. if (x < y) return -1
  11876. if (y < x) return 1
  11877. return 0
  11878. }
  11879. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11880. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11881. //
  11882. // Arguments:
  11883. // - buffer - a Buffer to search
  11884. // - val - a string, Buffer, or number
  11885. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11886. // - encoding - an optional encoding, relevant is val is a string
  11887. // - dir - true for indexOf, false for lastIndexOf
  11888. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11889. // Empty buffer means no match
  11890. if (buffer.length === 0) return -1
  11891. // Normalize byteOffset
  11892. if (typeof byteOffset === 'string') {
  11893. encoding = byteOffset
  11894. byteOffset = 0
  11895. } else if (byteOffset > 0x7fffffff) {
  11896. byteOffset = 0x7fffffff
  11897. } else if (byteOffset < -0x80000000) {
  11898. byteOffset = -0x80000000
  11899. }
  11900. byteOffset = +byteOffset // Coerce to Number.
  11901. if (isNaN(byteOffset)) {
  11902. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  11903. byteOffset = dir ? 0 : (buffer.length - 1)
  11904. }
  11905. // Normalize byteOffset: negative offsets start from the end of the buffer
  11906. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11907. if (byteOffset >= buffer.length) {
  11908. if (dir) return -1
  11909. else byteOffset = buffer.length - 1
  11910. } else if (byteOffset < 0) {
  11911. if (dir) byteOffset = 0
  11912. else return -1
  11913. }
  11914. // Normalize val
  11915. if (typeof val === 'string') {
  11916. val = Buffer.from(val, encoding)
  11917. }
  11918. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11919. if (Buffer.isBuffer(val)) {
  11920. // Special case: looking for empty string/buffer always fails
  11921. if (val.length === 0) {
  11922. return -1
  11923. }
  11924. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11925. } else if (typeof val === 'number') {
  11926. val = val & 0xFF // Search for a byte value [0-255]
  11927. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11928. typeof Uint8Array.prototype.indexOf === 'function') {
  11929. if (dir) {
  11930. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11931. } else {
  11932. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11933. }
  11934. }
  11935. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11936. }
  11937. throw new TypeError('val must be string, number or Buffer')
  11938. }
  11939. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11940. var indexSize = 1
  11941. var arrLength = arr.length
  11942. var valLength = val.length
  11943. if (encoding !== undefined) {
  11944. encoding = String(encoding).toLowerCase()
  11945. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11946. encoding === 'utf16le' || encoding === 'utf-16le') {
  11947. if (arr.length < 2 || val.length < 2) {
  11948. return -1
  11949. }
  11950. indexSize = 2
  11951. arrLength /= 2
  11952. valLength /= 2
  11953. byteOffset /= 2
  11954. }
  11955. }
  11956. function read (buf, i) {
  11957. if (indexSize === 1) {
  11958. return buf[i]
  11959. } else {
  11960. return buf.readUInt16BE(i * indexSize)
  11961. }
  11962. }
  11963. var i
  11964. if (dir) {
  11965. var foundIndex = -1
  11966. for (i = byteOffset; i < arrLength; i++) {
  11967. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11968. if (foundIndex === -1) foundIndex = i
  11969. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11970. } else {
  11971. if (foundIndex !== -1) i -= i - foundIndex
  11972. foundIndex = -1
  11973. }
  11974. }
  11975. } else {
  11976. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11977. for (i = byteOffset; i >= 0; i--) {
  11978. var found = true
  11979. for (var j = 0; j < valLength; j++) {
  11980. if (read(arr, i + j) !== read(val, j)) {
  11981. found = false
  11982. break
  11983. }
  11984. }
  11985. if (found) return i
  11986. }
  11987. }
  11988. return -1
  11989. }
  11990. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11991. return this.indexOf(val, byteOffset, encoding) !== -1
  11992. }
  11993. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11994. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11995. }
  11996. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11997. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11998. }
  11999. function hexWrite (buf, string, offset, length) {
  12000. offset = Number(offset) || 0
  12001. var remaining = buf.length - offset
  12002. if (!length) {
  12003. length = remaining
  12004. } else {
  12005. length = Number(length)
  12006. if (length > remaining) {
  12007. length = remaining
  12008. }
  12009. }
  12010. // must be an even number of digits
  12011. var strLen = string.length
  12012. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  12013. if (length > strLen / 2) {
  12014. length = strLen / 2
  12015. }
  12016. for (var i = 0; i < length; ++i) {
  12017. var parsed = parseInt(string.substr(i * 2, 2), 16)
  12018. if (isNaN(parsed)) return i
  12019. buf[offset + i] = parsed
  12020. }
  12021. return i
  12022. }
  12023. function utf8Write (buf, string, offset, length) {
  12024. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  12025. }
  12026. function asciiWrite (buf, string, offset, length) {
  12027. return blitBuffer(asciiToBytes(string), buf, offset, length)
  12028. }
  12029. function latin1Write (buf, string, offset, length) {
  12030. return asciiWrite(buf, string, offset, length)
  12031. }
  12032. function base64Write (buf, string, offset, length) {
  12033. return blitBuffer(base64ToBytes(string), buf, offset, length)
  12034. }
  12035. function ucs2Write (buf, string, offset, length) {
  12036. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  12037. }
  12038. Buffer.prototype.write = function write (string, offset, length, encoding) {
  12039. // Buffer#write(string)
  12040. if (offset === undefined) {
  12041. encoding = 'utf8'
  12042. length = this.length
  12043. offset = 0
  12044. // Buffer#write(string, encoding)
  12045. } else if (length === undefined && typeof offset === 'string') {
  12046. encoding = offset
  12047. length = this.length
  12048. offset = 0
  12049. // Buffer#write(string, offset[, length][, encoding])
  12050. } else if (isFinite(offset)) {
  12051. offset = offset | 0
  12052. if (isFinite(length)) {
  12053. length = length | 0
  12054. if (encoding === undefined) encoding = 'utf8'
  12055. } else {
  12056. encoding = length
  12057. length = undefined
  12058. }
  12059. // legacy write(string, encoding, offset, length) - remove in v0.13
  12060. } else {
  12061. throw new Error(
  12062. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  12063. )
  12064. }
  12065. var remaining = this.length - offset
  12066. if (length === undefined || length > remaining) length = remaining
  12067. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  12068. throw new RangeError('Attempt to write outside buffer bounds')
  12069. }
  12070. if (!encoding) encoding = 'utf8'
  12071. var loweredCase = false
  12072. for (;;) {
  12073. switch (encoding) {
  12074. case 'hex':
  12075. return hexWrite(this, string, offset, length)
  12076. case 'utf8':
  12077. case 'utf-8':
  12078. return utf8Write(this, string, offset, length)
  12079. case 'ascii':
  12080. return asciiWrite(this, string, offset, length)
  12081. case 'latin1':
  12082. case 'binary':
  12083. return latin1Write(this, string, offset, length)
  12084. case 'base64':
  12085. // Warning: maxLength not taken into account in base64Write
  12086. return base64Write(this, string, offset, length)
  12087. case 'ucs2':
  12088. case 'ucs-2':
  12089. case 'utf16le':
  12090. case 'utf-16le':
  12091. return ucs2Write(this, string, offset, length)
  12092. default:
  12093. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  12094. encoding = ('' + encoding).toLowerCase()
  12095. loweredCase = true
  12096. }
  12097. }
  12098. }
  12099. Buffer.prototype.toJSON = function toJSON () {
  12100. return {
  12101. type: 'Buffer',
  12102. data: Array.prototype.slice.call(this._arr || this, 0)
  12103. }
  12104. }
  12105. function base64Slice (buf, start, end) {
  12106. if (start === 0 && end === buf.length) {
  12107. return base64.fromByteArray(buf)
  12108. } else {
  12109. return base64.fromByteArray(buf.slice(start, end))
  12110. }
  12111. }
  12112. function utf8Slice (buf, start, end) {
  12113. end = Math.min(buf.length, end)
  12114. var res = []
  12115. var i = start
  12116. while (i < end) {
  12117. var firstByte = buf[i]
  12118. var codePoint = null
  12119. var bytesPerSequence = (firstByte > 0xEF) ? 4
  12120. : (firstByte > 0xDF) ? 3
  12121. : (firstByte > 0xBF) ? 2
  12122. : 1
  12123. if (i + bytesPerSequence <= end) {
  12124. var secondByte, thirdByte, fourthByte, tempCodePoint
  12125. switch (bytesPerSequence) {
  12126. case 1:
  12127. if (firstByte < 0x80) {
  12128. codePoint = firstByte
  12129. }
  12130. break
  12131. case 2:
  12132. secondByte = buf[i + 1]
  12133. if ((secondByte & 0xC0) === 0x80) {
  12134. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  12135. if (tempCodePoint > 0x7F) {
  12136. codePoint = tempCodePoint
  12137. }
  12138. }
  12139. break
  12140. case 3:
  12141. secondByte = buf[i + 1]
  12142. thirdByte = buf[i + 2]
  12143. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  12144. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  12145. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  12146. codePoint = tempCodePoint
  12147. }
  12148. }
  12149. break
  12150. case 4:
  12151. secondByte = buf[i + 1]
  12152. thirdByte = buf[i + 2]
  12153. fourthByte = buf[i + 3]
  12154. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  12155. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  12156. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  12157. codePoint = tempCodePoint
  12158. }
  12159. }
  12160. }
  12161. }
  12162. if (codePoint === null) {
  12163. // we did not generate a valid codePoint so insert a
  12164. // replacement char (U+FFFD) and advance only 1 byte
  12165. codePoint = 0xFFFD
  12166. bytesPerSequence = 1
  12167. } else if (codePoint > 0xFFFF) {
  12168. // encode to utf16 (surrogate pair dance)
  12169. codePoint -= 0x10000
  12170. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  12171. codePoint = 0xDC00 | codePoint & 0x3FF
  12172. }
  12173. res.push(codePoint)
  12174. i += bytesPerSequence
  12175. }
  12176. return decodeCodePointsArray(res)
  12177. }
  12178. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  12179. // the lowest limit is Chrome, with 0x10000 args.
  12180. // We go 1 magnitude less, for safety
  12181. var MAX_ARGUMENTS_LENGTH = 0x1000
  12182. function decodeCodePointsArray (codePoints) {
  12183. var len = codePoints.length
  12184. if (len <= MAX_ARGUMENTS_LENGTH) {
  12185. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  12186. }
  12187. // Decode in chunks to avoid "call stack size exceeded".
  12188. var res = ''
  12189. var i = 0
  12190. while (i < len) {
  12191. res += String.fromCharCode.apply(
  12192. String,
  12193. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  12194. )
  12195. }
  12196. return res
  12197. }
  12198. function asciiSlice (buf, start, end) {
  12199. var ret = ''
  12200. end = Math.min(buf.length, end)
  12201. for (var i = start; i < end; ++i) {
  12202. ret += String.fromCharCode(buf[i] & 0x7F)
  12203. }
  12204. return ret
  12205. }
  12206. function latin1Slice (buf, start, end) {
  12207. var ret = ''
  12208. end = Math.min(buf.length, end)
  12209. for (var i = start; i < end; ++i) {
  12210. ret += String.fromCharCode(buf[i])
  12211. }
  12212. return ret
  12213. }
  12214. function hexSlice (buf, start, end) {
  12215. var len = buf.length
  12216. if (!start || start < 0) start = 0
  12217. if (!end || end < 0 || end > len) end = len
  12218. var out = ''
  12219. for (var i = start; i < end; ++i) {
  12220. out += toHex(buf[i])
  12221. }
  12222. return out
  12223. }
  12224. function utf16leSlice (buf, start, end) {
  12225. var bytes = buf.slice(start, end)
  12226. var res = ''
  12227. for (var i = 0; i < bytes.length; i += 2) {
  12228. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  12229. }
  12230. return res
  12231. }
  12232. Buffer.prototype.slice = function slice (start, end) {
  12233. var len = this.length
  12234. start = ~~start
  12235. end = end === undefined ? len : ~~end
  12236. if (start < 0) {
  12237. start += len
  12238. if (start < 0) start = 0
  12239. } else if (start > len) {
  12240. start = len
  12241. }
  12242. if (end < 0) {
  12243. end += len
  12244. if (end < 0) end = 0
  12245. } else if (end > len) {
  12246. end = len
  12247. }
  12248. if (end < start) end = start
  12249. var newBuf
  12250. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12251. newBuf = this.subarray(start, end)
  12252. newBuf.__proto__ = Buffer.prototype
  12253. } else {
  12254. var sliceLen = end - start
  12255. newBuf = new Buffer(sliceLen, undefined)
  12256. for (var i = 0; i < sliceLen; ++i) {
  12257. newBuf[i] = this[i + start]
  12258. }
  12259. }
  12260. return newBuf
  12261. }
  12262. /*
  12263. * Need to make sure that buffer isn't trying to write out of bounds.
  12264. */
  12265. function checkOffset (offset, ext, length) {
  12266. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  12267. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  12268. }
  12269. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  12270. offset = offset | 0
  12271. byteLength = byteLength | 0
  12272. if (!noAssert) checkOffset(offset, byteLength, this.length)
  12273. var val = this[offset]
  12274. var mul = 1
  12275. var i = 0
  12276. while (++i < byteLength && (mul *= 0x100)) {
  12277. val += this[offset + i] * mul
  12278. }
  12279. return val
  12280. }
  12281. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  12282. offset = offset | 0
  12283. byteLength = byteLength | 0
  12284. if (!noAssert) {
  12285. checkOffset(offset, byteLength, this.length)
  12286. }
  12287. var val = this[offset + --byteLength]
  12288. var mul = 1
  12289. while (byteLength > 0 && (mul *= 0x100)) {
  12290. val += this[offset + --byteLength] * mul
  12291. }
  12292. return val
  12293. }
  12294. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  12295. if (!noAssert) checkOffset(offset, 1, this.length)
  12296. return this[offset]
  12297. }
  12298. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  12299. if (!noAssert) checkOffset(offset, 2, this.length)
  12300. return this[offset] | (this[offset + 1] << 8)
  12301. }
  12302. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  12303. if (!noAssert) checkOffset(offset, 2, this.length)
  12304. return (this[offset] << 8) | this[offset + 1]
  12305. }
  12306. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  12307. if (!noAssert) checkOffset(offset, 4, this.length)
  12308. return ((this[offset]) |
  12309. (this[offset + 1] << 8) |
  12310. (this[offset + 2] << 16)) +
  12311. (this[offset + 3] * 0x1000000)
  12312. }
  12313. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  12314. if (!noAssert) checkOffset(offset, 4, this.length)
  12315. return (this[offset] * 0x1000000) +
  12316. ((this[offset + 1] << 16) |
  12317. (this[offset + 2] << 8) |
  12318. this[offset + 3])
  12319. }
  12320. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  12321. offset = offset | 0
  12322. byteLength = byteLength | 0
  12323. if (!noAssert) checkOffset(offset, byteLength, this.length)
  12324. var val = this[offset]
  12325. var mul = 1
  12326. var i = 0
  12327. while (++i < byteLength && (mul *= 0x100)) {
  12328. val += this[offset + i] * mul
  12329. }
  12330. mul *= 0x80
  12331. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  12332. return val
  12333. }
  12334. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  12335. offset = offset | 0
  12336. byteLength = byteLength | 0
  12337. if (!noAssert) checkOffset(offset, byteLength, this.length)
  12338. var i = byteLength
  12339. var mul = 1
  12340. var val = this[offset + --i]
  12341. while (i > 0 && (mul *= 0x100)) {
  12342. val += this[offset + --i] * mul
  12343. }
  12344. mul *= 0x80
  12345. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  12346. return val
  12347. }
  12348. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  12349. if (!noAssert) checkOffset(offset, 1, this.length)
  12350. if (!(this[offset] & 0x80)) return (this[offset])
  12351. return ((0xff - this[offset] + 1) * -1)
  12352. }
  12353. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  12354. if (!noAssert) checkOffset(offset, 2, this.length)
  12355. var val = this[offset] | (this[offset + 1] << 8)
  12356. return (val & 0x8000) ? val | 0xFFFF0000 : val
  12357. }
  12358. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  12359. if (!noAssert) checkOffset(offset, 2, this.length)
  12360. var val = this[offset + 1] | (this[offset] << 8)
  12361. return (val & 0x8000) ? val | 0xFFFF0000 : val
  12362. }
  12363. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  12364. if (!noAssert) checkOffset(offset, 4, this.length)
  12365. return (this[offset]) |
  12366. (this[offset + 1] << 8) |
  12367. (this[offset + 2] << 16) |
  12368. (this[offset + 3] << 24)
  12369. }
  12370. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  12371. if (!noAssert) checkOffset(offset, 4, this.length)
  12372. return (this[offset] << 24) |
  12373. (this[offset + 1] << 16) |
  12374. (this[offset + 2] << 8) |
  12375. (this[offset + 3])
  12376. }
  12377. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  12378. if (!noAssert) checkOffset(offset, 4, this.length)
  12379. return ieee754.read(this, offset, true, 23, 4)
  12380. }
  12381. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  12382. if (!noAssert) checkOffset(offset, 4, this.length)
  12383. return ieee754.read(this, offset, false, 23, 4)
  12384. }
  12385. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  12386. if (!noAssert) checkOffset(offset, 8, this.length)
  12387. return ieee754.read(this, offset, true, 52, 8)
  12388. }
  12389. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  12390. if (!noAssert) checkOffset(offset, 8, this.length)
  12391. return ieee754.read(this, offset, false, 52, 8)
  12392. }
  12393. function checkInt (buf, value, offset, ext, max, min) {
  12394. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  12395. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  12396. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  12397. }
  12398. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  12399. value = +value
  12400. offset = offset | 0
  12401. byteLength = byteLength | 0
  12402. if (!noAssert) {
  12403. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  12404. checkInt(this, value, offset, byteLength, maxBytes, 0)
  12405. }
  12406. var mul = 1
  12407. var i = 0
  12408. this[offset] = value & 0xFF
  12409. while (++i < byteLength && (mul *= 0x100)) {
  12410. this[offset + i] = (value / mul) & 0xFF
  12411. }
  12412. return offset + byteLength
  12413. }
  12414. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  12415. value = +value
  12416. offset = offset | 0
  12417. byteLength = byteLength | 0
  12418. if (!noAssert) {
  12419. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  12420. checkInt(this, value, offset, byteLength, maxBytes, 0)
  12421. }
  12422. var i = byteLength - 1
  12423. var mul = 1
  12424. this[offset + i] = value & 0xFF
  12425. while (--i >= 0 && (mul *= 0x100)) {
  12426. this[offset + i] = (value / mul) & 0xFF
  12427. }
  12428. return offset + byteLength
  12429. }
  12430. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  12431. value = +value
  12432. offset = offset | 0
  12433. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  12434. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  12435. this[offset] = (value & 0xff)
  12436. return offset + 1
  12437. }
  12438. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  12439. if (value < 0) value = 0xffff + value + 1
  12440. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  12441. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  12442. (littleEndian ? i : 1 - i) * 8
  12443. }
  12444. }
  12445. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  12446. value = +value
  12447. offset = offset | 0
  12448. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12449. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12450. this[offset] = (value & 0xff)
  12451. this[offset + 1] = (value >>> 8)
  12452. } else {
  12453. objectWriteUInt16(this, value, offset, true)
  12454. }
  12455. return offset + 2
  12456. }
  12457. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  12458. value = +value
  12459. offset = offset | 0
  12460. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12461. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12462. this[offset] = (value >>> 8)
  12463. this[offset + 1] = (value & 0xff)
  12464. } else {
  12465. objectWriteUInt16(this, value, offset, false)
  12466. }
  12467. return offset + 2
  12468. }
  12469. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  12470. if (value < 0) value = 0xffffffff + value + 1
  12471. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  12472. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  12473. }
  12474. }
  12475. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  12476. value = +value
  12477. offset = offset | 0
  12478. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12479. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12480. this[offset + 3] = (value >>> 24)
  12481. this[offset + 2] = (value >>> 16)
  12482. this[offset + 1] = (value >>> 8)
  12483. this[offset] = (value & 0xff)
  12484. } else {
  12485. objectWriteUInt32(this, value, offset, true)
  12486. }
  12487. return offset + 4
  12488. }
  12489. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  12490. value = +value
  12491. offset = offset | 0
  12492. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12493. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12494. this[offset] = (value >>> 24)
  12495. this[offset + 1] = (value >>> 16)
  12496. this[offset + 2] = (value >>> 8)
  12497. this[offset + 3] = (value & 0xff)
  12498. } else {
  12499. objectWriteUInt32(this, value, offset, false)
  12500. }
  12501. return offset + 4
  12502. }
  12503. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  12504. value = +value
  12505. offset = offset | 0
  12506. if (!noAssert) {
  12507. var limit = Math.pow(2, 8 * byteLength - 1)
  12508. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12509. }
  12510. var i = 0
  12511. var mul = 1
  12512. var sub = 0
  12513. this[offset] = value & 0xFF
  12514. while (++i < byteLength && (mul *= 0x100)) {
  12515. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  12516. sub = 1
  12517. }
  12518. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12519. }
  12520. return offset + byteLength
  12521. }
  12522. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  12523. value = +value
  12524. offset = offset | 0
  12525. if (!noAssert) {
  12526. var limit = Math.pow(2, 8 * byteLength - 1)
  12527. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12528. }
  12529. var i = byteLength - 1
  12530. var mul = 1
  12531. var sub = 0
  12532. this[offset + i] = value & 0xFF
  12533. while (--i >= 0 && (mul *= 0x100)) {
  12534. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  12535. sub = 1
  12536. }
  12537. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12538. }
  12539. return offset + byteLength
  12540. }
  12541. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  12542. value = +value
  12543. offset = offset | 0
  12544. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  12545. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  12546. if (value < 0) value = 0xff + value + 1
  12547. this[offset] = (value & 0xff)
  12548. return offset + 1
  12549. }
  12550. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  12551. value = +value
  12552. offset = offset | 0
  12553. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12554. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12555. this[offset] = (value & 0xff)
  12556. this[offset + 1] = (value >>> 8)
  12557. } else {
  12558. objectWriteUInt16(this, value, offset, true)
  12559. }
  12560. return offset + 2
  12561. }
  12562. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  12563. value = +value
  12564. offset = offset | 0
  12565. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12566. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12567. this[offset] = (value >>> 8)
  12568. this[offset + 1] = (value & 0xff)
  12569. } else {
  12570. objectWriteUInt16(this, value, offset, false)
  12571. }
  12572. return offset + 2
  12573. }
  12574. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  12575. value = +value
  12576. offset = offset | 0
  12577. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12578. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12579. this[offset] = (value & 0xff)
  12580. this[offset + 1] = (value >>> 8)
  12581. this[offset + 2] = (value >>> 16)
  12582. this[offset + 3] = (value >>> 24)
  12583. } else {
  12584. objectWriteUInt32(this, value, offset, true)
  12585. }
  12586. return offset + 4
  12587. }
  12588. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  12589. value = +value
  12590. offset = offset | 0
  12591. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12592. if (value < 0) value = 0xffffffff + value + 1
  12593. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12594. this[offset] = (value >>> 24)
  12595. this[offset + 1] = (value >>> 16)
  12596. this[offset + 2] = (value >>> 8)
  12597. this[offset + 3] = (value & 0xff)
  12598. } else {
  12599. objectWriteUInt32(this, value, offset, false)
  12600. }
  12601. return offset + 4
  12602. }
  12603. function checkIEEE754 (buf, value, offset, ext, max, min) {
  12604. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  12605. if (offset < 0) throw new RangeError('Index out of range')
  12606. }
  12607. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  12608. if (!noAssert) {
  12609. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  12610. }
  12611. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  12612. return offset + 4
  12613. }
  12614. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  12615. return writeFloat(this, value, offset, true, noAssert)
  12616. }
  12617. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  12618. return writeFloat(this, value, offset, false, noAssert)
  12619. }
  12620. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  12621. if (!noAssert) {
  12622. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  12623. }
  12624. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  12625. return offset + 8
  12626. }
  12627. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  12628. return writeDouble(this, value, offset, true, noAssert)
  12629. }
  12630. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  12631. return writeDouble(this, value, offset, false, noAssert)
  12632. }
  12633. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  12634. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  12635. if (!start) start = 0
  12636. if (!end && end !== 0) end = this.length
  12637. if (targetStart >= target.length) targetStart = target.length
  12638. if (!targetStart) targetStart = 0
  12639. if (end > 0 && end < start) end = start
  12640. // Copy 0 bytes; we're done
  12641. if (end === start) return 0
  12642. if (target.length === 0 || this.length === 0) return 0
  12643. // Fatal error conditions
  12644. if (targetStart < 0) {
  12645. throw new RangeError('targetStart out of bounds')
  12646. }
  12647. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  12648. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  12649. // Are we oob?
  12650. if (end > this.length) end = this.length
  12651. if (target.length - targetStart < end - start) {
  12652. end = target.length - targetStart + start
  12653. }
  12654. var len = end - start
  12655. var i
  12656. if (this === target && start < targetStart && targetStart < end) {
  12657. // descending copy from end
  12658. for (i = len - 1; i >= 0; --i) {
  12659. target[i + targetStart] = this[i + start]
  12660. }
  12661. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  12662. // ascending copy from start
  12663. for (i = 0; i < len; ++i) {
  12664. target[i + targetStart] = this[i + start]
  12665. }
  12666. } else {
  12667. Uint8Array.prototype.set.call(
  12668. target,
  12669. this.subarray(start, start + len),
  12670. targetStart
  12671. )
  12672. }
  12673. return len
  12674. }
  12675. // Usage:
  12676. // buffer.fill(number[, offset[, end]])
  12677. // buffer.fill(buffer[, offset[, end]])
  12678. // buffer.fill(string[, offset[, end]][, encoding])
  12679. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  12680. // Handle string cases:
  12681. if (typeof val === 'string') {
  12682. if (typeof start === 'string') {
  12683. encoding = start
  12684. start = 0
  12685. end = this.length
  12686. } else if (typeof end === 'string') {
  12687. encoding = end
  12688. end = this.length
  12689. }
  12690. if (val.length === 1) {
  12691. var code = val.charCodeAt(0)
  12692. if (code < 256) {
  12693. val = code
  12694. }
  12695. }
  12696. if (encoding !== undefined && typeof encoding !== 'string') {
  12697. throw new TypeError('encoding must be a string')
  12698. }
  12699. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  12700. throw new TypeError('Unknown encoding: ' + encoding)
  12701. }
  12702. } else if (typeof val === 'number') {
  12703. val = val & 255
  12704. }
  12705. // Invalid ranges are not set to a default, so can range check early.
  12706. if (start < 0 || this.length < start || this.length < end) {
  12707. throw new RangeError('Out of range index')
  12708. }
  12709. if (end <= start) {
  12710. return this
  12711. }
  12712. start = start >>> 0
  12713. end = end === undefined ? this.length : end >>> 0
  12714. if (!val) val = 0
  12715. var i
  12716. if (typeof val === 'number') {
  12717. for (i = start; i < end; ++i) {
  12718. this[i] = val
  12719. }
  12720. } else {
  12721. var bytes = Buffer.isBuffer(val)
  12722. ? val
  12723. : utf8ToBytes(new Buffer(val, encoding).toString())
  12724. var len = bytes.length
  12725. for (i = 0; i < end - start; ++i) {
  12726. this[i + start] = bytes[i % len]
  12727. }
  12728. }
  12729. return this
  12730. }
  12731. // HELPER FUNCTIONS
  12732. // ================
  12733. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  12734. function base64clean (str) {
  12735. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  12736. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  12737. // Node converts strings with length < 2 to ''
  12738. if (str.length < 2) return ''
  12739. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  12740. while (str.length % 4 !== 0) {
  12741. str = str + '='
  12742. }
  12743. return str
  12744. }
  12745. function stringtrim (str) {
  12746. if (str.trim) return str.trim()
  12747. return str.replace(/^\s+|\s+$/g, '')
  12748. }
  12749. function toHex (n) {
  12750. if (n < 16) return '0' + n.toString(16)
  12751. return n.toString(16)
  12752. }
  12753. function utf8ToBytes (string, units) {
  12754. units = units || Infinity
  12755. var codePoint
  12756. var length = string.length
  12757. var leadSurrogate = null
  12758. var bytes = []
  12759. for (var i = 0; i < length; ++i) {
  12760. codePoint = string.charCodeAt(i)
  12761. // is surrogate component
  12762. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  12763. // last char was a lead
  12764. if (!leadSurrogate) {
  12765. // no lead yet
  12766. if (codePoint > 0xDBFF) {
  12767. // unexpected trail
  12768. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12769. continue
  12770. } else if (i + 1 === length) {
  12771. // unpaired lead
  12772. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12773. continue
  12774. }
  12775. // valid lead
  12776. leadSurrogate = codePoint
  12777. continue
  12778. }
  12779. // 2 leads in a row
  12780. if (codePoint < 0xDC00) {
  12781. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12782. leadSurrogate = codePoint
  12783. continue
  12784. }
  12785. // valid surrogate pair
  12786. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  12787. } else if (leadSurrogate) {
  12788. // valid bmp char, but last char was a lead
  12789. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12790. }
  12791. leadSurrogate = null
  12792. // encode utf8
  12793. if (codePoint < 0x80) {
  12794. if ((units -= 1) < 0) break
  12795. bytes.push(codePoint)
  12796. } else if (codePoint < 0x800) {
  12797. if ((units -= 2) < 0) break
  12798. bytes.push(
  12799. codePoint >> 0x6 | 0xC0,
  12800. codePoint & 0x3F | 0x80
  12801. )
  12802. } else if (codePoint < 0x10000) {
  12803. if ((units -= 3) < 0) break
  12804. bytes.push(
  12805. codePoint >> 0xC | 0xE0,
  12806. codePoint >> 0x6 & 0x3F | 0x80,
  12807. codePoint & 0x3F | 0x80
  12808. )
  12809. } else if (codePoint < 0x110000) {
  12810. if ((units -= 4) < 0) break
  12811. bytes.push(
  12812. codePoint >> 0x12 | 0xF0,
  12813. codePoint >> 0xC & 0x3F | 0x80,
  12814. codePoint >> 0x6 & 0x3F | 0x80,
  12815. codePoint & 0x3F | 0x80
  12816. )
  12817. } else {
  12818. throw new Error('Invalid code point')
  12819. }
  12820. }
  12821. return bytes
  12822. }
  12823. function asciiToBytes (str) {
  12824. var byteArray = []
  12825. for (var i = 0; i < str.length; ++i) {
  12826. // Node's code seems to be doing this and not & 0x7F..
  12827. byteArray.push(str.charCodeAt(i) & 0xFF)
  12828. }
  12829. return byteArray
  12830. }
  12831. function utf16leToBytes (str, units) {
  12832. var c, hi, lo
  12833. var byteArray = []
  12834. for (var i = 0; i < str.length; ++i) {
  12835. if ((units -= 2) < 0) break
  12836. c = str.charCodeAt(i)
  12837. hi = c >> 8
  12838. lo = c % 256
  12839. byteArray.push(lo)
  12840. byteArray.push(hi)
  12841. }
  12842. return byteArray
  12843. }
  12844. function base64ToBytes (str) {
  12845. return base64.toByteArray(base64clean(str))
  12846. }
  12847. function blitBuffer (src, dst, offset, length) {
  12848. for (var i = 0; i < length; ++i) {
  12849. if ((i + offset >= dst.length) || (i >= src.length)) break
  12850. dst[i + offset] = src[i]
  12851. }
  12852. return i
  12853. }
  12854. function isnan (val) {
  12855. return val !== val // eslint-disable-line no-self-compare
  12856. }
  12857. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  12858. /***/ }),
  12859. /* 53 */
  12860. /*!*****************************************!*\
  12861. !*** ./node_modules/base64-js/index.js ***!
  12862. \*****************************************/
  12863. /*! no static exports found */
  12864. /***/ (function(module, exports, __webpack_require__) {
  12865. "use strict";
  12866. exports.byteLength = byteLength
  12867. exports.toByteArray = toByteArray
  12868. exports.fromByteArray = fromByteArray
  12869. var lookup = []
  12870. var revLookup = []
  12871. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12872. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12873. for (var i = 0, len = code.length; i < len; ++i) {
  12874. lookup[i] = code[i]
  12875. revLookup[code.charCodeAt(i)] = i
  12876. }
  12877. // Support decoding URL-safe base64 strings, as Node.js does.
  12878. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12879. revLookup['-'.charCodeAt(0)] = 62
  12880. revLookup['_'.charCodeAt(0)] = 63
  12881. function getLens (b64) {
  12882. var len = b64.length
  12883. if (len % 4 > 0) {
  12884. throw new Error('Invalid string. Length must be a multiple of 4')
  12885. }
  12886. // Trim off extra bytes after placeholder bytes are found
  12887. // See: https://github.com/beatgammit/base64-js/issues/42
  12888. var validLen = b64.indexOf('=')
  12889. if (validLen === -1) validLen = len
  12890. var placeHoldersLen = validLen === len
  12891. ? 0
  12892. : 4 - (validLen % 4)
  12893. return [validLen, placeHoldersLen]
  12894. }
  12895. // base64 is 4/3 + up to two characters of the original data
  12896. function byteLength (b64) {
  12897. var lens = getLens(b64)
  12898. var validLen = lens[0]
  12899. var placeHoldersLen = lens[1]
  12900. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12901. }
  12902. function _byteLength (b64, validLen, placeHoldersLen) {
  12903. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12904. }
  12905. function toByteArray (b64) {
  12906. var tmp
  12907. var lens = getLens(b64)
  12908. var validLen = lens[0]
  12909. var placeHoldersLen = lens[1]
  12910. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12911. var curByte = 0
  12912. // if there are placeholders, only get up to the last complete 4 chars
  12913. var len = placeHoldersLen > 0
  12914. ? validLen - 4
  12915. : validLen
  12916. var i
  12917. for (i = 0; i < len; i += 4) {
  12918. tmp =
  12919. (revLookup[b64.charCodeAt(i)] << 18) |
  12920. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12921. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12922. revLookup[b64.charCodeAt(i + 3)]
  12923. arr[curByte++] = (tmp >> 16) & 0xFF
  12924. arr[curByte++] = (tmp >> 8) & 0xFF
  12925. arr[curByte++] = tmp & 0xFF
  12926. }
  12927. if (placeHoldersLen === 2) {
  12928. tmp =
  12929. (revLookup[b64.charCodeAt(i)] << 2) |
  12930. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12931. arr[curByte++] = tmp & 0xFF
  12932. }
  12933. if (placeHoldersLen === 1) {
  12934. tmp =
  12935. (revLookup[b64.charCodeAt(i)] << 10) |
  12936. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12937. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12938. arr[curByte++] = (tmp >> 8) & 0xFF
  12939. arr[curByte++] = tmp & 0xFF
  12940. }
  12941. return arr
  12942. }
  12943. function tripletToBase64 (num) {
  12944. return lookup[num >> 18 & 0x3F] +
  12945. lookup[num >> 12 & 0x3F] +
  12946. lookup[num >> 6 & 0x3F] +
  12947. lookup[num & 0x3F]
  12948. }
  12949. function encodeChunk (uint8, start, end) {
  12950. var tmp
  12951. var output = []
  12952. for (var i = start; i < end; i += 3) {
  12953. tmp =
  12954. ((uint8[i] << 16) & 0xFF0000) +
  12955. ((uint8[i + 1] << 8) & 0xFF00) +
  12956. (uint8[i + 2] & 0xFF)
  12957. output.push(tripletToBase64(tmp))
  12958. }
  12959. return output.join('')
  12960. }
  12961. function fromByteArray (uint8) {
  12962. var tmp
  12963. var len = uint8.length
  12964. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12965. var parts = []
  12966. var maxChunkLength = 16383 // must be multiple of 3
  12967. // go through the array every three bytes, we'll deal with trailing stuff later
  12968. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12969. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12970. }
  12971. // pad the end with zeros, but make sure to not forget the extra bytes
  12972. if (extraBytes === 1) {
  12973. tmp = uint8[len - 1]
  12974. parts.push(
  12975. lookup[tmp >> 2] +
  12976. lookup[(tmp << 4) & 0x3F] +
  12977. '=='
  12978. )
  12979. } else if (extraBytes === 2) {
  12980. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12981. parts.push(
  12982. lookup[tmp >> 10] +
  12983. lookup[(tmp >> 4) & 0x3F] +
  12984. lookup[(tmp << 2) & 0x3F] +
  12985. '='
  12986. )
  12987. }
  12988. return parts.join('')
  12989. }
  12990. /***/ }),
  12991. /* 54 */
  12992. /*!***************************************!*\
  12993. !*** ./node_modules/ieee754/index.js ***!
  12994. \***************************************/
  12995. /*! no static exports found */
  12996. /***/ (function(module, exports) {
  12997. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12998. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12999. var e, m
  13000. var eLen = (nBytes * 8) - mLen - 1
  13001. var eMax = (1 << eLen) - 1
  13002. var eBias = eMax >> 1
  13003. var nBits = -7
  13004. var i = isLE ? (nBytes - 1) : 0
  13005. var d = isLE ? -1 : 1
  13006. var s = buffer[offset + i]
  13007. i += d
  13008. e = s & ((1 << (-nBits)) - 1)
  13009. s >>= (-nBits)
  13010. nBits += eLen
  13011. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13012. m = e & ((1 << (-nBits)) - 1)
  13013. e >>= (-nBits)
  13014. nBits += mLen
  13015. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13016. if (e === 0) {
  13017. e = 1 - eBias
  13018. } else if (e === eMax) {
  13019. return m ? NaN : ((s ? -1 : 1) * Infinity)
  13020. } else {
  13021. m = m + Math.pow(2, mLen)
  13022. e = e - eBias
  13023. }
  13024. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  13025. }
  13026. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  13027. var e, m, c
  13028. var eLen = (nBytes * 8) - mLen - 1
  13029. var eMax = (1 << eLen) - 1
  13030. var eBias = eMax >> 1
  13031. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  13032. var i = isLE ? 0 : (nBytes - 1)
  13033. var d = isLE ? 1 : -1
  13034. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  13035. value = Math.abs(value)
  13036. if (isNaN(value) || value === Infinity) {
  13037. m = isNaN(value) ? 1 : 0
  13038. e = eMax
  13039. } else {
  13040. e = Math.floor(Math.log(value) / Math.LN2)
  13041. if (value * (c = Math.pow(2, -e)) < 1) {
  13042. e--
  13043. c *= 2
  13044. }
  13045. if (e + eBias >= 1) {
  13046. value += rt / c
  13047. } else {
  13048. value += rt * Math.pow(2, 1 - eBias)
  13049. }
  13050. if (value * c >= 2) {
  13051. e++
  13052. c /= 2
  13053. }
  13054. if (e + eBias >= eMax) {
  13055. m = 0
  13056. e = eMax
  13057. } else if (e + eBias >= 1) {
  13058. m = ((value * c) - 1) * Math.pow(2, mLen)
  13059. e = e + eBias
  13060. } else {
  13061. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  13062. e = 0
  13063. }
  13064. }
  13065. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  13066. e = (e << mLen) | m
  13067. eLen += mLen
  13068. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  13069. buffer[offset + i - d] |= s * 128
  13070. }
  13071. /***/ }),
  13072. /* 55 */
  13073. /*!***************************************!*\
  13074. !*** ./node_modules/isarray/index.js ***!
  13075. \***************************************/
  13076. /*! no static exports found */
  13077. /***/ (function(module, exports) {
  13078. var toString = {}.toString;
  13079. module.exports = Array.isArray || function (arr) {
  13080. return toString.call(arr) == '[object Array]';
  13081. };
  13082. /***/ }),
  13083. /* 56 */
  13084. /*!*********************************************************************************************************************!*\
  13085. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/util/route.js ***!
  13086. \*********************************************************************************************************************/
  13087. /*! no static exports found */
  13088. /***/ (function(module, exports, __webpack_require__) {
  13089. "use strict";
  13090. /* WEBPACK VAR INJECTION */(function(uni) {
  13091. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13092. Object.defineProperty(exports, "__esModule", {
  13093. value: true
  13094. });
  13095. exports.default = void 0;
  13096. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 57));
  13097. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 59));
  13098. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  13099. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  13100. /**
  13101. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  13102. * 并且带有路由拦截功能
  13103. */
  13104. var Router = /*#__PURE__*/function () {
  13105. function Router() {
  13106. (0, _classCallCheck2.default)(this, Router);
  13107. // 原始属性定义
  13108. this.config = {
  13109. type: 'navigateTo',
  13110. url: '',
  13111. delta: 1,
  13112. // navigateBack页面后退时,回退的层数
  13113. params: {},
  13114. // 传递的参数
  13115. animationType: 'pop-in',
  13116. // 窗口动画,只在APP有效
  13117. animationDuration: 300,
  13118. // 窗口动画持续时间,单位毫秒,只在APP有效
  13119. intercept: false // 是否需要拦截
  13120. };
  13121. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  13122. // 这里在构造函数中进行this绑定
  13123. this.route = this.route.bind(this);
  13124. }
  13125. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  13126. (0, _createClass2.default)(Router, [{
  13127. key: "addRootPath",
  13128. value: function addRootPath(url) {
  13129. return url[0] === '/' ? url : "/".concat(url);
  13130. }
  13131. // 整合路由参数
  13132. }, {
  13133. key: "mixinParam",
  13134. value: function mixinParam(url, params) {
  13135. url = url && this.addRootPath(url);
  13136. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  13137. // 如果有url中有get参数,转换后无需带上"?"
  13138. var query = '';
  13139. if (/.*\/.*\?.*=.*/.test(url)) {
  13140. // object对象转为get类型的参数
  13141. query = uni.$u.queryParams(params, false);
  13142. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  13143. return url += "&".concat(query);
  13144. }
  13145. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  13146. query = uni.$u.queryParams(params);
  13147. return url += query;
  13148. }
  13149. // 对外的方法名称
  13150. }, {
  13151. key: "route",
  13152. value: function () {
  13153. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  13154. var options,
  13155. params,
  13156. mergeConfig,
  13157. isNext,
  13158. _args = arguments;
  13159. return _regenerator.default.wrap(function _callee$(_context) {
  13160. while (1) {
  13161. switch (_context.prev = _context.next) {
  13162. case 0:
  13163. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  13164. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  13165. // 合并用户的配置和内部的默认配置
  13166. mergeConfig = {};
  13167. if (typeof options === 'string') {
  13168. // 如果options为字符串,则为route(url, params)的形式
  13169. mergeConfig.url = this.mixinParam(options, params);
  13170. mergeConfig.type = 'navigateTo';
  13171. } else {
  13172. mergeConfig = uni.$u.deepMerge(this.config, options);
  13173. // 否则正常使用mergeConfig中的url和params进行拼接
  13174. mergeConfig.url = this.mixinParam(options.url, options.params);
  13175. }
  13176. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  13177. if (!(mergeConfig.url === uni.$u.page())) {
  13178. _context.next = 6;
  13179. break;
  13180. }
  13181. return _context.abrupt("return");
  13182. case 6:
  13183. if (params.intercept) {
  13184. this.config.intercept = params.intercept;
  13185. }
  13186. // params参数也带给拦截器
  13187. mergeConfig.params = params;
  13188. // 合并内外部参数
  13189. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  13190. // 判断用户是否定义了拦截器
  13191. if (!(typeof uni.$u.routeIntercept === 'function')) {
  13192. _context.next = 16;
  13193. break;
  13194. }
  13195. _context.next = 12;
  13196. return new Promise(function (resolve, reject) {
  13197. uni.$u.routeIntercept(mergeConfig, resolve);
  13198. });
  13199. case 12:
  13200. isNext = _context.sent;
  13201. // 如果isNext为true,则执行路由跳转
  13202. isNext && this.openPage(mergeConfig);
  13203. _context.next = 17;
  13204. break;
  13205. case 16:
  13206. this.openPage(mergeConfig);
  13207. case 17:
  13208. case "end":
  13209. return _context.stop();
  13210. }
  13211. }
  13212. }, _callee, this);
  13213. }));
  13214. function route() {
  13215. return _route.apply(this, arguments);
  13216. }
  13217. return route;
  13218. }() // 执行路由跳转
  13219. }, {
  13220. key: "openPage",
  13221. value: function openPage(config) {
  13222. // 解构参数
  13223. var url = config.url,
  13224. type = config.type,
  13225. delta = config.delta,
  13226. animationType = config.animationType,
  13227. animationDuration = config.animationDuration;
  13228. if (config.type == 'navigateTo' || config.type == 'to') {
  13229. uni.navigateTo({
  13230. url: url,
  13231. animationType: animationType,
  13232. animationDuration: animationDuration
  13233. });
  13234. }
  13235. if (config.type == 'redirectTo' || config.type == 'redirect') {
  13236. uni.redirectTo({
  13237. url: url
  13238. });
  13239. }
  13240. if (config.type == 'switchTab' || config.type == 'tab') {
  13241. uni.switchTab({
  13242. url: url
  13243. });
  13244. }
  13245. if (config.type == 'reLaunch' || config.type == 'launch') {
  13246. uni.reLaunch({
  13247. url: url
  13248. });
  13249. }
  13250. if (config.type == 'navigateBack' || config.type == 'back') {
  13251. uni.navigateBack({
  13252. delta: delta
  13253. });
  13254. }
  13255. }
  13256. }]);
  13257. return Router;
  13258. }();
  13259. var _default = new Router().route;
  13260. exports.default = _default;
  13261. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13262. /***/ }),
  13263. /* 57 */
  13264. /*!************************************************************************************************!*\
  13265. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  13266. \************************************************************************************************/
  13267. /*! no static exports found */
  13268. /***/ (function(module, exports, __webpack_require__) {
  13269. // TODO(Babel 8): Remove this file.
  13270. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 58)();
  13271. module.exports = runtime;
  13272. /***/ }),
  13273. /* 58 */
  13274. /*!*******************************************************************!*\
  13275. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  13276. \*******************************************************************/
  13277. /*! no static exports found */
  13278. /***/ (function(module, exports, __webpack_require__) {
  13279. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  13280. function _regeneratorRuntime() {
  13281. "use strict";
  13282. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  13283. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  13284. return e;
  13285. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13286. var t,
  13287. e = {},
  13288. r = Object.prototype,
  13289. n = r.hasOwnProperty,
  13290. o = Object.defineProperty || function (t, e, r) {
  13291. t[e] = r.value;
  13292. },
  13293. i = "function" == typeof Symbol ? Symbol : {},
  13294. a = i.iterator || "@@iterator",
  13295. c = i.asyncIterator || "@@asyncIterator",
  13296. u = i.toStringTag || "@@toStringTag";
  13297. function define(t, e, r) {
  13298. return Object.defineProperty(t, e, {
  13299. value: r,
  13300. enumerable: !0,
  13301. configurable: !0,
  13302. writable: !0
  13303. }), t[e];
  13304. }
  13305. try {
  13306. define({}, "");
  13307. } catch (t) {
  13308. define = function define(t, e, r) {
  13309. return t[e] = r;
  13310. };
  13311. }
  13312. function wrap(t, e, r, n) {
  13313. var i = e && e.prototype instanceof Generator ? e : Generator,
  13314. a = Object.create(i.prototype),
  13315. c = new Context(n || []);
  13316. return o(a, "_invoke", {
  13317. value: makeInvokeMethod(t, r, c)
  13318. }), a;
  13319. }
  13320. function tryCatch(t, e, r) {
  13321. try {
  13322. return {
  13323. type: "normal",
  13324. arg: t.call(e, r)
  13325. };
  13326. } catch (t) {
  13327. return {
  13328. type: "throw",
  13329. arg: t
  13330. };
  13331. }
  13332. }
  13333. e.wrap = wrap;
  13334. var h = "suspendedStart",
  13335. l = "suspendedYield",
  13336. f = "executing",
  13337. s = "completed",
  13338. y = {};
  13339. function Generator() {}
  13340. function GeneratorFunction() {}
  13341. function GeneratorFunctionPrototype() {}
  13342. var p = {};
  13343. define(p, a, function () {
  13344. return this;
  13345. });
  13346. var d = Object.getPrototypeOf,
  13347. v = d && d(d(values([])));
  13348. v && v !== r && n.call(v, a) && (p = v);
  13349. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  13350. function defineIteratorMethods(t) {
  13351. ["next", "throw", "return"].forEach(function (e) {
  13352. define(t, e, function (t) {
  13353. return this._invoke(e, t);
  13354. });
  13355. });
  13356. }
  13357. function AsyncIterator(t, e) {
  13358. function invoke(r, o, i, a) {
  13359. var c = tryCatch(t[r], t, o);
  13360. if ("throw" !== c.type) {
  13361. var u = c.arg,
  13362. h = u.value;
  13363. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  13364. invoke("next", t, i, a);
  13365. }, function (t) {
  13366. invoke("throw", t, i, a);
  13367. }) : e.resolve(h).then(function (t) {
  13368. u.value = t, i(u);
  13369. }, function (t) {
  13370. return invoke("throw", t, i, a);
  13371. });
  13372. }
  13373. a(c.arg);
  13374. }
  13375. var r;
  13376. o(this, "_invoke", {
  13377. value: function value(t, n) {
  13378. function callInvokeWithMethodAndArg() {
  13379. return new e(function (e, r) {
  13380. invoke(t, n, e, r);
  13381. });
  13382. }
  13383. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  13384. }
  13385. });
  13386. }
  13387. function makeInvokeMethod(e, r, n) {
  13388. var o = h;
  13389. return function (i, a) {
  13390. if (o === f) throw Error("Generator is already running");
  13391. if (o === s) {
  13392. if ("throw" === i) throw a;
  13393. return {
  13394. value: t,
  13395. done: !0
  13396. };
  13397. }
  13398. for (n.method = i, n.arg = a;;) {
  13399. var c = n.delegate;
  13400. if (c) {
  13401. var u = maybeInvokeDelegate(c, n);
  13402. if (u) {
  13403. if (u === y) continue;
  13404. return u;
  13405. }
  13406. }
  13407. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  13408. if (o === h) throw o = s, n.arg;
  13409. n.dispatchException(n.arg);
  13410. } else "return" === n.method && n.abrupt("return", n.arg);
  13411. o = f;
  13412. var p = tryCatch(e, r, n);
  13413. if ("normal" === p.type) {
  13414. if (o = n.done ? s : l, p.arg === y) continue;
  13415. return {
  13416. value: p.arg,
  13417. done: n.done
  13418. };
  13419. }
  13420. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  13421. }
  13422. };
  13423. }
  13424. function maybeInvokeDelegate(e, r) {
  13425. var n = r.method,
  13426. o = e.iterator[n];
  13427. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  13428. var i = tryCatch(o, e.iterator, r.arg);
  13429. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  13430. var a = i.arg;
  13431. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  13432. }
  13433. function pushTryEntry(t) {
  13434. var e = {
  13435. tryLoc: t[0]
  13436. };
  13437. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  13438. }
  13439. function resetTryEntry(t) {
  13440. var e = t.completion || {};
  13441. e.type = "normal", delete e.arg, t.completion = e;
  13442. }
  13443. function Context(t) {
  13444. this.tryEntries = [{
  13445. tryLoc: "root"
  13446. }], t.forEach(pushTryEntry, this), this.reset(!0);
  13447. }
  13448. function values(e) {
  13449. if (e || "" === e) {
  13450. var r = e[a];
  13451. if (r) return r.call(e);
  13452. if ("function" == typeof e.next) return e;
  13453. if (!isNaN(e.length)) {
  13454. var o = -1,
  13455. i = function next() {
  13456. for (; ++o < e.length;) {
  13457. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  13458. }
  13459. return next.value = t, next.done = !0, next;
  13460. };
  13461. return i.next = i;
  13462. }
  13463. }
  13464. throw new TypeError(_typeof(e) + " is not iterable");
  13465. }
  13466. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  13467. value: GeneratorFunctionPrototype,
  13468. configurable: !0
  13469. }), o(GeneratorFunctionPrototype, "constructor", {
  13470. value: GeneratorFunction,
  13471. configurable: !0
  13472. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  13473. var e = "function" == typeof t && t.constructor;
  13474. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  13475. }, e.mark = function (t) {
  13476. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  13477. }, e.awrap = function (t) {
  13478. return {
  13479. __await: t
  13480. };
  13481. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  13482. return this;
  13483. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  13484. void 0 === i && (i = Promise);
  13485. var a = new AsyncIterator(wrap(t, r, n, o), i);
  13486. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  13487. return t.done ? t.value : a.next();
  13488. });
  13489. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  13490. return this;
  13491. }), define(g, "toString", function () {
  13492. return "[object Generator]";
  13493. }), e.keys = function (t) {
  13494. var e = Object(t),
  13495. r = [];
  13496. for (var n in e) {
  13497. r.push(n);
  13498. }
  13499. return r.reverse(), function next() {
  13500. for (; r.length;) {
  13501. var t = r.pop();
  13502. if (t in e) return next.value = t, next.done = !1, next;
  13503. }
  13504. return next.done = !0, next;
  13505. };
  13506. }, e.values = values, Context.prototype = {
  13507. constructor: Context,
  13508. reset: function reset(e) {
  13509. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  13510. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  13511. }
  13512. },
  13513. stop: function stop() {
  13514. this.done = !0;
  13515. var t = this.tryEntries[0].completion;
  13516. if ("throw" === t.type) throw t.arg;
  13517. return this.rval;
  13518. },
  13519. dispatchException: function dispatchException(e) {
  13520. if (this.done) throw e;
  13521. var r = this;
  13522. function handle(n, o) {
  13523. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  13524. }
  13525. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  13526. var i = this.tryEntries[o],
  13527. a = i.completion;
  13528. if ("root" === i.tryLoc) return handle("end");
  13529. if (i.tryLoc <= this.prev) {
  13530. var c = n.call(i, "catchLoc"),
  13531. u = n.call(i, "finallyLoc");
  13532. if (c && u) {
  13533. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  13534. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  13535. } else if (c) {
  13536. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  13537. } else {
  13538. if (!u) throw Error("try statement without catch or finally");
  13539. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  13540. }
  13541. }
  13542. }
  13543. },
  13544. abrupt: function abrupt(t, e) {
  13545. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  13546. var o = this.tryEntries[r];
  13547. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  13548. var i = o;
  13549. break;
  13550. }
  13551. }
  13552. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  13553. var a = i ? i.completion : {};
  13554. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  13555. },
  13556. complete: function complete(t, e) {
  13557. if ("throw" === t.type) throw t.arg;
  13558. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  13559. },
  13560. finish: function finish(t) {
  13561. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  13562. var r = this.tryEntries[e];
  13563. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  13564. }
  13565. },
  13566. "catch": function _catch(t) {
  13567. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  13568. var r = this.tryEntries[e];
  13569. if (r.tryLoc === t) {
  13570. var n = r.completion;
  13571. if ("throw" === n.type) {
  13572. var o = n.arg;
  13573. resetTryEntry(r);
  13574. }
  13575. return o;
  13576. }
  13577. }
  13578. throw Error("illegal catch attempt");
  13579. },
  13580. delegateYield: function delegateYield(e, r, n) {
  13581. return this.delegate = {
  13582. iterator: values(e),
  13583. resultName: r,
  13584. nextLoc: n
  13585. }, "next" === this.method && (this.arg = t), y;
  13586. }
  13587. }, e;
  13588. }
  13589. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13590. /***/ }),
  13591. /* 59 */
  13592. /*!*****************************************************************!*\
  13593. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  13594. \*****************************************************************/
  13595. /*! no static exports found */
  13596. /***/ (function(module, exports) {
  13597. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  13598. try {
  13599. var info = gen[key](arg);
  13600. var value = info.value;
  13601. } catch (error) {
  13602. reject(error);
  13603. return;
  13604. }
  13605. if (info.done) {
  13606. resolve(value);
  13607. } else {
  13608. Promise.resolve(value).then(_next, _throw);
  13609. }
  13610. }
  13611. function _asyncToGenerator(fn) {
  13612. return function () {
  13613. var self = this,
  13614. args = arguments;
  13615. return new Promise(function (resolve, reject) {
  13616. var gen = fn.apply(self, args);
  13617. function _next(value) {
  13618. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  13619. }
  13620. function _throw(err) {
  13621. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  13622. }
  13623. _next(undefined);
  13624. });
  13625. };
  13626. }
  13627. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13628. /***/ }),
  13629. /* 60 */
  13630. /*!*********************************************************************************************************************************!*\
  13631. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  13632. \*********************************************************************************************************************************/
  13633. /*! no static exports found */
  13634. /***/ (function(module, exports, __webpack_require__) {
  13635. "use strict";
  13636. Object.defineProperty(exports, "__esModule", {
  13637. value: true
  13638. });
  13639. exports.default = void 0;
  13640. /**
  13641. * 求两个颜色之间的渐变值
  13642. * @param {string} startColor 开始的颜色
  13643. * @param {string} endColor 结束的颜色
  13644. * @param {number} step 颜色等分的份额
  13645. * */
  13646. function colorGradient() {
  13647. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  13648. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  13649. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  13650. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  13651. var startR = startRGB[0];
  13652. var startG = startRGB[1];
  13653. var startB = startRGB[2];
  13654. var endRGB = hexToRgb(endColor, false);
  13655. var endR = endRGB[0];
  13656. var endG = endRGB[1];
  13657. var endB = endRGB[2];
  13658. var sR = (endR - startR) / step; // 总差值
  13659. var sG = (endG - startG) / step;
  13660. var sB = (endB - startB) / step;
  13661. var colorArr = [];
  13662. for (var i = 0; i < step; i++) {
  13663. // 计算每一步的hex值
  13664. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  13665. // 确保第一个颜色值为startColor的值
  13666. if (i === 0) hex = rgbToHex(startColor);
  13667. // 确保最后一个颜色值为endColor的值
  13668. if (i === step - 1) hex = rgbToHex(endColor);
  13669. colorArr.push(hex);
  13670. }
  13671. return colorArr;
  13672. }
  13673. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  13674. function hexToRgb(sColor) {
  13675. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13676. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13677. sColor = String(sColor).toLowerCase();
  13678. if (sColor && reg.test(sColor)) {
  13679. if (sColor.length === 4) {
  13680. var sColorNew = '#';
  13681. for (var i = 1; i < 4; i += 1) {
  13682. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13683. }
  13684. sColor = sColorNew;
  13685. }
  13686. // 处理六位的颜色值
  13687. var sColorChange = [];
  13688. for (var _i = 1; _i < 7; _i += 2) {
  13689. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  13690. }
  13691. if (!str) {
  13692. return sColorChange;
  13693. }
  13694. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  13695. }
  13696. if (/^(rgb|RGB)/.test(sColor)) {
  13697. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13698. return arr.map(function (val) {
  13699. return Number(val);
  13700. });
  13701. }
  13702. return sColor;
  13703. }
  13704. // 将rgb表示方式转换为hex表示方式
  13705. function rgbToHex(rgb) {
  13706. var _this = rgb;
  13707. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13708. if (/^(rgb|RGB)/.test(_this)) {
  13709. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13710. var strHex = '#';
  13711. for (var i = 0; i < aColor.length; i++) {
  13712. var hex = Number(aColor[i]).toString(16);
  13713. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  13714. if (hex === '0') {
  13715. hex += hex;
  13716. }
  13717. strHex += hex;
  13718. }
  13719. if (strHex.length !== 7) {
  13720. strHex = _this;
  13721. }
  13722. return strHex;
  13723. }
  13724. if (reg.test(_this)) {
  13725. var aNum = _this.replace(/#/, '').split('');
  13726. if (aNum.length === 6) {
  13727. return _this;
  13728. }
  13729. if (aNum.length === 3) {
  13730. var numHex = '#';
  13731. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  13732. numHex += aNum[_i2] + aNum[_i2];
  13733. }
  13734. return numHex;
  13735. }
  13736. } else {
  13737. return _this;
  13738. }
  13739. }
  13740. /**
  13741. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  13742. * sHex为传入的十六进制的色值
  13743. * alpha为rgba的透明度
  13744. */
  13745. function colorToRgba(color, alpha) {
  13746. color = rgbToHex(color);
  13747. // 十六进制颜色值的正则表达式
  13748. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13749. /* 16进制颜色转为RGB格式 */
  13750. var sColor = String(color).toLowerCase();
  13751. if (sColor && reg.test(sColor)) {
  13752. if (sColor.length === 4) {
  13753. var sColorNew = '#';
  13754. for (var i = 1; i < 4; i += 1) {
  13755. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13756. }
  13757. sColor = sColorNew;
  13758. }
  13759. // 处理六位的颜色值
  13760. var sColorChange = [];
  13761. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  13762. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  13763. }
  13764. // return sColorChange.join(',')
  13765. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  13766. }
  13767. return sColor;
  13768. }
  13769. var _default = {
  13770. colorGradient: colorGradient,
  13771. hexToRgb: hexToRgb,
  13772. rgbToHex: rgbToHex,
  13773. colorToRgba: colorToRgba
  13774. };
  13775. exports.default = _default;
  13776. /***/ }),
  13777. /* 61 */
  13778. /*!************************************************************************************************************************!*\
  13779. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/function/test.js ***!
  13780. \************************************************************************************************************************/
  13781. /*! no static exports found */
  13782. /***/ (function(module, exports, __webpack_require__) {
  13783. "use strict";
  13784. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13785. Object.defineProperty(exports, "__esModule", {
  13786. value: true
  13787. });
  13788. exports.default = void 0;
  13789. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13790. /**
  13791. * 验证电子邮箱格式
  13792. */
  13793. function email(value) {
  13794. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  13795. }
  13796. /**
  13797. * 验证手机格式
  13798. */
  13799. function mobile(value) {
  13800. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  13801. }
  13802. /**
  13803. * 验证URL格式
  13804. */
  13805. function url(value) {
  13806. 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);
  13807. }
  13808. /**
  13809. * 验证日期格式
  13810. */
  13811. function date(value) {
  13812. if (!value) return false;
  13813. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13814. if (number(value)) value = +value;
  13815. return !/Invalid|NaN/.test(new Date(value).toString());
  13816. }
  13817. /**
  13818. * 验证ISO类型的日期格式
  13819. */
  13820. function dateISO(value) {
  13821. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13822. }
  13823. /**
  13824. * 验证十进制数字
  13825. */
  13826. function number(value) {
  13827. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13828. }
  13829. /**
  13830. * 验证字符串
  13831. */
  13832. function string(value) {
  13833. return typeof value === 'string';
  13834. }
  13835. /**
  13836. * 验证整数
  13837. */
  13838. function digits(value) {
  13839. return /^\d+$/.test(value);
  13840. }
  13841. /**
  13842. * 验证身份证号码
  13843. */
  13844. function idCard(value) {
  13845. 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);
  13846. }
  13847. /**
  13848. * 是否车牌号
  13849. */
  13850. function carNo(value) {
  13851. // 新能源车牌
  13852. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13853. // 旧车牌
  13854. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13855. if (value.length === 7) {
  13856. return creg.test(value);
  13857. }
  13858. if (value.length === 8) {
  13859. return xreg.test(value);
  13860. }
  13861. return false;
  13862. }
  13863. /**
  13864. * 金额,只允许2位小数
  13865. */
  13866. function amount(value) {
  13867. // 金额,只允许保留两位小数
  13868. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13869. }
  13870. /**
  13871. * 中文
  13872. */
  13873. function chinese(value) {
  13874. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13875. return reg.test(value);
  13876. }
  13877. /**
  13878. * 只能输入字母
  13879. */
  13880. function letter(value) {
  13881. return /^[a-zA-Z]*$/.test(value);
  13882. }
  13883. /**
  13884. * 只能是字母或者数字
  13885. */
  13886. function enOrNum(value) {
  13887. // 英文或者数字
  13888. var reg = /^[0-9a-zA-Z]*$/g;
  13889. return reg.test(value);
  13890. }
  13891. /**
  13892. * 验证是否包含某个值
  13893. */
  13894. function contains(value, param) {
  13895. return value.indexOf(param) >= 0;
  13896. }
  13897. /**
  13898. * 验证一个值范围[min, max]
  13899. */
  13900. function range(value, param) {
  13901. return value >= param[0] && value <= param[1];
  13902. }
  13903. /**
  13904. * 验证一个长度范围[min, max]
  13905. */
  13906. function rangeLength(value, param) {
  13907. return value.length >= param[0] && value.length <= param[1];
  13908. }
  13909. /**
  13910. * 是否固定电话
  13911. */
  13912. function landline(value) {
  13913. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13914. return reg.test(value);
  13915. }
  13916. /**
  13917. * 判断是否为空
  13918. */
  13919. function empty(value) {
  13920. switch ((0, _typeof2.default)(value)) {
  13921. case 'undefined':
  13922. return true;
  13923. case 'string':
  13924. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13925. break;
  13926. case 'boolean':
  13927. if (!value) return true;
  13928. break;
  13929. case 'number':
  13930. if (value === 0 || isNaN(value)) return true;
  13931. break;
  13932. case 'object':
  13933. if (value === null || value.length === 0) return true;
  13934. for (var i in value) {
  13935. return false;
  13936. }
  13937. return true;
  13938. }
  13939. return false;
  13940. }
  13941. /**
  13942. * 是否json字符串
  13943. */
  13944. function jsonString(value) {
  13945. if (typeof value === 'string') {
  13946. try {
  13947. var obj = JSON.parse(value);
  13948. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13949. return true;
  13950. }
  13951. return false;
  13952. } catch (e) {
  13953. return false;
  13954. }
  13955. }
  13956. return false;
  13957. }
  13958. /**
  13959. * 是否数组
  13960. */
  13961. function array(value) {
  13962. if (typeof Array.isArray === 'function') {
  13963. return Array.isArray(value);
  13964. }
  13965. return Object.prototype.toString.call(value) === '[object Array]';
  13966. }
  13967. /**
  13968. * 是否对象
  13969. */
  13970. function object(value) {
  13971. return Object.prototype.toString.call(value) === '[object Object]';
  13972. }
  13973. /**
  13974. * 是否短信验证码
  13975. */
  13976. function code(value) {
  13977. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13978. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13979. }
  13980. /**
  13981. * 是否函数方法
  13982. * @param {Object} value
  13983. */
  13984. function func(value) {
  13985. return typeof value === 'function';
  13986. }
  13987. /**
  13988. * 是否promise对象
  13989. * @param {Object} value
  13990. */
  13991. function promise(value) {
  13992. return object(value) && func(value.then) && func(value.catch);
  13993. }
  13994. /** 是否图片格式
  13995. * @param {Object} value
  13996. */
  13997. function image(value) {
  13998. var newValue = value.split('?')[0];
  13999. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  14000. return IMAGE_REGEXP.test(newValue);
  14001. }
  14002. /**
  14003. * 是否视频格式
  14004. * @param {Object} value
  14005. */
  14006. function video(value) {
  14007. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  14008. return VIDEO_REGEXP.test(value);
  14009. }
  14010. /**
  14011. * 是否为正则对象
  14012. * @param {Object}
  14013. * @return {Boolean}
  14014. */
  14015. function regExp(o) {
  14016. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  14017. }
  14018. var _default = {
  14019. email: email,
  14020. mobile: mobile,
  14021. url: url,
  14022. date: date,
  14023. dateISO: dateISO,
  14024. number: number,
  14025. digits: digits,
  14026. idCard: idCard,
  14027. carNo: carNo,
  14028. amount: amount,
  14029. chinese: chinese,
  14030. letter: letter,
  14031. enOrNum: enOrNum,
  14032. contains: contains,
  14033. range: range,
  14034. rangeLength: rangeLength,
  14035. empty: empty,
  14036. isEmpty: empty,
  14037. jsonString: jsonString,
  14038. landline: landline,
  14039. object: object,
  14040. array: array,
  14041. code: code,
  14042. func: func,
  14043. promise: promise,
  14044. video: video,
  14045. image: image,
  14046. regExp: regExp,
  14047. string: string
  14048. };
  14049. exports.default = _default;
  14050. /***/ }),
  14051. /* 62 */
  14052. /*!****************************************************************************************************************************!*\
  14053. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/function/debounce.js ***!
  14054. \****************************************************************************************************************************/
  14055. /*! no static exports found */
  14056. /***/ (function(module, exports, __webpack_require__) {
  14057. "use strict";
  14058. Object.defineProperty(exports, "__esModule", {
  14059. value: true
  14060. });
  14061. exports.default = void 0;
  14062. var timeout = null;
  14063. /**
  14064. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  14065. *
  14066. * @param {Function} func 要执行的回调函数
  14067. * @param {Number} wait 延时的时间
  14068. * @param {Boolean} immediate 是否立即执行
  14069. * @return null
  14070. */
  14071. function debounce(func) {
  14072. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  14073. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  14074. // 清除定时器
  14075. if (timeout !== null) clearTimeout(timeout);
  14076. // 立即执行,此类情况一般用不到
  14077. if (immediate) {
  14078. var callNow = !timeout;
  14079. timeout = setTimeout(function () {
  14080. timeout = null;
  14081. }, wait);
  14082. if (callNow) typeof func === 'function' && func();
  14083. } else {
  14084. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  14085. timeout = setTimeout(function () {
  14086. typeof func === 'function' && func();
  14087. }, wait);
  14088. }
  14089. }
  14090. var _default = debounce;
  14091. exports.default = _default;
  14092. /***/ }),
  14093. /* 63 */
  14094. /*!****************************************************************************************************************************!*\
  14095. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/function/throttle.js ***!
  14096. \****************************************************************************************************************************/
  14097. /*! no static exports found */
  14098. /***/ (function(module, exports, __webpack_require__) {
  14099. "use strict";
  14100. Object.defineProperty(exports, "__esModule", {
  14101. value: true
  14102. });
  14103. exports.default = void 0;
  14104. var timer;
  14105. var flag;
  14106. /**
  14107. * 节流原理:在一定时间内,只能触发一次
  14108. *
  14109. * @param {Function} func 要执行的回调函数
  14110. * @param {Number} wait 延时的时间
  14111. * @param {Boolean} immediate 是否立即执行
  14112. * @return null
  14113. */
  14114. function throttle(func) {
  14115. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  14116. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  14117. if (immediate) {
  14118. if (!flag) {
  14119. flag = true;
  14120. // 如果是立即执行,则在wait毫秒内开始时执行
  14121. typeof func === 'function' && func();
  14122. timer = setTimeout(function () {
  14123. flag = false;
  14124. }, wait);
  14125. }
  14126. } else if (!flag) {
  14127. flag = true;
  14128. // 如果是非立即执行,则在wait毫秒内的结束处执行
  14129. timer = setTimeout(function () {
  14130. flag = false;
  14131. typeof func === 'function' && func();
  14132. }, wait);
  14133. }
  14134. }
  14135. var _default = throttle;
  14136. exports.default = _default;
  14137. /***/ }),
  14138. /* 64 */
  14139. /*!*************************************************************************************************************************!*\
  14140. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/function/index.js ***!
  14141. \*************************************************************************************************************************/
  14142. /*! no static exports found */
  14143. /***/ (function(module, exports, __webpack_require__) {
  14144. "use strict";
  14145. /* WEBPACK VAR INJECTION */(function(uni) {
  14146. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14147. Object.defineProperty(exports, "__esModule", {
  14148. value: true
  14149. });
  14150. exports.default = void 0;
  14151. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  14152. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  14153. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 61));
  14154. var _digit = __webpack_require__(/*! ./digit.js */ 65);
  14155. /**
  14156. * @description 如果value小于min,取min;如果value大于max,取max
  14157. * @param {number} min
  14158. * @param {number} max
  14159. * @param {number} value
  14160. */
  14161. function range() {
  14162. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14163. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  14164. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  14165. return Math.max(min, Math.min(max, Number(value)));
  14166. }
  14167. /**
  14168. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  14169. * @param {number|string} value 用户传递值的px值
  14170. * @param {boolean} unit
  14171. * @returns {number|string}
  14172. */
  14173. function getPx(value) {
  14174. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  14175. if (_test.default.number(value)) {
  14176. return unit ? "".concat(value, "px") : Number(value);
  14177. }
  14178. // 如果带有rpx,先取出其数值部分,再转为px值
  14179. if (/(rpx|upx)$/.test(value)) {
  14180. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  14181. }
  14182. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  14183. }
  14184. /**
  14185. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  14186. * @param {number} value 堵塞时间 单位ms 毫秒
  14187. * @returns {Promise} 返回promise
  14188. */
  14189. function sleep() {
  14190. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  14191. return new Promise(function (resolve) {
  14192. setTimeout(function () {
  14193. resolve();
  14194. }, value);
  14195. });
  14196. }
  14197. /**
  14198. * @description 运行期判断平台
  14199. * @returns {string} 返回所在平台(小写)
  14200. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  14201. */
  14202. function os() {
  14203. return uni.getSystemInfoSync().platform.toLowerCase();
  14204. }
  14205. /**
  14206. * @description 获取系统信息同步接口
  14207. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  14208. */
  14209. function sys() {
  14210. return uni.getSystemInfoSync();
  14211. }
  14212. /**
  14213. * @description 取一个区间数
  14214. * @param {Number} min 最小值
  14215. * @param {Number} max 最大值
  14216. */
  14217. function random(min, max) {
  14218. if (min >= 0 && max > 0 && max >= min) {
  14219. var gab = max - min + 1;
  14220. return Math.floor(Math.random() * gab + min);
  14221. }
  14222. return 0;
  14223. }
  14224. /**
  14225. * @param {Number} len uuid的长度
  14226. * @param {Boolean} firstU 将返回的首字母置为"u"
  14227. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  14228. */
  14229. function guid() {
  14230. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  14231. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14232. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  14233. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  14234. var uuid = [];
  14235. radix = radix || chars.length;
  14236. if (len) {
  14237. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  14238. for (var i = 0; i < len; i++) {
  14239. uuid[i] = chars[0 | Math.random() * radix];
  14240. }
  14241. } else {
  14242. var r;
  14243. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  14244. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  14245. uuid[14] = '4';
  14246. for (var _i = 0; _i < 36; _i++) {
  14247. if (!uuid[_i]) {
  14248. r = 0 | Math.random() * 16;
  14249. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  14250. }
  14251. }
  14252. }
  14253. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  14254. if (firstU) {
  14255. uuid.shift();
  14256. return "u".concat(uuid.join(''));
  14257. }
  14258. return uuid.join('');
  14259. }
  14260. /**
  14261. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  14262. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  14263. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  14264. 值(默认为undefined),就是查找最顶层的$parent
  14265. * @param {string|undefined} name 父组件的参数名
  14266. */
  14267. function $parent() {
  14268. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  14269. var parent = this.$parent;
  14270. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  14271. while (parent) {
  14272. // 父组件
  14273. if (parent.$options && parent.$options.name !== name) {
  14274. // 如果组件的name不相等,继续上一级寻找
  14275. parent = parent.$parent;
  14276. } else {
  14277. return parent;
  14278. }
  14279. }
  14280. return false;
  14281. }
  14282. /**
  14283. * @description 样式转换
  14284. * 对象转字符串,或者字符串转对象
  14285. * @param {object | string} customStyle 需要转换的目标
  14286. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  14287. * @returns {object|string}
  14288. */
  14289. function addStyle(customStyle) {
  14290. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  14291. // 字符串转字符串,对象转对象情形,直接返回
  14292. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  14293. return customStyle;
  14294. }
  14295. // 字符串转对象
  14296. if (target === 'object') {
  14297. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  14298. customStyle = trim(customStyle);
  14299. // 根据";"将字符串转为数组形式
  14300. var styleArray = customStyle.split(';');
  14301. var style = {};
  14302. // 历遍数组,拼接成对象
  14303. for (var i = 0; i < styleArray.length; i++) {
  14304. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  14305. if (styleArray[i]) {
  14306. var item = styleArray[i].split(':');
  14307. style[trim(item[0])] = trim(item[1]);
  14308. }
  14309. }
  14310. return style;
  14311. }
  14312. // 这里为对象转字符串形式
  14313. var string = '';
  14314. for (var _i2 in customStyle) {
  14315. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  14316. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  14317. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  14318. }
  14319. // 去除两端空格
  14320. return trim(string);
  14321. }
  14322. /**
  14323. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  14324. * @param {string|number} value 需要添加单位的值
  14325. * @param {string} unit 添加的单位名 比如px
  14326. */
  14327. function addUnit() {
  14328. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  14329. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  14330. 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';
  14331. value = String(value);
  14332. // 用uView内置验证规则中的number判断是否为数值
  14333. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  14334. }
  14335. /**
  14336. * @description 深度克隆
  14337. * @param {object} obj 需要深度克隆的对象
  14338. * @param cache 缓存
  14339. * @returns {*} 克隆后的对象或者原值(不是对象)
  14340. */
  14341. function deepClone(obj) {
  14342. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  14343. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  14344. if (cache.has(obj)) return cache.get(obj);
  14345. var clone;
  14346. if (obj instanceof Date) {
  14347. clone = new Date(obj.getTime());
  14348. } else if (obj instanceof RegExp) {
  14349. clone = new RegExp(obj);
  14350. } else if (obj instanceof Map) {
  14351. clone = new Map(Array.from(obj, function (_ref) {
  14352. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  14353. key = _ref2[0],
  14354. value = _ref2[1];
  14355. return [key, deepClone(value, cache)];
  14356. }));
  14357. } else if (obj instanceof Set) {
  14358. clone = new Set(Array.from(obj, function (value) {
  14359. return deepClone(value, cache);
  14360. }));
  14361. } else if (Array.isArray(obj)) {
  14362. clone = obj.map(function (value) {
  14363. return deepClone(value, cache);
  14364. });
  14365. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  14366. clone = Object.create(Object.getPrototypeOf(obj));
  14367. cache.set(obj, clone);
  14368. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  14369. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  14370. key = _Object$entries$_i[0],
  14371. value = _Object$entries$_i[1];
  14372. clone[key] = deepClone(value, cache);
  14373. }
  14374. } else {
  14375. clone = Object.assign({}, obj);
  14376. }
  14377. cache.set(obj, clone);
  14378. return clone;
  14379. }
  14380. /**
  14381. * @description JS对象深度合并
  14382. * @param {object} target 需要拷贝的对象
  14383. * @param {object} source 拷贝的来源对象
  14384. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  14385. */
  14386. function deepMerge() {
  14387. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14388. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14389. target = deepClone(target);
  14390. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  14391. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  14392. for (var prop in source) {
  14393. if (!source.hasOwnProperty(prop)) continue;
  14394. var sourceValue = source[prop];
  14395. var targetValue = merged[prop];
  14396. if (sourceValue instanceof Date) {
  14397. merged[prop] = new Date(sourceValue);
  14398. } else if (sourceValue instanceof RegExp) {
  14399. merged[prop] = new RegExp(sourceValue);
  14400. } else if (sourceValue instanceof Map) {
  14401. merged[prop] = new Map(sourceValue);
  14402. } else if (sourceValue instanceof Set) {
  14403. merged[prop] = new Set(sourceValue);
  14404. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  14405. merged[prop] = deepMerge(targetValue, sourceValue);
  14406. } else {
  14407. merged[prop] = sourceValue;
  14408. }
  14409. }
  14410. return merged;
  14411. }
  14412. /**
  14413. * @description error提示
  14414. * @param {*} err 错误内容
  14415. */
  14416. function error(err) {
  14417. // 开发环境才提示,生产环境不会提示
  14418. if (true) {
  14419. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  14420. }
  14421. }
  14422. /**
  14423. * @description 打乱数组
  14424. * @param {array} array 需要打乱的数组
  14425. * @returns {array} 打乱后的数组
  14426. */
  14427. function randomArray() {
  14428. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  14429. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  14430. return array.sort(function () {
  14431. return Math.random() - 0.5;
  14432. });
  14433. }
  14434. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  14435. // 所以这里做一个兼容polyfill的兼容处理
  14436. if (!String.prototype.padStart) {
  14437. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  14438. String.prototype.padStart = function (maxLength) {
  14439. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  14440. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  14441. throw new TypeError('fillString must be String');
  14442. }
  14443. var str = this;
  14444. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  14445. if (str.length >= maxLength) return String(str);
  14446. var fillLength = maxLength - str.length;
  14447. var times = Math.ceil(fillLength / fillString.length);
  14448. while (times >>= 1) {
  14449. fillString += fillString;
  14450. if (times === 1) {
  14451. fillString += fillString;
  14452. }
  14453. }
  14454. return fillString.slice(0, fillLength) + str;
  14455. };
  14456. }
  14457. /**
  14458. * @description 格式化时间
  14459. * @param {String|Number} dateTime 需要格式化的时间戳
  14460. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  14461. * @returns {string} 返回格式化后的字符串
  14462. */
  14463. function timeFormat() {
  14464. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14465. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  14466. var date;
  14467. // 若传入时间为假值,则取当前时间
  14468. if (!dateTime) {
  14469. date = new Date();
  14470. }
  14471. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  14472. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  14473. date = new Date(dateTime * 1000);
  14474. }
  14475. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  14476. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  14477. date = new Date(Number(dateTime));
  14478. }
  14479. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  14480. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  14481. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  14482. date = new Date(dateTime.replace(/-/g, '/'));
  14483. }
  14484. // 其他都认为符合 RFC 2822 规范
  14485. else {
  14486. date = new Date(dateTime);
  14487. }
  14488. var timeSource = {
  14489. 'y': date.getFullYear().toString(),
  14490. // 年
  14491. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  14492. // 月
  14493. 'd': date.getDate().toString().padStart(2, '0'),
  14494. // 日
  14495. 'h': date.getHours().toString().padStart(2, '0'),
  14496. // 时
  14497. 'M': date.getMinutes().toString().padStart(2, '0'),
  14498. // 分
  14499. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  14500. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  14501. };
  14502. for (var key in timeSource) {
  14503. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  14504. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  14505. ret = _ref4[0];
  14506. if (ret) {
  14507. // 年可能只需展示两位
  14508. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  14509. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  14510. }
  14511. }
  14512. return formatStr;
  14513. }
  14514. /**
  14515. * @description 时间戳转为多久之前
  14516. * @param {String|Number} timestamp 时间戳
  14517. * @param {String|Boolean} format
  14518. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  14519. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  14520. * @returns {string} 转化后的内容
  14521. */
  14522. function timeFrom() {
  14523. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14524. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  14525. if (timestamp == null) timestamp = Number(new Date());
  14526. timestamp = parseInt(timestamp);
  14527. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  14528. if (timestamp.toString().length == 10) timestamp *= 1000;
  14529. var timer = new Date().getTime() - timestamp;
  14530. timer = parseInt(timer / 1000);
  14531. // 如果小于5分钟,则返回"刚刚",其他以此类推
  14532. var tips = '';
  14533. switch (true) {
  14534. case timer < 300:
  14535. tips = '刚刚';
  14536. break;
  14537. case timer >= 300 && timer < 3600:
  14538. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  14539. break;
  14540. case timer >= 3600 && timer < 86400:
  14541. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  14542. break;
  14543. case timer >= 86400 && timer < 2592000:
  14544. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  14545. break;
  14546. default:
  14547. // 如果format为false,则无论什么时间戳,都显示xx之前
  14548. if (format === false) {
  14549. if (timer >= 2592000 && timer < 365 * 86400) {
  14550. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  14551. } else {
  14552. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  14553. }
  14554. } else {
  14555. tips = timeFormat(timestamp, format);
  14556. }
  14557. }
  14558. return tips;
  14559. }
  14560. /**
  14561. * @description 去除空格
  14562. * @param String str 需要去除空格的字符串
  14563. * @param String pos both(左右)|left|right|all 默认both
  14564. */
  14565. function trim(str) {
  14566. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  14567. str = String(str);
  14568. if (pos == 'both') {
  14569. return str.replace(/^\s+|\s+$/g, '');
  14570. }
  14571. if (pos == 'left') {
  14572. return str.replace(/^\s*/, '');
  14573. }
  14574. if (pos == 'right') {
  14575. return str.replace(/(\s*$)/g, '');
  14576. }
  14577. if (pos == 'all') {
  14578. return str.replace(/\s+/g, '');
  14579. }
  14580. return str;
  14581. }
  14582. /**
  14583. * @description 对象转url参数
  14584. * @param {object} data,对象
  14585. * @param {Boolean} isPrefix,是否自动加上"?"
  14586. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  14587. */
  14588. function queryParams() {
  14589. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14590. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14591. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  14592. var prefix = isPrefix ? '?' : '';
  14593. var _result = [];
  14594. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  14595. var _loop = function _loop(key) {
  14596. var value = data[key];
  14597. // 去掉为空的参数
  14598. if (['', undefined, null].indexOf(value) >= 0) {
  14599. return "continue";
  14600. }
  14601. // 如果值为数组,另行处理
  14602. if (value.constructor === Array) {
  14603. // e.g. {ids: [1, 2, 3]}
  14604. switch (arrayFormat) {
  14605. case 'indices':
  14606. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  14607. for (var i = 0; i < value.length; i++) {
  14608. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  14609. }
  14610. break;
  14611. case 'brackets':
  14612. // 结果: ids[]=1&ids[]=2&ids[]=3
  14613. value.forEach(function (_value) {
  14614. _result.push("".concat(key, "[]=").concat(_value));
  14615. });
  14616. break;
  14617. case 'repeat':
  14618. // 结果: ids=1&ids=2&ids=3
  14619. value.forEach(function (_value) {
  14620. _result.push("".concat(key, "=").concat(_value));
  14621. });
  14622. break;
  14623. case 'comma':
  14624. // 结果: ids=1,2,3
  14625. var commaStr = '';
  14626. value.forEach(function (_value) {
  14627. commaStr += (commaStr ? ',' : '') + _value;
  14628. });
  14629. _result.push("".concat(key, "=").concat(commaStr));
  14630. break;
  14631. default:
  14632. value.forEach(function (_value) {
  14633. _result.push("".concat(key, "[]=").concat(_value));
  14634. });
  14635. }
  14636. } else {
  14637. _result.push("".concat(key, "=").concat(value));
  14638. }
  14639. };
  14640. for (var key in data) {
  14641. var _ret = _loop(key);
  14642. if (_ret === "continue") continue;
  14643. }
  14644. return _result.length ? prefix + _result.join('&') : '';
  14645. }
  14646. /**
  14647. * 显示消息提示框
  14648. * @param {String} title 提示的内容,长度与 icon 取值有关。
  14649. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  14650. */
  14651. function toast(title) {
  14652. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  14653. uni.showToast({
  14654. title: String(title),
  14655. icon: 'none',
  14656. duration: duration
  14657. });
  14658. }
  14659. /**
  14660. * @description 根据主题type值,获取对应的图标
  14661. * @param {String} type 主题名称,primary|info|error|warning|success
  14662. * @param {boolean} fill 是否使用fill填充实体的图标
  14663. */
  14664. function type2icon() {
  14665. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  14666. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  14667. // 如果非预置值,默认为success
  14668. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  14669. var iconName = '';
  14670. // 目前(2019-12-12),info和primary使用同一个图标
  14671. switch (type) {
  14672. case 'primary':
  14673. iconName = 'info-circle';
  14674. break;
  14675. case 'info':
  14676. iconName = 'info-circle';
  14677. break;
  14678. case 'error':
  14679. iconName = 'close-circle';
  14680. break;
  14681. case 'warning':
  14682. iconName = 'error-circle';
  14683. break;
  14684. case 'success':
  14685. iconName = 'checkmark-circle';
  14686. break;
  14687. default:
  14688. iconName = 'checkmark-circle';
  14689. }
  14690. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  14691. if (fill) iconName += '-fill';
  14692. return iconName;
  14693. }
  14694. /**
  14695. * @description 数字格式化
  14696. * @param {number|string} number 要格式化的数字
  14697. * @param {number} decimals 保留几位小数
  14698. * @param {string} decimalPoint 小数点符号
  14699. * @param {string} thousandsSeparator 千分位符号
  14700. * @returns {string} 格式化后的数字
  14701. */
  14702. function priceFormat(number) {
  14703. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  14704. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  14705. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  14706. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  14707. var n = !isFinite(+number) ? 0 : +number;
  14708. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  14709. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  14710. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  14711. var s = '';
  14712. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  14713. var re = /(-?\d+)(\d{3})/;
  14714. while (re.test(s[0])) {
  14715. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  14716. }
  14717. if ((s[1] || '').length < prec) {
  14718. s[1] = s[1] || '';
  14719. s[1] += new Array(prec - s[1].length + 1).join('0');
  14720. }
  14721. return s.join(dec);
  14722. }
  14723. /**
  14724. * @description 获取duration值
  14725. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  14726. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  14727. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  14728. * @param {boolean} unit 提示: 如果是false 默认返回number
  14729. * @return {string|number}
  14730. */
  14731. function getDuration(value) {
  14732. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14733. var valueNum = parseInt(value);
  14734. if (unit) {
  14735. if (/s$/.test(value)) return value;
  14736. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  14737. }
  14738. if (/ms$/.test(value)) return valueNum;
  14739. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  14740. return valueNum;
  14741. }
  14742. /**
  14743. * @description 日期的月或日补零操作
  14744. * @param {String} value 需要补零的值
  14745. */
  14746. function padZero(value) {
  14747. return "00".concat(value).slice(-2);
  14748. }
  14749. /**
  14750. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  14751. * @param {*} instance
  14752. * @param {*} event
  14753. */
  14754. function formValidate(instance, event) {
  14755. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  14756. var form = uni.$u.$parent.call(instance, 'u-form');
  14757. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  14758. // 同时将form-item的pros传递给form,让其进行精确对象验证
  14759. if (formItem && form) {
  14760. form.validateField(formItem.prop, function () {}, event);
  14761. }
  14762. }
  14763. /**
  14764. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  14765. * @param {object} obj 对象
  14766. * @param {string} key 需要获取的属性字段
  14767. * @returns {*}
  14768. */
  14769. function getProperty(obj, key) {
  14770. if (!obj) {
  14771. return;
  14772. }
  14773. if (typeof key !== 'string' || key === '') {
  14774. return '';
  14775. }
  14776. if (key.indexOf('.') !== -1) {
  14777. var keys = key.split('.');
  14778. var firstObj = obj[keys[0]] || {};
  14779. for (var i = 1; i < keys.length; i++) {
  14780. if (firstObj) {
  14781. firstObj = firstObj[keys[i]];
  14782. }
  14783. }
  14784. return firstObj;
  14785. }
  14786. return obj[key];
  14787. }
  14788. /**
  14789. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  14790. * @param {object} obj 对象
  14791. * @param {string} key 需要设置的属性
  14792. * @param {string} value 设置的值
  14793. */
  14794. function setProperty(obj, key, value) {
  14795. if (!obj) {
  14796. return;
  14797. }
  14798. // 递归赋值
  14799. var inFn = function inFn(_obj, keys, v) {
  14800. // 最后一个属性key
  14801. if (keys.length === 1) {
  14802. _obj[keys[0]] = v;
  14803. return;
  14804. }
  14805. // 0~length-1个key
  14806. while (keys.length > 1) {
  14807. var k = keys[0];
  14808. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  14809. _obj[k] = {};
  14810. }
  14811. var _key = keys.shift();
  14812. // 自调用判断是否存在属性,不存在则自动创建对象
  14813. inFn(_obj[k], keys, v);
  14814. }
  14815. };
  14816. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  14817. // 支持多层级赋值操作
  14818. var keys = key.split('.');
  14819. inFn(obj, keys, value);
  14820. } else {
  14821. obj[key] = value;
  14822. }
  14823. }
  14824. /**
  14825. * @description 获取当前页面路径
  14826. */
  14827. function page() {
  14828. var _pages$route, _pages;
  14829. var pages = getCurrentPages();
  14830. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  14831. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  14832. }
  14833. /**
  14834. * @description 获取当前路由栈实例数组
  14835. */
  14836. function pages() {
  14837. var pages = getCurrentPages();
  14838. return pages;
  14839. }
  14840. /**
  14841. * 获取页面历史栈指定层实例
  14842. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  14843. */
  14844. function getHistoryPage() {
  14845. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14846. var pages = getCurrentPages();
  14847. var len = pages.length;
  14848. return pages[len - 1 + back];
  14849. }
  14850. /**
  14851. * @description 修改uView内置属性值
  14852. * @param {object} props 修改内置props属性
  14853. * @param {object} config 修改内置config属性
  14854. * @param {object} color 修改内置color属性
  14855. * @param {object} zIndex 修改内置zIndex属性
  14856. */
  14857. function setConfig(_ref5) {
  14858. var _ref5$props = _ref5.props,
  14859. props = _ref5$props === void 0 ? {} : _ref5$props,
  14860. _ref5$config = _ref5.config,
  14861. config = _ref5$config === void 0 ? {} : _ref5$config,
  14862. _ref5$color = _ref5.color,
  14863. color = _ref5$color === void 0 ? {} : _ref5$color,
  14864. _ref5$zIndex = _ref5.zIndex,
  14865. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  14866. var deepMerge = uni.$u.deepMerge;
  14867. uni.$u.config = deepMerge(uni.$u.config, config);
  14868. uni.$u.props = deepMerge(uni.$u.props, props);
  14869. uni.$u.color = deepMerge(uni.$u.color, color);
  14870. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14871. }
  14872. var _default = {
  14873. range: range,
  14874. getPx: getPx,
  14875. sleep: sleep,
  14876. os: os,
  14877. sys: sys,
  14878. random: random,
  14879. guid: guid,
  14880. $parent: $parent,
  14881. addStyle: addStyle,
  14882. addUnit: addUnit,
  14883. deepClone: deepClone,
  14884. deepMerge: deepMerge,
  14885. error: error,
  14886. randomArray: randomArray,
  14887. timeFormat: timeFormat,
  14888. timeFrom: timeFrom,
  14889. trim: trim,
  14890. queryParams: queryParams,
  14891. toast: toast,
  14892. type2icon: type2icon,
  14893. priceFormat: priceFormat,
  14894. getDuration: getDuration,
  14895. padZero: padZero,
  14896. formValidate: formValidate,
  14897. getProperty: getProperty,
  14898. setProperty: setProperty,
  14899. page: page,
  14900. pages: pages,
  14901. getHistoryPage: getHistoryPage,
  14902. setConfig: setConfig
  14903. };
  14904. exports.default = _default;
  14905. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  14906. /***/ }),
  14907. /* 65 */
  14908. /*!*************************************************************************************************************************!*\
  14909. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/function/digit.js ***!
  14910. \*************************************************************************************************************************/
  14911. /*! no static exports found */
  14912. /***/ (function(module, exports, __webpack_require__) {
  14913. "use strict";
  14914. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14915. Object.defineProperty(exports, "__esModule", {
  14916. value: true
  14917. });
  14918. exports.default = void 0;
  14919. exports.divide = divide;
  14920. exports.enableBoundaryChecking = enableBoundaryChecking;
  14921. exports.minus = minus;
  14922. exports.plus = plus;
  14923. exports.round = round;
  14924. exports.times = times;
  14925. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 66));
  14926. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14927. /**
  14928. * 把错误的数据转正
  14929. * @private
  14930. * @example strip(0.09999999999999998)=0.1
  14931. */
  14932. function strip(num) {
  14933. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14934. return +parseFloat(Number(num).toPrecision(precision));
  14935. }
  14936. /**
  14937. * Return digits length of a number
  14938. * @private
  14939. * @param {*number} num Input number
  14940. */
  14941. function digitLength(num) {
  14942. // Get digit length of e
  14943. var eSplit = num.toString().split(/[eE]/);
  14944. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14945. return len > 0 ? len : 0;
  14946. }
  14947. /**
  14948. * 把小数转成整数,如果是小数则放大成整数
  14949. * @private
  14950. * @param {*number} num 输入数
  14951. */
  14952. function float2Fixed(num) {
  14953. if (num.toString().indexOf('e') === -1) {
  14954. return Number(num.toString().replace('.', ''));
  14955. }
  14956. var dLen = digitLength(num);
  14957. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14958. }
  14959. /**
  14960. * 检测数字是否越界,如果越界给出提示
  14961. * @private
  14962. * @param {*number} num 输入数
  14963. */
  14964. function checkBoundary(num) {
  14965. if (_boundaryCheckingState) {
  14966. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14967. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14968. }
  14969. }
  14970. }
  14971. /**
  14972. * 把递归操作扁平迭代化
  14973. * @param {number[]} arr 要操作的数字数组
  14974. * @param {function} operation 迭代操作
  14975. * @private
  14976. */
  14977. function iteratorOperation(arr, operation) {
  14978. var _arr = (0, _toArray2.default)(arr),
  14979. num1 = _arr[0],
  14980. num2 = _arr[1],
  14981. others = _arr.slice(2);
  14982. var res = operation(num1, num2);
  14983. others.forEach(function (num) {
  14984. res = operation(res, num);
  14985. });
  14986. return res;
  14987. }
  14988. /**
  14989. * 高精度乘法
  14990. * @export
  14991. */
  14992. function times() {
  14993. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14994. nums[_key] = arguments[_key];
  14995. }
  14996. if (nums.length > 2) {
  14997. return iteratorOperation(nums, times);
  14998. }
  14999. var num1 = nums[0],
  15000. num2 = nums[1];
  15001. var num1Changed = float2Fixed(num1);
  15002. var num2Changed = float2Fixed(num2);
  15003. var baseNum = digitLength(num1) + digitLength(num2);
  15004. var leftValue = num1Changed * num2Changed;
  15005. checkBoundary(leftValue);
  15006. return leftValue / Math.pow(10, baseNum);
  15007. }
  15008. /**
  15009. * 高精度加法
  15010. * @export
  15011. */
  15012. function plus() {
  15013. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  15014. nums[_key2] = arguments[_key2];
  15015. }
  15016. if (nums.length > 2) {
  15017. return iteratorOperation(nums, plus);
  15018. }
  15019. var num1 = nums[0],
  15020. num2 = nums[1];
  15021. // 取最大的小数位
  15022. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15023. // 把小数都转为整数然后再计算
  15024. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  15025. }
  15026. /**
  15027. * 高精度减法
  15028. * @export
  15029. */
  15030. function minus() {
  15031. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  15032. nums[_key3] = arguments[_key3];
  15033. }
  15034. if (nums.length > 2) {
  15035. return iteratorOperation(nums, minus);
  15036. }
  15037. var num1 = nums[0],
  15038. num2 = nums[1];
  15039. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15040. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  15041. }
  15042. /**
  15043. * 高精度除法
  15044. * @export
  15045. */
  15046. function divide() {
  15047. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  15048. nums[_key4] = arguments[_key4];
  15049. }
  15050. if (nums.length > 2) {
  15051. return iteratorOperation(nums, divide);
  15052. }
  15053. var num1 = nums[0],
  15054. num2 = nums[1];
  15055. var num1Changed = float2Fixed(num1);
  15056. var num2Changed = float2Fixed(num2);
  15057. checkBoundary(num1Changed);
  15058. checkBoundary(num2Changed);
  15059. // 重要,这里必须用strip进行修正
  15060. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  15061. }
  15062. /**
  15063. * 四舍五入
  15064. * @export
  15065. */
  15066. function round(num, ratio) {
  15067. var base = Math.pow(10, ratio);
  15068. var result = divide(Math.round(Math.abs(times(num, base))), base);
  15069. if (num < 0 && result !== 0) {
  15070. result = times(result, -1);
  15071. }
  15072. // 位数不足则补0
  15073. return result;
  15074. }
  15075. /**
  15076. * 是否进行边界检查,默认开启
  15077. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  15078. * @export
  15079. */
  15080. function enableBoundaryChecking() {
  15081. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  15082. _boundaryCheckingState = flag;
  15083. }
  15084. var _default = {
  15085. times: times,
  15086. plus: plus,
  15087. minus: minus,
  15088. divide: divide,
  15089. round: round,
  15090. enableBoundaryChecking: enableBoundaryChecking
  15091. };
  15092. exports.default = _default;
  15093. /***/ }),
  15094. /* 66 */
  15095. /*!********************************************************!*\
  15096. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  15097. \********************************************************/
  15098. /*! no static exports found */
  15099. /***/ (function(module, exports, __webpack_require__) {
  15100. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  15101. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  15102. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  15103. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  15104. function _toArray(arr) {
  15105. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  15106. }
  15107. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15108. /***/ }),
  15109. /* 67 */
  15110. /*!************************************************************************************************************************!*\
  15111. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/config.js ***!
  15112. \************************************************************************************************************************/
  15113. /*! no static exports found */
  15114. /***/ (function(module, exports, __webpack_require__) {
  15115. "use strict";
  15116. Object.defineProperty(exports, "__esModule", {
  15117. value: true
  15118. });
  15119. exports.default = void 0;
  15120. // 此版本发布于2024-03-17
  15121. var version = '2.0.37';
  15122. // 开发环境才提示,生产环境不会提示
  15123. if (true) {
  15124. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  15125. }
  15126. var _default = {
  15127. v: version,
  15128. version: version,
  15129. // 主题名称
  15130. type: ['primary', 'success', 'info', 'error', 'warning'],
  15131. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  15132. color: {
  15133. 'u-primary': '#2979ff',
  15134. 'u-warning': '#ff9900',
  15135. 'u-success': '#19be6b',
  15136. 'u-error': '#fa3534',
  15137. 'u-info': '#909399',
  15138. 'u-main-color': '#303133',
  15139. 'u-content-color': '#606266',
  15140. 'u-tips-color': '#909399',
  15141. 'u-light-color': '#c0c4cc'
  15142. },
  15143. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  15144. unit: 'px'
  15145. };
  15146. exports.default = _default;
  15147. /***/ }),
  15148. /* 68 */
  15149. /*!***********************************************************************************************************************!*\
  15150. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props.js ***!
  15151. \***********************************************************************************************************************/
  15152. /*! no static exports found */
  15153. /***/ (function(module, exports, __webpack_require__) {
  15154. "use strict";
  15155. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15156. Object.defineProperty(exports, "__esModule", {
  15157. value: true
  15158. });
  15159. exports.default = void 0;
  15160. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  15161. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 67));
  15162. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 69));
  15163. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 70));
  15164. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 71));
  15165. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 72));
  15166. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 73));
  15167. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 74));
  15168. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 75));
  15169. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 76));
  15170. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 77));
  15171. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 78));
  15172. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 79));
  15173. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 80));
  15174. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 81));
  15175. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 82));
  15176. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 83));
  15177. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 84));
  15178. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 85));
  15179. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 86));
  15180. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 87));
  15181. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 88));
  15182. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 89));
  15183. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 90));
  15184. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 91));
  15185. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 92));
  15186. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 93));
  15187. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 94));
  15188. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 95));
  15189. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 96));
  15190. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 97));
  15191. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 98));
  15192. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 99));
  15193. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 100));
  15194. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 101));
  15195. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 102));
  15196. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 103));
  15197. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 104));
  15198. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 105));
  15199. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 106));
  15200. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 107));
  15201. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 108));
  15202. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 109));
  15203. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 110));
  15204. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 111));
  15205. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 112));
  15206. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 113));
  15207. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 114));
  15208. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 115));
  15209. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 117));
  15210. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 118));
  15211. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 119));
  15212. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 120));
  15213. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 121));
  15214. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 122));
  15215. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 123));
  15216. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 124));
  15217. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 125));
  15218. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 126));
  15219. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 127));
  15220. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 128));
  15221. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 129));
  15222. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 130));
  15223. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 131));
  15224. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 132));
  15225. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 133));
  15226. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 134));
  15227. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 135));
  15228. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 136));
  15229. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 137));
  15230. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 138));
  15231. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 139));
  15232. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 140));
  15233. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 141));
  15234. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 142));
  15235. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 143));
  15236. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 144));
  15237. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 145));
  15238. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 146));
  15239. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 147));
  15240. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 148));
  15241. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 149));
  15242. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 150));
  15243. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 151));
  15244. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 152));
  15245. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 153));
  15246. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 154));
  15247. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 155));
  15248. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 156));
  15249. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 157));
  15250. 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; }
  15251. 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; }
  15252. var color = _config.default.color;
  15253. 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);
  15254. exports.default = _default;
  15255. /***/ }),
  15256. /* 69 */
  15257. /*!***********************************************************************************************************************************!*\
  15258. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  15259. \***********************************************************************************************************************************/
  15260. /*! no static exports found */
  15261. /***/ (function(module, exports, __webpack_require__) {
  15262. "use strict";
  15263. Object.defineProperty(exports, "__esModule", {
  15264. value: true
  15265. });
  15266. exports.default = void 0;
  15267. /*
  15268. * @Author : LQ
  15269. * @Description :
  15270. * @version : 1.0
  15271. * @Date : 2021-08-20 16:44:21
  15272. * @LastAuthor : LQ
  15273. * @lastTime : 2021-08-20 16:44:35
  15274. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  15275. */
  15276. var _default = {
  15277. // action-sheet组件
  15278. actionSheet: {
  15279. show: false,
  15280. title: '',
  15281. description: '',
  15282. actions: function actions() {
  15283. return [];
  15284. },
  15285. index: '',
  15286. cancelText: '',
  15287. closeOnClickAction: true,
  15288. safeAreaInsetBottom: true,
  15289. openType: '',
  15290. closeOnClickOverlay: true,
  15291. round: 0
  15292. }
  15293. };
  15294. exports.default = _default;
  15295. /***/ }),
  15296. /* 70 */
  15297. /*!*****************************************************************************************************************************!*\
  15298. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/album.js ***!
  15299. \*****************************************************************************************************************************/
  15300. /*! no static exports found */
  15301. /***/ (function(module, exports, __webpack_require__) {
  15302. "use strict";
  15303. Object.defineProperty(exports, "__esModule", {
  15304. value: true
  15305. });
  15306. exports.default = void 0;
  15307. /*
  15308. * @Author : LQ
  15309. * @Description :
  15310. * @version : 1.0
  15311. * @Date : 2021-08-20 16:44:21
  15312. * @LastAuthor : LQ
  15313. * @lastTime : 2021-08-20 16:47:24
  15314. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  15315. */
  15316. var _default = {
  15317. // album 组件
  15318. album: {
  15319. urls: function urls() {
  15320. return [];
  15321. },
  15322. keyName: '',
  15323. singleSize: 180,
  15324. multipleSize: 70,
  15325. space: 6,
  15326. singleMode: 'scaleToFill',
  15327. multipleMode: 'aspectFill',
  15328. maxCount: 9,
  15329. previewFullImage: true,
  15330. rowCount: 3,
  15331. showMore: true
  15332. }
  15333. };
  15334. exports.default = _default;
  15335. /***/ }),
  15336. /* 71 */
  15337. /*!*****************************************************************************************************************************!*\
  15338. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/alert.js ***!
  15339. \*****************************************************************************************************************************/
  15340. /*! no static exports found */
  15341. /***/ (function(module, exports, __webpack_require__) {
  15342. "use strict";
  15343. Object.defineProperty(exports, "__esModule", {
  15344. value: true
  15345. });
  15346. exports.default = void 0;
  15347. /*
  15348. * @Author : LQ
  15349. * @Description :
  15350. * @version : 1.0
  15351. * @Date : 2021-08-20 16:44:21
  15352. * @LastAuthor : LQ
  15353. * @lastTime : 2021-08-20 16:48:53
  15354. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  15355. */
  15356. var _default = {
  15357. // alert警告组件
  15358. alert: {
  15359. title: '',
  15360. type: 'warning',
  15361. description: '',
  15362. closable: false,
  15363. showIcon: false,
  15364. effect: 'light',
  15365. center: false,
  15366. fontSize: 14
  15367. }
  15368. };
  15369. exports.default = _default;
  15370. /***/ }),
  15371. /* 72 */
  15372. /*!******************************************************************************************************************************!*\
  15373. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  15374. \******************************************************************************************************************************/
  15375. /*! no static exports found */
  15376. /***/ (function(module, exports, __webpack_require__) {
  15377. "use strict";
  15378. Object.defineProperty(exports, "__esModule", {
  15379. value: true
  15380. });
  15381. exports.default = void 0;
  15382. /*
  15383. * @Author : LQ
  15384. * @Description :
  15385. * @version : 1.0
  15386. * @Date : 2021-08-20 16:44:21
  15387. * @LastAuthor : LQ
  15388. * @lastTime : 2021-08-20 16:49:22
  15389. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  15390. */
  15391. var _default = {
  15392. // avatar 组件
  15393. avatar: {
  15394. src: '',
  15395. shape: 'circle',
  15396. size: 40,
  15397. mode: 'scaleToFill',
  15398. text: '',
  15399. bgColor: '#c0c4cc',
  15400. color: '#ffffff',
  15401. fontSize: 18,
  15402. icon: '',
  15403. mpAvatar: false,
  15404. randomBgColor: false,
  15405. defaultUrl: '',
  15406. colorIndex: '',
  15407. name: ''
  15408. }
  15409. };
  15410. exports.default = _default;
  15411. /***/ }),
  15412. /* 73 */
  15413. /*!***********************************************************************************************************************************!*\
  15414. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  15415. \***********************************************************************************************************************************/
  15416. /*! no static exports found */
  15417. /***/ (function(module, exports, __webpack_require__) {
  15418. "use strict";
  15419. Object.defineProperty(exports, "__esModule", {
  15420. value: true
  15421. });
  15422. exports.default = void 0;
  15423. /*
  15424. * @Author : LQ
  15425. * @Description :
  15426. * @version : 1.0
  15427. * @Date : 2021-08-20 16:44:21
  15428. * @LastAuthor : LQ
  15429. * @lastTime : 2021-08-20 16:49:55
  15430. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  15431. */
  15432. var _default = {
  15433. // avatarGroup 组件
  15434. avatarGroup: {
  15435. urls: function urls() {
  15436. return [];
  15437. },
  15438. maxCount: 5,
  15439. shape: 'circle',
  15440. mode: 'scaleToFill',
  15441. showMore: true,
  15442. size: 40,
  15443. keyName: '',
  15444. gap: 0.5,
  15445. extraValue: 0
  15446. }
  15447. };
  15448. exports.default = _default;
  15449. /***/ }),
  15450. /* 74 */
  15451. /*!*******************************************************************************************************************************!*\
  15452. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  15453. \*******************************************************************************************************************************/
  15454. /*! no static exports found */
  15455. /***/ (function(module, exports, __webpack_require__) {
  15456. "use strict";
  15457. Object.defineProperty(exports, "__esModule", {
  15458. value: true
  15459. });
  15460. exports.default = void 0;
  15461. /*
  15462. * @Author : LQ
  15463. * @Description :
  15464. * @version : 1.0
  15465. * @Date : 2021-08-20 16:44:21
  15466. * @LastAuthor : LQ
  15467. * @lastTime : 2021-08-20 16:50:18
  15468. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  15469. */
  15470. var _default = {
  15471. // backtop组件
  15472. backtop: {
  15473. mode: 'circle',
  15474. icon: 'arrow-upward',
  15475. text: '',
  15476. duration: 100,
  15477. scrollTop: 0,
  15478. top: 400,
  15479. bottom: 100,
  15480. right: 20,
  15481. zIndex: 9,
  15482. iconStyle: function iconStyle() {
  15483. return {
  15484. color: '#909399',
  15485. fontSize: '19px'
  15486. };
  15487. }
  15488. }
  15489. };
  15490. exports.default = _default;
  15491. /***/ }),
  15492. /* 75 */
  15493. /*!*****************************************************************************************************************************!*\
  15494. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/badge.js ***!
  15495. \*****************************************************************************************************************************/
  15496. /*! no static exports found */
  15497. /***/ (function(module, exports, __webpack_require__) {
  15498. "use strict";
  15499. Object.defineProperty(exports, "__esModule", {
  15500. value: true
  15501. });
  15502. exports.default = void 0;
  15503. /*
  15504. * @Author : LQ
  15505. * @Description :
  15506. * @version : 1.0
  15507. * @Date : 2021-08-20 16:44:21
  15508. * @LastAuthor : LQ
  15509. * @lastTime : 2021-08-23 19:51:50
  15510. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  15511. */
  15512. var _default = {
  15513. // 徽标数组件
  15514. badge: {
  15515. isDot: false,
  15516. value: '',
  15517. show: true,
  15518. max: 999,
  15519. type: 'error',
  15520. showZero: false,
  15521. bgColor: null,
  15522. color: null,
  15523. shape: 'circle',
  15524. numberType: 'overflow',
  15525. offset: function offset() {
  15526. return [];
  15527. },
  15528. inverted: false,
  15529. absolute: false
  15530. }
  15531. };
  15532. exports.default = _default;
  15533. /***/ }),
  15534. /* 76 */
  15535. /*!******************************************************************************************************************************!*\
  15536. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/button.js ***!
  15537. \******************************************************************************************************************************/
  15538. /*! no static exports found */
  15539. /***/ (function(module, exports, __webpack_require__) {
  15540. "use strict";
  15541. Object.defineProperty(exports, "__esModule", {
  15542. value: true
  15543. });
  15544. exports.default = void 0;
  15545. /*
  15546. * @Author : LQ
  15547. * @Description :
  15548. * @version : 1.0
  15549. * @Date : 2021-08-20 16:44:21
  15550. * @LastAuthor : LQ
  15551. * @lastTime : 2021-08-20 16:51:27
  15552. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  15553. */
  15554. var _default = {
  15555. // button组件
  15556. button: {
  15557. hairline: false,
  15558. type: 'info',
  15559. size: 'normal',
  15560. shape: 'square',
  15561. plain: false,
  15562. disabled: false,
  15563. loading: false,
  15564. loadingText: '',
  15565. loadingMode: 'spinner',
  15566. loadingSize: 15,
  15567. openType: '',
  15568. formType: '',
  15569. appParameter: '',
  15570. hoverStopPropagation: true,
  15571. lang: 'en',
  15572. sessionFrom: '',
  15573. sendMessageTitle: '',
  15574. sendMessagePath: '',
  15575. sendMessageImg: '',
  15576. showMessageCard: false,
  15577. dataName: '',
  15578. throttleTime: 0,
  15579. hoverStartTime: 0,
  15580. hoverStayTime: 200,
  15581. text: '',
  15582. icon: '',
  15583. iconColor: '',
  15584. color: ''
  15585. }
  15586. };
  15587. exports.default = _default;
  15588. /***/ }),
  15589. /* 77 */
  15590. /*!********************************************************************************************************************************!*\
  15591. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  15592. \********************************************************************************************************************************/
  15593. /*! no static exports found */
  15594. /***/ (function(module, exports, __webpack_require__) {
  15595. "use strict";
  15596. Object.defineProperty(exports, "__esModule", {
  15597. value: true
  15598. });
  15599. exports.default = void 0;
  15600. /*
  15601. * @Author : LQ
  15602. * @Description :
  15603. * @version : 1.0
  15604. * @Date : 2021-08-20 16:44:21
  15605. * @LastAuthor : LQ
  15606. * @lastTime : 2021-08-20 16:52:43
  15607. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  15608. */
  15609. var _default = {
  15610. // calendar 组件
  15611. calendar: {
  15612. title: '日期选择',
  15613. showTitle: true,
  15614. showSubtitle: true,
  15615. mode: 'single',
  15616. startText: '开始',
  15617. endText: '结束',
  15618. customList: function customList() {
  15619. return [];
  15620. },
  15621. color: '#3c9cff',
  15622. minDate: 0,
  15623. maxDate: 0,
  15624. defaultDate: null,
  15625. maxCount: Number.MAX_SAFE_INTEGER,
  15626. // Infinity
  15627. rowHeight: 56,
  15628. formatter: null,
  15629. showLunar: false,
  15630. showMark: true,
  15631. confirmText: '确定',
  15632. confirmDisabledText: '确定',
  15633. show: false,
  15634. closeOnClickOverlay: false,
  15635. readonly: false,
  15636. showConfirm: true,
  15637. maxRange: Number.MAX_SAFE_INTEGER,
  15638. // Infinity
  15639. rangePrompt: '',
  15640. showRangePrompt: true,
  15641. allowSameDay: false,
  15642. round: 0,
  15643. monthNum: 3
  15644. }
  15645. };
  15646. exports.default = _default;
  15647. /***/ }),
  15648. /* 78 */
  15649. /*!***********************************************************************************************************************************!*\
  15650. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  15651. \***********************************************************************************************************************************/
  15652. /*! no static exports found */
  15653. /***/ (function(module, exports, __webpack_require__) {
  15654. "use strict";
  15655. Object.defineProperty(exports, "__esModule", {
  15656. value: true
  15657. });
  15658. exports.default = void 0;
  15659. /*
  15660. * @Author : LQ
  15661. * @Description :
  15662. * @version : 1.0
  15663. * @Date : 2021-08-20 16:44:21
  15664. * @LastAuthor : LQ
  15665. * @lastTime : 2021-08-20 16:53:20
  15666. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  15667. */
  15668. var _default = {
  15669. // 车牌号键盘
  15670. carKeyboard: {
  15671. random: false
  15672. }
  15673. };
  15674. exports.default = _default;
  15675. /***/ }),
  15676. /* 79 */
  15677. /*!****************************************************************************************************************************!*\
  15678. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/cell.js ***!
  15679. \****************************************************************************************************************************/
  15680. /*! no static exports found */
  15681. /***/ (function(module, exports, __webpack_require__) {
  15682. "use strict";
  15683. Object.defineProperty(exports, "__esModule", {
  15684. value: true
  15685. });
  15686. exports.default = void 0;
  15687. /*
  15688. * @Author : LQ
  15689. * @Description :
  15690. * @version : 1.0
  15691. * @Date : 2021-08-20 16:44:21
  15692. * @LastAuthor : LQ
  15693. * @lastTime : 2021-08-23 20:53:09
  15694. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  15695. */
  15696. var _default = {
  15697. // cell组件的props
  15698. cell: {
  15699. customClass: '',
  15700. title: '',
  15701. label: '',
  15702. value: '',
  15703. icon: '',
  15704. disabled: false,
  15705. border: true,
  15706. center: false,
  15707. url: '',
  15708. linkType: 'navigateTo',
  15709. clickable: false,
  15710. isLink: false,
  15711. required: false,
  15712. arrowDirection: '',
  15713. iconStyle: {},
  15714. rightIconStyle: {},
  15715. rightIcon: 'arrow-right',
  15716. titleStyle: {},
  15717. size: '',
  15718. stop: true,
  15719. name: ''
  15720. }
  15721. };
  15722. exports.default = _default;
  15723. /***/ }),
  15724. /* 80 */
  15725. /*!*********************************************************************************************************************************!*\
  15726. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  15727. \*********************************************************************************************************************************/
  15728. /*! no static exports found */
  15729. /***/ (function(module, exports, __webpack_require__) {
  15730. "use strict";
  15731. Object.defineProperty(exports, "__esModule", {
  15732. value: true
  15733. });
  15734. exports.default = void 0;
  15735. /*
  15736. * @Author : LQ
  15737. * @Description :
  15738. * @version : 1.0
  15739. * @Date : 2021-08-20 16:44:21
  15740. * @LastAuthor : LQ
  15741. * @lastTime : 2021-08-20 16:54:16
  15742. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  15743. */
  15744. var _default = {
  15745. // cell-group组件的props
  15746. cellGroup: {
  15747. title: '',
  15748. border: true,
  15749. customStyle: {}
  15750. }
  15751. };
  15752. exports.default = _default;
  15753. /***/ }),
  15754. /* 81 */
  15755. /*!********************************************************************************************************************************!*\
  15756. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  15757. \********************************************************************************************************************************/
  15758. /*! no static exports found */
  15759. /***/ (function(module, exports, __webpack_require__) {
  15760. "use strict";
  15761. Object.defineProperty(exports, "__esModule", {
  15762. value: true
  15763. });
  15764. exports.default = void 0;
  15765. /*
  15766. * @Author : LQ
  15767. * @Description :
  15768. * @version : 1.0
  15769. * @Date : 2021-08-20 16:44:21
  15770. * @LastAuthor : LQ
  15771. * @lastTime : 2021-08-23 21:06:59
  15772. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  15773. */
  15774. var _default = {
  15775. // checkbox组件
  15776. checkbox: {
  15777. name: '',
  15778. shape: '',
  15779. size: '',
  15780. checkbox: false,
  15781. disabled: '',
  15782. activeColor: '',
  15783. inactiveColor: '',
  15784. iconSize: '',
  15785. iconColor: '',
  15786. label: '',
  15787. labelSize: '',
  15788. labelColor: '',
  15789. labelDisabled: ''
  15790. }
  15791. };
  15792. exports.default = _default;
  15793. /***/ }),
  15794. /* 82 */
  15795. /*!*************************************************************************************************************************************!*\
  15796. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  15797. \*************************************************************************************************************************************/
  15798. /*! no static exports found */
  15799. /***/ (function(module, exports, __webpack_require__) {
  15800. "use strict";
  15801. Object.defineProperty(exports, "__esModule", {
  15802. value: true
  15803. });
  15804. exports.default = void 0;
  15805. /*
  15806. * @Author : LQ
  15807. * @Description :
  15808. * @version : 1.0
  15809. * @Date : 2021-08-20 16:44:21
  15810. * @LastAuthor : LQ
  15811. * @lastTime : 2021-08-20 16:54:47
  15812. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  15813. */
  15814. var _default = {
  15815. // checkbox-group组件
  15816. checkboxGroup: {
  15817. name: '',
  15818. value: function value() {
  15819. return [];
  15820. },
  15821. shape: 'square',
  15822. disabled: false,
  15823. activeColor: '#2979ff',
  15824. inactiveColor: '#c8c9cc',
  15825. size: 18,
  15826. placement: 'row',
  15827. labelSize: 14,
  15828. labelColor: '#303133',
  15829. labelDisabled: false,
  15830. iconColor: '#ffffff',
  15831. iconSize: 12,
  15832. iconPlacement: 'left',
  15833. borderBottom: false
  15834. }
  15835. };
  15836. exports.default = _default;
  15837. /***/ }),
  15838. /* 83 */
  15839. /*!**************************************************************************************************************************************!*\
  15840. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  15841. \**************************************************************************************************************************************/
  15842. /*! no static exports found */
  15843. /***/ (function(module, exports, __webpack_require__) {
  15844. "use strict";
  15845. Object.defineProperty(exports, "__esModule", {
  15846. value: true
  15847. });
  15848. exports.default = void 0;
  15849. /*
  15850. * @Author : LQ
  15851. * @Description :
  15852. * @version : 1.0
  15853. * @Date : 2021-08-20 16:44:21
  15854. * @LastAuthor : LQ
  15855. * @lastTime : 2021-08-20 16:55:02
  15856. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15857. */
  15858. var _default = {
  15859. // circleProgress 组件
  15860. circleProgress: {
  15861. percentage: 30
  15862. }
  15863. };
  15864. exports.default = _default;
  15865. /***/ }),
  15866. /* 84 */
  15867. /*!****************************************************************************************************************************!*\
  15868. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/code.js ***!
  15869. \****************************************************************************************************************************/
  15870. /*! no static exports found */
  15871. /***/ (function(module, exports, __webpack_require__) {
  15872. "use strict";
  15873. Object.defineProperty(exports, "__esModule", {
  15874. value: true
  15875. });
  15876. exports.default = void 0;
  15877. /*
  15878. * @Author : LQ
  15879. * @Description :
  15880. * @version : 1.0
  15881. * @Date : 2021-08-20 16:44:21
  15882. * @LastAuthor : LQ
  15883. * @lastTime : 2021-08-20 16:55:27
  15884. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15885. */
  15886. var _default = {
  15887. // code 组件
  15888. code: {
  15889. seconds: 60,
  15890. startText: '获取验证码',
  15891. changeText: 'X秒重新获取',
  15892. endText: '重新获取',
  15893. keepRunning: false,
  15894. uniqueKey: ''
  15895. }
  15896. };
  15897. exports.default = _default;
  15898. /***/ }),
  15899. /* 85 */
  15900. /*!*********************************************************************************************************************************!*\
  15901. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  15902. \*********************************************************************************************************************************/
  15903. /*! no static exports found */
  15904. /***/ (function(module, exports, __webpack_require__) {
  15905. "use strict";
  15906. Object.defineProperty(exports, "__esModule", {
  15907. value: true
  15908. });
  15909. exports.default = void 0;
  15910. /*
  15911. * @Author : LQ
  15912. * @Description :
  15913. * @version : 1.0
  15914. * @Date : 2021-08-20 16:44:21
  15915. * @LastAuthor : LQ
  15916. * @lastTime : 2021-08-20 16:55:58
  15917. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15918. */
  15919. var _default = {
  15920. // codeInput 组件
  15921. codeInput: {
  15922. adjustPosition: true,
  15923. maxlength: 6,
  15924. dot: false,
  15925. mode: 'box',
  15926. hairline: false,
  15927. space: 10,
  15928. value: '',
  15929. focus: false,
  15930. bold: false,
  15931. color: '#606266',
  15932. fontSize: 18,
  15933. size: 35,
  15934. disabledKeyboard: false,
  15935. borderColor: '#c9cacc',
  15936. disabledDot: true
  15937. }
  15938. };
  15939. exports.default = _default;
  15940. /***/ }),
  15941. /* 86 */
  15942. /*!***************************************************************************************************************************!*\
  15943. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/col.js ***!
  15944. \***************************************************************************************************************************/
  15945. /*! no static exports found */
  15946. /***/ (function(module, exports, __webpack_require__) {
  15947. "use strict";
  15948. Object.defineProperty(exports, "__esModule", {
  15949. value: true
  15950. });
  15951. exports.default = void 0;
  15952. /*
  15953. * @Author : LQ
  15954. * @Description :
  15955. * @version : 1.0
  15956. * @Date : 2021-08-20 16:44:21
  15957. * @LastAuthor : LQ
  15958. * @lastTime : 2021-08-20 16:56:12
  15959. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15960. */
  15961. var _default = {
  15962. // col 组件
  15963. col: {
  15964. span: 12,
  15965. offset: 0,
  15966. justify: 'start',
  15967. align: 'stretch',
  15968. textAlign: 'left'
  15969. }
  15970. };
  15971. exports.default = _default;
  15972. /***/ }),
  15973. /* 87 */
  15974. /*!********************************************************************************************************************************!*\
  15975. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/collapse.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 16:56:30
  15991. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15992. */
  15993. var _default = {
  15994. // collapse 组件
  15995. collapse: {
  15996. value: null,
  15997. accordion: false,
  15998. border: true
  15999. }
  16000. };
  16001. exports.default = _default;
  16002. /***/ }),
  16003. /* 88 */
  16004. /*!************************************************************************************************************************************!*\
  16005. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  16006. \************************************************************************************************************************************/
  16007. /*! no static exports found */
  16008. /***/ (function(module, exports, __webpack_require__) {
  16009. "use strict";
  16010. Object.defineProperty(exports, "__esModule", {
  16011. value: true
  16012. });
  16013. exports.default = void 0;
  16014. /*
  16015. * @Author : LQ
  16016. * @Description :
  16017. * @version : 1.0
  16018. * @Date : 2021-08-20 16:44:21
  16019. * @LastAuthor : LQ
  16020. * @lastTime : 2021-08-20 16:56:42
  16021. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  16022. */
  16023. var _default = {
  16024. // collapseItem 组件
  16025. collapseItem: {
  16026. title: '',
  16027. value: '',
  16028. label: '',
  16029. disabled: false,
  16030. isLink: true,
  16031. clickable: true,
  16032. border: true,
  16033. align: 'left',
  16034. name: '',
  16035. icon: '',
  16036. duration: 300
  16037. }
  16038. };
  16039. exports.default = _default;
  16040. /***/ }),
  16041. /* 89 */
  16042. /*!************************************************************************************************************************************!*\
  16043. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  16044. \************************************************************************************************************************************/
  16045. /*! no static exports found */
  16046. /***/ (function(module, exports, __webpack_require__) {
  16047. "use strict";
  16048. Object.defineProperty(exports, "__esModule", {
  16049. value: true
  16050. });
  16051. exports.default = void 0;
  16052. /*
  16053. * @Author : LQ
  16054. * @Description :
  16055. * @version : 1.0
  16056. * @Date : 2021-08-20 16:44:21
  16057. * @LastAuthor : LQ
  16058. * @lastTime : 2021-08-20 16:57:16
  16059. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  16060. */
  16061. var _default = {
  16062. // columnNotice 组件
  16063. columnNotice: {
  16064. text: '',
  16065. icon: 'volume',
  16066. mode: '',
  16067. color: '#f9ae3d',
  16068. bgColor: '#fdf6ec',
  16069. fontSize: 14,
  16070. speed: 80,
  16071. step: false,
  16072. duration: 1500,
  16073. disableTouch: true
  16074. }
  16075. };
  16076. exports.default = _default;
  16077. /***/ }),
  16078. /* 90 */
  16079. /*!*********************************************************************************************************************************!*\
  16080. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  16081. \*********************************************************************************************************************************/
  16082. /*! no static exports found */
  16083. /***/ (function(module, exports, __webpack_require__) {
  16084. "use strict";
  16085. Object.defineProperty(exports, "__esModule", {
  16086. value: true
  16087. });
  16088. exports.default = void 0;
  16089. /*
  16090. * @Author : LQ
  16091. * @Description :
  16092. * @version : 1.0
  16093. * @Date : 2021-08-20 16:44:21
  16094. * @LastAuthor : LQ
  16095. * @lastTime : 2021-08-20 17:11:29
  16096. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  16097. */
  16098. var _default = {
  16099. // u-count-down 计时器组件
  16100. countDown: {
  16101. time: 0,
  16102. format: 'HH:mm:ss',
  16103. autoStart: true,
  16104. millisecond: false
  16105. }
  16106. };
  16107. exports.default = _default;
  16108. /***/ }),
  16109. /* 91 */
  16110. /*!*******************************************************************************************************************************!*\
  16111. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  16112. \*******************************************************************************************************************************/
  16113. /*! no static exports found */
  16114. /***/ (function(module, exports, __webpack_require__) {
  16115. "use strict";
  16116. Object.defineProperty(exports, "__esModule", {
  16117. value: true
  16118. });
  16119. exports.default = void 0;
  16120. /*
  16121. * @Author : LQ
  16122. * @Description :
  16123. * @version : 1.0
  16124. * @Date : 2021-08-20 16:44:21
  16125. * @LastAuthor : LQ
  16126. * @lastTime : 2021-08-20 16:57:32
  16127. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  16128. */
  16129. var _default = {
  16130. // countTo 组件
  16131. countTo: {
  16132. startVal: 0,
  16133. endVal: 0,
  16134. duration: 2000,
  16135. autoplay: true,
  16136. decimals: 0,
  16137. useEasing: true,
  16138. decimal: '.',
  16139. color: '#606266',
  16140. fontSize: 22,
  16141. bold: false,
  16142. separator: ''
  16143. }
  16144. };
  16145. exports.default = _default;
  16146. /***/ }),
  16147. /* 92 */
  16148. /*!**************************************************************************************************************************************!*\
  16149. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  16150. \**************************************************************************************************************************************/
  16151. /*! no static exports found */
  16152. /***/ (function(module, exports, __webpack_require__) {
  16153. "use strict";
  16154. Object.defineProperty(exports, "__esModule", {
  16155. value: true
  16156. });
  16157. exports.default = void 0;
  16158. /*
  16159. * @Author : LQ
  16160. * @Description :
  16161. * @version : 1.0
  16162. * @Date : 2021-08-20 16:44:21
  16163. * @LastAuthor : LQ
  16164. * @lastTime : 2021-08-20 16:57:48
  16165. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  16166. */
  16167. var _default = {
  16168. // datetimePicker 组件
  16169. datetimePicker: {
  16170. show: false,
  16171. showToolbar: true,
  16172. value: '',
  16173. title: '',
  16174. mode: 'datetime',
  16175. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  16176. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  16177. minHour: 0,
  16178. maxHour: 23,
  16179. minMinute: 0,
  16180. maxMinute: 59,
  16181. filter: null,
  16182. formatter: null,
  16183. loading: false,
  16184. itemHeight: 44,
  16185. cancelText: '取消',
  16186. confirmText: '确认',
  16187. cancelColor: '#909193',
  16188. confirmColor: '#3c9cff',
  16189. visibleItemCount: 5,
  16190. closeOnClickOverlay: false,
  16191. defaultIndex: function defaultIndex() {
  16192. return [];
  16193. }
  16194. }
  16195. };
  16196. exports.default = _default;
  16197. /***/ }),
  16198. /* 93 */
  16199. /*!*******************************************************************************************************************************!*\
  16200. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/divider.js ***!
  16201. \*******************************************************************************************************************************/
  16202. /*! no static exports found */
  16203. /***/ (function(module, exports, __webpack_require__) {
  16204. "use strict";
  16205. Object.defineProperty(exports, "__esModule", {
  16206. value: true
  16207. });
  16208. exports.default = void 0;
  16209. /*
  16210. * @Author : LQ
  16211. * @Description :
  16212. * @version : 1.0
  16213. * @Date : 2021-08-20 16:44:21
  16214. * @LastAuthor : LQ
  16215. * @lastTime : 2021-08-20 16:58:03
  16216. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  16217. */
  16218. var _default = {
  16219. // divider组件
  16220. divider: {
  16221. dashed: false,
  16222. hairline: true,
  16223. dot: false,
  16224. textPosition: 'center',
  16225. text: '',
  16226. textSize: 14,
  16227. textColor: '#909399',
  16228. lineColor: '#dcdfe6'
  16229. }
  16230. };
  16231. exports.default = _default;
  16232. /***/ }),
  16233. /* 94 */
  16234. /*!*****************************************************************************************************************************!*\
  16235. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/empty.js ***!
  16236. \*****************************************************************************************************************************/
  16237. /*! no static exports found */
  16238. /***/ (function(module, exports, __webpack_require__) {
  16239. "use strict";
  16240. Object.defineProperty(exports, "__esModule", {
  16241. value: true
  16242. });
  16243. exports.default = void 0;
  16244. /*
  16245. * @Author : LQ
  16246. * @Description :
  16247. * @version : 1.0
  16248. * @Date : 2021-08-20 16:44:21
  16249. * @LastAuthor : LQ
  16250. * @lastTime : 2021-08-20 17:03:27
  16251. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  16252. */
  16253. var _default = {
  16254. // empty组件
  16255. empty: {
  16256. icon: '',
  16257. text: '',
  16258. textColor: '#c0c4cc',
  16259. textSize: 14,
  16260. iconColor: '#c0c4cc',
  16261. iconSize: 90,
  16262. mode: 'data',
  16263. width: 160,
  16264. height: 160,
  16265. show: true,
  16266. marginTop: 0
  16267. }
  16268. };
  16269. exports.default = _default;
  16270. /***/ }),
  16271. /* 95 */
  16272. /*!****************************************************************************************************************************!*\
  16273. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/form.js ***!
  16274. \****************************************************************************************************************************/
  16275. /*! no static exports found */
  16276. /***/ (function(module, exports, __webpack_require__) {
  16277. "use strict";
  16278. Object.defineProperty(exports, "__esModule", {
  16279. value: true
  16280. });
  16281. exports.default = void 0;
  16282. /*
  16283. * @Author : LQ
  16284. * @Description :
  16285. * @version : 1.0
  16286. * @Date : 2021-08-20 16:44:21
  16287. * @LastAuthor : LQ
  16288. * @lastTime : 2021-08-20 17:03:49
  16289. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  16290. */
  16291. var _default = {
  16292. // form 组件
  16293. form: {
  16294. model: function model() {
  16295. return {};
  16296. },
  16297. rules: function rules() {
  16298. return {};
  16299. },
  16300. errorType: 'message',
  16301. borderBottom: true,
  16302. labelPosition: 'left',
  16303. labelWidth: 45,
  16304. labelAlign: 'left',
  16305. labelStyle: function labelStyle() {
  16306. return {};
  16307. }
  16308. }
  16309. };
  16310. exports.default = _default;
  16311. /***/ }),
  16312. /* 96 */
  16313. /*!********************************************************************************************************************************!*\
  16314. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  16315. \********************************************************************************************************************************/
  16316. /*! no static exports found */
  16317. /***/ (function(module, exports, __webpack_require__) {
  16318. "use strict";
  16319. Object.defineProperty(exports, "__esModule", {
  16320. value: true
  16321. });
  16322. exports.default = void 0;
  16323. /*
  16324. * @Author : LQ
  16325. * @Description :
  16326. * @version : 1.0
  16327. * @Date : 2021-08-20 16:44:21
  16328. * @LastAuthor : LQ
  16329. * @lastTime : 2021-08-20 17:04:32
  16330. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  16331. */
  16332. var _default = {
  16333. // formItem 组件
  16334. formItem: {
  16335. label: '',
  16336. prop: '',
  16337. borderBottom: '',
  16338. labelPosition: '',
  16339. labelWidth: '',
  16340. rightIcon: '',
  16341. leftIcon: '',
  16342. required: false,
  16343. leftIconStyle: ''
  16344. }
  16345. };
  16346. exports.default = _default;
  16347. /***/ }),
  16348. /* 97 */
  16349. /*!***************************************************************************************************************************!*\
  16350. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/gap.js ***!
  16351. \***************************************************************************************************************************/
  16352. /*! no static exports found */
  16353. /***/ (function(module, exports, __webpack_require__) {
  16354. "use strict";
  16355. Object.defineProperty(exports, "__esModule", {
  16356. value: true
  16357. });
  16358. exports.default = void 0;
  16359. /*
  16360. * @Author : LQ
  16361. * @Description :
  16362. * @version : 1.0
  16363. * @Date : 2021-08-20 16:44:21
  16364. * @LastAuthor : LQ
  16365. * @lastTime : 2021-08-20 17:05:25
  16366. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  16367. */
  16368. var _default = {
  16369. // gap组件
  16370. gap: {
  16371. bgColor: 'transparent',
  16372. height: 20,
  16373. marginTop: 0,
  16374. marginBottom: 0,
  16375. customStyle: {}
  16376. }
  16377. };
  16378. exports.default = _default;
  16379. /***/ }),
  16380. /* 98 */
  16381. /*!****************************************************************************************************************************!*\
  16382. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/grid.js ***!
  16383. \****************************************************************************************************************************/
  16384. /*! no static exports found */
  16385. /***/ (function(module, exports, __webpack_require__) {
  16386. "use strict";
  16387. Object.defineProperty(exports, "__esModule", {
  16388. value: true
  16389. });
  16390. exports.default = void 0;
  16391. /*
  16392. * @Author : LQ
  16393. * @Description :
  16394. * @version : 1.0
  16395. * @Date : 2021-08-20 16:44:21
  16396. * @LastAuthor : LQ
  16397. * @lastTime : 2021-08-20 17:05:57
  16398. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  16399. */
  16400. var _default = {
  16401. // grid组件
  16402. grid: {
  16403. col: 3,
  16404. border: false,
  16405. align: 'left'
  16406. }
  16407. };
  16408. exports.default = _default;
  16409. /***/ }),
  16410. /* 99 */
  16411. /*!********************************************************************************************************************************!*\
  16412. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  16413. \********************************************************************************************************************************/
  16414. /*! no static exports found */
  16415. /***/ (function(module, exports, __webpack_require__) {
  16416. "use strict";
  16417. Object.defineProperty(exports, "__esModule", {
  16418. value: true
  16419. });
  16420. exports.default = void 0;
  16421. /*
  16422. * @Author : LQ
  16423. * @Description :
  16424. * @version : 1.0
  16425. * @Date : 2021-08-20 16:44:21
  16426. * @LastAuthor : LQ
  16427. * @lastTime : 2021-08-20 17:06:13
  16428. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  16429. */
  16430. var _default = {
  16431. // grid-item组件
  16432. gridItem: {
  16433. name: null,
  16434. bgColor: 'transparent'
  16435. }
  16436. };
  16437. exports.default = _default;
  16438. /***/ }),
  16439. /* 100 */
  16440. /*!****************************************************************************************************************************!*\
  16441. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/icon.js ***!
  16442. \****************************************************************************************************************************/
  16443. /*! no static exports found */
  16444. /***/ (function(module, exports, __webpack_require__) {
  16445. "use strict";
  16446. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16447. Object.defineProperty(exports, "__esModule", {
  16448. value: true
  16449. });
  16450. exports.default = void 0;
  16451. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 67));
  16452. /*
  16453. * @Author : LQ
  16454. * @Description :
  16455. * @version : 1.0
  16456. * @Date : 2021-08-20 16:44:21
  16457. * @LastAuthor : LQ
  16458. * @lastTime : 2021-08-20 18:00:14
  16459. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  16460. */
  16461. var color = _config.default.color;
  16462. var _default = {
  16463. // icon组件
  16464. icon: {
  16465. name: '',
  16466. color: color['u-content-color'],
  16467. size: '16px',
  16468. bold: false,
  16469. index: '',
  16470. hoverClass: '',
  16471. customPrefix: 'uicon',
  16472. label: '',
  16473. labelPos: 'right',
  16474. labelSize: '15px',
  16475. labelColor: color['u-content-color'],
  16476. space: '3px',
  16477. imgMode: '',
  16478. width: '',
  16479. height: '',
  16480. top: 0,
  16481. stop: false
  16482. }
  16483. };
  16484. exports.default = _default;
  16485. /***/ }),
  16486. /* 101 */
  16487. /*!*****************************************************************************************************************************!*\
  16488. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/image.js ***!
  16489. \*****************************************************************************************************************************/
  16490. /*! no static exports found */
  16491. /***/ (function(module, exports, __webpack_require__) {
  16492. "use strict";
  16493. Object.defineProperty(exports, "__esModule", {
  16494. value: true
  16495. });
  16496. exports.default = void 0;
  16497. /*
  16498. * @Author : LQ
  16499. * @Description :
  16500. * @version : 1.0
  16501. * @Date : 2021-08-20 16:44:21
  16502. * @LastAuthor : LQ
  16503. * @lastTime : 2021-08-20 17:01:51
  16504. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  16505. */
  16506. var _default = {
  16507. // image组件
  16508. image: {
  16509. src: '',
  16510. mode: 'aspectFill',
  16511. width: '300',
  16512. height: '225',
  16513. shape: 'square',
  16514. radius: 0,
  16515. lazyLoad: true,
  16516. showMenuByLongpress: true,
  16517. loadingIcon: 'photo',
  16518. errorIcon: 'error-circle',
  16519. showLoading: true,
  16520. showError: true,
  16521. fade: true,
  16522. webp: false,
  16523. duration: 500,
  16524. bgColor: '#f3f4f6'
  16525. }
  16526. };
  16527. exports.default = _default;
  16528. /***/ }),
  16529. /* 102 */
  16530. /*!***********************************************************************************************************************************!*\
  16531. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  16532. \***********************************************************************************************************************************/
  16533. /*! no static exports found */
  16534. /***/ (function(module, exports, __webpack_require__) {
  16535. "use strict";
  16536. Object.defineProperty(exports, "__esModule", {
  16537. value: true
  16538. });
  16539. exports.default = void 0;
  16540. /*
  16541. * @Author : LQ
  16542. * @Description :
  16543. * @version : 1.0
  16544. * @Date : 2021-08-20 16:44:21
  16545. * @LastAuthor : LQ
  16546. * @lastTime : 2021-08-20 17:13:15
  16547. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  16548. */
  16549. var _default = {
  16550. // indexAnchor 组件
  16551. indexAnchor: {
  16552. text: '',
  16553. color: '#606266',
  16554. size: 14,
  16555. bgColor: '#dedede',
  16556. height: 32
  16557. }
  16558. };
  16559. exports.default = _default;
  16560. /***/ }),
  16561. /* 103 */
  16562. /*!*********************************************************************************************************************************!*\
  16563. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  16564. \*********************************************************************************************************************************/
  16565. /*! no static exports found */
  16566. /***/ (function(module, exports, __webpack_require__) {
  16567. "use strict";
  16568. Object.defineProperty(exports, "__esModule", {
  16569. value: true
  16570. });
  16571. exports.default = void 0;
  16572. /*
  16573. * @Author : LQ
  16574. * @Description :
  16575. * @version : 1.0
  16576. * @Date : 2021-08-20 16:44:21
  16577. * @LastAuthor : LQ
  16578. * @lastTime : 2021-08-20 17:13:35
  16579. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  16580. */
  16581. var _default = {
  16582. // indexList 组件
  16583. indexList: {
  16584. inactiveColor: '#606266',
  16585. activeColor: '#5677fc',
  16586. indexList: function indexList() {
  16587. return [];
  16588. },
  16589. sticky: true,
  16590. customNavHeight: 0
  16591. }
  16592. };
  16593. exports.default = _default;
  16594. /***/ }),
  16595. /* 104 */
  16596. /*!*****************************************************************************************************************************!*\
  16597. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/input.js ***!
  16598. \*****************************************************************************************************************************/
  16599. /*! no static exports found */
  16600. /***/ (function(module, exports, __webpack_require__) {
  16601. "use strict";
  16602. Object.defineProperty(exports, "__esModule", {
  16603. value: true
  16604. });
  16605. exports.default = void 0;
  16606. /*
  16607. * @Author : LQ
  16608. * @Description :
  16609. * @version : 1.0
  16610. * @Date : 2021-08-20 16:44:21
  16611. * @LastAuthor : LQ
  16612. * @lastTime : 2021-08-20 17:13:55
  16613. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  16614. */
  16615. var _default = {
  16616. // index 组件
  16617. input: {
  16618. value: '',
  16619. type: 'text',
  16620. fixed: false,
  16621. disabled: false,
  16622. disabledColor: '#f5f7fa',
  16623. clearable: false,
  16624. password: false,
  16625. maxlength: -1,
  16626. placeholder: null,
  16627. placeholderClass: 'input-placeholder',
  16628. placeholderStyle: 'color: #c0c4cc',
  16629. showWordLimit: false,
  16630. confirmType: 'done',
  16631. confirmHold: false,
  16632. holdKeyboard: false,
  16633. focus: false,
  16634. autoBlur: false,
  16635. disableDefaultPadding: false,
  16636. cursor: -1,
  16637. cursorSpacing: 30,
  16638. selectionStart: -1,
  16639. selectionEnd: -1,
  16640. adjustPosition: true,
  16641. inputAlign: 'left',
  16642. fontSize: '15px',
  16643. color: '#303133',
  16644. prefixIcon: '',
  16645. prefixIconStyle: '',
  16646. suffixIcon: '',
  16647. suffixIconStyle: '',
  16648. border: 'surround',
  16649. readonly: false,
  16650. shape: 'square',
  16651. formatter: null
  16652. }
  16653. };
  16654. exports.default = _default;
  16655. /***/ }),
  16656. /* 105 */
  16657. /*!********************************************************************************************************************************!*\
  16658. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  16659. \********************************************************************************************************************************/
  16660. /*! no static exports found */
  16661. /***/ (function(module, exports, __webpack_require__) {
  16662. "use strict";
  16663. Object.defineProperty(exports, "__esModule", {
  16664. value: true
  16665. });
  16666. exports.default = void 0;
  16667. /*
  16668. * @Author : LQ
  16669. * @Description :
  16670. * @version : 1.0
  16671. * @Date : 2021-08-20 16:44:21
  16672. * @LastAuthor : LQ
  16673. * @lastTime : 2021-08-20 17:07:49
  16674. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  16675. */
  16676. var _default = {
  16677. // 键盘组件
  16678. keyboard: {
  16679. mode: 'number',
  16680. dotDisabled: false,
  16681. tooltip: true,
  16682. showTips: true,
  16683. tips: '',
  16684. showCancel: true,
  16685. showConfirm: true,
  16686. random: false,
  16687. safeAreaInsetBottom: true,
  16688. closeOnClickOverlay: true,
  16689. show: false,
  16690. overlay: true,
  16691. zIndex: 10075,
  16692. cancelText: '取消',
  16693. confirmText: '确定',
  16694. autoChange: false
  16695. }
  16696. };
  16697. exports.default = _default;
  16698. /***/ }),
  16699. /* 106 */
  16700. /*!****************************************************************************************************************************!*\
  16701. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/line.js ***!
  16702. \****************************************************************************************************************************/
  16703. /*! no static exports found */
  16704. /***/ (function(module, exports, __webpack_require__) {
  16705. "use strict";
  16706. Object.defineProperty(exports, "__esModule", {
  16707. value: true
  16708. });
  16709. exports.default = void 0;
  16710. /*
  16711. * @Author : LQ
  16712. * @Description :
  16713. * @version : 1.0
  16714. * @Date : 2021-08-20 16:44:21
  16715. * @LastAuthor : LQ
  16716. * @lastTime : 2021-08-20 17:04:49
  16717. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  16718. */
  16719. var _default = {
  16720. // line组件
  16721. line: {
  16722. color: '#d6d7d9',
  16723. length: '100%',
  16724. direction: 'row',
  16725. hairline: true,
  16726. margin: 0,
  16727. dashed: false
  16728. }
  16729. };
  16730. exports.default = _default;
  16731. /***/ }),
  16732. /* 107 */
  16733. /*!************************************************************************************************************************************!*\
  16734. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  16735. \************************************************************************************************************************************/
  16736. /*! no static exports found */
  16737. /***/ (function(module, exports, __webpack_require__) {
  16738. "use strict";
  16739. Object.defineProperty(exports, "__esModule", {
  16740. value: true
  16741. });
  16742. exports.default = void 0;
  16743. /*
  16744. * @Author : LQ
  16745. * @Description :
  16746. * @version : 1.0
  16747. * @Date : 2021-08-20 16:44:21
  16748. * @LastAuthor : LQ
  16749. * @lastTime : 2021-08-20 17:14:11
  16750. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  16751. */
  16752. var _default = {
  16753. // lineProgress 组件
  16754. lineProgress: {
  16755. activeColor: '#19be6b',
  16756. inactiveColor: '#ececec',
  16757. percentage: 0,
  16758. showText: true,
  16759. height: 12
  16760. }
  16761. };
  16762. exports.default = _default;
  16763. /***/ }),
  16764. /* 108 */
  16765. /*!****************************************************************************************************************************!*\
  16766. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/link.js ***!
  16767. \****************************************************************************************************************************/
  16768. /*! no static exports found */
  16769. /***/ (function(module, exports, __webpack_require__) {
  16770. "use strict";
  16771. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16772. Object.defineProperty(exports, "__esModule", {
  16773. value: true
  16774. });
  16775. exports.default = void 0;
  16776. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 67));
  16777. /*
  16778. * @Author : LQ
  16779. * @Description :
  16780. * @version : 1.0
  16781. * @Date : 2021-08-20 16:44:21
  16782. * @LastAuthor : LQ
  16783. * @lastTime : 2021-08-20 17:45:36
  16784. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  16785. */
  16786. var color = _config.default.color;
  16787. var _default = {
  16788. // link超链接组件props参数
  16789. link: {
  16790. color: color['u-primary'],
  16791. fontSize: 15,
  16792. underLine: false,
  16793. href: '',
  16794. mpTips: '链接已复制,请在浏览器打开',
  16795. lineColor: '',
  16796. text: ''
  16797. }
  16798. };
  16799. exports.default = _default;
  16800. /***/ }),
  16801. /* 109 */
  16802. /*!****************************************************************************************************************************!*\
  16803. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/list.js ***!
  16804. \****************************************************************************************************************************/
  16805. /*! no static exports found */
  16806. /***/ (function(module, exports, __webpack_require__) {
  16807. "use strict";
  16808. Object.defineProperty(exports, "__esModule", {
  16809. value: true
  16810. });
  16811. exports.default = void 0;
  16812. /*
  16813. * @Author : LQ
  16814. * @Description :
  16815. * @version : 1.0
  16816. * @Date : 2021-08-20 16:44:21
  16817. * @LastAuthor : LQ
  16818. * @lastTime : 2021-08-20 17:14:53
  16819. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  16820. */
  16821. var _default = {
  16822. // list 组件
  16823. list: {
  16824. showScrollbar: false,
  16825. lowerThreshold: 50,
  16826. upperThreshold: 0,
  16827. scrollTop: 0,
  16828. offsetAccuracy: 10,
  16829. enableFlex: false,
  16830. pagingEnabled: false,
  16831. scrollable: true,
  16832. scrollIntoView: '',
  16833. scrollWithAnimation: false,
  16834. enableBackToTop: false,
  16835. height: 0,
  16836. width: 0,
  16837. preLoadScreen: 1
  16838. }
  16839. };
  16840. exports.default = _default;
  16841. /***/ }),
  16842. /* 110 */
  16843. /*!********************************************************************************************************************************!*\
  16844. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  16845. \********************************************************************************************************************************/
  16846. /*! no static exports found */
  16847. /***/ (function(module, exports, __webpack_require__) {
  16848. "use strict";
  16849. Object.defineProperty(exports, "__esModule", {
  16850. value: true
  16851. });
  16852. exports.default = void 0;
  16853. /*
  16854. * @Author : LQ
  16855. * @Description :
  16856. * @version : 1.0
  16857. * @Date : 2021-08-20 16:44:21
  16858. * @LastAuthor : LQ
  16859. * @lastTime : 2021-08-20 17:15:40
  16860. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  16861. */
  16862. var _default = {
  16863. // listItem 组件
  16864. listItem: {
  16865. anchor: ''
  16866. }
  16867. };
  16868. exports.default = _default;
  16869. /***/ }),
  16870. /* 111 */
  16871. /*!***********************************************************************************************************************************!*\
  16872. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  16873. \***********************************************************************************************************************************/
  16874. /*! no static exports found */
  16875. /***/ (function(module, exports, __webpack_require__) {
  16876. "use strict";
  16877. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16878. Object.defineProperty(exports, "__esModule", {
  16879. value: true
  16880. });
  16881. exports.default = void 0;
  16882. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 67));
  16883. /*
  16884. * @Author : LQ
  16885. * @Description :
  16886. * @version : 1.0
  16887. * @Date : 2021-08-20 16:44:21
  16888. * @LastAuthor : LQ
  16889. * @lastTime : 2021-08-20 17:45:47
  16890. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  16891. */
  16892. var color = _config.default.color;
  16893. var _default = {
  16894. // loading-icon加载中图标组件
  16895. loadingIcon: {
  16896. show: true,
  16897. color: color['u-tips-color'],
  16898. textColor: color['u-tips-color'],
  16899. vertical: false,
  16900. mode: 'spinner',
  16901. size: 24,
  16902. textSize: 15,
  16903. text: '',
  16904. timingFunction: 'ease-in-out',
  16905. duration: 1200,
  16906. inactiveColor: ''
  16907. }
  16908. };
  16909. exports.default = _default;
  16910. /***/ }),
  16911. /* 112 */
  16912. /*!***********************************************************************************************************************************!*\
  16913. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  16914. \***********************************************************************************************************************************/
  16915. /*! no static exports found */
  16916. /***/ (function(module, exports, __webpack_require__) {
  16917. "use strict";
  16918. Object.defineProperty(exports, "__esModule", {
  16919. value: true
  16920. });
  16921. exports.default = void 0;
  16922. /*
  16923. * @Author : LQ
  16924. * @Description :
  16925. * @version : 1.0
  16926. * @Date : 2021-08-20 16:44:21
  16927. * @LastAuthor : LQ
  16928. * @lastTime : 2021-08-20 17:00:23
  16929. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16930. */
  16931. var _default = {
  16932. // loading-page组件
  16933. loadingPage: {
  16934. loadingText: '正在加载',
  16935. image: '',
  16936. loadingMode: 'circle',
  16937. loading: false,
  16938. bgColor: '#ffffff',
  16939. color: '#C8C8C8',
  16940. fontSize: 19,
  16941. iconSize: 28,
  16942. loadingColor: '#C8C8C8'
  16943. }
  16944. };
  16945. exports.default = _default;
  16946. /***/ }),
  16947. /* 113 */
  16948. /*!********************************************************************************************************************************!*\
  16949. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  16950. \********************************************************************************************************************************/
  16951. /*! no static exports found */
  16952. /***/ (function(module, exports, __webpack_require__) {
  16953. "use strict";
  16954. Object.defineProperty(exports, "__esModule", {
  16955. value: true
  16956. });
  16957. exports.default = void 0;
  16958. /*
  16959. * @Author : LQ
  16960. * @Description :
  16961. * @version : 1.0
  16962. * @Date : 2021-08-20 16:44:21
  16963. * @LastAuthor : LQ
  16964. * @lastTime : 2021-08-20 17:15:26
  16965. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16966. */
  16967. var _default = {
  16968. // loadmore 组件
  16969. loadmore: {
  16970. status: 'loadmore',
  16971. bgColor: 'transparent',
  16972. icon: true,
  16973. fontSize: 14,
  16974. iconSize: 17,
  16975. color: '#606266',
  16976. loadingIcon: 'spinner',
  16977. loadmoreText: '加载更多',
  16978. loadingText: '正在加载...',
  16979. nomoreText: '没有更多了',
  16980. isDot: false,
  16981. iconColor: '#b7b7b7',
  16982. marginTop: 10,
  16983. marginBottom: 10,
  16984. height: 'auto',
  16985. line: false,
  16986. lineColor: '#E6E8EB',
  16987. dashed: false
  16988. }
  16989. };
  16990. exports.default = _default;
  16991. /***/ }),
  16992. /* 114 */
  16993. /*!*****************************************************************************************************************************!*\
  16994. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/modal.js ***!
  16995. \*****************************************************************************************************************************/
  16996. /*! no static exports found */
  16997. /***/ (function(module, exports, __webpack_require__) {
  16998. "use strict";
  16999. Object.defineProperty(exports, "__esModule", {
  17000. value: true
  17001. });
  17002. exports.default = void 0;
  17003. /*
  17004. * @Author : LQ
  17005. * @Description :
  17006. * @version : 1.0
  17007. * @Date : 2021-08-20 16:44:21
  17008. * @LastAuthor : LQ
  17009. * @lastTime : 2021-08-20 17:15:59
  17010. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  17011. */
  17012. var _default = {
  17013. // modal 组件
  17014. modal: {
  17015. show: false,
  17016. title: '',
  17017. content: '',
  17018. confirmText: '确认',
  17019. cancelText: '取消',
  17020. showConfirmButton: true,
  17021. showCancelButton: false,
  17022. confirmColor: '#2979ff',
  17023. cancelColor: '#606266',
  17024. buttonReverse: false,
  17025. zoom: true,
  17026. asyncClose: false,
  17027. closeOnClickOverlay: false,
  17028. negativeTop: 0,
  17029. width: '650rpx',
  17030. confirmButtonShape: '',
  17031. duration: 400
  17032. }
  17033. };
  17034. exports.default = _default;
  17035. /***/ }),
  17036. /* 115 */
  17037. /*!******************************************************************************************************************************!*\
  17038. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  17039. \******************************************************************************************************************************/
  17040. /*! no static exports found */
  17041. /***/ (function(module, exports, __webpack_require__) {
  17042. "use strict";
  17043. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17044. Object.defineProperty(exports, "__esModule", {
  17045. value: true
  17046. });
  17047. exports.default = void 0;
  17048. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 116));
  17049. /*
  17050. * @Author : LQ
  17051. * @Description :
  17052. * @version : 1.0
  17053. * @Date : 2021-08-20 16:44:21
  17054. * @LastAuthor : LQ
  17055. * @lastTime : 2021-08-20 17:16:18
  17056. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  17057. */
  17058. var _default = {
  17059. // navbar 组件
  17060. navbar: {
  17061. safeAreaInsetTop: true,
  17062. placeholder: false,
  17063. fixed: true,
  17064. border: false,
  17065. leftIcon: 'arrow-left',
  17066. leftText: '',
  17067. rightText: '',
  17068. rightIcon: '',
  17069. title: '',
  17070. bgColor: '#ffffff',
  17071. titleWidth: '400rpx',
  17072. height: '44px',
  17073. leftIconSize: 20,
  17074. leftIconColor: _color.default.mainColor,
  17075. autoBack: false,
  17076. titleStyle: ''
  17077. }
  17078. };
  17079. exports.default = _default;
  17080. /***/ }),
  17081. /* 116 */
  17082. /*!***********************************************************************************************************************!*\
  17083. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/color.js ***!
  17084. \***********************************************************************************************************************/
  17085. /*! no static exports found */
  17086. /***/ (function(module, exports, __webpack_require__) {
  17087. "use strict";
  17088. Object.defineProperty(exports, "__esModule", {
  17089. value: true
  17090. });
  17091. exports.default = void 0;
  17092. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  17093. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  17094. var color = {
  17095. primary: '#3c9cff',
  17096. info: '#909399',
  17097. default: '#909399',
  17098. warning: '#f9ae3d',
  17099. error: '#f56c6c',
  17100. success: '#5ac725',
  17101. mainColor: '#303133',
  17102. contentColor: '#606266',
  17103. tipsColor: '#909399',
  17104. lightColor: '#c0c4cc',
  17105. borderColor: '#e4e7ed'
  17106. };
  17107. var _default = color;
  17108. exports.default = _default;
  17109. /***/ }),
  17110. /* 117 */
  17111. /*!*********************************************************************************************************************************!*\
  17112. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  17113. \*********************************************************************************************************************************/
  17114. /*! no static exports found */
  17115. /***/ (function(module, exports, __webpack_require__) {
  17116. "use strict";
  17117. Object.defineProperty(exports, "__esModule", {
  17118. value: true
  17119. });
  17120. exports.default = void 0;
  17121. /*
  17122. * @Author : LQ
  17123. * @Description :
  17124. * @version : 1.0
  17125. * @Date : 2021-08-20 16:44:21
  17126. * @LastAuthor : LQ
  17127. * @lastTime : 2021-08-20 17:16:39
  17128. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  17129. */
  17130. var _default = {
  17131. // noNetwork
  17132. noNetwork: {
  17133. tips: '哎呀,网络信号丢失',
  17134. zIndex: '',
  17135. 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'
  17136. }
  17137. };
  17138. exports.default = _default;
  17139. /***/ }),
  17140. /* 118 */
  17141. /*!*********************************************************************************************************************************!*\
  17142. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  17143. \*********************************************************************************************************************************/
  17144. /*! no static exports found */
  17145. /***/ (function(module, exports, __webpack_require__) {
  17146. "use strict";
  17147. Object.defineProperty(exports, "__esModule", {
  17148. value: true
  17149. });
  17150. exports.default = void 0;
  17151. /*
  17152. * @Author : LQ
  17153. * @Description :
  17154. * @version : 1.0
  17155. * @Date : 2021-08-20 16:44:21
  17156. * @LastAuthor : LQ
  17157. * @lastTime : 2021-08-20 17:17:13
  17158. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  17159. */
  17160. var _default = {
  17161. // noticeBar
  17162. noticeBar: {
  17163. text: function text() {
  17164. return [];
  17165. },
  17166. direction: 'row',
  17167. step: false,
  17168. icon: 'volume',
  17169. mode: '',
  17170. color: '#f9ae3d',
  17171. bgColor: '#fdf6ec',
  17172. speed: 80,
  17173. fontSize: 14,
  17174. duration: 2000,
  17175. disableTouch: true,
  17176. url: '',
  17177. linkType: 'navigateTo'
  17178. }
  17179. };
  17180. exports.default = _default;
  17181. /***/ }),
  17182. /* 119 */
  17183. /*!******************************************************************************************************************************!*\
  17184. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/notify.js ***!
  17185. \******************************************************************************************************************************/
  17186. /*! no static exports found */
  17187. /***/ (function(module, exports, __webpack_require__) {
  17188. "use strict";
  17189. Object.defineProperty(exports, "__esModule", {
  17190. value: true
  17191. });
  17192. exports.default = void 0;
  17193. /*
  17194. * @Author : LQ
  17195. * @Description :
  17196. * @version : 1.0
  17197. * @Date : 2021-08-20 16:44:21
  17198. * @LastAuthor : LQ
  17199. * @lastTime : 2021-08-20 17:10:21
  17200. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  17201. */
  17202. var _default = {
  17203. // notify组件
  17204. notify: {
  17205. top: 0,
  17206. type: 'primary',
  17207. color: '#ffffff',
  17208. bgColor: '',
  17209. message: '',
  17210. duration: 3000,
  17211. fontSize: 15,
  17212. safeAreaInsetTop: false
  17213. }
  17214. };
  17215. exports.default = _default;
  17216. /***/ }),
  17217. /* 120 */
  17218. /*!*********************************************************************************************************************************!*\
  17219. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  17220. \*********************************************************************************************************************************/
  17221. /*! no static exports found */
  17222. /***/ (function(module, exports, __webpack_require__) {
  17223. "use strict";
  17224. Object.defineProperty(exports, "__esModule", {
  17225. value: true
  17226. });
  17227. exports.default = void 0;
  17228. /*
  17229. * @Author : LQ
  17230. * @Description :
  17231. * @version : 1.0
  17232. * @Date : 2021-08-20 16:44:21
  17233. * @LastAuthor : LQ
  17234. * @lastTime : 2021-08-20 17:11:46
  17235. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  17236. */
  17237. var _default = {
  17238. // 步进器组件
  17239. numberBox: {
  17240. name: '',
  17241. value: 0,
  17242. min: 1,
  17243. max: Number.MAX_SAFE_INTEGER,
  17244. step: 1,
  17245. integer: false,
  17246. disabled: false,
  17247. disabledInput: false,
  17248. asyncChange: false,
  17249. inputWidth: 35,
  17250. showMinus: true,
  17251. showPlus: true,
  17252. decimalLength: null,
  17253. longPress: true,
  17254. color: '#323233',
  17255. buttonSize: 30,
  17256. bgColor: '#EBECEE',
  17257. cursorSpacing: 100,
  17258. disableMinus: false,
  17259. disablePlus: false,
  17260. iconStyle: ''
  17261. }
  17262. };
  17263. exports.default = _default;
  17264. /***/ }),
  17265. /* 121 */
  17266. /*!**************************************************************************************************************************************!*\
  17267. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  17268. \**************************************************************************************************************************************/
  17269. /*! no static exports found */
  17270. /***/ (function(module, exports, __webpack_require__) {
  17271. "use strict";
  17272. Object.defineProperty(exports, "__esModule", {
  17273. value: true
  17274. });
  17275. exports.default = void 0;
  17276. /*
  17277. * @Author : LQ
  17278. * @Description :
  17279. * @version : 1.0
  17280. * @Date : 2021-08-20 16:44:21
  17281. * @LastAuthor : LQ
  17282. * @lastTime : 2021-08-20 17:08:05
  17283. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  17284. */
  17285. var _default = {
  17286. // 数字键盘
  17287. numberKeyboard: {
  17288. mode: 'number',
  17289. dotDisabled: false,
  17290. random: false
  17291. }
  17292. };
  17293. exports.default = _default;
  17294. /***/ }),
  17295. /* 122 */
  17296. /*!*******************************************************************************************************************************!*\
  17297. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  17298. \*******************************************************************************************************************************/
  17299. /*! no static exports found */
  17300. /***/ (function(module, exports, __webpack_require__) {
  17301. "use strict";
  17302. Object.defineProperty(exports, "__esModule", {
  17303. value: true
  17304. });
  17305. exports.default = void 0;
  17306. /*
  17307. * @Author : LQ
  17308. * @Description :
  17309. * @version : 1.0
  17310. * @Date : 2021-08-20 16:44:21
  17311. * @LastAuthor : LQ
  17312. * @lastTime : 2021-08-20 17:06:50
  17313. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  17314. */
  17315. var _default = {
  17316. // overlay组件
  17317. overlay: {
  17318. show: false,
  17319. zIndex: 10070,
  17320. duration: 300,
  17321. opacity: 0.5
  17322. }
  17323. };
  17324. exports.default = _default;
  17325. /***/ }),
  17326. /* 123 */
  17327. /*!*****************************************************************************************************************************!*\
  17328. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/parse.js ***!
  17329. \*****************************************************************************************************************************/
  17330. /*! no static exports found */
  17331. /***/ (function(module, exports, __webpack_require__) {
  17332. "use strict";
  17333. Object.defineProperty(exports, "__esModule", {
  17334. value: true
  17335. });
  17336. exports.default = void 0;
  17337. /*
  17338. * @Author : LQ
  17339. * @Description :
  17340. * @version : 1.0
  17341. * @Date : 2021-08-20 16:44:21
  17342. * @LastAuthor : LQ
  17343. * @lastTime : 2021-08-20 17:17:33
  17344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  17345. */
  17346. var _default = {
  17347. // parse
  17348. parse: {
  17349. copyLink: true,
  17350. errorImg: '',
  17351. lazyLoad: false,
  17352. loadingImg: '',
  17353. pauseVideo: true,
  17354. previewImg: true,
  17355. setTitle: true,
  17356. showImgMenu: true
  17357. }
  17358. };
  17359. exports.default = _default;
  17360. /***/ }),
  17361. /* 124 */
  17362. /*!******************************************************************************************************************************!*\
  17363. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/picker.js ***!
  17364. \******************************************************************************************************************************/
  17365. /*! no static exports found */
  17366. /***/ (function(module, exports, __webpack_require__) {
  17367. "use strict";
  17368. Object.defineProperty(exports, "__esModule", {
  17369. value: true
  17370. });
  17371. exports.default = void 0;
  17372. /*
  17373. * @Author : LQ
  17374. * @Description :
  17375. * @version : 1.0
  17376. * @Date : 2021-08-20 16:44:21
  17377. * @LastAuthor : LQ
  17378. * @lastTime : 2021-08-20 17:18:20
  17379. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  17380. */
  17381. var _default = {
  17382. // picker
  17383. picker: {
  17384. show: false,
  17385. showToolbar: true,
  17386. title: '',
  17387. columns: function columns() {
  17388. return [];
  17389. },
  17390. loading: false,
  17391. itemHeight: 44,
  17392. cancelText: '取消',
  17393. confirmText: '确定',
  17394. cancelColor: '#909193',
  17395. confirmColor: '#3c9cff',
  17396. visibleItemCount: 5,
  17397. keyName: 'text',
  17398. closeOnClickOverlay: false,
  17399. defaultIndex: function defaultIndex() {
  17400. return [];
  17401. },
  17402. immediateChange: false
  17403. }
  17404. };
  17405. exports.default = _default;
  17406. /***/ }),
  17407. /* 125 */
  17408. /*!*****************************************************************************************************************************!*\
  17409. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/popup.js ***!
  17410. \*****************************************************************************************************************************/
  17411. /*! no static exports found */
  17412. /***/ (function(module, exports, __webpack_require__) {
  17413. "use strict";
  17414. Object.defineProperty(exports, "__esModule", {
  17415. value: true
  17416. });
  17417. exports.default = void 0;
  17418. /*
  17419. * @Author : LQ
  17420. * @Description :
  17421. * @version : 1.0
  17422. * @Date : 2021-08-20 16:44:21
  17423. * @LastAuthor : LQ
  17424. * @lastTime : 2021-08-20 17:06:33
  17425. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  17426. */
  17427. var _default = {
  17428. // popup组件
  17429. popup: {
  17430. show: false,
  17431. overlay: true,
  17432. mode: 'bottom',
  17433. duration: 300,
  17434. closeable: false,
  17435. overlayStyle: function overlayStyle() {},
  17436. closeOnClickOverlay: true,
  17437. zIndex: 10075,
  17438. safeAreaInsetBottom: true,
  17439. safeAreaInsetTop: false,
  17440. closeIconPos: 'top-right',
  17441. round: 0,
  17442. zoom: true,
  17443. bgColor: '',
  17444. overlayOpacity: 0.5
  17445. }
  17446. };
  17447. exports.default = _default;
  17448. /***/ }),
  17449. /* 126 */
  17450. /*!*****************************************************************************************************************************!*\
  17451. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/radio.js ***!
  17452. \*****************************************************************************************************************************/
  17453. /*! no static exports found */
  17454. /***/ (function(module, exports, __webpack_require__) {
  17455. "use strict";
  17456. Object.defineProperty(exports, "__esModule", {
  17457. value: true
  17458. });
  17459. exports.default = void 0;
  17460. /*
  17461. * @Author : LQ
  17462. * @Description :
  17463. * @version : 1.0
  17464. * @Date : 2021-08-20 16:44:21
  17465. * @LastAuthor : LQ
  17466. * @lastTime : 2021-08-20 17:02:34
  17467. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  17468. */
  17469. var _default = {
  17470. // radio组件
  17471. radio: {
  17472. name: '',
  17473. shape: '',
  17474. disabled: '',
  17475. labelDisabled: '',
  17476. activeColor: '',
  17477. inactiveColor: '',
  17478. iconSize: '',
  17479. labelSize: '',
  17480. label: '',
  17481. labelColor: '',
  17482. size: '',
  17483. iconColor: '',
  17484. placement: ''
  17485. }
  17486. };
  17487. exports.default = _default;
  17488. /***/ }),
  17489. /* 127 */
  17490. /*!**********************************************************************************************************************************!*\
  17491. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/radioGroup.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:03:12
  17507. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  17508. */
  17509. var _default = {
  17510. // radio-group组件
  17511. radioGroup: {
  17512. value: '',
  17513. disabled: false,
  17514. shape: 'circle',
  17515. activeColor: '#2979ff',
  17516. inactiveColor: '#c8c9cc',
  17517. name: '',
  17518. size: 18,
  17519. placement: 'row',
  17520. label: '',
  17521. labelColor: '#303133',
  17522. labelSize: 14,
  17523. labelDisabled: false,
  17524. iconColor: '#ffffff',
  17525. iconSize: 12,
  17526. borderBottom: false,
  17527. iconPlacement: 'left'
  17528. }
  17529. };
  17530. exports.default = _default;
  17531. /***/ }),
  17532. /* 128 */
  17533. /*!****************************************************************************************************************************!*\
  17534. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/rate.js ***!
  17535. \****************************************************************************************************************************/
  17536. /*! no static exports found */
  17537. /***/ (function(module, exports, __webpack_require__) {
  17538. "use strict";
  17539. Object.defineProperty(exports, "__esModule", {
  17540. value: true
  17541. });
  17542. exports.default = void 0;
  17543. /*
  17544. * @Author : LQ
  17545. * @Description :
  17546. * @version : 1.0
  17547. * @Date : 2021-08-20 16:44:21
  17548. * @LastAuthor : LQ
  17549. * @lastTime : 2021-08-20 17:05:09
  17550. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  17551. */
  17552. var _default = {
  17553. // rate组件
  17554. rate: {
  17555. value: 1,
  17556. count: 5,
  17557. disabled: false,
  17558. size: 18,
  17559. inactiveColor: '#b2b2b2',
  17560. activeColor: '#FA3534',
  17561. gutter: 4,
  17562. minCount: 1,
  17563. allowHalf: false,
  17564. activeIcon: 'star-fill',
  17565. inactiveIcon: 'star',
  17566. touchable: true
  17567. }
  17568. };
  17569. exports.default = _default;
  17570. /***/ }),
  17571. /* 129 */
  17572. /*!********************************************************************************************************************************!*\
  17573. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  17574. \********************************************************************************************************************************/
  17575. /*! no static exports found */
  17576. /***/ (function(module, exports, __webpack_require__) {
  17577. "use strict";
  17578. Object.defineProperty(exports, "__esModule", {
  17579. value: true
  17580. });
  17581. exports.default = void 0;
  17582. /*
  17583. * @Author : LQ
  17584. * @Description :
  17585. * @version : 1.0
  17586. * @Date : 2021-08-20 16:44:21
  17587. * @LastAuthor : LQ
  17588. * @lastTime : 2021-08-20 17:18:41
  17589. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  17590. */
  17591. var _default = {
  17592. // readMore
  17593. readMore: {
  17594. showHeight: 400,
  17595. toggle: false,
  17596. closeText: '展开阅读全文',
  17597. openText: '收起',
  17598. color: '#2979ff',
  17599. fontSize: 14,
  17600. textIndent: '2em',
  17601. name: ''
  17602. }
  17603. };
  17604. exports.default = _default;
  17605. /***/ }),
  17606. /* 130 */
  17607. /*!***************************************************************************************************************************!*\
  17608. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/row.js ***!
  17609. \***************************************************************************************************************************/
  17610. /*! no static exports found */
  17611. /***/ (function(module, exports, __webpack_require__) {
  17612. "use strict";
  17613. Object.defineProperty(exports, "__esModule", {
  17614. value: true
  17615. });
  17616. exports.default = void 0;
  17617. /*
  17618. * @Author : LQ
  17619. * @Description :
  17620. * @version : 1.0
  17621. * @Date : 2021-08-20 16:44:21
  17622. * @LastAuthor : LQ
  17623. * @lastTime : 2021-08-20 17:18:58
  17624. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  17625. */
  17626. var _default = {
  17627. // row
  17628. row: {
  17629. gutter: 0,
  17630. justify: 'start',
  17631. align: 'center'
  17632. }
  17633. };
  17634. exports.default = _default;
  17635. /***/ }),
  17636. /* 131 */
  17637. /*!*********************************************************************************************************************************!*\
  17638. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  17639. \*********************************************************************************************************************************/
  17640. /*! no static exports found */
  17641. /***/ (function(module, exports, __webpack_require__) {
  17642. "use strict";
  17643. Object.defineProperty(exports, "__esModule", {
  17644. value: true
  17645. });
  17646. exports.default = void 0;
  17647. /*
  17648. * @Author : LQ
  17649. * @Description :
  17650. * @version : 1.0
  17651. * @Date : 2021-08-20 16:44:21
  17652. * @LastAuthor : LQ
  17653. * @lastTime : 2021-08-20 17:19:13
  17654. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  17655. */
  17656. var _default = {
  17657. // rowNotice
  17658. rowNotice: {
  17659. text: '',
  17660. icon: 'volume',
  17661. mode: '',
  17662. color: '#f9ae3d',
  17663. bgColor: '#fdf6ec',
  17664. fontSize: 14,
  17665. speed: 80
  17666. }
  17667. };
  17668. exports.default = _default;
  17669. /***/ }),
  17670. /* 132 */
  17671. /*!**********************************************************************************************************************************!*\
  17672. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  17673. \**********************************************************************************************************************************/
  17674. /*! no static exports found */
  17675. /***/ (function(module, exports, __webpack_require__) {
  17676. "use strict";
  17677. Object.defineProperty(exports, "__esModule", {
  17678. value: true
  17679. });
  17680. exports.default = void 0;
  17681. /*
  17682. * @Author : LQ
  17683. * @Description :
  17684. * @version : 1.0
  17685. * @Date : 2021-08-20 16:44:21
  17686. * @LastAuthor : LQ
  17687. * @lastTime : 2021-08-20 17:19:28
  17688. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  17689. */
  17690. var _default = {
  17691. // scrollList
  17692. scrollList: {
  17693. indicatorWidth: 50,
  17694. indicatorBarWidth: 20,
  17695. indicator: true,
  17696. indicatorColor: '#f2f2f2',
  17697. indicatorActiveColor: '#3c9cff',
  17698. indicatorStyle: ''
  17699. }
  17700. };
  17701. exports.default = _default;
  17702. /***/ }),
  17703. /* 133 */
  17704. /*!******************************************************************************************************************************!*\
  17705. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/search.js ***!
  17706. \******************************************************************************************************************************/
  17707. /*! no static exports found */
  17708. /***/ (function(module, exports, __webpack_require__) {
  17709. "use strict";
  17710. Object.defineProperty(exports, "__esModule", {
  17711. value: true
  17712. });
  17713. exports.default = void 0;
  17714. /*
  17715. * @Author : LQ
  17716. * @Description :
  17717. * @version : 1.0
  17718. * @Date : 2021-08-20 16:44:21
  17719. * @LastAuthor : LQ
  17720. * @lastTime : 2021-08-20 17:19:45
  17721. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  17722. */
  17723. var _default = {
  17724. // search
  17725. search: {
  17726. shape: 'round',
  17727. bgColor: '#f2f2f2',
  17728. placeholder: '请输入关键字',
  17729. clearabled: true,
  17730. focus: false,
  17731. showAction: true,
  17732. actionStyle: function actionStyle() {
  17733. return {};
  17734. },
  17735. actionText: '搜索',
  17736. inputAlign: 'left',
  17737. inputStyle: function inputStyle() {
  17738. return {};
  17739. },
  17740. disabled: false,
  17741. borderColor: 'transparent',
  17742. searchIconColor: '#909399',
  17743. searchIconSize: 22,
  17744. color: '#606266',
  17745. placeholderColor: '#909399',
  17746. searchIcon: 'search',
  17747. margin: '0',
  17748. animation: false,
  17749. value: '',
  17750. maxlength: '-1',
  17751. height: 32,
  17752. label: null
  17753. }
  17754. };
  17755. exports.default = _default;
  17756. /***/ }),
  17757. /* 134 */
  17758. /*!*******************************************************************************************************************************!*\
  17759. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/section.js ***!
  17760. \*******************************************************************************************************************************/
  17761. /*! no static exports found */
  17762. /***/ (function(module, exports, __webpack_require__) {
  17763. "use strict";
  17764. Object.defineProperty(exports, "__esModule", {
  17765. value: true
  17766. });
  17767. exports.default = void 0;
  17768. /*
  17769. * @Author : LQ
  17770. * @Description :
  17771. * @version : 1.0
  17772. * @Date : 2021-08-20 16:44:21
  17773. * @LastAuthor : LQ
  17774. * @lastTime : 2021-08-20 17:07:33
  17775. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  17776. */
  17777. var _default = {
  17778. // u-section组件
  17779. section: {
  17780. title: '',
  17781. subTitle: '更多',
  17782. right: true,
  17783. fontSize: 15,
  17784. bold: true,
  17785. color: '#303133',
  17786. subColor: '#909399',
  17787. showLine: true,
  17788. lineColor: '',
  17789. arrow: true
  17790. }
  17791. };
  17792. exports.default = _default;
  17793. /***/ }),
  17794. /* 135 */
  17795. /*!********************************************************************************************************************************!*\
  17796. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  17797. \********************************************************************************************************************************/
  17798. /*! no static exports found */
  17799. /***/ (function(module, exports, __webpack_require__) {
  17800. "use strict";
  17801. Object.defineProperty(exports, "__esModule", {
  17802. value: true
  17803. });
  17804. exports.default = void 0;
  17805. /*
  17806. * @Author : LQ
  17807. * @Description :
  17808. * @version : 1.0
  17809. * @Date : 2021-08-20 16:44:21
  17810. * @LastAuthor : LQ
  17811. * @lastTime : 2021-08-20 17:20:14
  17812. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  17813. */
  17814. var _default = {
  17815. // skeleton
  17816. skeleton: {
  17817. loading: true,
  17818. animate: true,
  17819. rows: 0,
  17820. rowsWidth: '100%',
  17821. rowsHeight: 18,
  17822. title: true,
  17823. titleWidth: '50%',
  17824. titleHeight: 18,
  17825. avatar: false,
  17826. avatarSize: 32,
  17827. avatarShape: 'circle'
  17828. }
  17829. };
  17830. exports.default = _default;
  17831. /***/ }),
  17832. /* 136 */
  17833. /*!******************************************************************************************************************************!*\
  17834. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/slider.js ***!
  17835. \******************************************************************************************************************************/
  17836. /*! no static exports found */
  17837. /***/ (function(module, exports, __webpack_require__) {
  17838. "use strict";
  17839. Object.defineProperty(exports, "__esModule", {
  17840. value: true
  17841. });
  17842. exports.default = void 0;
  17843. /*
  17844. * @Author : LQ
  17845. * @Description :
  17846. * @version : 1.0
  17847. * @Date : 2021-08-20 16:44:21
  17848. * @LastAuthor : LQ
  17849. * @lastTime : 2021-08-20 17:08:25
  17850. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  17851. */
  17852. var _default = {
  17853. // slider组件
  17854. slider: {
  17855. value: 0,
  17856. blockSize: 18,
  17857. min: 0,
  17858. max: 100,
  17859. step: 1,
  17860. activeColor: '#2979ff',
  17861. inactiveColor: '#c0c4cc',
  17862. blockColor: '#ffffff',
  17863. showValue: false,
  17864. disabled: false,
  17865. blockStyle: function blockStyle() {}
  17866. }
  17867. };
  17868. exports.default = _default;
  17869. /***/ }),
  17870. /* 137 */
  17871. /*!*********************************************************************************************************************************!*\
  17872. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  17873. \*********************************************************************************************************************************/
  17874. /*! no static exports found */
  17875. /***/ (function(module, exports, __webpack_require__) {
  17876. "use strict";
  17877. Object.defineProperty(exports, "__esModule", {
  17878. value: true
  17879. });
  17880. exports.default = void 0;
  17881. /*
  17882. * @Author : LQ
  17883. * @Description :
  17884. * @version : 1.0
  17885. * @Date : 2021-08-20 16:44:21
  17886. * @LastAuthor : LQ
  17887. * @lastTime : 2021-08-20 17:20:39
  17888. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  17889. */
  17890. var _default = {
  17891. // statusBar
  17892. statusBar: {
  17893. bgColor: 'transparent'
  17894. }
  17895. };
  17896. exports.default = _default;
  17897. /***/ }),
  17898. /* 138 */
  17899. /*!*****************************************************************************************************************************!*\
  17900. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/steps.js ***!
  17901. \*****************************************************************************************************************************/
  17902. /*! no static exports found */
  17903. /***/ (function(module, exports, __webpack_require__) {
  17904. "use strict";
  17905. Object.defineProperty(exports, "__esModule", {
  17906. value: true
  17907. });
  17908. exports.default = void 0;
  17909. /*
  17910. * @Author : LQ
  17911. * @Description :
  17912. * @version : 1.0
  17913. * @Date : 2021-08-20 16:44:21
  17914. * @LastAuthor : LQ
  17915. * @lastTime : 2021-08-20 17:12:37
  17916. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  17917. */
  17918. var _default = {
  17919. // steps组件
  17920. steps: {
  17921. direction: 'row',
  17922. current: 0,
  17923. activeColor: '#3c9cff',
  17924. inactiveColor: '#969799',
  17925. activeIcon: '',
  17926. inactiveIcon: '',
  17927. dot: false
  17928. }
  17929. };
  17930. exports.default = _default;
  17931. /***/ }),
  17932. /* 139 */
  17933. /*!*********************************************************************************************************************************!*\
  17934. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17935. \*********************************************************************************************************************************/
  17936. /*! no static exports found */
  17937. /***/ (function(module, exports, __webpack_require__) {
  17938. "use strict";
  17939. Object.defineProperty(exports, "__esModule", {
  17940. value: true
  17941. });
  17942. exports.default = void 0;
  17943. /*
  17944. * @Author : LQ
  17945. * @Description :
  17946. * @version : 1.0
  17947. * @Date : 2021-08-20 16:44:21
  17948. * @LastAuthor : LQ
  17949. * @lastTime : 2021-08-20 17:12:55
  17950. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17951. */
  17952. var _default = {
  17953. // steps-item组件
  17954. stepsItem: {
  17955. title: '',
  17956. desc: '',
  17957. iconSize: 17,
  17958. error: false
  17959. }
  17960. };
  17961. exports.default = _default;
  17962. /***/ }),
  17963. /* 140 */
  17964. /*!******************************************************************************************************************************!*\
  17965. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  17966. \******************************************************************************************************************************/
  17967. /*! no static exports found */
  17968. /***/ (function(module, exports, __webpack_require__) {
  17969. "use strict";
  17970. Object.defineProperty(exports, "__esModule", {
  17971. value: true
  17972. });
  17973. exports.default = void 0;
  17974. /*
  17975. * @Author : LQ
  17976. * @Description :
  17977. * @version : 1.0
  17978. * @Date : 2021-08-20 16:44:21
  17979. * @LastAuthor : LQ
  17980. * @lastTime : 2021-08-20 17:01:30
  17981. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17982. */
  17983. var _default = {
  17984. // sticky组件
  17985. sticky: {
  17986. offsetTop: 0,
  17987. customNavHeight: 0,
  17988. disabled: false,
  17989. bgColor: 'transparent',
  17990. zIndex: '',
  17991. index: ''
  17992. }
  17993. };
  17994. exports.default = _default;
  17995. /***/ }),
  17996. /* 141 */
  17997. /*!**********************************************************************************************************************************!*\
  17998. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  17999. \**********************************************************************************************************************************/
  18000. /*! no static exports found */
  18001. /***/ (function(module, exports, __webpack_require__) {
  18002. "use strict";
  18003. Object.defineProperty(exports, "__esModule", {
  18004. value: true
  18005. });
  18006. exports.default = void 0;
  18007. /*
  18008. * @Author : LQ
  18009. * @Description :
  18010. * @version : 1.0
  18011. * @Date : 2021-08-20 16:44:21
  18012. * @LastAuthor : LQ
  18013. * @lastTime : 2021-08-20 17:12:20
  18014. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  18015. */
  18016. var _default = {
  18017. // subsection组件
  18018. subsection: {
  18019. list: [],
  18020. current: 0,
  18021. activeColor: '#3c9cff',
  18022. inactiveColor: '#303133',
  18023. mode: 'button',
  18024. fontSize: 12,
  18025. bold: true,
  18026. bgColor: '#eeeeef',
  18027. keyName: 'name'
  18028. }
  18029. };
  18030. exports.default = _default;
  18031. /***/ }),
  18032. /* 142 */
  18033. /*!***********************************************************************************************************************************!*\
  18034. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  18035. \***********************************************************************************************************************************/
  18036. /*! no static exports found */
  18037. /***/ (function(module, exports, __webpack_require__) {
  18038. "use strict";
  18039. Object.defineProperty(exports, "__esModule", {
  18040. value: true
  18041. });
  18042. exports.default = void 0;
  18043. /*
  18044. * @Author : LQ
  18045. * @Description :
  18046. * @version : 1.0
  18047. * @Date : 2021-08-20 16:44:21
  18048. * @LastAuthor : LQ
  18049. * @lastTime : 2021-08-20 17:00:42
  18050. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  18051. */
  18052. var _default = {
  18053. // swipe-action组件
  18054. swipeAction: {
  18055. autoClose: true
  18056. }
  18057. };
  18058. exports.default = _default;
  18059. /***/ }),
  18060. /* 143 */
  18061. /*!***************************************************************************************************************************************!*\
  18062. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  18063. \***************************************************************************************************************************************/
  18064. /*! no static exports found */
  18065. /***/ (function(module, exports, __webpack_require__) {
  18066. "use strict";
  18067. Object.defineProperty(exports, "__esModule", {
  18068. value: true
  18069. });
  18070. exports.default = void 0;
  18071. /*
  18072. * @Author : LQ
  18073. * @Description :
  18074. * @version : 1.0
  18075. * @Date : 2021-08-20 16:44:21
  18076. * @LastAuthor : LQ
  18077. * @lastTime : 2021-08-20 17:01:13
  18078. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  18079. */
  18080. var _default = {
  18081. // swipeActionItem 组件
  18082. swipeActionItem: {
  18083. show: false,
  18084. name: '',
  18085. disabled: false,
  18086. threshold: 20,
  18087. autoClose: true,
  18088. options: [],
  18089. duration: 300
  18090. }
  18091. };
  18092. exports.default = _default;
  18093. /***/ }),
  18094. /* 144 */
  18095. /*!******************************************************************************************************************************!*\
  18096. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  18097. \******************************************************************************************************************************/
  18098. /*! no static exports found */
  18099. /***/ (function(module, exports, __webpack_require__) {
  18100. "use strict";
  18101. Object.defineProperty(exports, "__esModule", {
  18102. value: true
  18103. });
  18104. exports.default = void 0;
  18105. /*
  18106. * @Author : LQ
  18107. * @Description :
  18108. * @version : 1.0
  18109. * @Date : 2021-08-20 16:44:21
  18110. * @LastAuthor : LQ
  18111. * @lastTime : 2021-08-20 17:21:38
  18112. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  18113. */
  18114. var _default = {
  18115. // swiper 组件
  18116. swiper: {
  18117. list: function list() {
  18118. return [];
  18119. },
  18120. indicator: false,
  18121. indicatorActiveColor: '#FFFFFF',
  18122. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  18123. indicatorStyle: '',
  18124. indicatorMode: 'line',
  18125. autoplay: true,
  18126. current: 0,
  18127. currentItemId: '',
  18128. interval: 3000,
  18129. duration: 300,
  18130. circular: false,
  18131. previousMargin: 0,
  18132. nextMargin: 0,
  18133. acceleration: false,
  18134. displayMultipleItems: 1,
  18135. easingFunction: 'default',
  18136. keyName: 'url',
  18137. imgMode: 'aspectFill',
  18138. height: 130,
  18139. bgColor: '#f3f4f6',
  18140. radius: 4,
  18141. loading: false,
  18142. showTitle: false
  18143. }
  18144. };
  18145. exports.default = _default;
  18146. /***/ }),
  18147. /* 145 */
  18148. /*!****************************************************************************************************************************************!*\
  18149. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  18150. \****************************************************************************************************************************************/
  18151. /*! no static exports found */
  18152. /***/ (function(module, exports, __webpack_require__) {
  18153. "use strict";
  18154. Object.defineProperty(exports, "__esModule", {
  18155. value: true
  18156. });
  18157. exports.default = void 0;
  18158. /*
  18159. * @Author : LQ
  18160. * @Description :
  18161. * @version : 1.0
  18162. * @Date : 2021-08-20 16:44:21
  18163. * @LastAuthor : LQ
  18164. * @lastTime : 2021-08-20 17:22:07
  18165. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  18166. */
  18167. var _default = {
  18168. // swiperIndicator 组件
  18169. swiperIndicator: {
  18170. length: 0,
  18171. current: 0,
  18172. indicatorActiveColor: '',
  18173. indicatorInactiveColor: '',
  18174. indicatorMode: 'line'
  18175. }
  18176. };
  18177. exports.default = _default;
  18178. /***/ }),
  18179. /* 146 */
  18180. /*!******************************************************************************************************************************!*\
  18181. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/switch.js ***!
  18182. \******************************************************************************************************************************/
  18183. /*! no static exports found */
  18184. /***/ (function(module, exports, __webpack_require__) {
  18185. "use strict";
  18186. Object.defineProperty(exports, "__esModule", {
  18187. value: true
  18188. });
  18189. exports.default = void 0;
  18190. /*
  18191. * @Author : LQ
  18192. * @Description :
  18193. * @version : 1.0
  18194. * @Date : 2021-08-20 16:44:21
  18195. * @LastAuthor : LQ
  18196. * @lastTime : 2021-08-20 17:22:24
  18197. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  18198. */
  18199. var _default = {
  18200. // switch
  18201. switch: {
  18202. loading: false,
  18203. disabled: false,
  18204. size: 25,
  18205. activeColor: '#2979ff',
  18206. inactiveColor: '#ffffff',
  18207. value: false,
  18208. activeValue: true,
  18209. inactiveValue: false,
  18210. asyncChange: false,
  18211. space: 0
  18212. }
  18213. };
  18214. exports.default = _default;
  18215. /***/ }),
  18216. /* 147 */
  18217. /*!******************************************************************************************************************************!*\
  18218. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  18219. \******************************************************************************************************************************/
  18220. /*! no static exports found */
  18221. /***/ (function(module, exports, __webpack_require__) {
  18222. "use strict";
  18223. Object.defineProperty(exports, "__esModule", {
  18224. value: true
  18225. });
  18226. exports.default = void 0;
  18227. /*
  18228. * @Author : LQ
  18229. * @Description :
  18230. * @version : 1.0
  18231. * @Date : 2021-08-20 16:44:21
  18232. * @LastAuthor : LQ
  18233. * @lastTime : 2021-08-20 17:22:40
  18234. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  18235. */
  18236. var _default = {
  18237. // tabbar
  18238. tabbar: {
  18239. value: null,
  18240. safeAreaInsetBottom: true,
  18241. border: true,
  18242. zIndex: 1,
  18243. activeColor: '#1989fa',
  18244. inactiveColor: '#7d7e80',
  18245. fixed: true,
  18246. placeholder: true
  18247. }
  18248. };
  18249. exports.default = _default;
  18250. /***/ }),
  18251. /* 148 */
  18252. /*!**********************************************************************************************************************************!*\
  18253. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  18254. \**********************************************************************************************************************************/
  18255. /*! no static exports found */
  18256. /***/ (function(module, exports, __webpack_require__) {
  18257. "use strict";
  18258. Object.defineProperty(exports, "__esModule", {
  18259. value: true
  18260. });
  18261. exports.default = void 0;
  18262. /*
  18263. * @Author : LQ
  18264. * @Description :
  18265. * @version : 1.0
  18266. * @Date : 2021-08-20 16:44:21
  18267. * @LastAuthor : LQ
  18268. * @lastTime : 2021-08-20 17:22:55
  18269. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  18270. */
  18271. var _default = {
  18272. //
  18273. tabbarItem: {
  18274. name: null,
  18275. icon: '',
  18276. badge: null,
  18277. dot: false,
  18278. text: '',
  18279. badgeStyle: 'top: 6px;right:2px;'
  18280. }
  18281. };
  18282. exports.default = _default;
  18283. /***/ }),
  18284. /* 149 */
  18285. /*!****************************************************************************************************************************!*\
  18286. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  18287. \****************************************************************************************************************************/
  18288. /*! no static exports found */
  18289. /***/ (function(module, exports, __webpack_require__) {
  18290. "use strict";
  18291. Object.defineProperty(exports, "__esModule", {
  18292. value: true
  18293. });
  18294. exports.default = void 0;
  18295. /*
  18296. * @Author : LQ
  18297. * @Description :
  18298. * @version : 1.0
  18299. * @Date : 2021-08-20 16:44:21
  18300. * @LastAuthor : LQ
  18301. * @lastTime : 2021-08-20 17:23:14
  18302. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  18303. */
  18304. var _default = {
  18305. //
  18306. tabs: {
  18307. duration: 300,
  18308. list: function list() {
  18309. return [];
  18310. },
  18311. lineColor: '#3c9cff',
  18312. activeStyle: function activeStyle() {
  18313. return {
  18314. color: '#303133'
  18315. };
  18316. },
  18317. inactiveStyle: function inactiveStyle() {
  18318. return {
  18319. color: '#606266'
  18320. };
  18321. },
  18322. lineWidth: 20,
  18323. lineHeight: 3,
  18324. lineBgSize: 'cover',
  18325. itemStyle: function itemStyle() {
  18326. return {
  18327. height: '44px'
  18328. };
  18329. },
  18330. scrollable: true,
  18331. current: 0,
  18332. keyName: 'name'
  18333. }
  18334. };
  18335. exports.default = _default;
  18336. /***/ }),
  18337. /* 150 */
  18338. /*!***************************************************************************************************************************!*\
  18339. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/tag.js ***!
  18340. \***************************************************************************************************************************/
  18341. /*! no static exports found */
  18342. /***/ (function(module, exports, __webpack_require__) {
  18343. "use strict";
  18344. Object.defineProperty(exports, "__esModule", {
  18345. value: true
  18346. });
  18347. exports.default = void 0;
  18348. /*
  18349. * @Author : LQ
  18350. * @Description :
  18351. * @version : 1.0
  18352. * @Date : 2021-08-20 16:44:21
  18353. * @LastAuthor : LQ
  18354. * @lastTime : 2021-08-20 17:23:37
  18355. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  18356. */
  18357. var _default = {
  18358. // tag 组件
  18359. tag: {
  18360. type: 'primary',
  18361. disabled: false,
  18362. size: 'medium',
  18363. shape: 'square',
  18364. text: '',
  18365. bgColor: '',
  18366. color: '',
  18367. borderColor: '',
  18368. closeColor: '#C6C7CB',
  18369. name: '',
  18370. plainFill: false,
  18371. plain: false,
  18372. closable: false,
  18373. show: true,
  18374. icon: ''
  18375. }
  18376. };
  18377. exports.default = _default;
  18378. /***/ }),
  18379. /* 151 */
  18380. /*!****************************************************************************************************************************!*\
  18381. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/text.js ***!
  18382. \****************************************************************************************************************************/
  18383. /*! no static exports found */
  18384. /***/ (function(module, exports, __webpack_require__) {
  18385. "use strict";
  18386. Object.defineProperty(exports, "__esModule", {
  18387. value: true
  18388. });
  18389. exports.default = void 0;
  18390. /*
  18391. * @Author : LQ
  18392. * @Description :
  18393. * @version : 1.0
  18394. * @Date : 2021-08-20 16:44:21
  18395. * @LastAuthor : LQ
  18396. * @lastTime : 2021-08-20 17:23:58
  18397. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  18398. */
  18399. var _default = {
  18400. // text 组件
  18401. text: {
  18402. type: '',
  18403. show: true,
  18404. text: '',
  18405. prefixIcon: '',
  18406. suffixIcon: '',
  18407. mode: '',
  18408. href: '',
  18409. format: '',
  18410. call: false,
  18411. openType: '',
  18412. bold: false,
  18413. block: false,
  18414. lines: '',
  18415. color: '#303133',
  18416. size: 15,
  18417. iconStyle: function iconStyle() {
  18418. return {
  18419. fontSize: '15px'
  18420. };
  18421. },
  18422. decoration: 'none',
  18423. margin: 0,
  18424. lineHeight: '',
  18425. align: 'left',
  18426. wordWrap: 'normal'
  18427. }
  18428. };
  18429. exports.default = _default;
  18430. /***/ }),
  18431. /* 152 */
  18432. /*!********************************************************************************************************************************!*\
  18433. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  18434. \********************************************************************************************************************************/
  18435. /*! no static exports found */
  18436. /***/ (function(module, exports, __webpack_require__) {
  18437. "use strict";
  18438. Object.defineProperty(exports, "__esModule", {
  18439. value: true
  18440. });
  18441. exports.default = void 0;
  18442. /*
  18443. * @Author : LQ
  18444. * @Description :
  18445. * @version : 1.0
  18446. * @Date : 2021-08-20 16:44:21
  18447. * @LastAuthor : LQ
  18448. * @lastTime : 2021-08-20 17:24:32
  18449. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  18450. */
  18451. var _default = {
  18452. // textarea 组件
  18453. textarea: {
  18454. value: '',
  18455. placeholder: '',
  18456. placeholderClass: 'textarea-placeholder',
  18457. placeholderStyle: 'color: #c0c4cc',
  18458. height: 70,
  18459. confirmType: 'done',
  18460. disabled: false,
  18461. count: false,
  18462. focus: false,
  18463. autoHeight: false,
  18464. fixed: false,
  18465. cursorSpacing: 0,
  18466. cursor: '',
  18467. showConfirmBar: true,
  18468. selectionStart: -1,
  18469. selectionEnd: -1,
  18470. adjustPosition: true,
  18471. disableDefaultPadding: false,
  18472. holdKeyboard: false,
  18473. maxlength: 140,
  18474. border: 'surround',
  18475. formatter: null
  18476. }
  18477. };
  18478. exports.default = _default;
  18479. /***/ }),
  18480. /* 153 */
  18481. /*!*****************************************************************************************************************************!*\
  18482. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/toast.js ***!
  18483. \*****************************************************************************************************************************/
  18484. /*! no static exports found */
  18485. /***/ (function(module, exports, __webpack_require__) {
  18486. "use strict";
  18487. Object.defineProperty(exports, "__esModule", {
  18488. value: true
  18489. });
  18490. exports.default = void 0;
  18491. /*
  18492. * @Author : LQ
  18493. * @Description :
  18494. * @version : 1.0
  18495. * @Date : 2021-08-20 16:44:21
  18496. * @LastAuthor : LQ
  18497. * @lastTime : 2021-08-20 17:07:07
  18498. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  18499. */
  18500. var _default = {
  18501. // toast组件
  18502. toast: {
  18503. zIndex: 10090,
  18504. loading: false,
  18505. text: '',
  18506. icon: '',
  18507. type: '',
  18508. loadingMode: '',
  18509. show: '',
  18510. overlay: false,
  18511. position: 'center',
  18512. params: function params() {},
  18513. duration: 2000,
  18514. isTab: false,
  18515. url: '',
  18516. callback: null,
  18517. back: false
  18518. }
  18519. };
  18520. exports.default = _default;
  18521. /***/ }),
  18522. /* 154 */
  18523. /*!*******************************************************************************************************************************!*\
  18524. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  18525. \*******************************************************************************************************************************/
  18526. /*! no static exports found */
  18527. /***/ (function(module, exports, __webpack_require__) {
  18528. "use strict";
  18529. Object.defineProperty(exports, "__esModule", {
  18530. value: true
  18531. });
  18532. exports.default = void 0;
  18533. /*
  18534. * @Author : LQ
  18535. * @Description :
  18536. * @version : 1.0
  18537. * @Date : 2021-08-20 16:44:21
  18538. * @LastAuthor : LQ
  18539. * @lastTime : 2021-08-20 17:24:55
  18540. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  18541. */
  18542. var _default = {
  18543. // toolbar 组件
  18544. toolbar: {
  18545. show: true,
  18546. cancelText: '取消',
  18547. confirmText: '确认',
  18548. cancelColor: '#909193',
  18549. confirmColor: '#3c9cff',
  18550. title: ''
  18551. }
  18552. };
  18553. exports.default = _default;
  18554. /***/ }),
  18555. /* 155 */
  18556. /*!*******************************************************************************************************************************!*\
  18557. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  18558. \*******************************************************************************************************************************/
  18559. /*! no static exports found */
  18560. /***/ (function(module, exports, __webpack_require__) {
  18561. "use strict";
  18562. Object.defineProperty(exports, "__esModule", {
  18563. value: true
  18564. });
  18565. exports.default = void 0;
  18566. /*
  18567. * @Author : LQ
  18568. * @Description :
  18569. * @version : 1.0
  18570. * @Date : 2021-08-20 16:44:21
  18571. * @LastAuthor : LQ
  18572. * @lastTime : 2021-08-20 17:25:14
  18573. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  18574. */
  18575. var _default = {
  18576. // tooltip 组件
  18577. tooltip: {
  18578. text: '',
  18579. copyText: '',
  18580. size: 14,
  18581. color: '#606266',
  18582. bgColor: 'transparent',
  18583. direction: 'top',
  18584. zIndex: 10071,
  18585. showCopy: true,
  18586. buttons: function buttons() {
  18587. return [];
  18588. },
  18589. overlay: true,
  18590. showToast: true
  18591. }
  18592. };
  18593. exports.default = _default;
  18594. /***/ }),
  18595. /* 156 */
  18596. /*!**********************************************************************************************************************************!*\
  18597. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/transition.js ***!
  18598. \**********************************************************************************************************************************/
  18599. /*! no static exports found */
  18600. /***/ (function(module, exports, __webpack_require__) {
  18601. "use strict";
  18602. Object.defineProperty(exports, "__esModule", {
  18603. value: true
  18604. });
  18605. exports.default = void 0;
  18606. /*
  18607. * @Author : LQ
  18608. * @Description :
  18609. * @version : 1.0
  18610. * @Date : 2021-08-20 16:44:21
  18611. * @LastAuthor : LQ
  18612. * @lastTime : 2021-08-20 16:59:00
  18613. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  18614. */
  18615. var _default = {
  18616. // transition动画组件的props
  18617. transition: {
  18618. show: false,
  18619. mode: 'fade',
  18620. duration: '300',
  18621. timingFunction: 'ease-out'
  18622. }
  18623. };
  18624. exports.default = _default;
  18625. /***/ }),
  18626. /* 157 */
  18627. /*!******************************************************************************************************************************!*\
  18628. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/props/upload.js ***!
  18629. \******************************************************************************************************************************/
  18630. /*! no static exports found */
  18631. /***/ (function(module, exports, __webpack_require__) {
  18632. "use strict";
  18633. Object.defineProperty(exports, "__esModule", {
  18634. value: true
  18635. });
  18636. exports.default = void 0;
  18637. /*
  18638. * @Author : LQ
  18639. * @Description :
  18640. * @version : 1.0
  18641. * @Date : 2021-08-20 16:44:21
  18642. * @LastAuthor : LQ
  18643. * @lastTime : 2021-08-20 17:09:50
  18644. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  18645. */
  18646. var _default = {
  18647. // upload组件
  18648. upload: {
  18649. accept: 'image',
  18650. capture: function capture() {
  18651. return ['album', 'camera'];
  18652. },
  18653. compressed: true,
  18654. camera: 'back',
  18655. maxDuration: 60,
  18656. uploadIcon: 'camera-fill',
  18657. uploadIconColor: '#D3D4D6',
  18658. useBeforeRead: false,
  18659. previewFullImage: true,
  18660. maxCount: 52,
  18661. disabled: false,
  18662. imageMode: 'aspectFill',
  18663. name: '',
  18664. sizeType: function sizeType() {
  18665. return ['original', 'compressed'];
  18666. },
  18667. multiple: false,
  18668. deletable: true,
  18669. maxSize: Number.MAX_VALUE,
  18670. fileList: function fileList() {
  18671. return [];
  18672. },
  18673. uploadText: '',
  18674. width: 80,
  18675. height: 80,
  18676. previewImage: true
  18677. }
  18678. };
  18679. exports.default = _default;
  18680. /***/ }),
  18681. /* 158 */
  18682. /*!************************************************************************************************************************!*\
  18683. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/config/zIndex.js ***!
  18684. \************************************************************************************************************************/
  18685. /*! no static exports found */
  18686. /***/ (function(module, exports, __webpack_require__) {
  18687. "use strict";
  18688. Object.defineProperty(exports, "__esModule", {
  18689. value: true
  18690. });
  18691. exports.default = void 0;
  18692. // uniapp在H5中各API的z-index值如下:
  18693. /**
  18694. * actionsheet: 999
  18695. * modal: 999
  18696. * navigate: 998
  18697. * tabbar: 998
  18698. * toast: 999
  18699. */
  18700. var _default = {
  18701. toast: 10090,
  18702. noNetwork: 10080,
  18703. // popup包含popup,actionsheet,keyboard,picker的值
  18704. popup: 10075,
  18705. mask: 10070,
  18706. navbar: 980,
  18707. topTips: 975,
  18708. sticky: 970,
  18709. indexListSticky: 965
  18710. };
  18711. exports.default = _default;
  18712. /***/ }),
  18713. /* 159 */
  18714. /*!****************************************************************************************************************************!*\
  18715. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/function/platform.js ***!
  18716. \****************************************************************************************************************************/
  18717. /*! no static exports found */
  18718. /***/ (function(module, exports, __webpack_require__) {
  18719. "use strict";
  18720. Object.defineProperty(exports, "__esModule", {
  18721. value: true
  18722. });
  18723. exports.default = void 0;
  18724. /**
  18725. * 注意:
  18726. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  18727. * module.exports = {
  18728. * transpileDependencies: ['uview-v2']
  18729. * }
  18730. */
  18731. var platform = 'none';
  18732. platform = 'vue2';
  18733. platform = 'weixin';
  18734. platform = 'mp';
  18735. var _default = platform;
  18736. exports.default = _default;
  18737. /***/ }),
  18738. /* 160 */
  18739. /*!*********************************************************************************************!*\
  18740. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/common/mixin.js ***!
  18741. \*********************************************************************************************/
  18742. /*! no static exports found */
  18743. /***/ (function(module, exports, __webpack_require__) {
  18744. "use strict";
  18745. Object.defineProperty(exports, "__esModule", {
  18746. value: true
  18747. });
  18748. exports.default = void 0;
  18749. var _default = {
  18750. data: function data() {
  18751. return {};
  18752. }
  18753. };
  18754. exports.default = _default;
  18755. /***/ }),
  18756. /* 161 */
  18757. /*!************************************************************************************************************************!*\
  18758. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/mixin/mpShare.js ***!
  18759. \************************************************************************************************************************/
  18760. /*! no static exports found */
  18761. /***/ (function(module, exports, __webpack_require__) {
  18762. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  18763. onLoad: function onLoad() {
  18764. // 设置默认的转发参数
  18765. uni.$u.mpShare = {
  18766. title: '',
  18767. // 默认为小程序名称
  18768. path: '',
  18769. // 默认为当前页面路径
  18770. imageUrl: '' // 默认为当前页面的截图
  18771. };
  18772. },
  18773. onShareAppMessage: function onShareAppMessage() {
  18774. return uni.$u.mpShare;
  18775. }
  18776. };
  18777. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18778. /***/ }),
  18779. /* 162 */
  18780. /*!***************************************************************************************************!*\
  18781. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/util/request/index.js ***!
  18782. \***************************************************************************************************/
  18783. /*! no static exports found */
  18784. /***/ (function(module, exports, __webpack_require__) {
  18785. /* WEBPACK VAR INJECTION */(function(uni) {// 初始化请求配置
  18786. uni.$u.http.setConfig(function (defaultConfig) {
  18787. /* defaultConfig 为默认全局配置 */
  18788. console.log(window._CONFIG, 'window._CONFIG');
  18789. defaultConfig.baseURL = window._CONFIG.APIHead; /* 根域名 */
  18790. return defaultConfig;
  18791. });
  18792. module.exports = function (vm) {
  18793. __webpack_require__(/*! ./requestInterceptors */ 163)(vm);
  18794. __webpack_require__(/*! ./responseInterceptors */ 164)(vm);
  18795. };
  18796. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18797. /***/ }),
  18798. /* 163 */
  18799. /*!*****************************************************************************************************************!*\
  18800. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/util/request/requestInterceptors.js ***!
  18801. \*****************************************************************************************************************/
  18802. /*! no static exports found */
  18803. /***/ (function(module, exports, __webpack_require__) {
  18804. "use strict";
  18805. /* WEBPACK VAR INJECTION */(function(uni) {
  18806. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18807. var _jsCookie = _interopRequireDefault(__webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module 'js-cookie'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())));
  18808. /**
  18809. * 请求拦截
  18810. * @param {Object} http
  18811. */
  18812. module.exports = function (vm) {
  18813. uni.$u.http.interceptors.request.use(function (config) {
  18814. // 可使用async await 做异步操作
  18815. // 初始化请求拦截器时,会执行此方法,此时data为undefined,赋予默认{}
  18816. config.data = config.data || {};
  18817. var YxToken = _jsCookie.default.get('congress');
  18818. if (YxToken) {
  18819. config.header.Authorization = "Bearer ".concat(YxToken);
  18820. }
  18821. // 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
  18822. // console.log(vm.$store.state);
  18823. return config;
  18824. }, function (config) {
  18825. return (
  18826. // 可使用async await 做异步操作
  18827. Promise.reject(config)
  18828. );
  18829. });
  18830. };
  18831. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18832. /***/ }),
  18833. /* 164 */
  18834. /*!******************************************************************************************************************!*\
  18835. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/util/request/responseInterceptors.js ***!
  18836. \******************************************************************************************************************/
  18837. /*! no static exports found */
  18838. /***/ (function(module, exports, __webpack_require__) {
  18839. /* WEBPACK VAR INJECTION */(function(uni) {/**
  18840. * 响应拦截
  18841. * @param {Object} http
  18842. */
  18843. module.exports = function (vm) {
  18844. uni.$u.http.interceptors.response.use(function (response) {
  18845. var _response$config;
  18846. console.log('response', response);
  18847. /* 对响应成功做点什么 可使用async await 做异步操作*/
  18848. var data = response.data;
  18849. if (response.statusCode == 401) {
  18850. var redirect = window.location.href;
  18851. window.location.href = "".concat(window._CONFIG.VUE_APP_BASE_URLS, "/account/#/login?redirect=").concat(redirect);
  18852. return Promise.reject(data);
  18853. }
  18854. // 自定义参数
  18855. var custom = (_response$config = response.config) === null || _response$config === void 0 ? void 0 : _response$config.custom;
  18856. if (response.statusCode !== 200) {
  18857. // 服务端返回的状态码不等于200,则reject()
  18858. // 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
  18859. if (custom.toast !== false) {
  18860. uni.$u.toast(data.errMsg);
  18861. }
  18862. // 如果需要catch返回,则进行reject
  18863. if (custom !== null && custom !== void 0 && custom.catch) {
  18864. return Promise.reject(data);
  18865. } else {
  18866. // 否则返回一个pending中的promise
  18867. return new Promise(function () {});
  18868. }
  18869. }
  18870. if (data.errMsg) {
  18871. uni.$u.toast(data.errMsg);
  18872. }
  18873. return data;
  18874. }, function (response) {
  18875. /* 对响应错误做点什么 (statusCode !== 200)*/
  18876. if (response.statusCode == 401) {
  18877. var redirect = window.location.href;
  18878. window.location.href = "".concat(window._CONFIG.VUE_APP_BASE_URLS, "/account/#/login?redirect=").concat(redirect);
  18879. return Promise.reject(response);
  18880. }
  18881. if (response.data.message) {
  18882. uni.$u.toast(response.data.message);
  18883. } else if (response.data.errMsg) {
  18884. uni.$u.toast(response.data.errMsg);
  18885. } else {
  18886. uni.$u.toast('网络错误');
  18887. }
  18888. return Promise.reject(response);
  18889. });
  18890. };
  18891. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18892. /***/ }),
  18893. /* 165 */,
  18894. /* 166 */,
  18895. /* 167 */,
  18896. /* 168 */,
  18897. /* 169 */,
  18898. /* 170 */,
  18899. /* 171 */
  18900. /*!*******************************************************************************************!*\
  18901. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/common/api.js ***!
  18902. \*******************************************************************************************/
  18903. /*! no static exports found */
  18904. /***/ (function(module, exports, __webpack_require__) {
  18905. "use strict";
  18906. /* WEBPACK VAR INJECTION */(function(uni) {
  18907. Object.defineProperty(exports, "__esModule", {
  18908. value: true
  18909. });
  18910. exports.tryOfImgApi = exports.postTryBackImgApi = exports.getUserInfoApi = exports.getLanguageListApi = exports.getFuncListApi = exports.getBusinessListApi = exports.editUpvoteApi = exports.editOpenStatusApi = exports.editCollectApi = exports.delFuncApi = void 0;
  18911. var http = uni.$u.http;
  18912. var tool = '/v1/tenant/tools';
  18913. var func = '/v1/tenant/function';
  18914. var auth = '/v1/tenant/auth';
  18915. // 获取函数列表
  18916. var getFuncListApi = function getFuncListApi() {
  18917. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18918. return http.get(tool + '/list', {
  18919. params: params
  18920. });
  18921. };
  18922. // 获取行业分类列表
  18923. exports.getFuncListApi = getFuncListApi;
  18924. var getBusinessListApi = function getBusinessListApi() {
  18925. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18926. return http.get(tool + '/type/list', {
  18927. params: params
  18928. });
  18929. };
  18930. // 收藏/取消
  18931. exports.getBusinessListApi = getBusinessListApi;
  18932. var editCollectApi = function editCollectApi() {
  18933. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18934. return http.post(tool + '/collect', data);
  18935. };
  18936. // 点赞/取消
  18937. exports.editCollectApi = editCollectApi;
  18938. var editUpvoteApi = function editUpvoteApi() {
  18939. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18940. return http.post(tool + '/upvote', data);
  18941. };
  18942. // 申请开放
  18943. exports.editUpvoteApi = editUpvoteApi;
  18944. var editOpenStatusApi = function editOpenStatusApi() {
  18945. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18946. return http.put(tool + '/apply/' + data.id, data);
  18947. };
  18948. // 获取代码分类列表
  18949. exports.editOpenStatusApi = editOpenStatusApi;
  18950. var getLanguageListApi = function getLanguageListApi() {
  18951. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18952. return http.get(tool + '/language/list', {
  18953. params: params
  18954. });
  18955. };
  18956. // 函数删除
  18957. exports.getLanguageListApi = getLanguageListApi;
  18958. var delFuncApi = function delFuncApi() {
  18959. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18960. return http.delete(func + '/del/' + data.id, data);
  18961. };
  18962. // 用户信息
  18963. exports.delFuncApi = delFuncApi;
  18964. var getUserInfoApi = function getUserInfoApi() {
  18965. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18966. return http.get('https://91iam-inst.9n1m.com/iam/api/users-service/users/currentUser', params);
  18967. };
  18968. //试用 上传图片
  18969. exports.getUserInfoApi = getUserInfoApi;
  18970. var tryOfImgApi = function tryOfImgApi() {
  18971. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18972. return http.post(tool + '/upvote', data, {
  18973. header: {
  18974. 'Content-Type': 'multipart/form-data'
  18975. },
  18976. responseType: 'blob'
  18977. });
  18978. };
  18979. //试用 post 返回图片流
  18980. exports.tryOfImgApi = tryOfImgApi;
  18981. var postTryBackImgApi = function postTryBackImgApi() {
  18982. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  18983. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18984. return http.post(url, data, {
  18985. responseType: 'arraybuffer'
  18986. });
  18987. };
  18988. exports.postTryBackImgApi = postTryBackImgApi;
  18989. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18990. /***/ }),
  18991. /* 172 */,
  18992. /* 173 */,
  18993. /* 174 */,
  18994. /* 175 */,
  18995. /* 176 */,
  18996. /* 177 */,
  18997. /* 178 */,
  18998. /* 179 */,
  18999. /* 180 */,
  19000. /* 181 */,
  19001. /* 182 */,
  19002. /* 183 */,
  19003. /* 184 */,
  19004. /* 185 */,
  19005. /* 186 */,
  19006. /* 187 */,
  19007. /* 188 */,
  19008. /* 189 */,
  19009. /* 190 */,
  19010. /* 191 */,
  19011. /* 192 */,
  19012. /* 193 */,
  19013. /* 194 */
  19014. /*!*****************************************************************************************************************************!*\
  19015. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-list/props.js ***!
  19016. \*****************************************************************************************************************************/
  19017. /*! no static exports found */
  19018. /***/ (function(module, exports, __webpack_require__) {
  19019. "use strict";
  19020. /* WEBPACK VAR INJECTION */(function(uni) {
  19021. Object.defineProperty(exports, "__esModule", {
  19022. value: true
  19023. });
  19024. exports.default = void 0;
  19025. var _default = {
  19026. props: {
  19027. // 控制是否出现滚动条,仅nvue有效
  19028. showScrollbar: {
  19029. type: Boolean,
  19030. default: uni.$u.props.list.showScrollbar
  19031. },
  19032. // 距底部多少时触发scrolltolower事件
  19033. lowerThreshold: {
  19034. type: [String, Number],
  19035. default: uni.$u.props.list.lowerThreshold
  19036. },
  19037. // 距顶部多少时触发scrolltoupper事件,非nvue有效
  19038. upperThreshold: {
  19039. type: [String, Number],
  19040. default: uni.$u.props.list.upperThreshold
  19041. },
  19042. // 设置竖向滚动条位置
  19043. scrollTop: {
  19044. type: [String, Number],
  19045. default: uni.$u.props.list.scrollTop
  19046. },
  19047. // 控制 onscroll 事件触发的频率,仅nvue有效
  19048. offsetAccuracy: {
  19049. type: [String, Number],
  19050. default: uni.$u.props.list.offsetAccuracy
  19051. },
  19052. // 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
  19053. enableFlex: {
  19054. type: Boolean,
  19055. default: uni.$u.props.list.enableFlex
  19056. },
  19057. // 是否按分页模式显示List,默认值false
  19058. pagingEnabled: {
  19059. type: Boolean,
  19060. default: uni.$u.props.list.pagingEnabled
  19061. },
  19062. // 是否允许List滚动
  19063. scrollable: {
  19064. type: Boolean,
  19065. default: uni.$u.props.list.scrollable
  19066. },
  19067. // 值应为某子元素id(id不能以数字开头)
  19068. scrollIntoView: {
  19069. type: String,
  19070. default: uni.$u.props.list.scrollIntoView
  19071. },
  19072. // 在设置滚动条位置时使用动画过渡
  19073. scrollWithAnimation: {
  19074. type: Boolean,
  19075. default: uni.$u.props.list.scrollWithAnimation
  19076. },
  19077. // iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
  19078. enableBackToTop: {
  19079. type: Boolean,
  19080. default: uni.$u.props.list.enableBackToTop
  19081. },
  19082. // 列表的高度
  19083. height: {
  19084. type: [String, Number],
  19085. default: uni.$u.props.list.height
  19086. },
  19087. // 列表宽度
  19088. width: {
  19089. type: [String, Number],
  19090. default: uni.$u.props.list.width
  19091. },
  19092. // 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
  19093. preLoadScreen: {
  19094. type: [String, Number],
  19095. default: uni.$u.props.list.preLoadScreen
  19096. }
  19097. // vue下,是否开启虚拟列表
  19098. }
  19099. };
  19100. exports.default = _default;
  19101. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19102. /***/ }),
  19103. /* 195 */,
  19104. /* 196 */,
  19105. /* 197 */,
  19106. /* 198 */,
  19107. /* 199 */,
  19108. /* 200 */,
  19109. /* 201 */,
  19110. /* 202 */
  19111. /*!**********************************************************************************************************************************!*\
  19112. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-list-item/props.js ***!
  19113. \**********************************************************************************************************************************/
  19114. /*! no static exports found */
  19115. /***/ (function(module, exports, __webpack_require__) {
  19116. "use strict";
  19117. /* WEBPACK VAR INJECTION */(function(uni) {
  19118. Object.defineProperty(exports, "__esModule", {
  19119. value: true
  19120. });
  19121. exports.default = void 0;
  19122. var _default = {
  19123. props: {
  19124. // 用于滚动到指定item
  19125. anchor: {
  19126. type: [String, Number],
  19127. default: uni.$u.props.listItem.anchor
  19128. }
  19129. }
  19130. };
  19131. exports.default = _default;
  19132. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19133. /***/ }),
  19134. /* 203 */,
  19135. /* 204 */,
  19136. /* 205 */,
  19137. /* 206 */,
  19138. /* 207 */,
  19139. /* 208 */,
  19140. /* 209 */,
  19141. /* 210 */
  19142. /*!*****************************************************************************************************************************!*\
  19143. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-icon/icons.js ***!
  19144. \*****************************************************************************************************************************/
  19145. /*! no static exports found */
  19146. /***/ (function(module, exports, __webpack_require__) {
  19147. "use strict";
  19148. Object.defineProperty(exports, "__esModule", {
  19149. value: true
  19150. });
  19151. exports.default = void 0;
  19152. var _default = {
  19153. 'uicon-level': "\uE693",
  19154. 'uicon-column-line': "\uE68E",
  19155. 'uicon-checkbox-mark': "\uE807",
  19156. 'uicon-folder': "\uE7F5",
  19157. 'uicon-movie': "\uE7F6",
  19158. 'uicon-star-fill': "\uE669",
  19159. 'uicon-star': "\uE65F",
  19160. 'uicon-phone-fill': "\uE64F",
  19161. 'uicon-phone': "\uE622",
  19162. 'uicon-apple-fill': "\uE881",
  19163. 'uicon-chrome-circle-fill': "\uE885",
  19164. 'uicon-backspace': "\uE67B",
  19165. 'uicon-attach': "\uE632",
  19166. 'uicon-cut': "\uE948",
  19167. 'uicon-empty-car': "\uE602",
  19168. 'uicon-empty-coupon': "\uE682",
  19169. 'uicon-empty-address': "\uE646",
  19170. 'uicon-empty-favor': "\uE67C",
  19171. 'uicon-empty-permission': "\uE686",
  19172. 'uicon-empty-news': "\uE687",
  19173. 'uicon-empty-search': "\uE664",
  19174. 'uicon-github-circle-fill': "\uE887",
  19175. 'uicon-rmb': "\uE608",
  19176. 'uicon-person-delete-fill': "\uE66A",
  19177. 'uicon-reload': "\uE788",
  19178. 'uicon-order': "\uE68F",
  19179. 'uicon-server-man': "\uE6BC",
  19180. 'uicon-search': "\uE62A",
  19181. 'uicon-fingerprint': "\uE955",
  19182. 'uicon-more-dot-fill': "\uE630",
  19183. 'uicon-scan': "\uE662",
  19184. 'uicon-share-square': "\uE60B",
  19185. 'uicon-map': "\uE61D",
  19186. 'uicon-map-fill': "\uE64E",
  19187. 'uicon-tags': "\uE629",
  19188. 'uicon-tags-fill': "\uE651",
  19189. 'uicon-bookmark-fill': "\uE63B",
  19190. 'uicon-bookmark': "\uE60A",
  19191. 'uicon-eye': "\uE613",
  19192. 'uicon-eye-fill': "\uE641",
  19193. 'uicon-mic': "\uE64A",
  19194. 'uicon-mic-off': "\uE649",
  19195. 'uicon-calendar': "\uE66E",
  19196. 'uicon-calendar-fill': "\uE634",
  19197. 'uicon-trash': "\uE623",
  19198. 'uicon-trash-fill': "\uE658",
  19199. 'uicon-play-left': "\uE66D",
  19200. 'uicon-play-right': "\uE610",
  19201. 'uicon-minus': "\uE618",
  19202. 'uicon-plus': "\uE62D",
  19203. 'uicon-info': "\uE653",
  19204. 'uicon-info-circle': "\uE7D2",
  19205. 'uicon-info-circle-fill': "\uE64B",
  19206. 'uicon-question': "\uE715",
  19207. 'uicon-error': "\uE6D3",
  19208. 'uicon-close': "\uE685",
  19209. 'uicon-checkmark': "\uE6A8",
  19210. 'uicon-android-circle-fill': "\uE67E",
  19211. 'uicon-android-fill': "\uE67D",
  19212. 'uicon-ie': "\uE87B",
  19213. 'uicon-IE-circle-fill': "\uE889",
  19214. 'uicon-google': "\uE87A",
  19215. 'uicon-google-circle-fill': "\uE88A",
  19216. 'uicon-setting-fill': "\uE872",
  19217. 'uicon-setting': "\uE61F",
  19218. 'uicon-minus-square-fill': "\uE855",
  19219. 'uicon-plus-square-fill': "\uE856",
  19220. 'uicon-heart': "\uE7DF",
  19221. 'uicon-heart-fill': "\uE851",
  19222. 'uicon-camera': "\uE7D7",
  19223. 'uicon-camera-fill': "\uE870",
  19224. 'uicon-more-circle': "\uE63E",
  19225. 'uicon-more-circle-fill': "\uE645",
  19226. 'uicon-chat': "\uE620",
  19227. 'uicon-chat-fill': "\uE61E",
  19228. 'uicon-bag-fill': "\uE617",
  19229. 'uicon-bag': "\uE619",
  19230. 'uicon-error-circle-fill': "\uE62C",
  19231. 'uicon-error-circle': "\uE624",
  19232. 'uicon-close-circle': "\uE63F",
  19233. 'uicon-close-circle-fill': "\uE637",
  19234. 'uicon-checkmark-circle': "\uE63D",
  19235. 'uicon-checkmark-circle-fill': "\uE635",
  19236. 'uicon-question-circle-fill': "\uE666",
  19237. 'uicon-question-circle': "\uE625",
  19238. 'uicon-share': "\uE631",
  19239. 'uicon-share-fill': "\uE65E",
  19240. 'uicon-shopping-cart': "\uE621",
  19241. 'uicon-shopping-cart-fill': "\uE65D",
  19242. 'uicon-bell': "\uE609",
  19243. 'uicon-bell-fill': "\uE640",
  19244. 'uicon-list': "\uE650",
  19245. 'uicon-list-dot': "\uE616",
  19246. 'uicon-zhihu': "\uE6BA",
  19247. 'uicon-zhihu-circle-fill': "\uE709",
  19248. 'uicon-zhifubao': "\uE6B9",
  19249. 'uicon-zhifubao-circle-fill': "\uE6B8",
  19250. 'uicon-weixin-circle-fill': "\uE6B1",
  19251. 'uicon-weixin-fill': "\uE6B2",
  19252. 'uicon-twitter-circle-fill': "\uE6AB",
  19253. 'uicon-twitter': "\uE6AA",
  19254. 'uicon-taobao-circle-fill': "\uE6A7",
  19255. 'uicon-taobao': "\uE6A6",
  19256. 'uicon-weibo-circle-fill': "\uE6A5",
  19257. 'uicon-weibo': "\uE6A4",
  19258. 'uicon-qq-fill': "\uE6A1",
  19259. 'uicon-qq-circle-fill': "\uE6A0",
  19260. 'uicon-moments-circel-fill': "\uE69A",
  19261. 'uicon-moments': "\uE69B",
  19262. 'uicon-qzone': "\uE695",
  19263. 'uicon-qzone-circle-fill': "\uE696",
  19264. 'uicon-baidu-circle-fill': "\uE680",
  19265. 'uicon-baidu': "\uE681",
  19266. 'uicon-facebook-circle-fill': "\uE68A",
  19267. 'uicon-facebook': "\uE689",
  19268. 'uicon-car': "\uE60C",
  19269. 'uicon-car-fill': "\uE636",
  19270. 'uicon-warning-fill': "\uE64D",
  19271. 'uicon-warning': "\uE694",
  19272. 'uicon-clock-fill': "\uE638",
  19273. 'uicon-clock': "\uE60F",
  19274. 'uicon-edit-pen': "\uE612",
  19275. 'uicon-edit-pen-fill': "\uE66B",
  19276. 'uicon-email': "\uE611",
  19277. 'uicon-email-fill': "\uE642",
  19278. 'uicon-minus-circle': "\uE61B",
  19279. 'uicon-minus-circle-fill': "\uE652",
  19280. 'uicon-plus-circle': "\uE62E",
  19281. 'uicon-plus-circle-fill': "\uE661",
  19282. 'uicon-file-text': "\uE663",
  19283. 'uicon-file-text-fill': "\uE665",
  19284. 'uicon-pushpin': "\uE7E3",
  19285. 'uicon-pushpin-fill': "\uE86E",
  19286. 'uicon-grid': "\uE673",
  19287. 'uicon-grid-fill': "\uE678",
  19288. 'uicon-play-circle': "\uE647",
  19289. 'uicon-play-circle-fill': "\uE655",
  19290. 'uicon-pause-circle-fill': "\uE654",
  19291. 'uicon-pause': "\uE8FA",
  19292. 'uicon-pause-circle': "\uE643",
  19293. 'uicon-eye-off': "\uE648",
  19294. 'uicon-eye-off-outline': "\uE62B",
  19295. 'uicon-gift-fill': "\uE65C",
  19296. 'uicon-gift': "\uE65B",
  19297. 'uicon-rmb-circle-fill': "\uE657",
  19298. 'uicon-rmb-circle': "\uE677",
  19299. 'uicon-kefu-ermai': "\uE656",
  19300. 'uicon-server-fill': "\uE751",
  19301. 'uicon-coupon-fill': "\uE8C4",
  19302. 'uicon-coupon': "\uE8AE",
  19303. 'uicon-integral': "\uE704",
  19304. 'uicon-integral-fill': "\uE703",
  19305. 'uicon-home-fill': "\uE964",
  19306. 'uicon-home': "\uE965",
  19307. 'uicon-hourglass-half-fill': "\uE966",
  19308. 'uicon-hourglass': "\uE967",
  19309. 'uicon-account': "\uE628",
  19310. 'uicon-plus-people-fill': "\uE626",
  19311. 'uicon-minus-people-fill': "\uE615",
  19312. 'uicon-account-fill': "\uE614",
  19313. 'uicon-thumb-down-fill': "\uE726",
  19314. 'uicon-thumb-down': "\uE727",
  19315. 'uicon-thumb-up': "\uE733",
  19316. 'uicon-thumb-up-fill': "\uE72F",
  19317. 'uicon-lock-fill': "\uE979",
  19318. 'uicon-lock-open': "\uE973",
  19319. 'uicon-lock-opened-fill': "\uE974",
  19320. 'uicon-lock': "\uE97A",
  19321. 'uicon-red-packet-fill': "\uE690",
  19322. 'uicon-photo-fill': "\uE98B",
  19323. 'uicon-photo': "\uE98D",
  19324. 'uicon-volume-off-fill': "\uE659",
  19325. 'uicon-volume-off': "\uE644",
  19326. 'uicon-volume-fill': "\uE670",
  19327. 'uicon-volume': "\uE633",
  19328. 'uicon-red-packet': "\uE691",
  19329. 'uicon-download': "\uE63C",
  19330. 'uicon-arrow-up-fill': "\uE6B0",
  19331. 'uicon-arrow-down-fill': "\uE600",
  19332. 'uicon-play-left-fill': "\uE675",
  19333. 'uicon-play-right-fill': "\uE676",
  19334. 'uicon-rewind-left-fill': "\uE679",
  19335. 'uicon-rewind-right-fill': "\uE67A",
  19336. 'uicon-arrow-downward': "\uE604",
  19337. 'uicon-arrow-leftward': "\uE601",
  19338. 'uicon-arrow-rightward': "\uE603",
  19339. 'uicon-arrow-upward': "\uE607",
  19340. 'uicon-arrow-down': "\uE60D",
  19341. 'uicon-arrow-right': "\uE605",
  19342. 'uicon-arrow-left': "\uE60E",
  19343. 'uicon-arrow-up': "\uE606",
  19344. 'uicon-skip-back-left': "\uE674",
  19345. 'uicon-skip-forward-right': "\uE672",
  19346. 'uicon-rewind-right': "\uE66F",
  19347. 'uicon-rewind-left': "\uE671",
  19348. 'uicon-arrow-right-double': "\uE68D",
  19349. 'uicon-arrow-left-double': "\uE68C",
  19350. 'uicon-wifi-off': "\uE668",
  19351. 'uicon-wifi': "\uE667",
  19352. 'uicon-empty-data': "\uE62F",
  19353. 'uicon-empty-history': "\uE684",
  19354. 'uicon-empty-list': "\uE68B",
  19355. 'uicon-empty-page': "\uE627",
  19356. 'uicon-empty-order': "\uE639",
  19357. 'uicon-man': "\uE697",
  19358. 'uicon-woman': "\uE69C",
  19359. 'uicon-man-add': "\uE61C",
  19360. 'uicon-man-add-fill': "\uE64C",
  19361. 'uicon-man-delete': "\uE61A",
  19362. 'uicon-man-delete-fill': "\uE66A",
  19363. 'uicon-zh': "\uE70A",
  19364. 'uicon-en': "\uE692"
  19365. };
  19366. exports.default = _default;
  19367. /***/ }),
  19368. /* 211 */
  19369. /*!*****************************************************************************************************************************!*\
  19370. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-icon/props.js ***!
  19371. \*****************************************************************************************************************************/
  19372. /*! no static exports found */
  19373. /***/ (function(module, exports, __webpack_require__) {
  19374. "use strict";
  19375. /* WEBPACK VAR INJECTION */(function(uni) {
  19376. Object.defineProperty(exports, "__esModule", {
  19377. value: true
  19378. });
  19379. exports.default = void 0;
  19380. var _default = {
  19381. props: {
  19382. // 图标类名
  19383. name: {
  19384. type: String,
  19385. default: uni.$u.props.icon.name
  19386. },
  19387. // 图标颜色,可接受主题色
  19388. color: {
  19389. type: String,
  19390. default: uni.$u.props.icon.color
  19391. },
  19392. // 字体大小,单位px
  19393. size: {
  19394. type: [String, Number],
  19395. default: uni.$u.props.icon.size
  19396. },
  19397. // 是否显示粗体
  19398. bold: {
  19399. type: Boolean,
  19400. default: uni.$u.props.icon.bold
  19401. },
  19402. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  19403. index: {
  19404. type: [String, Number],
  19405. default: uni.$u.props.icon.index
  19406. },
  19407. // 触摸图标时的类名
  19408. hoverClass: {
  19409. type: String,
  19410. default: uni.$u.props.icon.hoverClass
  19411. },
  19412. // 自定义扩展前缀,方便用户扩展自己的图标库
  19413. customPrefix: {
  19414. type: String,
  19415. default: uni.$u.props.icon.customPrefix
  19416. },
  19417. // 图标右边或者下面的文字
  19418. label: {
  19419. type: [String, Number],
  19420. default: uni.$u.props.icon.label
  19421. },
  19422. // label的位置,只能右边或者下边
  19423. labelPos: {
  19424. type: String,
  19425. default: uni.$u.props.icon.labelPos
  19426. },
  19427. // label的大小
  19428. labelSize: {
  19429. type: [String, Number],
  19430. default: uni.$u.props.icon.labelSize
  19431. },
  19432. // label的颜色
  19433. labelColor: {
  19434. type: String,
  19435. default: uni.$u.props.icon.labelColor
  19436. },
  19437. // label与图标的距离
  19438. space: {
  19439. type: [String, Number],
  19440. default: uni.$u.props.icon.space
  19441. },
  19442. // 图片的mode
  19443. imgMode: {
  19444. type: String,
  19445. default: uni.$u.props.icon.imgMode
  19446. },
  19447. // 用于显示图片小图标时,图片的宽度
  19448. width: {
  19449. type: [String, Number],
  19450. default: uni.$u.props.icon.width
  19451. },
  19452. // 用于显示图片小图标时,图片的高度
  19453. height: {
  19454. type: [String, Number],
  19455. default: uni.$u.props.icon.height
  19456. },
  19457. // 用于解决某些情况下,让图标垂直居中的用途
  19458. top: {
  19459. type: [String, Number],
  19460. default: uni.$u.props.icon.top
  19461. },
  19462. // 是否阻止事件传播
  19463. stop: {
  19464. type: Boolean,
  19465. default: uni.$u.props.icon.stop
  19466. }
  19467. }
  19468. };
  19469. exports.default = _default;
  19470. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19471. /***/ }),
  19472. /* 212 */,
  19473. /* 213 */,
  19474. /* 214 */,
  19475. /* 215 */,
  19476. /* 216 */,
  19477. /* 217 */,
  19478. /* 218 */,
  19479. /* 219 */
  19480. /*!******************************************************************************************************************************!*\
  19481. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-image/props.js ***!
  19482. \******************************************************************************************************************************/
  19483. /*! no static exports found */
  19484. /***/ (function(module, exports, __webpack_require__) {
  19485. "use strict";
  19486. /* WEBPACK VAR INJECTION */(function(uni) {
  19487. Object.defineProperty(exports, "__esModule", {
  19488. value: true
  19489. });
  19490. exports.default = void 0;
  19491. var _default = {
  19492. props: {
  19493. // 图片地址
  19494. src: {
  19495. type: String,
  19496. default: uni.$u.props.image.src
  19497. },
  19498. // 裁剪模式
  19499. mode: {
  19500. type: String,
  19501. default: uni.$u.props.image.mode
  19502. },
  19503. // 宽度,单位任意
  19504. width: {
  19505. type: [String, Number],
  19506. default: uni.$u.props.image.width
  19507. },
  19508. // 高度,单位任意
  19509. height: {
  19510. type: [String, Number],
  19511. default: uni.$u.props.image.height
  19512. },
  19513. // 图片形状,circle-圆形,square-方形
  19514. shape: {
  19515. type: String,
  19516. default: uni.$u.props.image.shape
  19517. },
  19518. // 圆角,单位任意
  19519. radius: {
  19520. type: [String, Number],
  19521. default: uni.$u.props.image.radius
  19522. },
  19523. // 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
  19524. lazyLoad: {
  19525. type: Boolean,
  19526. default: uni.$u.props.image.lazyLoad
  19527. },
  19528. // 开启长按图片显示识别微信小程序码菜单
  19529. showMenuByLongpress: {
  19530. type: Boolean,
  19531. default: uni.$u.props.image.showMenuByLongpress
  19532. },
  19533. // 加载中的图标,或者小图片
  19534. loadingIcon: {
  19535. type: String,
  19536. default: uni.$u.props.image.loadingIcon
  19537. },
  19538. // 加载失败的图标,或者小图片
  19539. errorIcon: {
  19540. type: String,
  19541. default: uni.$u.props.image.errorIcon
  19542. },
  19543. // 是否显示加载中的图标或者自定义的slot
  19544. showLoading: {
  19545. type: Boolean,
  19546. default: uni.$u.props.image.showLoading
  19547. },
  19548. // 是否显示加载错误的图标或者自定义的slot
  19549. showError: {
  19550. type: Boolean,
  19551. default: uni.$u.props.image.showError
  19552. },
  19553. // 是否需要淡入效果
  19554. fade: {
  19555. type: Boolean,
  19556. default: uni.$u.props.image.fade
  19557. },
  19558. // 只支持网络资源,只对微信小程序有效
  19559. webp: {
  19560. type: Boolean,
  19561. default: uni.$u.props.image.webp
  19562. },
  19563. // 过渡时间,单位ms
  19564. duration: {
  19565. type: [String, Number],
  19566. default: uni.$u.props.image.duration
  19567. },
  19568. // 背景颜色,用于深色页面加载图片时,为了和背景色融合
  19569. bgColor: {
  19570. type: String,
  19571. default: uni.$u.props.image.bgColor
  19572. }
  19573. }
  19574. };
  19575. exports.default = _default;
  19576. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19577. /***/ }),
  19578. /* 220 */,
  19579. /* 221 */,
  19580. /* 222 */,
  19581. /* 223 */,
  19582. /* 224 */,
  19583. /* 225 */
  19584. /*!*****************************************************************************************************************************!*\
  19585. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-text/props.js ***!
  19586. \*****************************************************************************************************************************/
  19587. /*! no static exports found */
  19588. /***/ (function(module, exports, __webpack_require__) {
  19589. "use strict";
  19590. /* WEBPACK VAR INJECTION */(function(uni) {
  19591. Object.defineProperty(exports, "__esModule", {
  19592. value: true
  19593. });
  19594. exports.default = void 0;
  19595. var _default = {
  19596. props: {
  19597. // 主题颜色
  19598. type: {
  19599. type: String,
  19600. default: uni.$u.props.text.type
  19601. },
  19602. // 是否显示
  19603. show: {
  19604. type: Boolean,
  19605. default: uni.$u.props.text.show
  19606. },
  19607. // 显示的值
  19608. text: {
  19609. type: [String, Number],
  19610. default: uni.$u.props.text.text
  19611. },
  19612. // 前置图标
  19613. prefixIcon: {
  19614. type: String,
  19615. default: uni.$u.props.text.prefixIcon
  19616. },
  19617. // 后置图标
  19618. suffixIcon: {
  19619. type: String,
  19620. default: uni.$u.props.text.suffixIcon
  19621. },
  19622. // 文本处理的匹配模式
  19623. // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
  19624. mode: {
  19625. type: String,
  19626. default: uni.$u.props.text.mode
  19627. },
  19628. // mode=link下,配置的链接
  19629. href: {
  19630. type: String,
  19631. default: uni.$u.props.text.href
  19632. },
  19633. // 格式化规则
  19634. format: {
  19635. type: [String, Function],
  19636. default: uni.$u.props.text.format
  19637. },
  19638. // mode=phone时,点击文本是否拨打电话
  19639. call: {
  19640. type: Boolean,
  19641. default: uni.$u.props.text.call
  19642. },
  19643. // 小程序的打开方式
  19644. openType: {
  19645. type: String,
  19646. default: uni.$u.props.text.openType
  19647. },
  19648. // 是否粗体,默认normal
  19649. bold: {
  19650. type: Boolean,
  19651. default: uni.$u.props.text.bold
  19652. },
  19653. // 是否块状
  19654. block: {
  19655. type: Boolean,
  19656. default: uni.$u.props.text.block
  19657. },
  19658. // 文本显示的行数,如果设置,超出此行数,将会显示省略号
  19659. lines: {
  19660. type: [String, Number],
  19661. default: uni.$u.props.text.lines
  19662. },
  19663. // 文本颜色
  19664. color: {
  19665. type: String,
  19666. default: uni.$u.props.text.color
  19667. },
  19668. // 字体大小
  19669. size: {
  19670. type: [String, Number],
  19671. default: uni.$u.props.text.size
  19672. },
  19673. // 图标的样式
  19674. iconStyle: {
  19675. type: [Object, String],
  19676. default: uni.$u.props.text.iconStyle
  19677. },
  19678. // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
  19679. decoration: {
  19680. type: String,
  19681. default: uni.$u.props.text.decoration
  19682. },
  19683. // 外边距,对象、字符串,数值形式均可
  19684. margin: {
  19685. type: [Object, String, Number],
  19686. default: uni.$u.props.text.margin
  19687. },
  19688. // 文本行高
  19689. lineHeight: {
  19690. type: [String, Number],
  19691. default: uni.$u.props.text.lineHeight
  19692. },
  19693. // 文本对齐方式,可选值left|center|right
  19694. align: {
  19695. type: String,
  19696. default: uni.$u.props.text.align
  19697. },
  19698. // 文字换行,可选值break-word|normal|anywhere
  19699. wordWrap: {
  19700. type: String,
  19701. default: uni.$u.props.text.wordWrap
  19702. }
  19703. }
  19704. };
  19705. exports.default = _default;
  19706. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19707. /***/ }),
  19708. /* 226 */,
  19709. /* 227 */,
  19710. /* 228 */,
  19711. /* 229 */,
  19712. /* 230 */,
  19713. /* 231 */
  19714. /*!*******************************************************************************************************************************!*\
  19715. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-picker/props.js ***!
  19716. \*******************************************************************************************************************************/
  19717. /*! no static exports found */
  19718. /***/ (function(module, exports, __webpack_require__) {
  19719. "use strict";
  19720. /* WEBPACK VAR INJECTION */(function(uni) {
  19721. Object.defineProperty(exports, "__esModule", {
  19722. value: true
  19723. });
  19724. exports.default = void 0;
  19725. var _default = {
  19726. props: {
  19727. // 是否展示picker弹窗
  19728. show: {
  19729. type: Boolean,
  19730. default: uni.$u.props.picker.show
  19731. },
  19732. // 是否展示顶部的操作栏
  19733. showToolbar: {
  19734. type: Boolean,
  19735. default: uni.$u.props.picker.showToolbar
  19736. },
  19737. // 顶部标题
  19738. title: {
  19739. type: String,
  19740. default: uni.$u.props.picker.title
  19741. },
  19742. // 对象数组,设置每一列的数据
  19743. columns: {
  19744. type: Array,
  19745. default: uni.$u.props.picker.columns
  19746. },
  19747. // 是否显示加载中状态
  19748. loading: {
  19749. type: Boolean,
  19750. default: uni.$u.props.picker.loading
  19751. },
  19752. // 各列中,单个选项的高度
  19753. itemHeight: {
  19754. type: [String, Number],
  19755. default: uni.$u.props.picker.itemHeight
  19756. },
  19757. // 取消按钮的文字
  19758. cancelText: {
  19759. type: String,
  19760. default: uni.$u.props.picker.cancelText
  19761. },
  19762. // 确认按钮的文字
  19763. confirmText: {
  19764. type: String,
  19765. default: uni.$u.props.picker.confirmText
  19766. },
  19767. // 取消按钮的颜色
  19768. cancelColor: {
  19769. type: String,
  19770. default: uni.$u.props.picker.cancelColor
  19771. },
  19772. // 确认按钮的颜色
  19773. confirmColor: {
  19774. type: String,
  19775. default: uni.$u.props.picker.confirmColor
  19776. },
  19777. // 每列中可见选项的数量
  19778. visibleItemCount: {
  19779. type: [String, Number],
  19780. default: uni.$u.props.picker.visibleItemCount
  19781. },
  19782. // 选项对象中,需要展示的属性键名
  19783. keyName: {
  19784. type: String,
  19785. default: uni.$u.props.picker.keyName
  19786. },
  19787. // 是否允许点击遮罩关闭选择器
  19788. closeOnClickOverlay: {
  19789. type: Boolean,
  19790. default: uni.$u.props.picker.closeOnClickOverlay
  19791. },
  19792. // 各列的默认索引
  19793. defaultIndex: {
  19794. type: Array,
  19795. default: uni.$u.props.picker.defaultIndex
  19796. },
  19797. // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
  19798. immediateChange: {
  19799. type: Boolean,
  19800. default: uni.$u.props.picker.immediateChange
  19801. }
  19802. }
  19803. };
  19804. exports.default = _default;
  19805. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19806. /***/ }),
  19807. /* 232 */,
  19808. /* 233 */,
  19809. /* 234 */,
  19810. /* 235 */,
  19811. /* 236 */,
  19812. /* 237 */,
  19813. /* 238 */,
  19814. /* 239 */
  19815. /*!*****************************************************************************************************************************!*\
  19816. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-tabs/props.js ***!
  19817. \*****************************************************************************************************************************/
  19818. /*! no static exports found */
  19819. /***/ (function(module, exports, __webpack_require__) {
  19820. "use strict";
  19821. /* WEBPACK VAR INJECTION */(function(uni) {
  19822. Object.defineProperty(exports, "__esModule", {
  19823. value: true
  19824. });
  19825. exports.default = void 0;
  19826. var _default = {
  19827. props: {
  19828. // 滑块的移动过渡时间,单位ms
  19829. duration: {
  19830. type: Number,
  19831. default: uni.$u.props.tabs.duration
  19832. },
  19833. // tabs标签数组
  19834. list: {
  19835. type: Array,
  19836. default: uni.$u.props.tabs.list
  19837. },
  19838. // 滑块颜色
  19839. lineColor: {
  19840. type: String,
  19841. default: uni.$u.props.tabs.lineColor
  19842. },
  19843. // 菜单选择中时的样式
  19844. activeStyle: {
  19845. type: [String, Object],
  19846. default: uni.$u.props.tabs.activeStyle
  19847. },
  19848. // 菜单非选中时的样式
  19849. inactiveStyle: {
  19850. type: [String, Object],
  19851. default: uni.$u.props.tabs.inactiveStyle
  19852. },
  19853. // 滑块长度
  19854. lineWidth: {
  19855. type: [String, Number],
  19856. default: uni.$u.props.tabs.lineWidth
  19857. },
  19858. // 滑块高度
  19859. lineHeight: {
  19860. type: [String, Number],
  19861. default: uni.$u.props.tabs.lineHeight
  19862. },
  19863. // 滑块背景显示大小,当滑块背景设置为图片时使用
  19864. lineBgSize: {
  19865. type: String,
  19866. default: uni.$u.props.tabs.lineBgSize
  19867. },
  19868. // 菜单item的样式
  19869. itemStyle: {
  19870. type: [String, Object],
  19871. default: uni.$u.props.tabs.itemStyle
  19872. },
  19873. // 菜单是否可滚动
  19874. scrollable: {
  19875. type: Boolean,
  19876. default: uni.$u.props.tabs.scrollable
  19877. },
  19878. // 当前选中标签的索引
  19879. current: {
  19880. type: [Number, String],
  19881. default: uni.$u.props.tabs.current
  19882. },
  19883. // 默认读取的键名
  19884. keyName: {
  19885. type: String,
  19886. default: uni.$u.props.tabs.keyName
  19887. }
  19888. }
  19889. };
  19890. exports.default = _default;
  19891. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19892. /***/ }),
  19893. /* 240 */,
  19894. /* 241 */,
  19895. /* 242 */,
  19896. /* 243 */,
  19897. /* 244 */,
  19898. /* 245 */,
  19899. /* 246 */,
  19900. /* 247 */
  19901. /*!*******************************************************************************************************************************!*\
  19902. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-search/props.js ***!
  19903. \*******************************************************************************************************************************/
  19904. /*! no static exports found */
  19905. /***/ (function(module, exports, __webpack_require__) {
  19906. "use strict";
  19907. /* WEBPACK VAR INJECTION */(function(uni) {
  19908. Object.defineProperty(exports, "__esModule", {
  19909. value: true
  19910. });
  19911. exports.default = void 0;
  19912. var _default = {
  19913. props: {
  19914. // 搜索框形状,round-圆形,square-方形
  19915. shape: {
  19916. type: String,
  19917. default: uni.$u.props.search.shape
  19918. },
  19919. // 搜索框背景色,默认值#f2f2f2
  19920. bgColor: {
  19921. type: String,
  19922. default: uni.$u.props.search.bgColor
  19923. },
  19924. // 占位提示文字
  19925. placeholder: {
  19926. type: String,
  19927. default: uni.$u.props.search.placeholder
  19928. },
  19929. // 是否启用清除控件
  19930. clearabled: {
  19931. type: Boolean,
  19932. default: uni.$u.props.search.clearabled
  19933. },
  19934. // 是否自动聚焦
  19935. focus: {
  19936. type: Boolean,
  19937. default: uni.$u.props.search.focus
  19938. },
  19939. // 是否在搜索框右侧显示取消按钮
  19940. showAction: {
  19941. type: Boolean,
  19942. default: uni.$u.props.search.showAction
  19943. },
  19944. // 右边控件的样式
  19945. actionStyle: {
  19946. type: Object,
  19947. default: uni.$u.props.search.actionStyle
  19948. },
  19949. // 取消按钮文字
  19950. actionText: {
  19951. type: String,
  19952. default: uni.$u.props.search.actionText
  19953. },
  19954. // 输入框内容对齐方式,可选值为 left|center|right
  19955. inputAlign: {
  19956. type: String,
  19957. default: uni.$u.props.search.inputAlign
  19958. },
  19959. // input输入框的样式,可以定义文字颜色,大小等,对象形式
  19960. inputStyle: {
  19961. type: Object,
  19962. default: uni.$u.props.search.inputStyle
  19963. },
  19964. // 是否启用输入框
  19965. disabled: {
  19966. type: Boolean,
  19967. default: uni.$u.props.search.disabled
  19968. },
  19969. // 边框颜色
  19970. borderColor: {
  19971. type: String,
  19972. default: uni.$u.props.search.borderColor
  19973. },
  19974. // 搜索图标的颜色,默认同输入框字体颜色
  19975. searchIconColor: {
  19976. type: String,
  19977. default: uni.$u.props.search.searchIconColor
  19978. },
  19979. // 输入框字体颜色
  19980. color: {
  19981. type: String,
  19982. default: uni.$u.props.search.color
  19983. },
  19984. // placeholder的颜色
  19985. placeholderColor: {
  19986. type: String,
  19987. default: uni.$u.props.search.placeholderColor
  19988. },
  19989. // 左边输入框的图标,可以为uView图标名称或图片路径
  19990. searchIcon: {
  19991. type: String,
  19992. default: uni.$u.props.search.searchIcon
  19993. },
  19994. searchIconSize: {
  19995. type: [Number, String],
  19996. default: uni.$u.props.search.searchIconSize
  19997. },
  19998. // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
  19999. margin: {
  20000. type: String,
  20001. default: uni.$u.props.search.margin
  20002. },
  20003. // 开启showAction时,是否在input获取焦点时才显示
  20004. animation: {
  20005. type: Boolean,
  20006. default: uni.$u.props.search.animation
  20007. },
  20008. // 输入框的初始化内容
  20009. value: {
  20010. type: String,
  20011. default: uni.$u.props.search.value
  20012. },
  20013. // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
  20014. maxlength: {
  20015. type: [String, Number],
  20016. default: uni.$u.props.search.maxlength
  20017. },
  20018. // 搜索框高度,单位px
  20019. height: {
  20020. type: [String, Number],
  20021. default: uni.$u.props.search.height
  20022. },
  20023. // 搜索框左侧文本
  20024. label: {
  20025. type: [String, Number, null],
  20026. default: uni.$u.props.search.label
  20027. }
  20028. }
  20029. };
  20030. exports.default = _default;
  20031. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20032. /***/ }),
  20033. /* 248 */,
  20034. /* 249 */,
  20035. /* 250 */,
  20036. /* 251 */,
  20037. /* 252 */,
  20038. /* 253 */,
  20039. /* 254 */,
  20040. /* 255 */,
  20041. /* 256 */,
  20042. /* 257 */,
  20043. /* 258 */,
  20044. /* 259 */,
  20045. /* 260 */,
  20046. /* 261 */,
  20047. /* 262 */
  20048. /*!*****************************************************************************************************************************!*\
  20049. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-text/value.js ***!
  20050. \*****************************************************************************************************************************/
  20051. /*! no static exports found */
  20052. /***/ (function(module, exports, __webpack_require__) {
  20053. "use strict";
  20054. /* WEBPACK VAR INJECTION */(function(uni) {
  20055. Object.defineProperty(exports, "__esModule", {
  20056. value: true
  20057. });
  20058. exports.default = void 0;
  20059. var _default = {
  20060. computed: {
  20061. // 经处理后需要显示的值
  20062. value: function value() {
  20063. var text = this.text,
  20064. mode = this.mode,
  20065. format = this.format,
  20066. href = this.href;
  20067. // 价格类型
  20068. if (mode === 'price') {
  20069. // 如果text不为金额进行提示
  20070. if (!/^\d+(\.\d+)?$/.test(text)) {
  20071. uni.$u.error('金额模式下,text参数需要为金额格式');
  20072. }
  20073. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
  20074. if (uni.$u.test.func(format)) {
  20075. // 如果用户传入的是函数,使用函数格式化
  20076. return format(text);
  20077. }
  20078. // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
  20079. return uni.$u.priceFormat(text, 2);
  20080. }
  20081. if (mode === 'date') {
  20082. // 判断是否合法的日期或者时间戳
  20083. !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
  20084. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
  20085. if (uni.$u.test.func(format)) {
  20086. // 如果用户传入的是函数,使用函数格式化
  20087. return format(text);
  20088. }
  20089. if (format) {
  20090. // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
  20091. return uni.$u.timeFormat(text, format);
  20092. }
  20093. // 如果没有设置format,则设置为默认的时间格式化形式
  20094. return uni.$u.timeFormat(text, 'yyyy-mm-dd');
  20095. }
  20096. if (mode === 'phone') {
  20097. // 判断是否合法的手机号
  20098. // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
  20099. if (uni.$u.test.func(format)) {
  20100. // 如果用户传入的是函数,使用函数格式化
  20101. return format(text);
  20102. }
  20103. if (format === 'encrypt') {
  20104. // 如果format为encrypt,则将手机号进行星号加密处理
  20105. return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
  20106. }
  20107. return text;
  20108. }
  20109. if (mode === 'name') {
  20110. // 判断是否合法的字符粗
  20111. !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
  20112. if (uni.$u.test.func(format)) {
  20113. // 如果用户传入的是函数,使用函数格式化
  20114. return format(text);
  20115. }
  20116. if (format === 'encrypt') {
  20117. // 如果format为encrypt,则将姓名进行星号加密处理
  20118. return this.formatName(text);
  20119. }
  20120. return text;
  20121. }
  20122. if (mode === 'link') {
  20123. // 判断是否合法的字符粗
  20124. !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
  20125. return text;
  20126. }
  20127. return text;
  20128. }
  20129. },
  20130. methods: {
  20131. // 默认的姓名脱敏规则
  20132. formatName: function formatName(name) {
  20133. var value = '';
  20134. if (name.length === 2) {
  20135. value = name.substr(0, 1) + '*';
  20136. } else if (name.length > 2) {
  20137. var char = '';
  20138. for (var i = 0, len = name.length - 2; i < len; i++) {
  20139. char += '*';
  20140. }
  20141. value = name.substr(0, 1) + char + name.substr(-1, 1);
  20142. } else {
  20143. value = name;
  20144. }
  20145. return value;
  20146. }
  20147. }
  20148. };
  20149. exports.default = _default;
  20150. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20151. /***/ }),
  20152. /* 263 */
  20153. /*!***********************************************************************************************************************!*\
  20154. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/mixin/button.js ***!
  20155. \***********************************************************************************************************************/
  20156. /*! no static exports found */
  20157. /***/ (function(module, exports, __webpack_require__) {
  20158. "use strict";
  20159. Object.defineProperty(exports, "__esModule", {
  20160. value: true
  20161. });
  20162. exports.default = void 0;
  20163. var _default = {
  20164. props: {
  20165. lang: String,
  20166. sessionFrom: String,
  20167. sendMessageTitle: String,
  20168. sendMessagePath: String,
  20169. sendMessageImg: String,
  20170. showMessageCard: Boolean,
  20171. appParameter: String,
  20172. formType: String,
  20173. openType: String
  20174. }
  20175. };
  20176. exports.default = _default;
  20177. /***/ }),
  20178. /* 264 */
  20179. /*!*************************************************************************************************************************!*\
  20180. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/libs/mixin/openType.js ***!
  20181. \*************************************************************************************************************************/
  20182. /*! no static exports found */
  20183. /***/ (function(module, exports, __webpack_require__) {
  20184. "use strict";
  20185. Object.defineProperty(exports, "__esModule", {
  20186. value: true
  20187. });
  20188. exports.default = void 0;
  20189. var _default = {
  20190. props: {
  20191. openType: String
  20192. },
  20193. methods: {
  20194. onGetUserInfo: function onGetUserInfo(event) {
  20195. this.$emit('getuserinfo', event.detail);
  20196. },
  20197. onContact: function onContact(event) {
  20198. this.$emit('contact', event.detail);
  20199. },
  20200. onGetPhoneNumber: function onGetPhoneNumber(event) {
  20201. this.$emit('getphonenumber', event.detail);
  20202. },
  20203. onError: function onError(event) {
  20204. this.$emit('error', event.detail);
  20205. },
  20206. onLaunchApp: function onLaunchApp(event) {
  20207. this.$emit('launchapp', event.detail);
  20208. },
  20209. onOpenSetting: function onOpenSetting(event) {
  20210. this.$emit('opensetting', event.detail);
  20211. }
  20212. }
  20213. };
  20214. exports.default = _default;
  20215. /***/ }),
  20216. /* 265 */,
  20217. /* 266 */,
  20218. /* 267 */,
  20219. /* 268 */,
  20220. /* 269 */,
  20221. /* 270 */,
  20222. /* 271 */,
  20223. /* 272 */
  20224. /*!******************************************************************************************************************************!*\
  20225. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-popup/props.js ***!
  20226. \******************************************************************************************************************************/
  20227. /*! no static exports found */
  20228. /***/ (function(module, exports, __webpack_require__) {
  20229. "use strict";
  20230. /* WEBPACK VAR INJECTION */(function(uni) {
  20231. Object.defineProperty(exports, "__esModule", {
  20232. value: true
  20233. });
  20234. exports.default = void 0;
  20235. var _default = {
  20236. props: {
  20237. // 是否展示弹窗
  20238. show: {
  20239. type: Boolean,
  20240. default: uni.$u.props.popup.show
  20241. },
  20242. // 是否显示遮罩
  20243. overlay: {
  20244. type: Boolean,
  20245. default: uni.$u.props.popup.overlay
  20246. },
  20247. // 弹出的方向,可选值为 top bottom right left center
  20248. mode: {
  20249. type: String,
  20250. default: uni.$u.props.popup.mode
  20251. },
  20252. // 动画时长,单位ms
  20253. duration: {
  20254. type: [String, Number],
  20255. default: uni.$u.props.popup.duration
  20256. },
  20257. // 是否显示关闭图标
  20258. closeable: {
  20259. type: Boolean,
  20260. default: uni.$u.props.popup.closeable
  20261. },
  20262. // 自定义遮罩的样式
  20263. overlayStyle: {
  20264. type: [Object, String],
  20265. default: uni.$u.props.popup.overlayStyle
  20266. },
  20267. // 点击遮罩是否关闭弹窗
  20268. closeOnClickOverlay: {
  20269. type: Boolean,
  20270. default: uni.$u.props.popup.closeOnClickOverlay
  20271. },
  20272. // 层级
  20273. zIndex: {
  20274. type: [String, Number],
  20275. default: uni.$u.props.popup.zIndex
  20276. },
  20277. // 是否为iPhoneX留出底部安全距离
  20278. safeAreaInsetBottom: {
  20279. type: Boolean,
  20280. default: uni.$u.props.popup.safeAreaInsetBottom
  20281. },
  20282. // 是否留出顶部安全距离(状态栏高度)
  20283. safeAreaInsetTop: {
  20284. type: Boolean,
  20285. default: uni.$u.props.popup.safeAreaInsetTop
  20286. },
  20287. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  20288. closeIconPos: {
  20289. type: String,
  20290. default: uni.$u.props.popup.closeIconPos
  20291. },
  20292. // 是否显示圆角
  20293. round: {
  20294. type: [Boolean, String, Number],
  20295. default: uni.$u.props.popup.round
  20296. },
  20297. // mode=center,也即中部弹出时,是否使用缩放模式
  20298. zoom: {
  20299. type: Boolean,
  20300. default: uni.$u.props.popup.zoom
  20301. },
  20302. // 弹窗背景色,设置为transparent可去除白色背景
  20303. bgColor: {
  20304. type: String,
  20305. default: uni.$u.props.popup.bgColor
  20306. },
  20307. // 遮罩的透明度,0-1之间
  20308. overlayOpacity: {
  20309. type: [Number, String],
  20310. default: uni.$u.props.popup.overlayOpacity
  20311. }
  20312. }
  20313. };
  20314. exports.default = _default;
  20315. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20316. /***/ }),
  20317. /* 273 */,
  20318. /* 274 */,
  20319. /* 275 */,
  20320. /* 276 */,
  20321. /* 277 */,
  20322. /* 278 */,
  20323. /* 279 */,
  20324. /* 280 */
  20325. /*!********************************************************************************************************************************!*\
  20326. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-toolbar/props.js ***!
  20327. \********************************************************************************************************************************/
  20328. /*! no static exports found */
  20329. /***/ (function(module, exports, __webpack_require__) {
  20330. "use strict";
  20331. /* WEBPACK VAR INJECTION */(function(uni) {
  20332. Object.defineProperty(exports, "__esModule", {
  20333. value: true
  20334. });
  20335. exports.default = void 0;
  20336. var _default = {
  20337. props: {
  20338. // 是否展示工具条
  20339. show: {
  20340. type: Boolean,
  20341. default: uni.$u.props.toolbar.show
  20342. },
  20343. // 取消按钮的文字
  20344. cancelText: {
  20345. type: String,
  20346. default: uni.$u.props.toolbar.cancelText
  20347. },
  20348. // 确认按钮的文字
  20349. confirmText: {
  20350. type: String,
  20351. default: uni.$u.props.toolbar.confirmText
  20352. },
  20353. // 取消按钮的颜色
  20354. cancelColor: {
  20355. type: String,
  20356. default: uni.$u.props.toolbar.cancelColor
  20357. },
  20358. // 确认按钮的颜色
  20359. confirmColor: {
  20360. type: String,
  20361. default: uni.$u.props.toolbar.confirmColor
  20362. },
  20363. // 标题文字
  20364. title: {
  20365. type: String,
  20366. default: uni.$u.props.toolbar.title
  20367. }
  20368. }
  20369. };
  20370. exports.default = _default;
  20371. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20372. /***/ }),
  20373. /* 281 */,
  20374. /* 282 */,
  20375. /* 283 */,
  20376. /* 284 */,
  20377. /* 285 */,
  20378. /* 286 */,
  20379. /* 287 */,
  20380. /* 288 */
  20381. /*!*************************************************************************************************************************************!*\
  20382. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  20383. \*************************************************************************************************************************************/
  20384. /*! no static exports found */
  20385. /***/ (function(module, exports, __webpack_require__) {
  20386. "use strict";
  20387. /* WEBPACK VAR INJECTION */(function(uni) {
  20388. Object.defineProperty(exports, "__esModule", {
  20389. value: true
  20390. });
  20391. exports.default = void 0;
  20392. var _default = {
  20393. props: {
  20394. // 是否显示组件
  20395. show: {
  20396. type: Boolean,
  20397. default: uni.$u.props.loadingIcon.show
  20398. },
  20399. // 颜色
  20400. color: {
  20401. type: String,
  20402. default: uni.$u.props.loadingIcon.color
  20403. },
  20404. // 提示文字颜色
  20405. textColor: {
  20406. type: String,
  20407. default: uni.$u.props.loadingIcon.textColor
  20408. },
  20409. // 文字和图标是否垂直排列
  20410. vertical: {
  20411. type: Boolean,
  20412. default: uni.$u.props.loadingIcon.vertical
  20413. },
  20414. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  20415. mode: {
  20416. type: String,
  20417. default: uni.$u.props.loadingIcon.mode
  20418. },
  20419. // 图标大小,单位默认px
  20420. size: {
  20421. type: [String, Number],
  20422. default: uni.$u.props.loadingIcon.size
  20423. },
  20424. // 文字大小
  20425. textSize: {
  20426. type: [String, Number],
  20427. default: uni.$u.props.loadingIcon.textSize
  20428. },
  20429. // 文字内容
  20430. text: {
  20431. type: [String, Number],
  20432. default: uni.$u.props.loadingIcon.text
  20433. },
  20434. // 动画模式
  20435. timingFunction: {
  20436. type: String,
  20437. default: uni.$u.props.loadingIcon.timingFunction
  20438. },
  20439. // 动画执行周期时间
  20440. duration: {
  20441. type: [String, Number],
  20442. default: uni.$u.props.loadingIcon.duration
  20443. },
  20444. // mode=circle时的暗边颜色
  20445. inactiveColor: {
  20446. type: String,
  20447. default: uni.$u.props.loadingIcon.inactiveColor
  20448. }
  20449. }
  20450. };
  20451. exports.default = _default;
  20452. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20453. /***/ }),
  20454. /* 289 */,
  20455. /* 290 */,
  20456. /* 291 */,
  20457. /* 292 */,
  20458. /* 293 */,
  20459. /* 294 */,
  20460. /* 295 */,
  20461. /* 296 */
  20462. /*!******************************************************************************************************************************!*\
  20463. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-badge/props.js ***!
  20464. \******************************************************************************************************************************/
  20465. /*! no static exports found */
  20466. /***/ (function(module, exports, __webpack_require__) {
  20467. "use strict";
  20468. /* WEBPACK VAR INJECTION */(function(uni) {
  20469. Object.defineProperty(exports, "__esModule", {
  20470. value: true
  20471. });
  20472. exports.default = void 0;
  20473. var _default = {
  20474. props: {
  20475. // 是否显示圆点
  20476. isDot: {
  20477. type: Boolean,
  20478. default: uni.$u.props.badge.isDot
  20479. },
  20480. // 显示的内容
  20481. value: {
  20482. type: [Number, String],
  20483. default: uni.$u.props.badge.value
  20484. },
  20485. // 是否显示
  20486. show: {
  20487. type: Boolean,
  20488. default: uni.$u.props.badge.show
  20489. },
  20490. // 最大值,超过最大值会显示 '{max}+'
  20491. max: {
  20492. type: [Number, String],
  20493. default: uni.$u.props.badge.max
  20494. },
  20495. // 主题类型,error|warning|success|primary
  20496. type: {
  20497. type: String,
  20498. default: uni.$u.props.badge.type
  20499. },
  20500. // 当数值为 0 时,是否展示 Badge
  20501. showZero: {
  20502. type: Boolean,
  20503. default: uni.$u.props.badge.showZero
  20504. },
  20505. // 背景颜色,优先级比type高,如设置,type参数会失效
  20506. bgColor: {
  20507. type: [String, null],
  20508. default: uni.$u.props.badge.bgColor
  20509. },
  20510. // 字体颜色
  20511. color: {
  20512. type: [String, null],
  20513. default: uni.$u.props.badge.color
  20514. },
  20515. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  20516. shape: {
  20517. type: String,
  20518. default: uni.$u.props.badge.shape
  20519. },
  20520. // 设置数字的显示方式,overflow|ellipsis|limit
  20521. // overflow会根据max字段判断,超出显示`${max}+`
  20522. // ellipsis会根据max判断,超出显示`${max}...`
  20523. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  20524. numberType: {
  20525. type: String,
  20526. default: uni.$u.props.badge.numberType
  20527. },
  20528. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  20529. offset: {
  20530. type: Array,
  20531. default: uni.$u.props.badge.offset
  20532. },
  20533. // 是否反转背景和字体颜色
  20534. inverted: {
  20535. type: Boolean,
  20536. default: uni.$u.props.badge.inverted
  20537. },
  20538. // 是否绝对定位
  20539. absolute: {
  20540. type: Boolean,
  20541. default: uni.$u.props.badge.absolute
  20542. }
  20543. }
  20544. };
  20545. exports.default = _default;
  20546. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20547. /***/ }),
  20548. /* 297 */,
  20549. /* 298 */,
  20550. /* 299 */,
  20551. /* 300 */,
  20552. /* 301 */,
  20553. /* 302 */,
  20554. /* 303 */,
  20555. /* 304 */
  20556. /*!***********************************************************************************************************************************!*\
  20557. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-transition/props.js ***!
  20558. \***********************************************************************************************************************************/
  20559. /*! no static exports found */
  20560. /***/ (function(module, exports, __webpack_require__) {
  20561. "use strict";
  20562. /* WEBPACK VAR INJECTION */(function(uni) {
  20563. Object.defineProperty(exports, "__esModule", {
  20564. value: true
  20565. });
  20566. exports.default = void 0;
  20567. var _default = {
  20568. props: {
  20569. // 是否展示组件
  20570. show: {
  20571. type: Boolean,
  20572. default: uni.$u.props.transition.show
  20573. },
  20574. // 使用的动画模式
  20575. mode: {
  20576. type: String,
  20577. default: uni.$u.props.transition.mode
  20578. },
  20579. // 动画的执行时间,单位ms
  20580. duration: {
  20581. type: [String, Number],
  20582. default: uni.$u.props.transition.duration
  20583. },
  20584. // 使用的动画过渡函数
  20585. timingFunction: {
  20586. type: String,
  20587. default: uni.$u.props.transition.timingFunction
  20588. }
  20589. }
  20590. };
  20591. exports.default = _default;
  20592. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20593. /***/ }),
  20594. /* 305 */
  20595. /*!****************************************************************************************************************************************!*\
  20596. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-transition/transition.js ***!
  20597. \****************************************************************************************************************************************/
  20598. /*! no static exports found */
  20599. /***/ (function(module, exports, __webpack_require__) {
  20600. "use strict";
  20601. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20602. Object.defineProperty(exports, "__esModule", {
  20603. value: true
  20604. });
  20605. exports.default = void 0;
  20606. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 57));
  20607. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 59));
  20608. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 306));
  20609. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  20610. var nextTick = function nextTick() {
  20611. return new Promise(function (resolve) {
  20612. return setTimeout(resolve, 1000 / 50);
  20613. });
  20614. };
  20615. // nvue动画模块实现细节抽离在外部文件
  20616. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  20617. var getClassNames = function getClassNames(name) {
  20618. return {
  20619. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  20620. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  20621. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  20622. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  20623. };
  20624. };
  20625. var _default = {
  20626. methods: {
  20627. // 组件被点击发出事件
  20628. clickHandler: function clickHandler() {
  20629. this.$emit('click');
  20630. },
  20631. // vue版本的组件进场处理
  20632. vueEnter: function vueEnter() {
  20633. var _this = this;
  20634. // 动画进入时的类名
  20635. var classNames = getClassNames(this.mode);
  20636. // 定义状态和发出动画进入前事件
  20637. this.status = 'enter';
  20638. this.$emit('beforeEnter');
  20639. this.inited = true;
  20640. this.display = true;
  20641. this.classes = classNames.enter;
  20642. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  20643. return _regenerator.default.wrap(function _callee$(_context) {
  20644. while (1) {
  20645. switch (_context.prev = _context.next) {
  20646. case 0:
  20647. // 标识动画尚未结束
  20648. _this.$emit('enter');
  20649. _this.transitionEnded = false;
  20650. // 组件动画进入后触发的事件
  20651. _this.$emit('afterEnter');
  20652. // 赋予组件enter-to类名
  20653. _this.classes = classNames['enter-to'];
  20654. case 4:
  20655. case "end":
  20656. return _context.stop();
  20657. }
  20658. }
  20659. }, _callee);
  20660. })));
  20661. },
  20662. // 动画离场处理
  20663. vueLeave: function vueLeave() {
  20664. var _this2 = this;
  20665. // 如果不是展示状态,无需执行逻辑
  20666. if (!this.display) return;
  20667. var classNames = getClassNames(this.mode);
  20668. // 标记离开状态和发出事件
  20669. this.status = 'leave';
  20670. this.$emit('beforeLeave');
  20671. // 获得类名
  20672. this.classes = classNames.leave;
  20673. this.$nextTick(function () {
  20674. // 动画正在离场的状态
  20675. _this2.transitionEnded = false;
  20676. _this2.$emit('leave');
  20677. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  20678. setTimeout(_this2.onTransitionEnd, _this2.duration);
  20679. _this2.classes = classNames['leave-to'];
  20680. });
  20681. },
  20682. // 完成过渡后触发
  20683. onTransitionEnd: function onTransitionEnd() {
  20684. // 如果已经是结束的状态,无需再处理
  20685. if (this.transitionEnded) return;
  20686. this.transitionEnded = true;
  20687. // 发出组件动画执行后的事件
  20688. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  20689. if (!this.show && this.display) {
  20690. this.display = false;
  20691. this.inited = false;
  20692. }
  20693. }
  20694. }
  20695. };
  20696. exports.default = _default;
  20697. /***/ }),
  20698. /* 306 */
  20699. /*!******************************************************************************************************************************************!*\
  20700. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  20701. \******************************************************************************************************************************************/
  20702. /*! no static exports found */
  20703. /***/ (function(module, exports, __webpack_require__) {
  20704. "use strict";
  20705. Object.defineProperty(exports, "__esModule", {
  20706. value: true
  20707. });
  20708. exports.default = void 0;
  20709. var _default = {
  20710. fade: {
  20711. enter: {
  20712. opacity: 0
  20713. },
  20714. 'enter-to': {
  20715. opacity: 1
  20716. },
  20717. leave: {
  20718. opacity: 1
  20719. },
  20720. 'leave-to': {
  20721. opacity: 0
  20722. }
  20723. },
  20724. 'fade-up': {
  20725. enter: {
  20726. opacity: 0,
  20727. transform: 'translateY(100%)'
  20728. },
  20729. 'enter-to': {
  20730. opacity: 1,
  20731. transform: 'translateY(0)'
  20732. },
  20733. leave: {
  20734. opacity: 1,
  20735. transform: 'translateY(0)'
  20736. },
  20737. 'leave-to': {
  20738. opacity: 0,
  20739. transform: 'translateY(100%)'
  20740. }
  20741. },
  20742. 'fade-down': {
  20743. enter: {
  20744. opacity: 0,
  20745. transform: 'translateY(-100%)'
  20746. },
  20747. 'enter-to': {
  20748. opacity: 1,
  20749. transform: 'translateY(0)'
  20750. },
  20751. leave: {
  20752. opacity: 1,
  20753. transform: 'translateY(0)'
  20754. },
  20755. 'leave-to': {
  20756. opacity: 0,
  20757. transform: 'translateY(-100%)'
  20758. }
  20759. },
  20760. 'fade-left': {
  20761. enter: {
  20762. opacity: 0,
  20763. transform: 'translateX(-100%)'
  20764. },
  20765. 'enter-to': {
  20766. opacity: 1,
  20767. transform: 'translateY(0)'
  20768. },
  20769. leave: {
  20770. opacity: 1,
  20771. transform: 'translateY(0)'
  20772. },
  20773. 'leave-to': {
  20774. opacity: 0,
  20775. transform: 'translateX(-100%)'
  20776. }
  20777. },
  20778. 'fade-right': {
  20779. enter: {
  20780. opacity: 0,
  20781. transform: 'translateX(100%)'
  20782. },
  20783. 'enter-to': {
  20784. opacity: 1,
  20785. transform: 'translateY(0)'
  20786. },
  20787. leave: {
  20788. opacity: 1,
  20789. transform: 'translateY(0)'
  20790. },
  20791. 'leave-to': {
  20792. opacity: 0,
  20793. transform: 'translateX(100%)'
  20794. }
  20795. },
  20796. 'slide-up': {
  20797. enter: {
  20798. transform: 'translateY(100%)'
  20799. },
  20800. 'enter-to': {
  20801. transform: 'translateY(0)'
  20802. },
  20803. leave: {
  20804. transform: 'translateY(0)'
  20805. },
  20806. 'leave-to': {
  20807. transform: 'translateY(100%)'
  20808. }
  20809. },
  20810. 'slide-down': {
  20811. enter: {
  20812. transform: 'translateY(-100%)'
  20813. },
  20814. 'enter-to': {
  20815. transform: 'translateY(0)'
  20816. },
  20817. leave: {
  20818. transform: 'translateY(0)'
  20819. },
  20820. 'leave-to': {
  20821. transform: 'translateY(-100%)'
  20822. }
  20823. },
  20824. 'slide-left': {
  20825. enter: {
  20826. transform: 'translateX(-100%)'
  20827. },
  20828. 'enter-to': {
  20829. transform: 'translateY(0)'
  20830. },
  20831. leave: {
  20832. transform: 'translateY(0)'
  20833. },
  20834. 'leave-to': {
  20835. transform: 'translateX(-100%)'
  20836. }
  20837. },
  20838. 'slide-right': {
  20839. enter: {
  20840. transform: 'translateX(100%)'
  20841. },
  20842. 'enter-to': {
  20843. transform: 'translateY(0)'
  20844. },
  20845. leave: {
  20846. transform: 'translateY(0)'
  20847. },
  20848. 'leave-to': {
  20849. transform: 'translateX(100%)'
  20850. }
  20851. },
  20852. zoom: {
  20853. enter: {
  20854. transform: 'scale(0.95)'
  20855. },
  20856. 'enter-to': {
  20857. transform: 'scale(1)'
  20858. },
  20859. leave: {
  20860. transform: 'scale(1)'
  20861. },
  20862. 'leave-to': {
  20863. transform: 'scale(0.95)'
  20864. }
  20865. },
  20866. 'fade-zoom': {
  20867. enter: {
  20868. opacity: 0,
  20869. transform: 'scale(0.95)'
  20870. },
  20871. 'enter-to': {
  20872. opacity: 1,
  20873. transform: 'scale(1)'
  20874. },
  20875. leave: {
  20876. opacity: 1,
  20877. transform: 'scale(1)'
  20878. },
  20879. 'leave-to': {
  20880. opacity: 0,
  20881. transform: 'scale(0.95)'
  20882. }
  20883. }
  20884. };
  20885. exports.default = _default;
  20886. /***/ }),
  20887. /* 307 */,
  20888. /* 308 */,
  20889. /* 309 */,
  20890. /* 310 */,
  20891. /* 311 */,
  20892. /* 312 */,
  20893. /* 313 */,
  20894. /* 314 */
  20895. /*!*****************************************************************************************************************************!*\
  20896. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-link/props.js ***!
  20897. \*****************************************************************************************************************************/
  20898. /*! no static exports found */
  20899. /***/ (function(module, exports, __webpack_require__) {
  20900. "use strict";
  20901. /* WEBPACK VAR INJECTION */(function(uni) {
  20902. Object.defineProperty(exports, "__esModule", {
  20903. value: true
  20904. });
  20905. exports.default = void 0;
  20906. var _default = {
  20907. props: {
  20908. // 文字颜色
  20909. color: {
  20910. type: String,
  20911. default: uni.$u.props.link.color
  20912. },
  20913. // 字体大小,单位px
  20914. fontSize: {
  20915. type: [String, Number],
  20916. default: uni.$u.props.link.fontSize
  20917. },
  20918. // 是否显示下划线
  20919. underLine: {
  20920. type: Boolean,
  20921. default: uni.$u.props.link.underLine
  20922. },
  20923. // 要跳转的链接
  20924. href: {
  20925. type: String,
  20926. default: uni.$u.props.link.href
  20927. },
  20928. // 小程序中复制到粘贴板的提示语
  20929. mpTips: {
  20930. type: String,
  20931. default: uni.$u.props.link.mpTips
  20932. },
  20933. // 下划线颜色
  20934. lineColor: {
  20935. type: String,
  20936. default: uni.$u.props.link.lineColor
  20937. },
  20938. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  20939. text: {
  20940. type: String,
  20941. default: uni.$u.props.link.text
  20942. }
  20943. }
  20944. };
  20945. exports.default = _default;
  20946. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20947. /***/ }),
  20948. /* 315 */,
  20949. /* 316 */,
  20950. /* 317 */,
  20951. /* 318 */,
  20952. /* 319 */,
  20953. /* 320 */,
  20954. /* 321 */,
  20955. /* 322 */
  20956. /*!********************************************************************************************************************************!*\
  20957. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-overlay/props.js ***!
  20958. \********************************************************************************************************************************/
  20959. /*! no static exports found */
  20960. /***/ (function(module, exports, __webpack_require__) {
  20961. "use strict";
  20962. /* WEBPACK VAR INJECTION */(function(uni) {
  20963. Object.defineProperty(exports, "__esModule", {
  20964. value: true
  20965. });
  20966. exports.default = void 0;
  20967. var _default = {
  20968. props: {
  20969. // 是否显示遮罩
  20970. show: {
  20971. type: Boolean,
  20972. default: uni.$u.props.overlay.show
  20973. },
  20974. // 层级z-index
  20975. zIndex: {
  20976. type: [String, Number],
  20977. default: uni.$u.props.overlay.zIndex
  20978. },
  20979. // 遮罩的过渡时间,单位为ms
  20980. duration: {
  20981. type: [String, Number],
  20982. default: uni.$u.props.overlay.duration
  20983. },
  20984. // 不透明度值,当做rgba的第四个参数
  20985. opacity: {
  20986. type: [String, Number],
  20987. default: uni.$u.props.overlay.opacity
  20988. }
  20989. }
  20990. };
  20991. exports.default = _default;
  20992. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20993. /***/ }),
  20994. /* 323 */,
  20995. /* 324 */,
  20996. /* 325 */,
  20997. /* 326 */,
  20998. /* 327 */,
  20999. /* 328 */,
  21000. /* 329 */,
  21001. /* 330 */
  21002. /*!***********************************************************************************************************************************!*\
  21003. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  21004. \***********************************************************************************************************************************/
  21005. /*! no static exports found */
  21006. /***/ (function(module, exports, __webpack_require__) {
  21007. "use strict";
  21008. /* WEBPACK VAR INJECTION */(function(uni) {
  21009. Object.defineProperty(exports, "__esModule", {
  21010. value: true
  21011. });
  21012. exports.default = void 0;
  21013. var _default = {
  21014. props: {
  21015. bgColor: {
  21016. type: String,
  21017. default: uni.$u.props.statusBar.bgColor
  21018. }
  21019. }
  21020. };
  21021. exports.default = _default;
  21022. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21023. /***/ }),
  21024. /* 331 */,
  21025. /* 332 */,
  21026. /* 333 */,
  21027. /* 334 */,
  21028. /* 335 */,
  21029. /* 336 */,
  21030. /* 337 */,
  21031. /* 338 */
  21032. /*!************************************************************************************************************************************!*\
  21033. !*** D:/项目/iam-uniapp-demo-master-b878ed184860b48fba72dab7b6d97bc45ca8654e/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  21034. \************************************************************************************************************************************/
  21035. /*! no static exports found */
  21036. /***/ (function(module, exports, __webpack_require__) {
  21037. "use strict";
  21038. Object.defineProperty(exports, "__esModule", {
  21039. value: true
  21040. });
  21041. exports.default = void 0;
  21042. var _default = {
  21043. props: {}
  21044. };
  21045. exports.default = _default;
  21046. /***/ })
  21047. ]]);
  21048. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map