vendor.js 664 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248
  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__BFF7DF9",
  754. appName: "监测主机",
  755. appVersion: "1.0.7",
  756. appVersionCode: "107",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "4.24",
  759. uniRuntimeVersion: "4.24",
  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__BFF7DF9",
  853. appName: "监测主机",
  854. appVersion: "1.0.7",
  855. appVersionCode: "107",
  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:/baozhida/baozhida-monitoring-host/pages.json ***!
  8803. \*******************************************************/
  8804. /*! no static exports found */
  8805. /***/ (function(module, exports) {
  8806. /***/ }),
  8807. /* 27 */,
  8808. /* 28 */,
  8809. /* 29 */,
  8810. /* 30 */
  8811. /*!**************************************************************!*\
  8812. !*** D:/baozhida/baozhida-monitoring-host/common/downApp.js ***!
  8813. \**************************************************************/
  8814. /*! no static exports found */
  8815. /***/ (function(module, exports, __webpack_require__) {
  8816. "use strict";
  8817. /* WEBPACK VAR INJECTION */(function(uni) {
  8818. Object.defineProperty(exports, "__esModule", {
  8819. value: true
  8820. });
  8821. exports.checkUpdateApp = checkUpdateApp;
  8822. function checkUpdateApp() {
  8823. plus.runtime.getProperty(plus.runtime.appid, function (widgetinfo) {
  8824. if (widgetinfo.name == '监测主机') {
  8825. uni.request({
  8826. url: 'https://www.pgyer.com/apiv2/app/check',
  8827. data: {
  8828. _api_key: '202eadee73f2051186b26106cc8bfed1',
  8829. appKey: '8b5266064945535d707799df0ecdee9f'
  8830. },
  8831. success: function success(check) {
  8832. if (check.statusCode == 200 && check.data.code == 0 && check.data.data) {
  8833. var data = check.data.data;
  8834. var version = widgetinfo.version,
  8835. appVersion = data.buildVersion,
  8836. appName = widgetinfo.name,
  8837. appurl = data.downloadURL,
  8838. intro = '发现新的《监测主机》APP,需要更新APP';
  8839. if (data && version < appVersion) {
  8840. uni.showModal({
  8841. title: '更新提示',
  8842. confirmText: '立即升级',
  8843. content: intro,
  8844. success: function success(res) {
  8845. if (res.confirm) {
  8846. uni.showLoading({
  8847. title: '正在更新',
  8848. mask: true
  8849. });
  8850. uni.downloadFile({
  8851. url: appurl,
  8852. success: function success(download) {
  8853. if (download.statusCode == 200) {
  8854. plus.runtime.install(download.tempFilePath, {
  8855. force: false
  8856. }, function () {
  8857. uni.hideLoading();
  8858. plus.runtime.restart(); //更新成功启动
  8859. }, function (err) {
  8860. uni.hideLoading();
  8861. uni.showToast({
  8862. title: '更新失败,将跳转下载页面',
  8863. icon: 'none',
  8864. duration: 2000
  8865. });
  8866. });
  8867. setTimeout(function () {
  8868. plus.runtime.openURL(appurl);
  8869. }, 2000);
  8870. }
  8871. }
  8872. });
  8873. } else if (res.cancel) {
  8874. console.log('用户点击取消');
  8875. uni.showToast({
  8876. title: '低版本无法继续使用,请先升级',
  8877. icon: 'none',
  8878. duration: 2000
  8879. });
  8880. //退出app
  8881. setTimeout(function () {
  8882. plus.runtime.quit();
  8883. }, 2000);
  8884. }
  8885. },
  8886. fail: function fail() {
  8887. uni.hideLoading();
  8888. }
  8889. });
  8890. } else {
  8891. console.log('暂无新版本=====');
  8892. }
  8893. }
  8894. }
  8895. });
  8896. } else {
  8897. //非安卓
  8898. }
  8899. });
  8900. }
  8901. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  8902. /***/ }),
  8903. /* 31 */,
  8904. /* 32 */,
  8905. /* 33 */
  8906. /*!**********************************************************************************************************!*\
  8907. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8908. \**********************************************************************************************************/
  8909. /*! exports provided: default */
  8910. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8911. "use strict";
  8912. __webpack_require__.r(__webpack_exports__);
  8913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8914. /* globals __VUE_SSR_CONTEXT__ */
  8915. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8916. // This module is a runtime utility for cleaner component module output and will
  8917. // be included in the final webpack user bundle.
  8918. function normalizeComponent (
  8919. scriptExports,
  8920. render,
  8921. staticRenderFns,
  8922. functionalTemplate,
  8923. injectStyles,
  8924. scopeId,
  8925. moduleIdentifier, /* server only */
  8926. shadowMode, /* vue-cli only */
  8927. components, // fixed by xxxxxx auto components
  8928. renderjs // fixed by xxxxxx renderjs
  8929. ) {
  8930. // Vue.extend constructor export interop
  8931. var options = typeof scriptExports === 'function'
  8932. ? scriptExports.options
  8933. : scriptExports
  8934. // fixed by xxxxxx auto components
  8935. if (components) {
  8936. if (!options.components) {
  8937. options.components = {}
  8938. }
  8939. var hasOwn = Object.prototype.hasOwnProperty
  8940. for (var name in components) {
  8941. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8942. options.components[name] = components[name]
  8943. }
  8944. }
  8945. }
  8946. // fixed by xxxxxx renderjs
  8947. if (renderjs) {
  8948. if(typeof renderjs.beforeCreate === 'function'){
  8949. renderjs.beforeCreate = [renderjs.beforeCreate]
  8950. }
  8951. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8952. this[renderjs.__module] = this
  8953. });
  8954. (options.mixins || (options.mixins = [])).push(renderjs)
  8955. }
  8956. // render functions
  8957. if (render) {
  8958. options.render = render
  8959. options.staticRenderFns = staticRenderFns
  8960. options._compiled = true
  8961. }
  8962. // functional template
  8963. if (functionalTemplate) {
  8964. options.functional = true
  8965. }
  8966. // scopedId
  8967. if (scopeId) {
  8968. options._scopeId = 'data-v-' + scopeId
  8969. }
  8970. var hook
  8971. if (moduleIdentifier) { // server build
  8972. hook = function (context) {
  8973. // 2.3 injection
  8974. context =
  8975. context || // cached call
  8976. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8977. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8978. // 2.2 with runInNewContext: true
  8979. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8980. context = __VUE_SSR_CONTEXT__
  8981. }
  8982. // inject component styles
  8983. if (injectStyles) {
  8984. injectStyles.call(this, context)
  8985. }
  8986. // register component module identifier for async chunk inferrence
  8987. if (context && context._registeredComponents) {
  8988. context._registeredComponents.add(moduleIdentifier)
  8989. }
  8990. }
  8991. // used by ssr in case component is cached and beforeCreate
  8992. // never gets called
  8993. options._ssrRegister = hook
  8994. } else if (injectStyles) {
  8995. hook = shadowMode
  8996. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8997. : injectStyles
  8998. }
  8999. if (hook) {
  9000. if (options.functional) {
  9001. // for template-only hot-reload because in that case the render fn doesn't
  9002. // go through the normalizer
  9003. options._injectStyles = hook
  9004. // register for functioal component in vue file
  9005. var originalRender = options.render
  9006. options.render = function renderWithStyleInjection (h, context) {
  9007. hook.call(context)
  9008. return originalRender(h, context)
  9009. }
  9010. } else {
  9011. // inject component registration as beforeCreate hook
  9012. var existing = options.beforeCreate
  9013. options.beforeCreate = existing
  9014. ? [].concat(existing, hook)
  9015. : [hook]
  9016. }
  9017. }
  9018. return {
  9019. exports: scriptExports,
  9020. options: options
  9021. }
  9022. }
  9023. /***/ }),
  9024. /* 34 */
  9025. /*!***************************************************************************!*\
  9026. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/index.js ***!
  9027. \***************************************************************************/
  9028. /*! no static exports found */
  9029. /***/ (function(module, exports, __webpack_require__) {
  9030. "use strict";
  9031. /* WEBPACK VAR INJECTION */(function(uni) {
  9032. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9033. Object.defineProperty(exports, "__esModule", {
  9034. value: true
  9035. });
  9036. exports.default = void 0;
  9037. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9038. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 35));
  9039. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 36));
  9040. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 37));
  9041. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 55));
  9042. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 59));
  9043. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 60));
  9044. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 61));
  9045. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 62));
  9046. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 63));
  9047. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 66));
  9048. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 67));
  9049. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 157));
  9050. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 115));
  9051. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 158));
  9052. 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; }
  9053. 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; }
  9054. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9055. var pleaseSetTranspileDependencies = {},
  9056. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9057. // 引入全局mixin
  9058. var $u = _objectSpread(_objectSpread({
  9059. route: _route.default,
  9060. date: _index.default.timeFormat,
  9061. // 另名date
  9062. colorGradient: _colorGradient.default.colorGradient,
  9063. hexToRgb: _colorGradient.default.hexToRgb,
  9064. rgbToHex: _colorGradient.default.rgbToHex,
  9065. colorToRgba: _colorGradient.default.colorToRgba,
  9066. test: _test.default,
  9067. type: ['primary', 'success', 'error', 'warning', 'info'],
  9068. http: new _luchRequest.default(),
  9069. config: _config.default,
  9070. // uView配置信息相关,比如版本号
  9071. zIndex: _zIndex.default,
  9072. debounce: _debounce.default,
  9073. throttle: _throttle.default,
  9074. mixin: _mixin.default,
  9075. mpMixin: _mpMixin.default,
  9076. props: _props.default
  9077. }, _index.default), {}, {
  9078. color: _color.default,
  9079. platform: _platform.default
  9080. });
  9081. // $u挂载到uni对象上
  9082. uni.$u = $u;
  9083. var install = function install(Vue) {
  9084. // 时间格式化,同时两个名称,date和timeFormat
  9085. Vue.filter('timeFormat', function (timestamp, format) {
  9086. return uni.$u.timeFormat(timestamp, format);
  9087. });
  9088. Vue.filter('date', function (timestamp, format) {
  9089. return uni.$u.timeFormat(timestamp, format);
  9090. });
  9091. // 将多久以前的方法,注入到全局过滤器
  9092. Vue.filter('timeFrom', function (timestamp, format) {
  9093. return uni.$u.timeFrom(timestamp, format);
  9094. });
  9095. // 同时挂载到uni和Vue.prototype中
  9096. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9097. Vue.prototype.$u = $u;
  9098. Vue.mixin(_mixin.default);
  9099. };
  9100. var _default = {
  9101. install: install
  9102. };
  9103. exports.default = _default;
  9104. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9105. /***/ }),
  9106. /* 35 */
  9107. /*!**************************************************************************************!*\
  9108. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/mixin/mixin.js ***!
  9109. \**************************************************************************************/
  9110. /*! no static exports found */
  9111. /***/ (function(module, exports, __webpack_require__) {
  9112. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9113. // 定义每个组件都可能需要用到的外部样式以及类名
  9114. props: {
  9115. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9116. customStyle: {
  9117. type: [Object, String],
  9118. default: function _default() {
  9119. return {};
  9120. }
  9121. },
  9122. customClass: {
  9123. type: String,
  9124. default: ''
  9125. },
  9126. // 跳转的页面路径
  9127. url: {
  9128. type: String,
  9129. default: ''
  9130. },
  9131. // 页面跳转的类型
  9132. linkType: {
  9133. type: String,
  9134. default: 'navigateTo'
  9135. }
  9136. },
  9137. data: function data() {
  9138. return {};
  9139. },
  9140. onLoad: function onLoad() {
  9141. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9142. this.$u.getRect = this.$uGetRect;
  9143. },
  9144. created: function created() {
  9145. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9146. this.$u.getRect = this.$uGetRect;
  9147. },
  9148. computed: {
  9149. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9150. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9151. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9152. $u: function $u() {
  9153. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9154. return uni.$u.deepMerge(uni.$u, {
  9155. props: undefined,
  9156. http: undefined,
  9157. mixin: undefined
  9158. });
  9159. },
  9160. /**
  9161. * 生成bem规则类名
  9162. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9163. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9164. * @param {String} name 组件名称
  9165. * @param {Array} fixed 一直会存在的类名
  9166. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9167. * @returns {Array|string}
  9168. */
  9169. bem: function bem() {
  9170. return function (name, fixed, change) {
  9171. var _this = this;
  9172. // 类名前缀
  9173. var prefix = "u-".concat(name, "--");
  9174. var classes = {};
  9175. if (fixed) {
  9176. fixed.map(function (item) {
  9177. // 这里的类名,会一直存在
  9178. classes[prefix + _this[item]] = true;
  9179. });
  9180. }
  9181. if (change) {
  9182. change.map(function (item) {
  9183. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9184. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9185. });
  9186. }
  9187. return Object.keys(classes);
  9188. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9189. };
  9190. }
  9191. },
  9192. methods: {
  9193. // 跳转某一个页面
  9194. openPage: function openPage() {
  9195. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9196. var url = this[urlKey];
  9197. if (url) {
  9198. // 执行类似uni.navigateTo的方法
  9199. uni[this.linkType]({
  9200. url: url
  9201. });
  9202. }
  9203. },
  9204. // 查询节点信息
  9205. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9206. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9207. $uGetRect: function $uGetRect(selector, all) {
  9208. var _this2 = this;
  9209. return new Promise(function (resolve) {
  9210. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9211. if (all && Array.isArray(rect) && rect.length) {
  9212. resolve(rect);
  9213. }
  9214. if (!all && rect) {
  9215. resolve(rect);
  9216. }
  9217. }).exec();
  9218. });
  9219. },
  9220. getParentData: function getParentData() {
  9221. var _this3 = this;
  9222. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9223. // 避免在created中去定义parent变量
  9224. if (!this.parent) this.parent = {};
  9225. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9226. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9227. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9228. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9229. this.parent = uni.$u.$parent.call(this, parentName);
  9230. if (this.parent.children) {
  9231. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9232. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9233. }
  9234. if (this.parent && this.parentData) {
  9235. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9236. Object.keys(this.parentData).map(function (key) {
  9237. _this3.parentData[key] = _this3.parent[key];
  9238. });
  9239. }
  9240. },
  9241. // 阻止事件冒泡
  9242. preventEvent: function preventEvent(e) {
  9243. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9244. },
  9245. // 空操作
  9246. noop: function noop(e) {
  9247. this.preventEvent(e);
  9248. }
  9249. },
  9250. onReachBottom: function onReachBottom() {
  9251. uni.$emit('uOnReachBottom');
  9252. },
  9253. beforeDestroy: function beforeDestroy() {
  9254. var _this4 = this;
  9255. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9256. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9257. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9258. // 组件销毁时,移除父组件中的children数组中对应的实例
  9259. var childrenList = this.parent.children;
  9260. childrenList.map(function (child, index) {
  9261. // 如果相等,则移除
  9262. if (child === _this4) {
  9263. childrenList.splice(index, 1);
  9264. }
  9265. });
  9266. }
  9267. }
  9268. };
  9269. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9270. /***/ }),
  9271. /* 36 */
  9272. /*!****************************************************************************************!*\
  9273. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9274. \****************************************************************************************/
  9275. /*! no static exports found */
  9276. /***/ (function(module, exports, __webpack_require__) {
  9277. "use strict";
  9278. Object.defineProperty(exports, "__esModule", {
  9279. value: true
  9280. });
  9281. exports.default = void 0;
  9282. var _default = {
  9283. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9284. options: {
  9285. virtualHost: true
  9286. }
  9287. };
  9288. exports.default = _default;
  9289. /***/ }),
  9290. /* 37 */
  9291. /*!*********************************************************************************************!*\
  9292. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/index.js ***!
  9293. \*********************************************************************************************/
  9294. /*! no static exports found */
  9295. /***/ (function(module, exports, __webpack_require__) {
  9296. "use strict";
  9297. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9298. Object.defineProperty(exports, "__esModule", {
  9299. value: true
  9300. });
  9301. exports.default = void 0;
  9302. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 38));
  9303. var _default = _Request.default;
  9304. exports.default = _default;
  9305. /***/ }),
  9306. /* 38 */
  9307. /*!****************************************************************************************************!*\
  9308. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9309. \****************************************************************************************************/
  9310. /*! no static exports found */
  9311. /***/ (function(module, exports, __webpack_require__) {
  9312. "use strict";
  9313. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9314. Object.defineProperty(exports, "__esModule", {
  9315. value: true
  9316. });
  9317. exports.default = void 0;
  9318. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9319. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9320. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9321. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 39));
  9322. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 47));
  9323. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 48));
  9324. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 49));
  9325. var _utils = __webpack_require__(/*! ../utils */ 42);
  9326. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 50));
  9327. 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; }
  9328. 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; }
  9329. var Request = /*#__PURE__*/function () {
  9330. /**
  9331. * @param {Object} arg - 全局配置
  9332. * @param {String} arg.baseURL - 全局根路径
  9333. * @param {Object} arg.header - 全局header
  9334. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9335. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9336. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9337. * @param {Object} arg.custom - 全局默认的自定义参数
  9338. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9339. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9340. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9341. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9342. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9343. */
  9344. function Request() {
  9345. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9346. (0, _classCallCheck2.default)(this, Request);
  9347. if (!(0, _utils.isPlainObject)(arg)) {
  9348. arg = {};
  9349. console.warn('设置全局参数必须接收一个Object');
  9350. }
  9351. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9352. this.interceptors = {
  9353. request: new _InterceptorManager.default(),
  9354. response: new _InterceptorManager.default()
  9355. };
  9356. }
  9357. /**
  9358. * @Function
  9359. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9360. */
  9361. (0, _createClass2.default)(Request, [{
  9362. key: "setConfig",
  9363. value: function setConfig(f) {
  9364. this.config = f(this.config);
  9365. }
  9366. }, {
  9367. key: "middleware",
  9368. value: function middleware(config) {
  9369. config = (0, _mergeConfig.default)(this.config, config);
  9370. var chain = [_dispatchRequest.default, undefined];
  9371. var promise = Promise.resolve(config);
  9372. this.interceptors.request.forEach(function (interceptor) {
  9373. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9374. });
  9375. this.interceptors.response.forEach(function (interceptor) {
  9376. chain.push(interceptor.fulfilled, interceptor.rejected);
  9377. });
  9378. while (chain.length) {
  9379. promise = promise.then(chain.shift(), chain.shift());
  9380. }
  9381. return promise;
  9382. }
  9383. /**
  9384. * @Function
  9385. * @param {Object} config - 请求配置项
  9386. * @prop {String} options.url - 请求路径
  9387. * @prop {Object} options.data - 请求参数
  9388. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9389. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9390. * @prop {Object} [options.header = config.header] - 请求header
  9391. * @prop {Object} [options.method = config.method] - 请求方法
  9392. * @returns {Promise<unknown>}
  9393. */
  9394. }, {
  9395. key: "request",
  9396. value: function request() {
  9397. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9398. return this.middleware(config);
  9399. }
  9400. }, {
  9401. key: "get",
  9402. value: function get(url) {
  9403. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9404. return this.middleware(_objectSpread({
  9405. url: url,
  9406. method: 'GET'
  9407. }, options));
  9408. }
  9409. }, {
  9410. key: "post",
  9411. value: function post(url, data) {
  9412. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9413. return this.middleware(_objectSpread({
  9414. url: url,
  9415. data: data,
  9416. method: 'POST'
  9417. }, options));
  9418. }
  9419. }, {
  9420. key: "put",
  9421. value: function put(url, data) {
  9422. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9423. return this.middleware(_objectSpread({
  9424. url: url,
  9425. data: data,
  9426. method: 'PUT'
  9427. }, options));
  9428. }
  9429. }, {
  9430. key: "delete",
  9431. value: function _delete(url, data) {
  9432. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9433. return this.middleware(_objectSpread({
  9434. url: url,
  9435. data: data,
  9436. method: 'DELETE'
  9437. }, options));
  9438. }
  9439. }, {
  9440. key: "connect",
  9441. value: function connect(url, data) {
  9442. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9443. return this.middleware(_objectSpread({
  9444. url: url,
  9445. data: data,
  9446. method: 'CONNECT'
  9447. }, options));
  9448. }
  9449. }, {
  9450. key: "head",
  9451. value: function head(url, data) {
  9452. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9453. return this.middleware(_objectSpread({
  9454. url: url,
  9455. data: data,
  9456. method: 'HEAD'
  9457. }, options));
  9458. }
  9459. }, {
  9460. key: "options",
  9461. value: function options(url, data) {
  9462. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9463. return this.middleware(_objectSpread({
  9464. url: url,
  9465. data: data,
  9466. method: 'OPTIONS'
  9467. }, _options));
  9468. }
  9469. }, {
  9470. key: "trace",
  9471. value: function trace(url, data) {
  9472. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9473. return this.middleware(_objectSpread({
  9474. url: url,
  9475. data: data,
  9476. method: 'TRACE'
  9477. }, options));
  9478. }
  9479. }, {
  9480. key: "upload",
  9481. value: function upload(url) {
  9482. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9483. config.url = url;
  9484. config.method = 'UPLOAD';
  9485. return this.middleware(config);
  9486. }
  9487. }, {
  9488. key: "download",
  9489. value: function download(url) {
  9490. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9491. config.url = url;
  9492. config.method = 'DOWNLOAD';
  9493. return this.middleware(config);
  9494. }
  9495. }]);
  9496. return Request;
  9497. }();
  9498. /**
  9499. * setConfig回调
  9500. * @return {Object} - 返回操作后的config
  9501. * @callback Request~setConfigCallback
  9502. * @param {Object} config - 全局默认config
  9503. */
  9504. exports.default = Request;
  9505. /***/ }),
  9506. /* 39 */
  9507. /*!************************************************************************************************************!*\
  9508. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9509. \************************************************************************************************************/
  9510. /*! no static exports found */
  9511. /***/ (function(module, exports, __webpack_require__) {
  9512. "use strict";
  9513. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9514. Object.defineProperty(exports, "__esModule", {
  9515. value: true
  9516. });
  9517. exports.default = void 0;
  9518. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 40));
  9519. var _default = function _default(config) {
  9520. return (0, _index.default)(config);
  9521. };
  9522. exports.default = _default;
  9523. /***/ }),
  9524. /* 40 */
  9525. /*!******************************************************************************************************!*\
  9526. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9527. \******************************************************************************************************/
  9528. /*! no static exports found */
  9529. /***/ (function(module, exports, __webpack_require__) {
  9530. "use strict";
  9531. /* WEBPACK VAR INJECTION */(function(uni) {
  9532. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9533. Object.defineProperty(exports, "__esModule", {
  9534. value: true
  9535. });
  9536. exports.default = void 0;
  9537. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9538. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 41));
  9539. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 43));
  9540. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 46));
  9541. var _utils = __webpack_require__(/*! ../utils */ 42);
  9542. 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; }
  9543. 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; }
  9544. /**
  9545. * 返回可选值存在的配置
  9546. * @param {Array} keys - 可选值数组
  9547. * @param {Object} config2 - 配置
  9548. * @return {{}} - 存在的配置项
  9549. */
  9550. var mergeKeys = function mergeKeys(keys, config2) {
  9551. var config = {};
  9552. keys.forEach(function (prop) {
  9553. if (!(0, _utils.isUndefined)(config2[prop])) {
  9554. config[prop] = config2[prop];
  9555. }
  9556. });
  9557. return config;
  9558. };
  9559. var _default = function _default(config) {
  9560. return new Promise(function (resolve, reject) {
  9561. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9562. var _config = {
  9563. url: fullPath,
  9564. header: config.header,
  9565. complete: function complete(response) {
  9566. config.fullPath = fullPath;
  9567. response.config = config;
  9568. try {
  9569. // 对可能字符串不是json 的情况容错
  9570. if (typeof response.data === 'string') {
  9571. response.data = JSON.parse(response.data);
  9572. }
  9573. // eslint-disable-next-line no-empty
  9574. } catch (e) {}
  9575. (0, _settle.default)(resolve, reject, response);
  9576. }
  9577. };
  9578. var requestTask;
  9579. if (config.method === 'UPLOAD') {
  9580. delete _config.header['content-type'];
  9581. delete _config.header['Content-Type'];
  9582. var otherConfig = {
  9583. filePath: config.filePath,
  9584. name: config.name
  9585. };
  9586. var optionalKeys = ['formData'];
  9587. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9588. } else if (config.method === 'DOWNLOAD') {
  9589. requestTask = uni.downloadFile(_config);
  9590. } else {
  9591. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9592. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9593. }
  9594. if (config.getTask) {
  9595. config.getTask(requestTask, config);
  9596. }
  9597. });
  9598. };
  9599. exports.default = _default;
  9600. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9601. /***/ }),
  9602. /* 41 */
  9603. /*!********************************************************************************************************!*\
  9604. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9605. \********************************************************************************************************/
  9606. /*! no static exports found */
  9607. /***/ (function(module, exports, __webpack_require__) {
  9608. "use strict";
  9609. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9610. Object.defineProperty(exports, "__esModule", {
  9611. value: true
  9612. });
  9613. exports.default = buildURL;
  9614. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 42));
  9615. 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); }
  9616. 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; }
  9617. function encode(val) {
  9618. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9619. }
  9620. /**
  9621. * Build a URL by appending params to the end
  9622. *
  9623. * @param {string} url The base of the url (e.g., http://www.google.com)
  9624. * @param {object} [params] The params to be appended
  9625. * @returns {string} The formatted url
  9626. */
  9627. function buildURL(url, params) {
  9628. /* eslint no-param-reassign:0 */
  9629. if (!params) {
  9630. return url;
  9631. }
  9632. var serializedParams;
  9633. if (utils.isURLSearchParams(params)) {
  9634. serializedParams = params.toString();
  9635. } else {
  9636. var parts = [];
  9637. utils.forEach(params, function (val, key) {
  9638. if (val === null || typeof val === 'undefined') {
  9639. return;
  9640. }
  9641. if (utils.isArray(val)) {
  9642. key = "".concat(key, "[]");
  9643. } else {
  9644. val = [val];
  9645. }
  9646. utils.forEach(val, function (v) {
  9647. if (utils.isDate(v)) {
  9648. v = v.toISOString();
  9649. } else if (utils.isObject(v)) {
  9650. v = JSON.stringify(v);
  9651. }
  9652. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9653. });
  9654. });
  9655. serializedParams = parts.join('&');
  9656. }
  9657. if (serializedParams) {
  9658. var hashmarkIndex = url.indexOf('#');
  9659. if (hashmarkIndex !== -1) {
  9660. url = url.slice(0, hashmarkIndex);
  9661. }
  9662. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9663. }
  9664. return url;
  9665. }
  9666. /***/ }),
  9667. /* 42 */
  9668. /*!*********************************************************************************************!*\
  9669. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/utils.js ***!
  9670. \*********************************************************************************************/
  9671. /*! no static exports found */
  9672. /***/ (function(module, exports, __webpack_require__) {
  9673. "use strict";
  9674. // utils is a library of generic helper functions non-specific to axios
  9675. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9676. Object.defineProperty(exports, "__esModule", {
  9677. value: true
  9678. });
  9679. exports.deepMerge = deepMerge;
  9680. exports.forEach = forEach;
  9681. exports.isArray = isArray;
  9682. exports.isBoolean = isBoolean;
  9683. exports.isDate = isDate;
  9684. exports.isObject = isObject;
  9685. exports.isPlainObject = isPlainObject;
  9686. exports.isURLSearchParams = isURLSearchParams;
  9687. exports.isUndefined = isUndefined;
  9688. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9689. var toString = Object.prototype.toString;
  9690. /**
  9691. * Determine if a value is an Array
  9692. *
  9693. * @param {Object} val The value to test
  9694. * @returns {boolean} True if value is an Array, otherwise false
  9695. */
  9696. function isArray(val) {
  9697. return toString.call(val) === '[object Array]';
  9698. }
  9699. /**
  9700. * Determine if a value is an Object
  9701. *
  9702. * @param {Object} val The value to test
  9703. * @returns {boolean} True if value is an Object, otherwise false
  9704. */
  9705. function isObject(val) {
  9706. return val !== null && (0, _typeof2.default)(val) === 'object';
  9707. }
  9708. /**
  9709. * Determine if a value is a Date
  9710. *
  9711. * @param {Object} val The value to test
  9712. * @returns {boolean} True if value is a Date, otherwise false
  9713. */
  9714. function isDate(val) {
  9715. return toString.call(val) === '[object Date]';
  9716. }
  9717. /**
  9718. * Determine if a value is a URLSearchParams object
  9719. *
  9720. * @param {Object} val The value to test
  9721. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9722. */
  9723. function isURLSearchParams(val) {
  9724. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9725. }
  9726. /**
  9727. * Iterate over an Array or an Object invoking a function for each item.
  9728. *
  9729. * If `obj` is an Array callback will be called passing
  9730. * the value, index, and complete array for each item.
  9731. *
  9732. * If 'obj' is an Object callback will be called passing
  9733. * the value, key, and complete object for each property.
  9734. *
  9735. * @param {Object|Array} obj The object to iterate
  9736. * @param {Function} fn The callback to invoke for each item
  9737. */
  9738. function forEach(obj, fn) {
  9739. // Don't bother if no value provided
  9740. if (obj === null || typeof obj === 'undefined') {
  9741. return;
  9742. }
  9743. // Force an array if not already something iterable
  9744. if ((0, _typeof2.default)(obj) !== 'object') {
  9745. /* eslint no-param-reassign:0 */
  9746. obj = [obj];
  9747. }
  9748. if (isArray(obj)) {
  9749. // Iterate over array values
  9750. for (var i = 0, l = obj.length; i < l; i++) {
  9751. fn.call(null, obj[i], i, obj);
  9752. }
  9753. } else {
  9754. // Iterate over object keys
  9755. for (var key in obj) {
  9756. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9757. fn.call(null, obj[key], key, obj);
  9758. }
  9759. }
  9760. }
  9761. }
  9762. /**
  9763. * 是否为boolean 值
  9764. * @param val
  9765. * @returns {boolean}
  9766. */
  9767. function isBoolean(val) {
  9768. return typeof val === 'boolean';
  9769. }
  9770. /**
  9771. * 是否为真正的对象{} new Object
  9772. * @param {any} obj - 检测的对象
  9773. * @returns {boolean}
  9774. */
  9775. function isPlainObject(obj) {
  9776. return Object.prototype.toString.call(obj) === '[object Object]';
  9777. }
  9778. /**
  9779. * Function equal to merge with the difference being that no reference
  9780. * to original objects is kept.
  9781. *
  9782. * @see merge
  9783. * @param {Object} obj1 Object to merge
  9784. * @returns {Object} Result of all merge properties
  9785. */
  9786. function deepMerge( /* obj1, obj2, obj3, ... */
  9787. ) {
  9788. var result = {};
  9789. function assignValue(val, key) {
  9790. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9791. result[key] = deepMerge(result[key], val);
  9792. } else if ((0, _typeof2.default)(val) === 'object') {
  9793. result[key] = deepMerge({}, val);
  9794. } else {
  9795. result[key] = val;
  9796. }
  9797. }
  9798. for (var i = 0, l = arguments.length; i < l; i++) {
  9799. forEach(arguments[i], assignValue);
  9800. }
  9801. return result;
  9802. }
  9803. function isUndefined(val) {
  9804. return typeof val === 'undefined';
  9805. }
  9806. /***/ }),
  9807. /* 43 */
  9808. /*!**********************************************************************************************************!*\
  9809. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9810. \**********************************************************************************************************/
  9811. /*! no static exports found */
  9812. /***/ (function(module, exports, __webpack_require__) {
  9813. "use strict";
  9814. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9815. Object.defineProperty(exports, "__esModule", {
  9816. value: true
  9817. });
  9818. exports.default = buildFullPath;
  9819. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 44));
  9820. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 45));
  9821. /**
  9822. * Creates a new URL by combining the baseURL with the requestedURL,
  9823. * only when the requestedURL is not already an absolute URL.
  9824. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9825. *
  9826. * @param {string} baseURL The base URL
  9827. * @param {string} requestedURL Absolute or relative URL to combine
  9828. * @returns {string} The combined full path
  9829. */
  9830. function buildFullPath(baseURL, requestedURL) {
  9831. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9832. return (0, _combineURLs.default)(baseURL, requestedURL);
  9833. }
  9834. return requestedURL;
  9835. }
  9836. /***/ }),
  9837. /* 44 */
  9838. /*!*************************************************************************************************************!*\
  9839. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9840. \*************************************************************************************************************/
  9841. /*! no static exports found */
  9842. /***/ (function(module, exports, __webpack_require__) {
  9843. "use strict";
  9844. /**
  9845. * Determines whether the specified URL is absolute
  9846. *
  9847. * @param {string} url The URL to test
  9848. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9849. */
  9850. Object.defineProperty(exports, "__esModule", {
  9851. value: true
  9852. });
  9853. exports.default = isAbsoluteURL;
  9854. function isAbsoluteURL(url) {
  9855. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9856. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9857. // by any combination of letters, digits, plus, period, or hyphen.
  9858. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9859. }
  9860. /***/ }),
  9861. /* 45 */
  9862. /*!***********************************************************************************************************!*\
  9863. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9864. \***********************************************************************************************************/
  9865. /*! no static exports found */
  9866. /***/ (function(module, exports, __webpack_require__) {
  9867. "use strict";
  9868. /**
  9869. * Creates a new URL by combining the specified URLs
  9870. *
  9871. * @param {string} baseURL The base URL
  9872. * @param {string} relativeURL The relative URL
  9873. * @returns {string} The combined URL
  9874. */
  9875. Object.defineProperty(exports, "__esModule", {
  9876. value: true
  9877. });
  9878. exports.default = combineURLs;
  9879. function combineURLs(baseURL, relativeURL) {
  9880. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9881. }
  9882. /***/ }),
  9883. /* 46 */
  9884. /*!***************************************************************************************************!*\
  9885. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9886. \***************************************************************************************************/
  9887. /*! no static exports found */
  9888. /***/ (function(module, exports, __webpack_require__) {
  9889. "use strict";
  9890. Object.defineProperty(exports, "__esModule", {
  9891. value: true
  9892. });
  9893. exports.default = settle;
  9894. /**
  9895. * Resolve or reject a Promise based on response status.
  9896. *
  9897. * @param {Function} resolve A function that resolves the promise.
  9898. * @param {Function} reject A function that rejects the promise.
  9899. * @param {object} response The response.
  9900. */
  9901. function settle(resolve, reject, response) {
  9902. var validateStatus = response.config.validateStatus;
  9903. var status = response.statusCode;
  9904. if (status && (!validateStatus || validateStatus(status))) {
  9905. resolve(response);
  9906. } else {
  9907. reject(response);
  9908. }
  9909. }
  9910. /***/ }),
  9911. /* 47 */
  9912. /*!***************************************************************************************************************!*\
  9913. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9914. \***************************************************************************************************************/
  9915. /*! no static exports found */
  9916. /***/ (function(module, exports, __webpack_require__) {
  9917. "use strict";
  9918. Object.defineProperty(exports, "__esModule", {
  9919. value: true
  9920. });
  9921. exports.default = void 0;
  9922. function InterceptorManager() {
  9923. this.handlers = [];
  9924. }
  9925. /**
  9926. * Add a new interceptor to the stack
  9927. *
  9928. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9929. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9930. *
  9931. * @return {Number} An ID used to remove interceptor later
  9932. */
  9933. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9934. this.handlers.push({
  9935. fulfilled: fulfilled,
  9936. rejected: rejected
  9937. });
  9938. return this.handlers.length - 1;
  9939. };
  9940. /**
  9941. * Remove an interceptor from the stack
  9942. *
  9943. * @param {Number} id The ID that was returned by `use`
  9944. */
  9945. InterceptorManager.prototype.eject = function eject(id) {
  9946. if (this.handlers[id]) {
  9947. this.handlers[id] = null;
  9948. }
  9949. };
  9950. /**
  9951. * Iterate over all the registered interceptors
  9952. *
  9953. * This method is particularly useful for skipping over any
  9954. * interceptors that may have become `null` calling `eject`.
  9955. *
  9956. * @param {Function} fn The function to call for each interceptor
  9957. */
  9958. InterceptorManager.prototype.forEach = function forEach(fn) {
  9959. this.handlers.forEach(function (h) {
  9960. if (h !== null) {
  9961. fn(h);
  9962. }
  9963. });
  9964. };
  9965. var _default = InterceptorManager;
  9966. exports.default = _default;
  9967. /***/ }),
  9968. /* 48 */
  9969. /*!********************************************************************************************************!*\
  9970. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9971. \********************************************************************************************************/
  9972. /*! no static exports found */
  9973. /***/ (function(module, exports, __webpack_require__) {
  9974. "use strict";
  9975. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9976. Object.defineProperty(exports, "__esModule", {
  9977. value: true
  9978. });
  9979. exports.default = void 0;
  9980. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9981. var _utils = __webpack_require__(/*! ../utils */ 42);
  9982. 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; }
  9983. 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; }
  9984. /**
  9985. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9986. * @param {Array} keys - 配置项
  9987. * @param {Object} globalsConfig - 当前的全局配置
  9988. * @param {Object} config2 - 局部配置
  9989. * @return {{}}
  9990. */
  9991. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9992. var config = {};
  9993. keys.forEach(function (prop) {
  9994. if (!(0, _utils.isUndefined)(config2[prop])) {
  9995. config[prop] = config2[prop];
  9996. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9997. config[prop] = globalsConfig[prop];
  9998. }
  9999. });
  10000. return config;
  10001. };
  10002. /**
  10003. *
  10004. * @param globalsConfig - 当前实例的全局配置
  10005. * @param config2 - 当前的局部配置
  10006. * @return - 合并后的配置
  10007. */
  10008. var _default = function _default(globalsConfig) {
  10009. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10010. var method = config2.method || globalsConfig.method || 'GET';
  10011. var config = {
  10012. baseURL: globalsConfig.baseURL || '',
  10013. method: method,
  10014. url: config2.url || '',
  10015. params: config2.params || {},
  10016. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10017. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10018. };
  10019. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10020. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10021. // eslint-disable-next-line no-empty
  10022. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10023. delete config.header['content-type'];
  10024. delete config.header['Content-Type'];
  10025. var uploadKeys = ['filePath', 'name', 'formData'];
  10026. uploadKeys.forEach(function (prop) {
  10027. if (!(0, _utils.isUndefined)(config2[prop])) {
  10028. config[prop] = config2[prop];
  10029. }
  10030. });
  10031. } else {
  10032. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  10033. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10034. }
  10035. return config;
  10036. };
  10037. exports.default = _default;
  10038. /***/ }),
  10039. /* 49 */
  10040. /*!*****************************************************************************************************!*\
  10041. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10042. \*****************************************************************************************************/
  10043. /*! no static exports found */
  10044. /***/ (function(module, exports, __webpack_require__) {
  10045. "use strict";
  10046. Object.defineProperty(exports, "__esModule", {
  10047. value: true
  10048. });
  10049. exports.default = void 0;
  10050. /**
  10051. * 默认的全局配置
  10052. */
  10053. var _default = {
  10054. baseURL: '',
  10055. header: {},
  10056. method: 'GET',
  10057. dataType: 'json',
  10058. responseType: 'text',
  10059. custom: {},
  10060. timeout: 60000,
  10061. validateStatus: function validateStatus(status) {
  10062. return status >= 200 && status < 300;
  10063. }
  10064. };
  10065. exports.default = _default;
  10066. /***/ }),
  10067. /* 50 */
  10068. /*!***************************************************************************************************!*\
  10069. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10070. \***************************************************************************************************/
  10071. /*! no static exports found */
  10072. /***/ (function(module, exports, __webpack_require__) {
  10073. "use strict";
  10074. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10075. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10076. Object.defineProperty(exports, "__esModule", {
  10077. value: true
  10078. });
  10079. exports.default = void 0;
  10080. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10081. /* eslint-disable */
  10082. var clone = function () {
  10083. 'use strict';
  10084. function _instanceof(obj, type) {
  10085. return type != null && obj instanceof type;
  10086. }
  10087. var nativeMap;
  10088. try {
  10089. nativeMap = Map;
  10090. } catch (_) {
  10091. // maybe a reference error because no `Map`. Give it a dummy value that no
  10092. // value will ever be an instanceof.
  10093. nativeMap = function nativeMap() {};
  10094. }
  10095. var nativeSet;
  10096. try {
  10097. nativeSet = Set;
  10098. } catch (_) {
  10099. nativeSet = function nativeSet() {};
  10100. }
  10101. var nativePromise;
  10102. try {
  10103. nativePromise = Promise;
  10104. } catch (_) {
  10105. nativePromise = function nativePromise() {};
  10106. }
  10107. /**
  10108. * Clones (copies) an Object using deep copying.
  10109. *
  10110. * This function supports circular references by default, but if you are certain
  10111. * there are no circular references in your object, you can save some CPU time
  10112. * by calling clone(obj, false).
  10113. *
  10114. * Caution: if `circular` is false and `parent` contains circular references,
  10115. * your program may enter an infinite loop and crash.
  10116. *
  10117. * @param `parent` - the object to be cloned
  10118. * @param `circular` - set to true if the object to be cloned may contain
  10119. * circular references. (optional - true by default)
  10120. * @param `depth` - set to a number if the object is only to be cloned to
  10121. * a particular depth. (optional - defaults to Infinity)
  10122. * @param `prototype` - sets the prototype to be used when cloning an object.
  10123. * (optional - defaults to parent prototype).
  10124. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10125. * should be cloned as well. Non-enumerable properties on the prototype
  10126. * chain will be ignored. (optional - false by default)
  10127. */
  10128. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10129. if ((0, _typeof2.default)(circular) === 'object') {
  10130. depth = circular.depth;
  10131. prototype = circular.prototype;
  10132. includeNonEnumerable = circular.includeNonEnumerable;
  10133. circular = circular.circular;
  10134. }
  10135. // maintain two arrays for circular references, where corresponding parents
  10136. // and children have the same index
  10137. var allParents = [];
  10138. var allChildren = [];
  10139. var useBuffer = typeof Buffer != 'undefined';
  10140. if (typeof circular == 'undefined') circular = true;
  10141. if (typeof depth == 'undefined') depth = Infinity;
  10142. // recurse this function so we don't reset allParents and allChildren
  10143. function _clone(parent, depth) {
  10144. // cloning null always returns null
  10145. if (parent === null) return null;
  10146. if (depth === 0) return parent;
  10147. var child;
  10148. var proto;
  10149. if ((0, _typeof2.default)(parent) != 'object') {
  10150. return parent;
  10151. }
  10152. if (_instanceof(parent, nativeMap)) {
  10153. child = new nativeMap();
  10154. } else if (_instanceof(parent, nativeSet)) {
  10155. child = new nativeSet();
  10156. } else if (_instanceof(parent, nativePromise)) {
  10157. child = new nativePromise(function (resolve, reject) {
  10158. parent.then(function (value) {
  10159. resolve(_clone(value, depth - 1));
  10160. }, function (err) {
  10161. reject(_clone(err, depth - 1));
  10162. });
  10163. });
  10164. } else if (clone.__isArray(parent)) {
  10165. child = [];
  10166. } else if (clone.__isRegExp(parent)) {
  10167. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10168. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10169. } else if (clone.__isDate(parent)) {
  10170. child = new Date(parent.getTime());
  10171. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10172. if (Buffer.from) {
  10173. // Node.js >= 5.10.0
  10174. child = Buffer.from(parent);
  10175. } else {
  10176. // Older Node.js versions
  10177. child = new Buffer(parent.length);
  10178. parent.copy(child);
  10179. }
  10180. return child;
  10181. } else if (_instanceof(parent, Error)) {
  10182. child = Object.create(parent);
  10183. } else {
  10184. if (typeof prototype == 'undefined') {
  10185. proto = Object.getPrototypeOf(parent);
  10186. child = Object.create(proto);
  10187. } else {
  10188. child = Object.create(prototype);
  10189. proto = prototype;
  10190. }
  10191. }
  10192. if (circular) {
  10193. var index = allParents.indexOf(parent);
  10194. if (index != -1) {
  10195. return allChildren[index];
  10196. }
  10197. allParents.push(parent);
  10198. allChildren.push(child);
  10199. }
  10200. if (_instanceof(parent, nativeMap)) {
  10201. parent.forEach(function (value, key) {
  10202. var keyChild = _clone(key, depth - 1);
  10203. var valueChild = _clone(value, depth - 1);
  10204. child.set(keyChild, valueChild);
  10205. });
  10206. }
  10207. if (_instanceof(parent, nativeSet)) {
  10208. parent.forEach(function (value) {
  10209. var entryChild = _clone(value, depth - 1);
  10210. child.add(entryChild);
  10211. });
  10212. }
  10213. for (var i in parent) {
  10214. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10215. if (attrs) {
  10216. child[i] = _clone(parent[i], depth - 1);
  10217. }
  10218. try {
  10219. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10220. if (objProperty.set === 'undefined') {
  10221. // no setter defined. Skip cloning this property
  10222. continue;
  10223. }
  10224. child[i] = _clone(parent[i], depth - 1);
  10225. } catch (e) {
  10226. if (e instanceof TypeError) {
  10227. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10228. // we can't do anything about this, other than inform the user that this property cannot be set.
  10229. continue;
  10230. } else if (e instanceof ReferenceError) {
  10231. //this may happen in non strict mode
  10232. continue;
  10233. }
  10234. }
  10235. }
  10236. if (Object.getOwnPropertySymbols) {
  10237. var symbols = Object.getOwnPropertySymbols(parent);
  10238. for (var i = 0; i < symbols.length; i++) {
  10239. // Don't need to worry about cloning a symbol because it is a primitive,
  10240. // like a number or string.
  10241. var symbol = symbols[i];
  10242. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10243. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10244. continue;
  10245. }
  10246. child[symbol] = _clone(parent[symbol], depth - 1);
  10247. Object.defineProperty(child, symbol, descriptor);
  10248. }
  10249. }
  10250. if (includeNonEnumerable) {
  10251. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10252. for (var i = 0; i < allPropertyNames.length; i++) {
  10253. var propertyName = allPropertyNames[i];
  10254. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10255. if (descriptor && descriptor.enumerable) {
  10256. continue;
  10257. }
  10258. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10259. Object.defineProperty(child, propertyName, descriptor);
  10260. }
  10261. }
  10262. return child;
  10263. }
  10264. return _clone(parent, depth);
  10265. }
  10266. /**
  10267. * Simple flat clone using prototype, accepts only objects, usefull for property
  10268. * override on FLAT configuration object (no nested props).
  10269. *
  10270. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10271. * works.
  10272. */
  10273. clone.clonePrototype = function clonePrototype(parent) {
  10274. if (parent === null) return null;
  10275. var c = function c() {};
  10276. c.prototype = parent;
  10277. return new c();
  10278. };
  10279. // private utility functions
  10280. function __objToStr(o) {
  10281. return Object.prototype.toString.call(o);
  10282. }
  10283. clone.__objToStr = __objToStr;
  10284. function __isDate(o) {
  10285. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10286. }
  10287. clone.__isDate = __isDate;
  10288. function __isArray(o) {
  10289. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10290. }
  10291. clone.__isArray = __isArray;
  10292. function __isRegExp(o) {
  10293. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10294. }
  10295. clone.__isRegExp = __isRegExp;
  10296. function __getRegExpFlags(re) {
  10297. var flags = '';
  10298. if (re.global) flags += 'g';
  10299. if (re.ignoreCase) flags += 'i';
  10300. if (re.multiline) flags += 'm';
  10301. return flags;
  10302. }
  10303. clone.__getRegExpFlags = __getRegExpFlags;
  10304. return clone;
  10305. }();
  10306. var _default = clone;
  10307. exports.default = _default;
  10308. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 51).Buffer))
  10309. /***/ }),
  10310. /* 51 */
  10311. /*!**************************************!*\
  10312. !*** ./node_modules/buffer/index.js ***!
  10313. \**************************************/
  10314. /*! no static exports found */
  10315. /***/ (function(module, exports, __webpack_require__) {
  10316. "use strict";
  10317. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10318. * The buffer module from node.js, for the browser.
  10319. *
  10320. * @author Feross Aboukhadijeh <http://feross.org>
  10321. * @license MIT
  10322. */
  10323. /* eslint-disable no-proto */
  10324. var base64 = __webpack_require__(/*! base64-js */ 52)
  10325. var ieee754 = __webpack_require__(/*! ieee754 */ 53)
  10326. var isArray = __webpack_require__(/*! isarray */ 54)
  10327. exports.Buffer = Buffer
  10328. exports.SlowBuffer = SlowBuffer
  10329. exports.INSPECT_MAX_BYTES = 50
  10330. /**
  10331. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10332. * === true Use Uint8Array implementation (fastest)
  10333. * === false Use Object implementation (most compatible, even IE6)
  10334. *
  10335. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10336. * Opera 11.6+, iOS 4.2+.
  10337. *
  10338. * Due to various browser bugs, sometimes the Object implementation will be used even
  10339. * when the browser supports typed arrays.
  10340. *
  10341. * Note:
  10342. *
  10343. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10344. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10345. *
  10346. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10347. *
  10348. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10349. * incorrect length in some situations.
  10350. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10351. * get the Object implementation, which is slower but behaves correctly.
  10352. */
  10353. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10354. ? global.TYPED_ARRAY_SUPPORT
  10355. : typedArraySupport()
  10356. /*
  10357. * Export kMaxLength after typed array support is determined.
  10358. */
  10359. exports.kMaxLength = kMaxLength()
  10360. function typedArraySupport () {
  10361. try {
  10362. var arr = new Uint8Array(1)
  10363. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10364. return arr.foo() === 42 && // typed array instances can be augmented
  10365. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10366. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10367. } catch (e) {
  10368. return false
  10369. }
  10370. }
  10371. function kMaxLength () {
  10372. return Buffer.TYPED_ARRAY_SUPPORT
  10373. ? 0x7fffffff
  10374. : 0x3fffffff
  10375. }
  10376. function createBuffer (that, length) {
  10377. if (kMaxLength() < length) {
  10378. throw new RangeError('Invalid typed array length')
  10379. }
  10380. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10381. // Return an augmented `Uint8Array` instance, for best performance
  10382. that = new Uint8Array(length)
  10383. that.__proto__ = Buffer.prototype
  10384. } else {
  10385. // Fallback: Return an object instance of the Buffer class
  10386. if (that === null) {
  10387. that = new Buffer(length)
  10388. }
  10389. that.length = length
  10390. }
  10391. return that
  10392. }
  10393. /**
  10394. * The Buffer constructor returns instances of `Uint8Array` that have their
  10395. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10396. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10397. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10398. * returns a single octet.
  10399. *
  10400. * The `Uint8Array` prototype remains unmodified.
  10401. */
  10402. function Buffer (arg, encodingOrOffset, length) {
  10403. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10404. return new Buffer(arg, encodingOrOffset, length)
  10405. }
  10406. // Common case.
  10407. if (typeof arg === 'number') {
  10408. if (typeof encodingOrOffset === 'string') {
  10409. throw new Error(
  10410. 'If encoding is specified then the first argument must be a string'
  10411. )
  10412. }
  10413. return allocUnsafe(this, arg)
  10414. }
  10415. return from(this, arg, encodingOrOffset, length)
  10416. }
  10417. Buffer.poolSize = 8192 // not used by this implementation
  10418. // TODO: Legacy, not needed anymore. Remove in next major version.
  10419. Buffer._augment = function (arr) {
  10420. arr.__proto__ = Buffer.prototype
  10421. return arr
  10422. }
  10423. function from (that, value, encodingOrOffset, length) {
  10424. if (typeof value === 'number') {
  10425. throw new TypeError('"value" argument must not be a number')
  10426. }
  10427. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10428. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10429. }
  10430. if (typeof value === 'string') {
  10431. return fromString(that, value, encodingOrOffset)
  10432. }
  10433. return fromObject(that, value)
  10434. }
  10435. /**
  10436. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10437. * if value is a number.
  10438. * Buffer.from(str[, encoding])
  10439. * Buffer.from(array)
  10440. * Buffer.from(buffer)
  10441. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10442. **/
  10443. Buffer.from = function (value, encodingOrOffset, length) {
  10444. return from(null, value, encodingOrOffset, length)
  10445. }
  10446. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10447. Buffer.prototype.__proto__ = Uint8Array.prototype
  10448. Buffer.__proto__ = Uint8Array
  10449. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10450. Buffer[Symbol.species] === Buffer) {
  10451. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10452. Object.defineProperty(Buffer, Symbol.species, {
  10453. value: null,
  10454. configurable: true
  10455. })
  10456. }
  10457. }
  10458. function assertSize (size) {
  10459. if (typeof size !== 'number') {
  10460. throw new TypeError('"size" argument must be a number')
  10461. } else if (size < 0) {
  10462. throw new RangeError('"size" argument must not be negative')
  10463. }
  10464. }
  10465. function alloc (that, size, fill, encoding) {
  10466. assertSize(size)
  10467. if (size <= 0) {
  10468. return createBuffer(that, size)
  10469. }
  10470. if (fill !== undefined) {
  10471. // Only pay attention to encoding if it's a string. This
  10472. // prevents accidentally sending in a number that would
  10473. // be interpretted as a start offset.
  10474. return typeof encoding === 'string'
  10475. ? createBuffer(that, size).fill(fill, encoding)
  10476. : createBuffer(that, size).fill(fill)
  10477. }
  10478. return createBuffer(that, size)
  10479. }
  10480. /**
  10481. * Creates a new filled Buffer instance.
  10482. * alloc(size[, fill[, encoding]])
  10483. **/
  10484. Buffer.alloc = function (size, fill, encoding) {
  10485. return alloc(null, size, fill, encoding)
  10486. }
  10487. function allocUnsafe (that, size) {
  10488. assertSize(size)
  10489. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10490. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10491. for (var i = 0; i < size; ++i) {
  10492. that[i] = 0
  10493. }
  10494. }
  10495. return that
  10496. }
  10497. /**
  10498. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10499. * */
  10500. Buffer.allocUnsafe = function (size) {
  10501. return allocUnsafe(null, size)
  10502. }
  10503. /**
  10504. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10505. */
  10506. Buffer.allocUnsafeSlow = function (size) {
  10507. return allocUnsafe(null, size)
  10508. }
  10509. function fromString (that, string, encoding) {
  10510. if (typeof encoding !== 'string' || encoding === '') {
  10511. encoding = 'utf8'
  10512. }
  10513. if (!Buffer.isEncoding(encoding)) {
  10514. throw new TypeError('"encoding" must be a valid string encoding')
  10515. }
  10516. var length = byteLength(string, encoding) | 0
  10517. that = createBuffer(that, length)
  10518. var actual = that.write(string, encoding)
  10519. if (actual !== length) {
  10520. // Writing a hex string, for example, that contains invalid characters will
  10521. // cause everything after the first invalid character to be ignored. (e.g.
  10522. // 'abxxcd' will be treated as 'ab')
  10523. that = that.slice(0, actual)
  10524. }
  10525. return that
  10526. }
  10527. function fromArrayLike (that, array) {
  10528. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10529. that = createBuffer(that, length)
  10530. for (var i = 0; i < length; i += 1) {
  10531. that[i] = array[i] & 255
  10532. }
  10533. return that
  10534. }
  10535. function fromArrayBuffer (that, array, byteOffset, length) {
  10536. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10537. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10538. throw new RangeError('\'offset\' is out of bounds')
  10539. }
  10540. if (array.byteLength < byteOffset + (length || 0)) {
  10541. throw new RangeError('\'length\' is out of bounds')
  10542. }
  10543. if (byteOffset === undefined && length === undefined) {
  10544. array = new Uint8Array(array)
  10545. } else if (length === undefined) {
  10546. array = new Uint8Array(array, byteOffset)
  10547. } else {
  10548. array = new Uint8Array(array, byteOffset, length)
  10549. }
  10550. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10551. // Return an augmented `Uint8Array` instance, for best performance
  10552. that = array
  10553. that.__proto__ = Buffer.prototype
  10554. } else {
  10555. // Fallback: Return an object instance of the Buffer class
  10556. that = fromArrayLike(that, array)
  10557. }
  10558. return that
  10559. }
  10560. function fromObject (that, obj) {
  10561. if (Buffer.isBuffer(obj)) {
  10562. var len = checked(obj.length) | 0
  10563. that = createBuffer(that, len)
  10564. if (that.length === 0) {
  10565. return that
  10566. }
  10567. obj.copy(that, 0, 0, len)
  10568. return that
  10569. }
  10570. if (obj) {
  10571. if ((typeof ArrayBuffer !== 'undefined' &&
  10572. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10573. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10574. return createBuffer(that, 0)
  10575. }
  10576. return fromArrayLike(that, obj)
  10577. }
  10578. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10579. return fromArrayLike(that, obj.data)
  10580. }
  10581. }
  10582. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10583. }
  10584. function checked (length) {
  10585. // Note: cannot use `length < kMaxLength()` here because that fails when
  10586. // length is NaN (which is otherwise coerced to zero.)
  10587. if (length >= kMaxLength()) {
  10588. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10589. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10590. }
  10591. return length | 0
  10592. }
  10593. function SlowBuffer (length) {
  10594. if (+length != length) { // eslint-disable-line eqeqeq
  10595. length = 0
  10596. }
  10597. return Buffer.alloc(+length)
  10598. }
  10599. Buffer.isBuffer = function isBuffer (b) {
  10600. return !!(b != null && b._isBuffer)
  10601. }
  10602. Buffer.compare = function compare (a, b) {
  10603. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10604. throw new TypeError('Arguments must be Buffers')
  10605. }
  10606. if (a === b) return 0
  10607. var x = a.length
  10608. var y = b.length
  10609. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10610. if (a[i] !== b[i]) {
  10611. x = a[i]
  10612. y = b[i]
  10613. break
  10614. }
  10615. }
  10616. if (x < y) return -1
  10617. if (y < x) return 1
  10618. return 0
  10619. }
  10620. Buffer.isEncoding = function isEncoding (encoding) {
  10621. switch (String(encoding).toLowerCase()) {
  10622. case 'hex':
  10623. case 'utf8':
  10624. case 'utf-8':
  10625. case 'ascii':
  10626. case 'latin1':
  10627. case 'binary':
  10628. case 'base64':
  10629. case 'ucs2':
  10630. case 'ucs-2':
  10631. case 'utf16le':
  10632. case 'utf-16le':
  10633. return true
  10634. default:
  10635. return false
  10636. }
  10637. }
  10638. Buffer.concat = function concat (list, length) {
  10639. if (!isArray(list)) {
  10640. throw new TypeError('"list" argument must be an Array of Buffers')
  10641. }
  10642. if (list.length === 0) {
  10643. return Buffer.alloc(0)
  10644. }
  10645. var i
  10646. if (length === undefined) {
  10647. length = 0
  10648. for (i = 0; i < list.length; ++i) {
  10649. length += list[i].length
  10650. }
  10651. }
  10652. var buffer = Buffer.allocUnsafe(length)
  10653. var pos = 0
  10654. for (i = 0; i < list.length; ++i) {
  10655. var buf = list[i]
  10656. if (!Buffer.isBuffer(buf)) {
  10657. throw new TypeError('"list" argument must be an Array of Buffers')
  10658. }
  10659. buf.copy(buffer, pos)
  10660. pos += buf.length
  10661. }
  10662. return buffer
  10663. }
  10664. function byteLength (string, encoding) {
  10665. if (Buffer.isBuffer(string)) {
  10666. return string.length
  10667. }
  10668. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10669. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10670. return string.byteLength
  10671. }
  10672. if (typeof string !== 'string') {
  10673. string = '' + string
  10674. }
  10675. var len = string.length
  10676. if (len === 0) return 0
  10677. // Use a for loop to avoid recursion
  10678. var loweredCase = false
  10679. for (;;) {
  10680. switch (encoding) {
  10681. case 'ascii':
  10682. case 'latin1':
  10683. case 'binary':
  10684. return len
  10685. case 'utf8':
  10686. case 'utf-8':
  10687. case undefined:
  10688. return utf8ToBytes(string).length
  10689. case 'ucs2':
  10690. case 'ucs-2':
  10691. case 'utf16le':
  10692. case 'utf-16le':
  10693. return len * 2
  10694. case 'hex':
  10695. return len >>> 1
  10696. case 'base64':
  10697. return base64ToBytes(string).length
  10698. default:
  10699. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10700. encoding = ('' + encoding).toLowerCase()
  10701. loweredCase = true
  10702. }
  10703. }
  10704. }
  10705. Buffer.byteLength = byteLength
  10706. function slowToString (encoding, start, end) {
  10707. var loweredCase = false
  10708. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10709. // property of a typed array.
  10710. // This behaves neither like String nor Uint8Array in that we set start/end
  10711. // to their upper/lower bounds if the value passed is out of range.
  10712. // undefined is handled specially as per ECMA-262 6th Edition,
  10713. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10714. if (start === undefined || start < 0) {
  10715. start = 0
  10716. }
  10717. // Return early if start > this.length. Done here to prevent potential uint32
  10718. // coercion fail below.
  10719. if (start > this.length) {
  10720. return ''
  10721. }
  10722. if (end === undefined || end > this.length) {
  10723. end = this.length
  10724. }
  10725. if (end <= 0) {
  10726. return ''
  10727. }
  10728. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10729. end >>>= 0
  10730. start >>>= 0
  10731. if (end <= start) {
  10732. return ''
  10733. }
  10734. if (!encoding) encoding = 'utf8'
  10735. while (true) {
  10736. switch (encoding) {
  10737. case 'hex':
  10738. return hexSlice(this, start, end)
  10739. case 'utf8':
  10740. case 'utf-8':
  10741. return utf8Slice(this, start, end)
  10742. case 'ascii':
  10743. return asciiSlice(this, start, end)
  10744. case 'latin1':
  10745. case 'binary':
  10746. return latin1Slice(this, start, end)
  10747. case 'base64':
  10748. return base64Slice(this, start, end)
  10749. case 'ucs2':
  10750. case 'ucs-2':
  10751. case 'utf16le':
  10752. case 'utf-16le':
  10753. return utf16leSlice(this, start, end)
  10754. default:
  10755. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10756. encoding = (encoding + '').toLowerCase()
  10757. loweredCase = true
  10758. }
  10759. }
  10760. }
  10761. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10762. // Buffer instances.
  10763. Buffer.prototype._isBuffer = true
  10764. function swap (b, n, m) {
  10765. var i = b[n]
  10766. b[n] = b[m]
  10767. b[m] = i
  10768. }
  10769. Buffer.prototype.swap16 = function swap16 () {
  10770. var len = this.length
  10771. if (len % 2 !== 0) {
  10772. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10773. }
  10774. for (var i = 0; i < len; i += 2) {
  10775. swap(this, i, i + 1)
  10776. }
  10777. return this
  10778. }
  10779. Buffer.prototype.swap32 = function swap32 () {
  10780. var len = this.length
  10781. if (len % 4 !== 0) {
  10782. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10783. }
  10784. for (var i = 0; i < len; i += 4) {
  10785. swap(this, i, i + 3)
  10786. swap(this, i + 1, i + 2)
  10787. }
  10788. return this
  10789. }
  10790. Buffer.prototype.swap64 = function swap64 () {
  10791. var len = this.length
  10792. if (len % 8 !== 0) {
  10793. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10794. }
  10795. for (var i = 0; i < len; i += 8) {
  10796. swap(this, i, i + 7)
  10797. swap(this, i + 1, i + 6)
  10798. swap(this, i + 2, i + 5)
  10799. swap(this, i + 3, i + 4)
  10800. }
  10801. return this
  10802. }
  10803. Buffer.prototype.toString = function toString () {
  10804. var length = this.length | 0
  10805. if (length === 0) return ''
  10806. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10807. return slowToString.apply(this, arguments)
  10808. }
  10809. Buffer.prototype.equals = function equals (b) {
  10810. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10811. if (this === b) return true
  10812. return Buffer.compare(this, b) === 0
  10813. }
  10814. Buffer.prototype.inspect = function inspect () {
  10815. var str = ''
  10816. var max = exports.INSPECT_MAX_BYTES
  10817. if (this.length > 0) {
  10818. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10819. if (this.length > max) str += ' ... '
  10820. }
  10821. return '<Buffer ' + str + '>'
  10822. }
  10823. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10824. if (!Buffer.isBuffer(target)) {
  10825. throw new TypeError('Argument must be a Buffer')
  10826. }
  10827. if (start === undefined) {
  10828. start = 0
  10829. }
  10830. if (end === undefined) {
  10831. end = target ? target.length : 0
  10832. }
  10833. if (thisStart === undefined) {
  10834. thisStart = 0
  10835. }
  10836. if (thisEnd === undefined) {
  10837. thisEnd = this.length
  10838. }
  10839. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10840. throw new RangeError('out of range index')
  10841. }
  10842. if (thisStart >= thisEnd && start >= end) {
  10843. return 0
  10844. }
  10845. if (thisStart >= thisEnd) {
  10846. return -1
  10847. }
  10848. if (start >= end) {
  10849. return 1
  10850. }
  10851. start >>>= 0
  10852. end >>>= 0
  10853. thisStart >>>= 0
  10854. thisEnd >>>= 0
  10855. if (this === target) return 0
  10856. var x = thisEnd - thisStart
  10857. var y = end - start
  10858. var len = Math.min(x, y)
  10859. var thisCopy = this.slice(thisStart, thisEnd)
  10860. var targetCopy = target.slice(start, end)
  10861. for (var i = 0; i < len; ++i) {
  10862. if (thisCopy[i] !== targetCopy[i]) {
  10863. x = thisCopy[i]
  10864. y = targetCopy[i]
  10865. break
  10866. }
  10867. }
  10868. if (x < y) return -1
  10869. if (y < x) return 1
  10870. return 0
  10871. }
  10872. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10873. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10874. //
  10875. // Arguments:
  10876. // - buffer - a Buffer to search
  10877. // - val - a string, Buffer, or number
  10878. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10879. // - encoding - an optional encoding, relevant is val is a string
  10880. // - dir - true for indexOf, false for lastIndexOf
  10881. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10882. // Empty buffer means no match
  10883. if (buffer.length === 0) return -1
  10884. // Normalize byteOffset
  10885. if (typeof byteOffset === 'string') {
  10886. encoding = byteOffset
  10887. byteOffset = 0
  10888. } else if (byteOffset > 0x7fffffff) {
  10889. byteOffset = 0x7fffffff
  10890. } else if (byteOffset < -0x80000000) {
  10891. byteOffset = -0x80000000
  10892. }
  10893. byteOffset = +byteOffset // Coerce to Number.
  10894. if (isNaN(byteOffset)) {
  10895. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10896. byteOffset = dir ? 0 : (buffer.length - 1)
  10897. }
  10898. // Normalize byteOffset: negative offsets start from the end of the buffer
  10899. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10900. if (byteOffset >= buffer.length) {
  10901. if (dir) return -1
  10902. else byteOffset = buffer.length - 1
  10903. } else if (byteOffset < 0) {
  10904. if (dir) byteOffset = 0
  10905. else return -1
  10906. }
  10907. // Normalize val
  10908. if (typeof val === 'string') {
  10909. val = Buffer.from(val, encoding)
  10910. }
  10911. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10912. if (Buffer.isBuffer(val)) {
  10913. // Special case: looking for empty string/buffer always fails
  10914. if (val.length === 0) {
  10915. return -1
  10916. }
  10917. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10918. } else if (typeof val === 'number') {
  10919. val = val & 0xFF // Search for a byte value [0-255]
  10920. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10921. typeof Uint8Array.prototype.indexOf === 'function') {
  10922. if (dir) {
  10923. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10924. } else {
  10925. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10926. }
  10927. }
  10928. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10929. }
  10930. throw new TypeError('val must be string, number or Buffer')
  10931. }
  10932. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10933. var indexSize = 1
  10934. var arrLength = arr.length
  10935. var valLength = val.length
  10936. if (encoding !== undefined) {
  10937. encoding = String(encoding).toLowerCase()
  10938. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10939. encoding === 'utf16le' || encoding === 'utf-16le') {
  10940. if (arr.length < 2 || val.length < 2) {
  10941. return -1
  10942. }
  10943. indexSize = 2
  10944. arrLength /= 2
  10945. valLength /= 2
  10946. byteOffset /= 2
  10947. }
  10948. }
  10949. function read (buf, i) {
  10950. if (indexSize === 1) {
  10951. return buf[i]
  10952. } else {
  10953. return buf.readUInt16BE(i * indexSize)
  10954. }
  10955. }
  10956. var i
  10957. if (dir) {
  10958. var foundIndex = -1
  10959. for (i = byteOffset; i < arrLength; i++) {
  10960. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10961. if (foundIndex === -1) foundIndex = i
  10962. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10963. } else {
  10964. if (foundIndex !== -1) i -= i - foundIndex
  10965. foundIndex = -1
  10966. }
  10967. }
  10968. } else {
  10969. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10970. for (i = byteOffset; i >= 0; i--) {
  10971. var found = true
  10972. for (var j = 0; j < valLength; j++) {
  10973. if (read(arr, i + j) !== read(val, j)) {
  10974. found = false
  10975. break
  10976. }
  10977. }
  10978. if (found) return i
  10979. }
  10980. }
  10981. return -1
  10982. }
  10983. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10984. return this.indexOf(val, byteOffset, encoding) !== -1
  10985. }
  10986. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10987. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10988. }
  10989. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10990. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10991. }
  10992. function hexWrite (buf, string, offset, length) {
  10993. offset = Number(offset) || 0
  10994. var remaining = buf.length - offset
  10995. if (!length) {
  10996. length = remaining
  10997. } else {
  10998. length = Number(length)
  10999. if (length > remaining) {
  11000. length = remaining
  11001. }
  11002. }
  11003. // must be an even number of digits
  11004. var strLen = string.length
  11005. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11006. if (length > strLen / 2) {
  11007. length = strLen / 2
  11008. }
  11009. for (var i = 0; i < length; ++i) {
  11010. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11011. if (isNaN(parsed)) return i
  11012. buf[offset + i] = parsed
  11013. }
  11014. return i
  11015. }
  11016. function utf8Write (buf, string, offset, length) {
  11017. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11018. }
  11019. function asciiWrite (buf, string, offset, length) {
  11020. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11021. }
  11022. function latin1Write (buf, string, offset, length) {
  11023. return asciiWrite(buf, string, offset, length)
  11024. }
  11025. function base64Write (buf, string, offset, length) {
  11026. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11027. }
  11028. function ucs2Write (buf, string, offset, length) {
  11029. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11030. }
  11031. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11032. // Buffer#write(string)
  11033. if (offset === undefined) {
  11034. encoding = 'utf8'
  11035. length = this.length
  11036. offset = 0
  11037. // Buffer#write(string, encoding)
  11038. } else if (length === undefined && typeof offset === 'string') {
  11039. encoding = offset
  11040. length = this.length
  11041. offset = 0
  11042. // Buffer#write(string, offset[, length][, encoding])
  11043. } else if (isFinite(offset)) {
  11044. offset = offset | 0
  11045. if (isFinite(length)) {
  11046. length = length | 0
  11047. if (encoding === undefined) encoding = 'utf8'
  11048. } else {
  11049. encoding = length
  11050. length = undefined
  11051. }
  11052. // legacy write(string, encoding, offset, length) - remove in v0.13
  11053. } else {
  11054. throw new Error(
  11055. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11056. )
  11057. }
  11058. var remaining = this.length - offset
  11059. if (length === undefined || length > remaining) length = remaining
  11060. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11061. throw new RangeError('Attempt to write outside buffer bounds')
  11062. }
  11063. if (!encoding) encoding = 'utf8'
  11064. var loweredCase = false
  11065. for (;;) {
  11066. switch (encoding) {
  11067. case 'hex':
  11068. return hexWrite(this, string, offset, length)
  11069. case 'utf8':
  11070. case 'utf-8':
  11071. return utf8Write(this, string, offset, length)
  11072. case 'ascii':
  11073. return asciiWrite(this, string, offset, length)
  11074. case 'latin1':
  11075. case 'binary':
  11076. return latin1Write(this, string, offset, length)
  11077. case 'base64':
  11078. // Warning: maxLength not taken into account in base64Write
  11079. return base64Write(this, string, offset, length)
  11080. case 'ucs2':
  11081. case 'ucs-2':
  11082. case 'utf16le':
  11083. case 'utf-16le':
  11084. return ucs2Write(this, string, offset, length)
  11085. default:
  11086. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11087. encoding = ('' + encoding).toLowerCase()
  11088. loweredCase = true
  11089. }
  11090. }
  11091. }
  11092. Buffer.prototype.toJSON = function toJSON () {
  11093. return {
  11094. type: 'Buffer',
  11095. data: Array.prototype.slice.call(this._arr || this, 0)
  11096. }
  11097. }
  11098. function base64Slice (buf, start, end) {
  11099. if (start === 0 && end === buf.length) {
  11100. return base64.fromByteArray(buf)
  11101. } else {
  11102. return base64.fromByteArray(buf.slice(start, end))
  11103. }
  11104. }
  11105. function utf8Slice (buf, start, end) {
  11106. end = Math.min(buf.length, end)
  11107. var res = []
  11108. var i = start
  11109. while (i < end) {
  11110. var firstByte = buf[i]
  11111. var codePoint = null
  11112. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11113. : (firstByte > 0xDF) ? 3
  11114. : (firstByte > 0xBF) ? 2
  11115. : 1
  11116. if (i + bytesPerSequence <= end) {
  11117. var secondByte, thirdByte, fourthByte, tempCodePoint
  11118. switch (bytesPerSequence) {
  11119. case 1:
  11120. if (firstByte < 0x80) {
  11121. codePoint = firstByte
  11122. }
  11123. break
  11124. case 2:
  11125. secondByte = buf[i + 1]
  11126. if ((secondByte & 0xC0) === 0x80) {
  11127. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11128. if (tempCodePoint > 0x7F) {
  11129. codePoint = tempCodePoint
  11130. }
  11131. }
  11132. break
  11133. case 3:
  11134. secondByte = buf[i + 1]
  11135. thirdByte = buf[i + 2]
  11136. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11137. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11138. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11139. codePoint = tempCodePoint
  11140. }
  11141. }
  11142. break
  11143. case 4:
  11144. secondByte = buf[i + 1]
  11145. thirdByte = buf[i + 2]
  11146. fourthByte = buf[i + 3]
  11147. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11148. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11149. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11150. codePoint = tempCodePoint
  11151. }
  11152. }
  11153. }
  11154. }
  11155. if (codePoint === null) {
  11156. // we did not generate a valid codePoint so insert a
  11157. // replacement char (U+FFFD) and advance only 1 byte
  11158. codePoint = 0xFFFD
  11159. bytesPerSequence = 1
  11160. } else if (codePoint > 0xFFFF) {
  11161. // encode to utf16 (surrogate pair dance)
  11162. codePoint -= 0x10000
  11163. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11164. codePoint = 0xDC00 | codePoint & 0x3FF
  11165. }
  11166. res.push(codePoint)
  11167. i += bytesPerSequence
  11168. }
  11169. return decodeCodePointsArray(res)
  11170. }
  11171. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11172. // the lowest limit is Chrome, with 0x10000 args.
  11173. // We go 1 magnitude less, for safety
  11174. var MAX_ARGUMENTS_LENGTH = 0x1000
  11175. function decodeCodePointsArray (codePoints) {
  11176. var len = codePoints.length
  11177. if (len <= MAX_ARGUMENTS_LENGTH) {
  11178. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11179. }
  11180. // Decode in chunks to avoid "call stack size exceeded".
  11181. var res = ''
  11182. var i = 0
  11183. while (i < len) {
  11184. res += String.fromCharCode.apply(
  11185. String,
  11186. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11187. )
  11188. }
  11189. return res
  11190. }
  11191. function asciiSlice (buf, start, end) {
  11192. var ret = ''
  11193. end = Math.min(buf.length, end)
  11194. for (var i = start; i < end; ++i) {
  11195. ret += String.fromCharCode(buf[i] & 0x7F)
  11196. }
  11197. return ret
  11198. }
  11199. function latin1Slice (buf, start, end) {
  11200. var ret = ''
  11201. end = Math.min(buf.length, end)
  11202. for (var i = start; i < end; ++i) {
  11203. ret += String.fromCharCode(buf[i])
  11204. }
  11205. return ret
  11206. }
  11207. function hexSlice (buf, start, end) {
  11208. var len = buf.length
  11209. if (!start || start < 0) start = 0
  11210. if (!end || end < 0 || end > len) end = len
  11211. var out = ''
  11212. for (var i = start; i < end; ++i) {
  11213. out += toHex(buf[i])
  11214. }
  11215. return out
  11216. }
  11217. function utf16leSlice (buf, start, end) {
  11218. var bytes = buf.slice(start, end)
  11219. var res = ''
  11220. for (var i = 0; i < bytes.length; i += 2) {
  11221. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11222. }
  11223. return res
  11224. }
  11225. Buffer.prototype.slice = function slice (start, end) {
  11226. var len = this.length
  11227. start = ~~start
  11228. end = end === undefined ? len : ~~end
  11229. if (start < 0) {
  11230. start += len
  11231. if (start < 0) start = 0
  11232. } else if (start > len) {
  11233. start = len
  11234. }
  11235. if (end < 0) {
  11236. end += len
  11237. if (end < 0) end = 0
  11238. } else if (end > len) {
  11239. end = len
  11240. }
  11241. if (end < start) end = start
  11242. var newBuf
  11243. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11244. newBuf = this.subarray(start, end)
  11245. newBuf.__proto__ = Buffer.prototype
  11246. } else {
  11247. var sliceLen = end - start
  11248. newBuf = new Buffer(sliceLen, undefined)
  11249. for (var i = 0; i < sliceLen; ++i) {
  11250. newBuf[i] = this[i + start]
  11251. }
  11252. }
  11253. return newBuf
  11254. }
  11255. /*
  11256. * Need to make sure that buffer isn't trying to write out of bounds.
  11257. */
  11258. function checkOffset (offset, ext, length) {
  11259. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11260. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11261. }
  11262. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11263. offset = offset | 0
  11264. byteLength = byteLength | 0
  11265. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11266. var val = this[offset]
  11267. var mul = 1
  11268. var i = 0
  11269. while (++i < byteLength && (mul *= 0x100)) {
  11270. val += this[offset + i] * mul
  11271. }
  11272. return val
  11273. }
  11274. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11275. offset = offset | 0
  11276. byteLength = byteLength | 0
  11277. if (!noAssert) {
  11278. checkOffset(offset, byteLength, this.length)
  11279. }
  11280. var val = this[offset + --byteLength]
  11281. var mul = 1
  11282. while (byteLength > 0 && (mul *= 0x100)) {
  11283. val += this[offset + --byteLength] * mul
  11284. }
  11285. return val
  11286. }
  11287. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11288. if (!noAssert) checkOffset(offset, 1, this.length)
  11289. return this[offset]
  11290. }
  11291. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11292. if (!noAssert) checkOffset(offset, 2, this.length)
  11293. return this[offset] | (this[offset + 1] << 8)
  11294. }
  11295. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11296. if (!noAssert) checkOffset(offset, 2, this.length)
  11297. return (this[offset] << 8) | this[offset + 1]
  11298. }
  11299. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11300. if (!noAssert) checkOffset(offset, 4, this.length)
  11301. return ((this[offset]) |
  11302. (this[offset + 1] << 8) |
  11303. (this[offset + 2] << 16)) +
  11304. (this[offset + 3] * 0x1000000)
  11305. }
  11306. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11307. if (!noAssert) checkOffset(offset, 4, this.length)
  11308. return (this[offset] * 0x1000000) +
  11309. ((this[offset + 1] << 16) |
  11310. (this[offset + 2] << 8) |
  11311. this[offset + 3])
  11312. }
  11313. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11314. offset = offset | 0
  11315. byteLength = byteLength | 0
  11316. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11317. var val = this[offset]
  11318. var mul = 1
  11319. var i = 0
  11320. while (++i < byteLength && (mul *= 0x100)) {
  11321. val += this[offset + i] * mul
  11322. }
  11323. mul *= 0x80
  11324. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11325. return val
  11326. }
  11327. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11328. offset = offset | 0
  11329. byteLength = byteLength | 0
  11330. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11331. var i = byteLength
  11332. var mul = 1
  11333. var val = this[offset + --i]
  11334. while (i > 0 && (mul *= 0x100)) {
  11335. val += this[offset + --i] * mul
  11336. }
  11337. mul *= 0x80
  11338. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11339. return val
  11340. }
  11341. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11342. if (!noAssert) checkOffset(offset, 1, this.length)
  11343. if (!(this[offset] & 0x80)) return (this[offset])
  11344. return ((0xff - this[offset] + 1) * -1)
  11345. }
  11346. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11347. if (!noAssert) checkOffset(offset, 2, this.length)
  11348. var val = this[offset] | (this[offset + 1] << 8)
  11349. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11350. }
  11351. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11352. if (!noAssert) checkOffset(offset, 2, this.length)
  11353. var val = this[offset + 1] | (this[offset] << 8)
  11354. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11355. }
  11356. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11357. if (!noAssert) checkOffset(offset, 4, this.length)
  11358. return (this[offset]) |
  11359. (this[offset + 1] << 8) |
  11360. (this[offset + 2] << 16) |
  11361. (this[offset + 3] << 24)
  11362. }
  11363. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11364. if (!noAssert) checkOffset(offset, 4, this.length)
  11365. return (this[offset] << 24) |
  11366. (this[offset + 1] << 16) |
  11367. (this[offset + 2] << 8) |
  11368. (this[offset + 3])
  11369. }
  11370. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11371. if (!noAssert) checkOffset(offset, 4, this.length)
  11372. return ieee754.read(this, offset, true, 23, 4)
  11373. }
  11374. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11375. if (!noAssert) checkOffset(offset, 4, this.length)
  11376. return ieee754.read(this, offset, false, 23, 4)
  11377. }
  11378. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11379. if (!noAssert) checkOffset(offset, 8, this.length)
  11380. return ieee754.read(this, offset, true, 52, 8)
  11381. }
  11382. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11383. if (!noAssert) checkOffset(offset, 8, this.length)
  11384. return ieee754.read(this, offset, false, 52, 8)
  11385. }
  11386. function checkInt (buf, value, offset, ext, max, min) {
  11387. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11388. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11389. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11390. }
  11391. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11392. value = +value
  11393. offset = offset | 0
  11394. byteLength = byteLength | 0
  11395. if (!noAssert) {
  11396. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11397. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11398. }
  11399. var mul = 1
  11400. var i = 0
  11401. this[offset] = value & 0xFF
  11402. while (++i < byteLength && (mul *= 0x100)) {
  11403. this[offset + i] = (value / mul) & 0xFF
  11404. }
  11405. return offset + byteLength
  11406. }
  11407. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11408. value = +value
  11409. offset = offset | 0
  11410. byteLength = byteLength | 0
  11411. if (!noAssert) {
  11412. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11413. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11414. }
  11415. var i = byteLength - 1
  11416. var mul = 1
  11417. this[offset + i] = value & 0xFF
  11418. while (--i >= 0 && (mul *= 0x100)) {
  11419. this[offset + i] = (value / mul) & 0xFF
  11420. }
  11421. return offset + byteLength
  11422. }
  11423. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11424. value = +value
  11425. offset = offset | 0
  11426. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11427. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11428. this[offset] = (value & 0xff)
  11429. return offset + 1
  11430. }
  11431. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11432. if (value < 0) value = 0xffff + value + 1
  11433. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11434. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11435. (littleEndian ? i : 1 - i) * 8
  11436. }
  11437. }
  11438. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11439. value = +value
  11440. offset = offset | 0
  11441. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11442. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11443. this[offset] = (value & 0xff)
  11444. this[offset + 1] = (value >>> 8)
  11445. } else {
  11446. objectWriteUInt16(this, value, offset, true)
  11447. }
  11448. return offset + 2
  11449. }
  11450. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11451. value = +value
  11452. offset = offset | 0
  11453. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11454. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11455. this[offset] = (value >>> 8)
  11456. this[offset + 1] = (value & 0xff)
  11457. } else {
  11458. objectWriteUInt16(this, value, offset, false)
  11459. }
  11460. return offset + 2
  11461. }
  11462. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11463. if (value < 0) value = 0xffffffff + value + 1
  11464. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11465. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11466. }
  11467. }
  11468. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11469. value = +value
  11470. offset = offset | 0
  11471. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11472. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11473. this[offset + 3] = (value >>> 24)
  11474. this[offset + 2] = (value >>> 16)
  11475. this[offset + 1] = (value >>> 8)
  11476. this[offset] = (value & 0xff)
  11477. } else {
  11478. objectWriteUInt32(this, value, offset, true)
  11479. }
  11480. return offset + 4
  11481. }
  11482. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11483. value = +value
  11484. offset = offset | 0
  11485. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11486. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11487. this[offset] = (value >>> 24)
  11488. this[offset + 1] = (value >>> 16)
  11489. this[offset + 2] = (value >>> 8)
  11490. this[offset + 3] = (value & 0xff)
  11491. } else {
  11492. objectWriteUInt32(this, value, offset, false)
  11493. }
  11494. return offset + 4
  11495. }
  11496. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11497. value = +value
  11498. offset = offset | 0
  11499. if (!noAssert) {
  11500. var limit = Math.pow(2, 8 * byteLength - 1)
  11501. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11502. }
  11503. var i = 0
  11504. var mul = 1
  11505. var sub = 0
  11506. this[offset] = value & 0xFF
  11507. while (++i < byteLength && (mul *= 0x100)) {
  11508. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11509. sub = 1
  11510. }
  11511. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11512. }
  11513. return offset + byteLength
  11514. }
  11515. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11516. value = +value
  11517. offset = offset | 0
  11518. if (!noAssert) {
  11519. var limit = Math.pow(2, 8 * byteLength - 1)
  11520. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11521. }
  11522. var i = byteLength - 1
  11523. var mul = 1
  11524. var sub = 0
  11525. this[offset + i] = value & 0xFF
  11526. while (--i >= 0 && (mul *= 0x100)) {
  11527. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11528. sub = 1
  11529. }
  11530. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11531. }
  11532. return offset + byteLength
  11533. }
  11534. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11535. value = +value
  11536. offset = offset | 0
  11537. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11538. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11539. if (value < 0) value = 0xff + value + 1
  11540. this[offset] = (value & 0xff)
  11541. return offset + 1
  11542. }
  11543. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11544. value = +value
  11545. offset = offset | 0
  11546. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11547. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11548. this[offset] = (value & 0xff)
  11549. this[offset + 1] = (value >>> 8)
  11550. } else {
  11551. objectWriteUInt16(this, value, offset, true)
  11552. }
  11553. return offset + 2
  11554. }
  11555. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11556. value = +value
  11557. offset = offset | 0
  11558. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11559. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11560. this[offset] = (value >>> 8)
  11561. this[offset + 1] = (value & 0xff)
  11562. } else {
  11563. objectWriteUInt16(this, value, offset, false)
  11564. }
  11565. return offset + 2
  11566. }
  11567. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11568. value = +value
  11569. offset = offset | 0
  11570. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11571. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11572. this[offset] = (value & 0xff)
  11573. this[offset + 1] = (value >>> 8)
  11574. this[offset + 2] = (value >>> 16)
  11575. this[offset + 3] = (value >>> 24)
  11576. } else {
  11577. objectWriteUInt32(this, value, offset, true)
  11578. }
  11579. return offset + 4
  11580. }
  11581. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11582. value = +value
  11583. offset = offset | 0
  11584. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11585. if (value < 0) value = 0xffffffff + value + 1
  11586. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11587. this[offset] = (value >>> 24)
  11588. this[offset + 1] = (value >>> 16)
  11589. this[offset + 2] = (value >>> 8)
  11590. this[offset + 3] = (value & 0xff)
  11591. } else {
  11592. objectWriteUInt32(this, value, offset, false)
  11593. }
  11594. return offset + 4
  11595. }
  11596. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11597. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11598. if (offset < 0) throw new RangeError('Index out of range')
  11599. }
  11600. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11601. if (!noAssert) {
  11602. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11603. }
  11604. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11605. return offset + 4
  11606. }
  11607. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11608. return writeFloat(this, value, offset, true, noAssert)
  11609. }
  11610. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11611. return writeFloat(this, value, offset, false, noAssert)
  11612. }
  11613. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11614. if (!noAssert) {
  11615. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11616. }
  11617. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11618. return offset + 8
  11619. }
  11620. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11621. return writeDouble(this, value, offset, true, noAssert)
  11622. }
  11623. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11624. return writeDouble(this, value, offset, false, noAssert)
  11625. }
  11626. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11627. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11628. if (!start) start = 0
  11629. if (!end && end !== 0) end = this.length
  11630. if (targetStart >= target.length) targetStart = target.length
  11631. if (!targetStart) targetStart = 0
  11632. if (end > 0 && end < start) end = start
  11633. // Copy 0 bytes; we're done
  11634. if (end === start) return 0
  11635. if (target.length === 0 || this.length === 0) return 0
  11636. // Fatal error conditions
  11637. if (targetStart < 0) {
  11638. throw new RangeError('targetStart out of bounds')
  11639. }
  11640. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11641. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11642. // Are we oob?
  11643. if (end > this.length) end = this.length
  11644. if (target.length - targetStart < end - start) {
  11645. end = target.length - targetStart + start
  11646. }
  11647. var len = end - start
  11648. var i
  11649. if (this === target && start < targetStart && targetStart < end) {
  11650. // descending copy from end
  11651. for (i = len - 1; i >= 0; --i) {
  11652. target[i + targetStart] = this[i + start]
  11653. }
  11654. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11655. // ascending copy from start
  11656. for (i = 0; i < len; ++i) {
  11657. target[i + targetStart] = this[i + start]
  11658. }
  11659. } else {
  11660. Uint8Array.prototype.set.call(
  11661. target,
  11662. this.subarray(start, start + len),
  11663. targetStart
  11664. )
  11665. }
  11666. return len
  11667. }
  11668. // Usage:
  11669. // buffer.fill(number[, offset[, end]])
  11670. // buffer.fill(buffer[, offset[, end]])
  11671. // buffer.fill(string[, offset[, end]][, encoding])
  11672. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11673. // Handle string cases:
  11674. if (typeof val === 'string') {
  11675. if (typeof start === 'string') {
  11676. encoding = start
  11677. start = 0
  11678. end = this.length
  11679. } else if (typeof end === 'string') {
  11680. encoding = end
  11681. end = this.length
  11682. }
  11683. if (val.length === 1) {
  11684. var code = val.charCodeAt(0)
  11685. if (code < 256) {
  11686. val = code
  11687. }
  11688. }
  11689. if (encoding !== undefined && typeof encoding !== 'string') {
  11690. throw new TypeError('encoding must be a string')
  11691. }
  11692. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11693. throw new TypeError('Unknown encoding: ' + encoding)
  11694. }
  11695. } else if (typeof val === 'number') {
  11696. val = val & 255
  11697. }
  11698. // Invalid ranges are not set to a default, so can range check early.
  11699. if (start < 0 || this.length < start || this.length < end) {
  11700. throw new RangeError('Out of range index')
  11701. }
  11702. if (end <= start) {
  11703. return this
  11704. }
  11705. start = start >>> 0
  11706. end = end === undefined ? this.length : end >>> 0
  11707. if (!val) val = 0
  11708. var i
  11709. if (typeof val === 'number') {
  11710. for (i = start; i < end; ++i) {
  11711. this[i] = val
  11712. }
  11713. } else {
  11714. var bytes = Buffer.isBuffer(val)
  11715. ? val
  11716. : utf8ToBytes(new Buffer(val, encoding).toString())
  11717. var len = bytes.length
  11718. for (i = 0; i < end - start; ++i) {
  11719. this[i + start] = bytes[i % len]
  11720. }
  11721. }
  11722. return this
  11723. }
  11724. // HELPER FUNCTIONS
  11725. // ================
  11726. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11727. function base64clean (str) {
  11728. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11729. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11730. // Node converts strings with length < 2 to ''
  11731. if (str.length < 2) return ''
  11732. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11733. while (str.length % 4 !== 0) {
  11734. str = str + '='
  11735. }
  11736. return str
  11737. }
  11738. function stringtrim (str) {
  11739. if (str.trim) return str.trim()
  11740. return str.replace(/^\s+|\s+$/g, '')
  11741. }
  11742. function toHex (n) {
  11743. if (n < 16) return '0' + n.toString(16)
  11744. return n.toString(16)
  11745. }
  11746. function utf8ToBytes (string, units) {
  11747. units = units || Infinity
  11748. var codePoint
  11749. var length = string.length
  11750. var leadSurrogate = null
  11751. var bytes = []
  11752. for (var i = 0; i < length; ++i) {
  11753. codePoint = string.charCodeAt(i)
  11754. // is surrogate component
  11755. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11756. // last char was a lead
  11757. if (!leadSurrogate) {
  11758. // no lead yet
  11759. if (codePoint > 0xDBFF) {
  11760. // unexpected trail
  11761. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11762. continue
  11763. } else if (i + 1 === length) {
  11764. // unpaired lead
  11765. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11766. continue
  11767. }
  11768. // valid lead
  11769. leadSurrogate = codePoint
  11770. continue
  11771. }
  11772. // 2 leads in a row
  11773. if (codePoint < 0xDC00) {
  11774. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11775. leadSurrogate = codePoint
  11776. continue
  11777. }
  11778. // valid surrogate pair
  11779. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11780. } else if (leadSurrogate) {
  11781. // valid bmp char, but last char was a lead
  11782. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11783. }
  11784. leadSurrogate = null
  11785. // encode utf8
  11786. if (codePoint < 0x80) {
  11787. if ((units -= 1) < 0) break
  11788. bytes.push(codePoint)
  11789. } else if (codePoint < 0x800) {
  11790. if ((units -= 2) < 0) break
  11791. bytes.push(
  11792. codePoint >> 0x6 | 0xC0,
  11793. codePoint & 0x3F | 0x80
  11794. )
  11795. } else if (codePoint < 0x10000) {
  11796. if ((units -= 3) < 0) break
  11797. bytes.push(
  11798. codePoint >> 0xC | 0xE0,
  11799. codePoint >> 0x6 & 0x3F | 0x80,
  11800. codePoint & 0x3F | 0x80
  11801. )
  11802. } else if (codePoint < 0x110000) {
  11803. if ((units -= 4) < 0) break
  11804. bytes.push(
  11805. codePoint >> 0x12 | 0xF0,
  11806. codePoint >> 0xC & 0x3F | 0x80,
  11807. codePoint >> 0x6 & 0x3F | 0x80,
  11808. codePoint & 0x3F | 0x80
  11809. )
  11810. } else {
  11811. throw new Error('Invalid code point')
  11812. }
  11813. }
  11814. return bytes
  11815. }
  11816. function asciiToBytes (str) {
  11817. var byteArray = []
  11818. for (var i = 0; i < str.length; ++i) {
  11819. // Node's code seems to be doing this and not & 0x7F..
  11820. byteArray.push(str.charCodeAt(i) & 0xFF)
  11821. }
  11822. return byteArray
  11823. }
  11824. function utf16leToBytes (str, units) {
  11825. var c, hi, lo
  11826. var byteArray = []
  11827. for (var i = 0; i < str.length; ++i) {
  11828. if ((units -= 2) < 0) break
  11829. c = str.charCodeAt(i)
  11830. hi = c >> 8
  11831. lo = c % 256
  11832. byteArray.push(lo)
  11833. byteArray.push(hi)
  11834. }
  11835. return byteArray
  11836. }
  11837. function base64ToBytes (str) {
  11838. return base64.toByteArray(base64clean(str))
  11839. }
  11840. function blitBuffer (src, dst, offset, length) {
  11841. for (var i = 0; i < length; ++i) {
  11842. if ((i + offset >= dst.length) || (i >= src.length)) break
  11843. dst[i + offset] = src[i]
  11844. }
  11845. return i
  11846. }
  11847. function isnan (val) {
  11848. return val !== val // eslint-disable-line no-self-compare
  11849. }
  11850. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11851. /***/ }),
  11852. /* 52 */
  11853. /*!*****************************************!*\
  11854. !*** ./node_modules/base64-js/index.js ***!
  11855. \*****************************************/
  11856. /*! no static exports found */
  11857. /***/ (function(module, exports, __webpack_require__) {
  11858. "use strict";
  11859. exports.byteLength = byteLength
  11860. exports.toByteArray = toByteArray
  11861. exports.fromByteArray = fromByteArray
  11862. var lookup = []
  11863. var revLookup = []
  11864. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11865. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11866. for (var i = 0, len = code.length; i < len; ++i) {
  11867. lookup[i] = code[i]
  11868. revLookup[code.charCodeAt(i)] = i
  11869. }
  11870. // Support decoding URL-safe base64 strings, as Node.js does.
  11871. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11872. revLookup['-'.charCodeAt(0)] = 62
  11873. revLookup['_'.charCodeAt(0)] = 63
  11874. function getLens (b64) {
  11875. var len = b64.length
  11876. if (len % 4 > 0) {
  11877. throw new Error('Invalid string. Length must be a multiple of 4')
  11878. }
  11879. // Trim off extra bytes after placeholder bytes are found
  11880. // See: https://github.com/beatgammit/base64-js/issues/42
  11881. var validLen = b64.indexOf('=')
  11882. if (validLen === -1) validLen = len
  11883. var placeHoldersLen = validLen === len
  11884. ? 0
  11885. : 4 - (validLen % 4)
  11886. return [validLen, placeHoldersLen]
  11887. }
  11888. // base64 is 4/3 + up to two characters of the original data
  11889. function byteLength (b64) {
  11890. var lens = getLens(b64)
  11891. var validLen = lens[0]
  11892. var placeHoldersLen = lens[1]
  11893. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11894. }
  11895. function _byteLength (b64, validLen, placeHoldersLen) {
  11896. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11897. }
  11898. function toByteArray (b64) {
  11899. var tmp
  11900. var lens = getLens(b64)
  11901. var validLen = lens[0]
  11902. var placeHoldersLen = lens[1]
  11903. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11904. var curByte = 0
  11905. // if there are placeholders, only get up to the last complete 4 chars
  11906. var len = placeHoldersLen > 0
  11907. ? validLen - 4
  11908. : validLen
  11909. var i
  11910. for (i = 0; i < len; i += 4) {
  11911. tmp =
  11912. (revLookup[b64.charCodeAt(i)] << 18) |
  11913. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11914. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11915. revLookup[b64.charCodeAt(i + 3)]
  11916. arr[curByte++] = (tmp >> 16) & 0xFF
  11917. arr[curByte++] = (tmp >> 8) & 0xFF
  11918. arr[curByte++] = tmp & 0xFF
  11919. }
  11920. if (placeHoldersLen === 2) {
  11921. tmp =
  11922. (revLookup[b64.charCodeAt(i)] << 2) |
  11923. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11924. arr[curByte++] = tmp & 0xFF
  11925. }
  11926. if (placeHoldersLen === 1) {
  11927. tmp =
  11928. (revLookup[b64.charCodeAt(i)] << 10) |
  11929. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11930. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11931. arr[curByte++] = (tmp >> 8) & 0xFF
  11932. arr[curByte++] = tmp & 0xFF
  11933. }
  11934. return arr
  11935. }
  11936. function tripletToBase64 (num) {
  11937. return lookup[num >> 18 & 0x3F] +
  11938. lookup[num >> 12 & 0x3F] +
  11939. lookup[num >> 6 & 0x3F] +
  11940. lookup[num & 0x3F]
  11941. }
  11942. function encodeChunk (uint8, start, end) {
  11943. var tmp
  11944. var output = []
  11945. for (var i = start; i < end; i += 3) {
  11946. tmp =
  11947. ((uint8[i] << 16) & 0xFF0000) +
  11948. ((uint8[i + 1] << 8) & 0xFF00) +
  11949. (uint8[i + 2] & 0xFF)
  11950. output.push(tripletToBase64(tmp))
  11951. }
  11952. return output.join('')
  11953. }
  11954. function fromByteArray (uint8) {
  11955. var tmp
  11956. var len = uint8.length
  11957. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11958. var parts = []
  11959. var maxChunkLength = 16383 // must be multiple of 3
  11960. // go through the array every three bytes, we'll deal with trailing stuff later
  11961. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11962. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11963. }
  11964. // pad the end with zeros, but make sure to not forget the extra bytes
  11965. if (extraBytes === 1) {
  11966. tmp = uint8[len - 1]
  11967. parts.push(
  11968. lookup[tmp >> 2] +
  11969. lookup[(tmp << 4) & 0x3F] +
  11970. '=='
  11971. )
  11972. } else if (extraBytes === 2) {
  11973. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11974. parts.push(
  11975. lookup[tmp >> 10] +
  11976. lookup[(tmp >> 4) & 0x3F] +
  11977. lookup[(tmp << 2) & 0x3F] +
  11978. '='
  11979. )
  11980. }
  11981. return parts.join('')
  11982. }
  11983. /***/ }),
  11984. /* 53 */
  11985. /*!***************************************!*\
  11986. !*** ./node_modules/ieee754/index.js ***!
  11987. \***************************************/
  11988. /*! no static exports found */
  11989. /***/ (function(module, exports) {
  11990. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11991. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11992. var e, m
  11993. var eLen = (nBytes * 8) - mLen - 1
  11994. var eMax = (1 << eLen) - 1
  11995. var eBias = eMax >> 1
  11996. var nBits = -7
  11997. var i = isLE ? (nBytes - 1) : 0
  11998. var d = isLE ? -1 : 1
  11999. var s = buffer[offset + i]
  12000. i += d
  12001. e = s & ((1 << (-nBits)) - 1)
  12002. s >>= (-nBits)
  12003. nBits += eLen
  12004. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12005. m = e & ((1 << (-nBits)) - 1)
  12006. e >>= (-nBits)
  12007. nBits += mLen
  12008. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12009. if (e === 0) {
  12010. e = 1 - eBias
  12011. } else if (e === eMax) {
  12012. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12013. } else {
  12014. m = m + Math.pow(2, mLen)
  12015. e = e - eBias
  12016. }
  12017. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12018. }
  12019. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12020. var e, m, c
  12021. var eLen = (nBytes * 8) - mLen - 1
  12022. var eMax = (1 << eLen) - 1
  12023. var eBias = eMax >> 1
  12024. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12025. var i = isLE ? 0 : (nBytes - 1)
  12026. var d = isLE ? 1 : -1
  12027. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12028. value = Math.abs(value)
  12029. if (isNaN(value) || value === Infinity) {
  12030. m = isNaN(value) ? 1 : 0
  12031. e = eMax
  12032. } else {
  12033. e = Math.floor(Math.log(value) / Math.LN2)
  12034. if (value * (c = Math.pow(2, -e)) < 1) {
  12035. e--
  12036. c *= 2
  12037. }
  12038. if (e + eBias >= 1) {
  12039. value += rt / c
  12040. } else {
  12041. value += rt * Math.pow(2, 1 - eBias)
  12042. }
  12043. if (value * c >= 2) {
  12044. e++
  12045. c /= 2
  12046. }
  12047. if (e + eBias >= eMax) {
  12048. m = 0
  12049. e = eMax
  12050. } else if (e + eBias >= 1) {
  12051. m = ((value * c) - 1) * Math.pow(2, mLen)
  12052. e = e + eBias
  12053. } else {
  12054. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12055. e = 0
  12056. }
  12057. }
  12058. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12059. e = (e << mLen) | m
  12060. eLen += mLen
  12061. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12062. buffer[offset + i - d] |= s * 128
  12063. }
  12064. /***/ }),
  12065. /* 54 */
  12066. /*!***************************************!*\
  12067. !*** ./node_modules/isarray/index.js ***!
  12068. \***************************************/
  12069. /*! no static exports found */
  12070. /***/ (function(module, exports) {
  12071. var toString = {}.toString;
  12072. module.exports = Array.isArray || function (arr) {
  12073. return toString.call(arr) == '[object Array]';
  12074. };
  12075. /***/ }),
  12076. /* 55 */
  12077. /*!*************************************************************************************!*\
  12078. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/util/route.js ***!
  12079. \*************************************************************************************/
  12080. /*! no static exports found */
  12081. /***/ (function(module, exports, __webpack_require__) {
  12082. "use strict";
  12083. /* WEBPACK VAR INJECTION */(function(uni) {
  12084. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12085. Object.defineProperty(exports, "__esModule", {
  12086. value: true
  12087. });
  12088. exports.default = void 0;
  12089. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  12090. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  12091. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12092. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12093. /**
  12094. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12095. * 并且带有路由拦截功能
  12096. */
  12097. var Router = /*#__PURE__*/function () {
  12098. function Router() {
  12099. (0, _classCallCheck2.default)(this, Router);
  12100. // 原始属性定义
  12101. this.config = {
  12102. type: 'navigateTo',
  12103. url: '',
  12104. delta: 1,
  12105. // navigateBack页面后退时,回退的层数
  12106. params: {},
  12107. // 传递的参数
  12108. animationType: 'pop-in',
  12109. // 窗口动画,只在APP有效
  12110. animationDuration: 300,
  12111. // 窗口动画持续时间,单位毫秒,只在APP有效
  12112. intercept: false // 是否需要拦截
  12113. };
  12114. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12115. // 这里在构造函数中进行this绑定
  12116. this.route = this.route.bind(this);
  12117. }
  12118. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12119. (0, _createClass2.default)(Router, [{
  12120. key: "addRootPath",
  12121. value: function addRootPath(url) {
  12122. return url[0] === '/' ? url : "/".concat(url);
  12123. }
  12124. // 整合路由参数
  12125. }, {
  12126. key: "mixinParam",
  12127. value: function mixinParam(url, params) {
  12128. url = url && this.addRootPath(url);
  12129. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12130. // 如果有url中有get参数,转换后无需带上"?"
  12131. var query = '';
  12132. if (/.*\/.*\?.*=.*/.test(url)) {
  12133. // object对象转为get类型的参数
  12134. query = uni.$u.queryParams(params, false);
  12135. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12136. return url += "&".concat(query);
  12137. }
  12138. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12139. query = uni.$u.queryParams(params);
  12140. return url += query;
  12141. }
  12142. // 对外的方法名称
  12143. }, {
  12144. key: "route",
  12145. value: function () {
  12146. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12147. var options,
  12148. params,
  12149. mergeConfig,
  12150. isNext,
  12151. _args = arguments;
  12152. return _regenerator.default.wrap(function _callee$(_context) {
  12153. while (1) {
  12154. switch (_context.prev = _context.next) {
  12155. case 0:
  12156. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12157. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12158. // 合并用户的配置和内部的默认配置
  12159. mergeConfig = {};
  12160. if (typeof options === 'string') {
  12161. // 如果options为字符串,则为route(url, params)的形式
  12162. mergeConfig.url = this.mixinParam(options, params);
  12163. mergeConfig.type = 'navigateTo';
  12164. } else {
  12165. mergeConfig = uni.$u.deepMerge(this.config, options);
  12166. // 否则正常使用mergeConfig中的url和params进行拼接
  12167. mergeConfig.url = this.mixinParam(options.url, options.params);
  12168. }
  12169. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12170. if (!(mergeConfig.url === uni.$u.page())) {
  12171. _context.next = 6;
  12172. break;
  12173. }
  12174. return _context.abrupt("return");
  12175. case 6:
  12176. if (params.intercept) {
  12177. this.config.intercept = params.intercept;
  12178. }
  12179. // params参数也带给拦截器
  12180. mergeConfig.params = params;
  12181. // 合并内外部参数
  12182. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12183. // 判断用户是否定义了拦截器
  12184. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12185. _context.next = 16;
  12186. break;
  12187. }
  12188. _context.next = 12;
  12189. return new Promise(function (resolve, reject) {
  12190. uni.$u.routeIntercept(mergeConfig, resolve);
  12191. });
  12192. case 12:
  12193. isNext = _context.sent;
  12194. // 如果isNext为true,则执行路由跳转
  12195. isNext && this.openPage(mergeConfig);
  12196. _context.next = 17;
  12197. break;
  12198. case 16:
  12199. this.openPage(mergeConfig);
  12200. case 17:
  12201. case "end":
  12202. return _context.stop();
  12203. }
  12204. }
  12205. }, _callee, this);
  12206. }));
  12207. function route() {
  12208. return _route.apply(this, arguments);
  12209. }
  12210. return route;
  12211. }() // 执行路由跳转
  12212. }, {
  12213. key: "openPage",
  12214. value: function openPage(config) {
  12215. // 解构参数
  12216. var url = config.url,
  12217. type = config.type,
  12218. delta = config.delta,
  12219. animationType = config.animationType,
  12220. animationDuration = config.animationDuration;
  12221. if (config.type == 'navigateTo' || config.type == 'to') {
  12222. uni.navigateTo({
  12223. url: url,
  12224. animationType: animationType,
  12225. animationDuration: animationDuration
  12226. });
  12227. }
  12228. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12229. uni.redirectTo({
  12230. url: url
  12231. });
  12232. }
  12233. if (config.type == 'switchTab' || config.type == 'tab') {
  12234. uni.switchTab({
  12235. url: url
  12236. });
  12237. }
  12238. if (config.type == 'reLaunch' || config.type == 'launch') {
  12239. uni.reLaunch({
  12240. url: url
  12241. });
  12242. }
  12243. if (config.type == 'navigateBack' || config.type == 'back') {
  12244. uni.navigateBack({
  12245. delta: delta
  12246. });
  12247. }
  12248. }
  12249. }]);
  12250. return Router;
  12251. }();
  12252. var _default = new Router().route;
  12253. exports.default = _default;
  12254. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12255. /***/ }),
  12256. /* 56 */
  12257. /*!************************************************************************************************!*\
  12258. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12259. \************************************************************************************************/
  12260. /*! no static exports found */
  12261. /***/ (function(module, exports, __webpack_require__) {
  12262. // TODO(Babel 8): Remove this file.
  12263. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 57)();
  12264. module.exports = runtime;
  12265. /***/ }),
  12266. /* 57 */
  12267. /*!*******************************************************************!*\
  12268. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12269. \*******************************************************************/
  12270. /*! no static exports found */
  12271. /***/ (function(module, exports, __webpack_require__) {
  12272. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12273. function _regeneratorRuntime() {
  12274. "use strict";
  12275. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12276. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12277. return e;
  12278. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12279. var t,
  12280. e = {},
  12281. r = Object.prototype,
  12282. n = r.hasOwnProperty,
  12283. o = Object.defineProperty || function (t, e, r) {
  12284. t[e] = r.value;
  12285. },
  12286. i = "function" == typeof Symbol ? Symbol : {},
  12287. a = i.iterator || "@@iterator",
  12288. c = i.asyncIterator || "@@asyncIterator",
  12289. u = i.toStringTag || "@@toStringTag";
  12290. function define(t, e, r) {
  12291. return Object.defineProperty(t, e, {
  12292. value: r,
  12293. enumerable: !0,
  12294. configurable: !0,
  12295. writable: !0
  12296. }), t[e];
  12297. }
  12298. try {
  12299. define({}, "");
  12300. } catch (t) {
  12301. define = function define(t, e, r) {
  12302. return t[e] = r;
  12303. };
  12304. }
  12305. function wrap(t, e, r, n) {
  12306. var i = e && e.prototype instanceof Generator ? e : Generator,
  12307. a = Object.create(i.prototype),
  12308. c = new Context(n || []);
  12309. return o(a, "_invoke", {
  12310. value: makeInvokeMethod(t, r, c)
  12311. }), a;
  12312. }
  12313. function tryCatch(t, e, r) {
  12314. try {
  12315. return {
  12316. type: "normal",
  12317. arg: t.call(e, r)
  12318. };
  12319. } catch (t) {
  12320. return {
  12321. type: "throw",
  12322. arg: t
  12323. };
  12324. }
  12325. }
  12326. e.wrap = wrap;
  12327. var h = "suspendedStart",
  12328. l = "suspendedYield",
  12329. f = "executing",
  12330. s = "completed",
  12331. y = {};
  12332. function Generator() {}
  12333. function GeneratorFunction() {}
  12334. function GeneratorFunctionPrototype() {}
  12335. var p = {};
  12336. define(p, a, function () {
  12337. return this;
  12338. });
  12339. var d = Object.getPrototypeOf,
  12340. v = d && d(d(values([])));
  12341. v && v !== r && n.call(v, a) && (p = v);
  12342. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12343. function defineIteratorMethods(t) {
  12344. ["next", "throw", "return"].forEach(function (e) {
  12345. define(t, e, function (t) {
  12346. return this._invoke(e, t);
  12347. });
  12348. });
  12349. }
  12350. function AsyncIterator(t, e) {
  12351. function invoke(r, o, i, a) {
  12352. var c = tryCatch(t[r], t, o);
  12353. if ("throw" !== c.type) {
  12354. var u = c.arg,
  12355. h = u.value;
  12356. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12357. invoke("next", t, i, a);
  12358. }, function (t) {
  12359. invoke("throw", t, i, a);
  12360. }) : e.resolve(h).then(function (t) {
  12361. u.value = t, i(u);
  12362. }, function (t) {
  12363. return invoke("throw", t, i, a);
  12364. });
  12365. }
  12366. a(c.arg);
  12367. }
  12368. var r;
  12369. o(this, "_invoke", {
  12370. value: function value(t, n) {
  12371. function callInvokeWithMethodAndArg() {
  12372. return new e(function (e, r) {
  12373. invoke(t, n, e, r);
  12374. });
  12375. }
  12376. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12377. }
  12378. });
  12379. }
  12380. function makeInvokeMethod(e, r, n) {
  12381. var o = h;
  12382. return function (i, a) {
  12383. if (o === f) throw Error("Generator is already running");
  12384. if (o === s) {
  12385. if ("throw" === i) throw a;
  12386. return {
  12387. value: t,
  12388. done: !0
  12389. };
  12390. }
  12391. for (n.method = i, n.arg = a;;) {
  12392. var c = n.delegate;
  12393. if (c) {
  12394. var u = maybeInvokeDelegate(c, n);
  12395. if (u) {
  12396. if (u === y) continue;
  12397. return u;
  12398. }
  12399. }
  12400. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12401. if (o === h) throw o = s, n.arg;
  12402. n.dispatchException(n.arg);
  12403. } else "return" === n.method && n.abrupt("return", n.arg);
  12404. o = f;
  12405. var p = tryCatch(e, r, n);
  12406. if ("normal" === p.type) {
  12407. if (o = n.done ? s : l, p.arg === y) continue;
  12408. return {
  12409. value: p.arg,
  12410. done: n.done
  12411. };
  12412. }
  12413. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12414. }
  12415. };
  12416. }
  12417. function maybeInvokeDelegate(e, r) {
  12418. var n = r.method,
  12419. o = e.iterator[n];
  12420. 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;
  12421. var i = tryCatch(o, e.iterator, r.arg);
  12422. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12423. var a = i.arg;
  12424. 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);
  12425. }
  12426. function pushTryEntry(t) {
  12427. var e = {
  12428. tryLoc: t[0]
  12429. };
  12430. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12431. }
  12432. function resetTryEntry(t) {
  12433. var e = t.completion || {};
  12434. e.type = "normal", delete e.arg, t.completion = e;
  12435. }
  12436. function Context(t) {
  12437. this.tryEntries = [{
  12438. tryLoc: "root"
  12439. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12440. }
  12441. function values(e) {
  12442. if (e || "" === e) {
  12443. var r = e[a];
  12444. if (r) return r.call(e);
  12445. if ("function" == typeof e.next) return e;
  12446. if (!isNaN(e.length)) {
  12447. var o = -1,
  12448. i = function next() {
  12449. for (; ++o < e.length;) {
  12450. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12451. }
  12452. return next.value = t, next.done = !0, next;
  12453. };
  12454. return i.next = i;
  12455. }
  12456. }
  12457. throw new TypeError(_typeof(e) + " is not iterable");
  12458. }
  12459. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12460. value: GeneratorFunctionPrototype,
  12461. configurable: !0
  12462. }), o(GeneratorFunctionPrototype, "constructor", {
  12463. value: GeneratorFunction,
  12464. configurable: !0
  12465. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12466. var e = "function" == typeof t && t.constructor;
  12467. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12468. }, e.mark = function (t) {
  12469. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12470. }, e.awrap = function (t) {
  12471. return {
  12472. __await: t
  12473. };
  12474. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12475. return this;
  12476. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12477. void 0 === i && (i = Promise);
  12478. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12479. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12480. return t.done ? t.value : a.next();
  12481. });
  12482. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12483. return this;
  12484. }), define(g, "toString", function () {
  12485. return "[object Generator]";
  12486. }), e.keys = function (t) {
  12487. var e = Object(t),
  12488. r = [];
  12489. for (var n in e) {
  12490. r.push(n);
  12491. }
  12492. return r.reverse(), function next() {
  12493. for (; r.length;) {
  12494. var t = r.pop();
  12495. if (t in e) return next.value = t, next.done = !1, next;
  12496. }
  12497. return next.done = !0, next;
  12498. };
  12499. }, e.values = values, Context.prototype = {
  12500. constructor: Context,
  12501. reset: function reset(e) {
  12502. 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) {
  12503. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12504. }
  12505. },
  12506. stop: function stop() {
  12507. this.done = !0;
  12508. var t = this.tryEntries[0].completion;
  12509. if ("throw" === t.type) throw t.arg;
  12510. return this.rval;
  12511. },
  12512. dispatchException: function dispatchException(e) {
  12513. if (this.done) throw e;
  12514. var r = this;
  12515. function handle(n, o) {
  12516. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12517. }
  12518. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12519. var i = this.tryEntries[o],
  12520. a = i.completion;
  12521. if ("root" === i.tryLoc) return handle("end");
  12522. if (i.tryLoc <= this.prev) {
  12523. var c = n.call(i, "catchLoc"),
  12524. u = n.call(i, "finallyLoc");
  12525. if (c && u) {
  12526. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12527. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12528. } else if (c) {
  12529. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12530. } else {
  12531. if (!u) throw Error("try statement without catch or finally");
  12532. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12533. }
  12534. }
  12535. }
  12536. },
  12537. abrupt: function abrupt(t, e) {
  12538. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12539. var o = this.tryEntries[r];
  12540. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12541. var i = o;
  12542. break;
  12543. }
  12544. }
  12545. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12546. var a = i ? i.completion : {};
  12547. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12548. },
  12549. complete: function complete(t, e) {
  12550. if ("throw" === t.type) throw t.arg;
  12551. 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;
  12552. },
  12553. finish: function finish(t) {
  12554. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12555. var r = this.tryEntries[e];
  12556. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12557. }
  12558. },
  12559. "catch": function _catch(t) {
  12560. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12561. var r = this.tryEntries[e];
  12562. if (r.tryLoc === t) {
  12563. var n = r.completion;
  12564. if ("throw" === n.type) {
  12565. var o = n.arg;
  12566. resetTryEntry(r);
  12567. }
  12568. return o;
  12569. }
  12570. }
  12571. throw Error("illegal catch attempt");
  12572. },
  12573. delegateYield: function delegateYield(e, r, n) {
  12574. return this.delegate = {
  12575. iterator: values(e),
  12576. resultName: r,
  12577. nextLoc: n
  12578. }, "next" === this.method && (this.arg = t), y;
  12579. }
  12580. }, e;
  12581. }
  12582. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12583. /***/ }),
  12584. /* 58 */
  12585. /*!*****************************************************************!*\
  12586. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12587. \*****************************************************************/
  12588. /*! no static exports found */
  12589. /***/ (function(module, exports) {
  12590. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12591. try {
  12592. var info = gen[key](arg);
  12593. var value = info.value;
  12594. } catch (error) {
  12595. reject(error);
  12596. return;
  12597. }
  12598. if (info.done) {
  12599. resolve(value);
  12600. } else {
  12601. Promise.resolve(value).then(_next, _throw);
  12602. }
  12603. }
  12604. function _asyncToGenerator(fn) {
  12605. return function () {
  12606. var self = this,
  12607. args = arguments;
  12608. return new Promise(function (resolve, reject) {
  12609. var gen = fn.apply(self, args);
  12610. function _next(value) {
  12611. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12612. }
  12613. function _throw(err) {
  12614. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12615. }
  12616. _next(undefined);
  12617. });
  12618. };
  12619. }
  12620. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12621. /***/ }),
  12622. /* 59 */
  12623. /*!*************************************************************************************************!*\
  12624. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/function/colorGradient.js ***!
  12625. \*************************************************************************************************/
  12626. /*! no static exports found */
  12627. /***/ (function(module, exports, __webpack_require__) {
  12628. "use strict";
  12629. Object.defineProperty(exports, "__esModule", {
  12630. value: true
  12631. });
  12632. exports.default = void 0;
  12633. /**
  12634. * 求两个颜色之间的渐变值
  12635. * @param {string} startColor 开始的颜色
  12636. * @param {string} endColor 结束的颜色
  12637. * @param {number} step 颜色等分的份额
  12638. * */
  12639. function colorGradient() {
  12640. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12641. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12642. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12643. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12644. var startR = startRGB[0];
  12645. var startG = startRGB[1];
  12646. var startB = startRGB[2];
  12647. var endRGB = hexToRgb(endColor, false);
  12648. var endR = endRGB[0];
  12649. var endG = endRGB[1];
  12650. var endB = endRGB[2];
  12651. var sR = (endR - startR) / step; // 总差值
  12652. var sG = (endG - startG) / step;
  12653. var sB = (endB - startB) / step;
  12654. var colorArr = [];
  12655. for (var i = 0; i < step; i++) {
  12656. // 计算每一步的hex值
  12657. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12658. // 确保第一个颜色值为startColor的值
  12659. if (i === 0) hex = rgbToHex(startColor);
  12660. // 确保最后一个颜色值为endColor的值
  12661. if (i === step - 1) hex = rgbToHex(endColor);
  12662. colorArr.push(hex);
  12663. }
  12664. return colorArr;
  12665. }
  12666. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12667. function hexToRgb(sColor) {
  12668. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12669. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12670. sColor = String(sColor).toLowerCase();
  12671. if (sColor && reg.test(sColor)) {
  12672. if (sColor.length === 4) {
  12673. var sColorNew = '#';
  12674. for (var i = 1; i < 4; i += 1) {
  12675. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12676. }
  12677. sColor = sColorNew;
  12678. }
  12679. // 处理六位的颜色值
  12680. var sColorChange = [];
  12681. for (var _i = 1; _i < 7; _i += 2) {
  12682. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12683. }
  12684. if (!str) {
  12685. return sColorChange;
  12686. }
  12687. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12688. }
  12689. if (/^(rgb|RGB)/.test(sColor)) {
  12690. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12691. return arr.map(function (val) {
  12692. return Number(val);
  12693. });
  12694. }
  12695. return sColor;
  12696. }
  12697. // 将rgb表示方式转换为hex表示方式
  12698. function rgbToHex(rgb) {
  12699. var _this = rgb;
  12700. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12701. if (/^(rgb|RGB)/.test(_this)) {
  12702. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12703. var strHex = '#';
  12704. for (var i = 0; i < aColor.length; i++) {
  12705. var hex = Number(aColor[i]).toString(16);
  12706. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12707. if (hex === '0') {
  12708. hex += hex;
  12709. }
  12710. strHex += hex;
  12711. }
  12712. if (strHex.length !== 7) {
  12713. strHex = _this;
  12714. }
  12715. return strHex;
  12716. }
  12717. if (reg.test(_this)) {
  12718. var aNum = _this.replace(/#/, '').split('');
  12719. if (aNum.length === 6) {
  12720. return _this;
  12721. }
  12722. if (aNum.length === 3) {
  12723. var numHex = '#';
  12724. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12725. numHex += aNum[_i2] + aNum[_i2];
  12726. }
  12727. return numHex;
  12728. }
  12729. } else {
  12730. return _this;
  12731. }
  12732. }
  12733. /**
  12734. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12735. * sHex为传入的十六进制的色值
  12736. * alpha为rgba的透明度
  12737. */
  12738. function colorToRgba(color, alpha) {
  12739. color = rgbToHex(color);
  12740. // 十六进制颜色值的正则表达式
  12741. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12742. /* 16进制颜色转为RGB格式 */
  12743. var sColor = String(color).toLowerCase();
  12744. if (sColor && reg.test(sColor)) {
  12745. if (sColor.length === 4) {
  12746. var sColorNew = '#';
  12747. for (var i = 1; i < 4; i += 1) {
  12748. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12749. }
  12750. sColor = sColorNew;
  12751. }
  12752. // 处理六位的颜色值
  12753. var sColorChange = [];
  12754. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12755. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12756. }
  12757. // return sColorChange.join(',')
  12758. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12759. }
  12760. return sColor;
  12761. }
  12762. var _default = {
  12763. colorGradient: colorGradient,
  12764. hexToRgb: hexToRgb,
  12765. rgbToHex: rgbToHex,
  12766. colorToRgba: colorToRgba
  12767. };
  12768. exports.default = _default;
  12769. /***/ }),
  12770. /* 60 */
  12771. /*!****************************************************************************************!*\
  12772. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/function/test.js ***!
  12773. \****************************************************************************************/
  12774. /*! no static exports found */
  12775. /***/ (function(module, exports, __webpack_require__) {
  12776. "use strict";
  12777. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12778. Object.defineProperty(exports, "__esModule", {
  12779. value: true
  12780. });
  12781. exports.default = void 0;
  12782. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12783. /**
  12784. * 验证电子邮箱格式
  12785. */
  12786. function email(value) {
  12787. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12788. }
  12789. /**
  12790. * 验证手机格式
  12791. */
  12792. function mobile(value) {
  12793. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12794. }
  12795. /**
  12796. * 验证URL格式
  12797. */
  12798. function url(value) {
  12799. 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);
  12800. }
  12801. /**
  12802. * 验证日期格式
  12803. */
  12804. function date(value) {
  12805. if (!value) return false;
  12806. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12807. if (number(value)) value = +value;
  12808. return !/Invalid|NaN/.test(new Date(value).toString());
  12809. }
  12810. /**
  12811. * 验证ISO类型的日期格式
  12812. */
  12813. function dateISO(value) {
  12814. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12815. }
  12816. /**
  12817. * 验证十进制数字
  12818. */
  12819. function number(value) {
  12820. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12821. }
  12822. /**
  12823. * 验证字符串
  12824. */
  12825. function string(value) {
  12826. return typeof value === 'string';
  12827. }
  12828. /**
  12829. * 验证整数
  12830. */
  12831. function digits(value) {
  12832. return /^\d+$/.test(value);
  12833. }
  12834. /**
  12835. * 验证身份证号码
  12836. */
  12837. function idCard(value) {
  12838. 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);
  12839. }
  12840. /**
  12841. * 是否车牌号
  12842. */
  12843. function carNo(value) {
  12844. // 新能源车牌
  12845. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12846. // 旧车牌
  12847. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12848. if (value.length === 7) {
  12849. return creg.test(value);
  12850. }
  12851. if (value.length === 8) {
  12852. return xreg.test(value);
  12853. }
  12854. return false;
  12855. }
  12856. /**
  12857. * 金额,只允许2位小数
  12858. */
  12859. function amount(value) {
  12860. // 金额,只允许保留两位小数
  12861. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12862. }
  12863. /**
  12864. * 中文
  12865. */
  12866. function chinese(value) {
  12867. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12868. return reg.test(value);
  12869. }
  12870. /**
  12871. * 只能输入字母
  12872. */
  12873. function letter(value) {
  12874. return /^[a-zA-Z]*$/.test(value);
  12875. }
  12876. /**
  12877. * 只能是字母或者数字
  12878. */
  12879. function enOrNum(value) {
  12880. // 英文或者数字
  12881. var reg = /^[0-9a-zA-Z]*$/g;
  12882. return reg.test(value);
  12883. }
  12884. /**
  12885. * 验证是否包含某个值
  12886. */
  12887. function contains(value, param) {
  12888. return value.indexOf(param) >= 0;
  12889. }
  12890. /**
  12891. * 验证一个值范围[min, max]
  12892. */
  12893. function range(value, param) {
  12894. return value >= param[0] && value <= param[1];
  12895. }
  12896. /**
  12897. * 验证一个长度范围[min, max]
  12898. */
  12899. function rangeLength(value, param) {
  12900. return value.length >= param[0] && value.length <= param[1];
  12901. }
  12902. /**
  12903. * 是否固定电话
  12904. */
  12905. function landline(value) {
  12906. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12907. return reg.test(value);
  12908. }
  12909. /**
  12910. * 判断是否为空
  12911. */
  12912. function empty(value) {
  12913. switch ((0, _typeof2.default)(value)) {
  12914. case 'undefined':
  12915. return true;
  12916. case 'string':
  12917. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12918. break;
  12919. case 'boolean':
  12920. if (!value) return true;
  12921. break;
  12922. case 'number':
  12923. if (value === 0 || isNaN(value)) return true;
  12924. break;
  12925. case 'object':
  12926. if (value === null || value.length === 0) return true;
  12927. for (var i in value) {
  12928. return false;
  12929. }
  12930. return true;
  12931. }
  12932. return false;
  12933. }
  12934. /**
  12935. * 是否json字符串
  12936. */
  12937. function jsonString(value) {
  12938. if (typeof value === 'string') {
  12939. try {
  12940. var obj = JSON.parse(value);
  12941. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12942. return true;
  12943. }
  12944. return false;
  12945. } catch (e) {
  12946. return false;
  12947. }
  12948. }
  12949. return false;
  12950. }
  12951. /**
  12952. * 是否数组
  12953. */
  12954. function array(value) {
  12955. if (typeof Array.isArray === 'function') {
  12956. return Array.isArray(value);
  12957. }
  12958. return Object.prototype.toString.call(value) === '[object Array]';
  12959. }
  12960. /**
  12961. * 是否对象
  12962. */
  12963. function object(value) {
  12964. return Object.prototype.toString.call(value) === '[object Object]';
  12965. }
  12966. /**
  12967. * 是否短信验证码
  12968. */
  12969. function code(value) {
  12970. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12971. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12972. }
  12973. /**
  12974. * 是否函数方法
  12975. * @param {Object} value
  12976. */
  12977. function func(value) {
  12978. return typeof value === 'function';
  12979. }
  12980. /**
  12981. * 是否promise对象
  12982. * @param {Object} value
  12983. */
  12984. function promise(value) {
  12985. return object(value) && func(value.then) && func(value.catch);
  12986. }
  12987. /** 是否图片格式
  12988. * @param {Object} value
  12989. */
  12990. function image(value) {
  12991. var newValue = value.split('?')[0];
  12992. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12993. return IMAGE_REGEXP.test(newValue);
  12994. }
  12995. /**
  12996. * 是否视频格式
  12997. * @param {Object} value
  12998. */
  12999. function video(value) {
  13000. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13001. return VIDEO_REGEXP.test(value);
  13002. }
  13003. /**
  13004. * 是否为正则对象
  13005. * @param {Object}
  13006. * @return {Boolean}
  13007. */
  13008. function regExp(o) {
  13009. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13010. }
  13011. var _default = {
  13012. email: email,
  13013. mobile: mobile,
  13014. url: url,
  13015. date: date,
  13016. dateISO: dateISO,
  13017. number: number,
  13018. digits: digits,
  13019. idCard: idCard,
  13020. carNo: carNo,
  13021. amount: amount,
  13022. chinese: chinese,
  13023. letter: letter,
  13024. enOrNum: enOrNum,
  13025. contains: contains,
  13026. range: range,
  13027. rangeLength: rangeLength,
  13028. empty: empty,
  13029. isEmpty: empty,
  13030. jsonString: jsonString,
  13031. landline: landline,
  13032. object: object,
  13033. array: array,
  13034. code: code,
  13035. func: func,
  13036. promise: promise,
  13037. video: video,
  13038. image: image,
  13039. regExp: regExp,
  13040. string: string
  13041. };
  13042. exports.default = _default;
  13043. /***/ }),
  13044. /* 61 */
  13045. /*!********************************************************************************************!*\
  13046. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/function/debounce.js ***!
  13047. \********************************************************************************************/
  13048. /*! no static exports found */
  13049. /***/ (function(module, exports, __webpack_require__) {
  13050. "use strict";
  13051. Object.defineProperty(exports, "__esModule", {
  13052. value: true
  13053. });
  13054. exports.default = void 0;
  13055. var timeout = null;
  13056. /**
  13057. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13058. *
  13059. * @param {Function} func 要执行的回调函数
  13060. * @param {Number} wait 延时的时间
  13061. * @param {Boolean} immediate 是否立即执行
  13062. * @return null
  13063. */
  13064. function debounce(func) {
  13065. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13066. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13067. // 清除定时器
  13068. if (timeout !== null) clearTimeout(timeout);
  13069. // 立即执行,此类情况一般用不到
  13070. if (immediate) {
  13071. var callNow = !timeout;
  13072. timeout = setTimeout(function () {
  13073. timeout = null;
  13074. }, wait);
  13075. if (callNow) typeof func === 'function' && func();
  13076. } else {
  13077. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13078. timeout = setTimeout(function () {
  13079. typeof func === 'function' && func();
  13080. }, wait);
  13081. }
  13082. }
  13083. var _default = debounce;
  13084. exports.default = _default;
  13085. /***/ }),
  13086. /* 62 */
  13087. /*!********************************************************************************************!*\
  13088. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/function/throttle.js ***!
  13089. \********************************************************************************************/
  13090. /*! no static exports found */
  13091. /***/ (function(module, exports, __webpack_require__) {
  13092. "use strict";
  13093. Object.defineProperty(exports, "__esModule", {
  13094. value: true
  13095. });
  13096. exports.default = void 0;
  13097. var timer;
  13098. var flag;
  13099. /**
  13100. * 节流原理:在一定时间内,只能触发一次
  13101. *
  13102. * @param {Function} func 要执行的回调函数
  13103. * @param {Number} wait 延时的时间
  13104. * @param {Boolean} immediate 是否立即执行
  13105. * @return null
  13106. */
  13107. function throttle(func) {
  13108. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13109. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13110. if (immediate) {
  13111. if (!flag) {
  13112. flag = true;
  13113. // 如果是立即执行,则在wait毫秒内开始时执行
  13114. typeof func === 'function' && func();
  13115. timer = setTimeout(function () {
  13116. flag = false;
  13117. }, wait);
  13118. }
  13119. } else if (!flag) {
  13120. flag = true;
  13121. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13122. timer = setTimeout(function () {
  13123. flag = false;
  13124. typeof func === 'function' && func();
  13125. }, wait);
  13126. }
  13127. }
  13128. var _default = throttle;
  13129. exports.default = _default;
  13130. /***/ }),
  13131. /* 63 */
  13132. /*!*****************************************************************************************!*\
  13133. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/function/index.js ***!
  13134. \*****************************************************************************************/
  13135. /*! no static exports found */
  13136. /***/ (function(module, exports, __webpack_require__) {
  13137. "use strict";
  13138. /* WEBPACK VAR INJECTION */(function(uni) {
  13139. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13140. Object.defineProperty(exports, "__esModule", {
  13141. value: true
  13142. });
  13143. exports.default = void 0;
  13144. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13145. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13146. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 60));
  13147. var _digit = __webpack_require__(/*! ./digit.js */ 64);
  13148. /**
  13149. * @description 如果value小于min,取min;如果value大于max,取max
  13150. * @param {number} min
  13151. * @param {number} max
  13152. * @param {number} value
  13153. */
  13154. function range() {
  13155. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13156. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13157. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13158. return Math.max(min, Math.min(max, Number(value)));
  13159. }
  13160. /**
  13161. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13162. * @param {number|string} value 用户传递值的px值
  13163. * @param {boolean} unit
  13164. * @returns {number|string}
  13165. */
  13166. function getPx(value) {
  13167. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13168. if (_test.default.number(value)) {
  13169. return unit ? "".concat(value, "px") : Number(value);
  13170. }
  13171. // 如果带有rpx,先取出其数值部分,再转为px值
  13172. if (/(rpx|upx)$/.test(value)) {
  13173. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13174. }
  13175. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13176. }
  13177. /**
  13178. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13179. * @param {number} value 堵塞时间 单位ms 毫秒
  13180. * @returns {Promise} 返回promise
  13181. */
  13182. function sleep() {
  13183. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13184. return new Promise(function (resolve) {
  13185. setTimeout(function () {
  13186. resolve();
  13187. }, value);
  13188. });
  13189. }
  13190. /**
  13191. * @description 运行期判断平台
  13192. * @returns {string} 返回所在平台(小写)
  13193. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13194. */
  13195. function os() {
  13196. return uni.getSystemInfoSync().platform.toLowerCase();
  13197. }
  13198. /**
  13199. * @description 获取系统信息同步接口
  13200. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13201. */
  13202. function sys() {
  13203. return uni.getSystemInfoSync();
  13204. }
  13205. /**
  13206. * @description 取一个区间数
  13207. * @param {Number} min 最小值
  13208. * @param {Number} max 最大值
  13209. */
  13210. function random(min, max) {
  13211. if (min >= 0 && max > 0 && max >= min) {
  13212. var gab = max - min + 1;
  13213. return Math.floor(Math.random() * gab + min);
  13214. }
  13215. return 0;
  13216. }
  13217. /**
  13218. * @param {Number} len uuid的长度
  13219. * @param {Boolean} firstU 将返回的首字母置为"u"
  13220. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13221. */
  13222. function guid() {
  13223. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13224. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13225. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13226. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13227. var uuid = [];
  13228. radix = radix || chars.length;
  13229. if (len) {
  13230. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13231. for (var i = 0; i < len; i++) {
  13232. uuid[i] = chars[0 | Math.random() * radix];
  13233. }
  13234. } else {
  13235. var r;
  13236. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13237. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13238. uuid[14] = '4';
  13239. for (var _i = 0; _i < 36; _i++) {
  13240. if (!uuid[_i]) {
  13241. r = 0 | Math.random() * 16;
  13242. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13243. }
  13244. }
  13245. }
  13246. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13247. if (firstU) {
  13248. uuid.shift();
  13249. return "u".concat(uuid.join(''));
  13250. }
  13251. return uuid.join('');
  13252. }
  13253. /**
  13254. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13255. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13256. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13257. 值(默认为undefined),就是查找最顶层的$parent
  13258. * @param {string|undefined} name 父组件的参数名
  13259. */
  13260. function $parent() {
  13261. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13262. var parent = this.$parent;
  13263. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13264. while (parent) {
  13265. // 父组件
  13266. if (parent.$options && parent.$options.name !== name) {
  13267. // 如果组件的name不相等,继续上一级寻找
  13268. parent = parent.$parent;
  13269. } else {
  13270. return parent;
  13271. }
  13272. }
  13273. return false;
  13274. }
  13275. /**
  13276. * @description 样式转换
  13277. * 对象转字符串,或者字符串转对象
  13278. * @param {object | string} customStyle 需要转换的目标
  13279. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13280. * @returns {object|string}
  13281. */
  13282. function addStyle(customStyle) {
  13283. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13284. // 字符串转字符串,对象转对象情形,直接返回
  13285. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13286. return customStyle;
  13287. }
  13288. // 字符串转对象
  13289. if (target === 'object') {
  13290. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13291. customStyle = trim(customStyle);
  13292. // 根据";"将字符串转为数组形式
  13293. var styleArray = customStyle.split(';');
  13294. var style = {};
  13295. // 历遍数组,拼接成对象
  13296. for (var i = 0; i < styleArray.length; i++) {
  13297. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13298. if (styleArray[i]) {
  13299. var item = styleArray[i].split(':');
  13300. style[trim(item[0])] = trim(item[1]);
  13301. }
  13302. }
  13303. return style;
  13304. }
  13305. // 这里为对象转字符串形式
  13306. var string = '';
  13307. for (var _i2 in customStyle) {
  13308. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13309. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13310. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13311. }
  13312. // 去除两端空格
  13313. return trim(string);
  13314. }
  13315. /**
  13316. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13317. * @param {string|number} value 需要添加单位的值
  13318. * @param {string} unit 添加的单位名 比如px
  13319. */
  13320. function addUnit() {
  13321. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13322. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13323. 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';
  13324. value = String(value);
  13325. // 用uView内置验证规则中的number判断是否为数值
  13326. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13327. }
  13328. /**
  13329. * @description 深度克隆
  13330. * @param {object} obj 需要深度克隆的对象
  13331. * @param cache 缓存
  13332. * @returns {*} 克隆后的对象或者原值(不是对象)
  13333. */
  13334. function deepClone(obj) {
  13335. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13336. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13337. if (cache.has(obj)) return cache.get(obj);
  13338. var clone;
  13339. if (obj instanceof Date) {
  13340. clone = new Date(obj.getTime());
  13341. } else if (obj instanceof RegExp) {
  13342. clone = new RegExp(obj);
  13343. } else if (obj instanceof Map) {
  13344. clone = new Map(Array.from(obj, function (_ref) {
  13345. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13346. key = _ref2[0],
  13347. value = _ref2[1];
  13348. return [key, deepClone(value, cache)];
  13349. }));
  13350. } else if (obj instanceof Set) {
  13351. clone = new Set(Array.from(obj, function (value) {
  13352. return deepClone(value, cache);
  13353. }));
  13354. } else if (Array.isArray(obj)) {
  13355. clone = obj.map(function (value) {
  13356. return deepClone(value, cache);
  13357. });
  13358. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13359. clone = Object.create(Object.getPrototypeOf(obj));
  13360. cache.set(obj, clone);
  13361. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13362. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13363. key = _Object$entries$_i[0],
  13364. value = _Object$entries$_i[1];
  13365. clone[key] = deepClone(value, cache);
  13366. }
  13367. } else {
  13368. clone = Object.assign({}, obj);
  13369. }
  13370. cache.set(obj, clone);
  13371. return clone;
  13372. }
  13373. /**
  13374. * @description JS对象深度合并
  13375. * @param {object} target 需要拷贝的对象
  13376. * @param {object} source 拷贝的来源对象
  13377. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13378. */
  13379. function deepMerge() {
  13380. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13381. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13382. target = deepClone(target);
  13383. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13384. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13385. for (var prop in source) {
  13386. if (!source.hasOwnProperty(prop)) continue;
  13387. var sourceValue = source[prop];
  13388. var targetValue = merged[prop];
  13389. if (sourceValue instanceof Date) {
  13390. merged[prop] = new Date(sourceValue);
  13391. } else if (sourceValue instanceof RegExp) {
  13392. merged[prop] = new RegExp(sourceValue);
  13393. } else if (sourceValue instanceof Map) {
  13394. merged[prop] = new Map(sourceValue);
  13395. } else if (sourceValue instanceof Set) {
  13396. merged[prop] = new Set(sourceValue);
  13397. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13398. merged[prop] = deepMerge(targetValue, sourceValue);
  13399. } else {
  13400. merged[prop] = sourceValue;
  13401. }
  13402. }
  13403. return merged;
  13404. }
  13405. /**
  13406. * @description error提示
  13407. * @param {*} err 错误内容
  13408. */
  13409. function error(err) {
  13410. // 开发环境才提示,生产环境不会提示
  13411. if (true) {
  13412. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13413. }
  13414. }
  13415. /**
  13416. * @description 打乱数组
  13417. * @param {array} array 需要打乱的数组
  13418. * @returns {array} 打乱后的数组
  13419. */
  13420. function randomArray() {
  13421. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13422. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13423. return array.sort(function () {
  13424. return Math.random() - 0.5;
  13425. });
  13426. }
  13427. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13428. // 所以这里做一个兼容polyfill的兼容处理
  13429. if (!String.prototype.padStart) {
  13430. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13431. String.prototype.padStart = function (maxLength) {
  13432. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13433. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13434. throw new TypeError('fillString must be String');
  13435. }
  13436. var str = this;
  13437. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13438. if (str.length >= maxLength) return String(str);
  13439. var fillLength = maxLength - str.length;
  13440. var times = Math.ceil(fillLength / fillString.length);
  13441. while (times >>= 1) {
  13442. fillString += fillString;
  13443. if (times === 1) {
  13444. fillString += fillString;
  13445. }
  13446. }
  13447. return fillString.slice(0, fillLength) + str;
  13448. };
  13449. }
  13450. /**
  13451. * @description 格式化时间
  13452. * @param {String|Number} dateTime 需要格式化的时间戳
  13453. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13454. * @returns {string} 返回格式化后的字符串
  13455. */
  13456. function timeFormat() {
  13457. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13458. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13459. var date;
  13460. // 若传入时间为假值,则取当前时间
  13461. if (!dateTime) {
  13462. date = new Date();
  13463. }
  13464. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13465. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13466. date = new Date(dateTime * 1000);
  13467. }
  13468. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13469. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13470. date = new Date(Number(dateTime));
  13471. }
  13472. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13473. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13474. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13475. date = new Date(dateTime.replace(/-/g, '/'));
  13476. }
  13477. // 其他都认为符合 RFC 2822 规范
  13478. else {
  13479. date = new Date(dateTime);
  13480. }
  13481. var timeSource = {
  13482. 'y': date.getFullYear().toString(),
  13483. // 年
  13484. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13485. // 月
  13486. 'd': date.getDate().toString().padStart(2, '0'),
  13487. // 日
  13488. 'h': date.getHours().toString().padStart(2, '0'),
  13489. // 时
  13490. 'M': date.getMinutes().toString().padStart(2, '0'),
  13491. // 分
  13492. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13493. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13494. };
  13495. for (var key in timeSource) {
  13496. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13497. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13498. ret = _ref4[0];
  13499. if (ret) {
  13500. // 年可能只需展示两位
  13501. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13502. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13503. }
  13504. }
  13505. return formatStr;
  13506. }
  13507. /**
  13508. * @description 时间戳转为多久之前
  13509. * @param {String|Number} timestamp 时间戳
  13510. * @param {String|Boolean} format
  13511. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13512. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13513. * @returns {string} 转化后的内容
  13514. */
  13515. function timeFrom() {
  13516. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13517. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13518. if (timestamp == null) timestamp = Number(new Date());
  13519. timestamp = parseInt(timestamp);
  13520. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13521. if (timestamp.toString().length == 10) timestamp *= 1000;
  13522. var timer = new Date().getTime() - timestamp;
  13523. timer = parseInt(timer / 1000);
  13524. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13525. var tips = '';
  13526. switch (true) {
  13527. case timer < 300:
  13528. tips = '刚刚';
  13529. break;
  13530. case timer >= 300 && timer < 3600:
  13531. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13532. break;
  13533. case timer >= 3600 && timer < 86400:
  13534. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13535. break;
  13536. case timer >= 86400 && timer < 2592000:
  13537. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13538. break;
  13539. default:
  13540. // 如果format为false,则无论什么时间戳,都显示xx之前
  13541. if (format === false) {
  13542. if (timer >= 2592000 && timer < 365 * 86400) {
  13543. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13544. } else {
  13545. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13546. }
  13547. } else {
  13548. tips = timeFormat(timestamp, format);
  13549. }
  13550. }
  13551. return tips;
  13552. }
  13553. /**
  13554. * @description 去除空格
  13555. * @param String str 需要去除空格的字符串
  13556. * @param String pos both(左右)|left|right|all 默认both
  13557. */
  13558. function trim(str) {
  13559. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13560. str = String(str);
  13561. if (pos == 'both') {
  13562. return str.replace(/^\s+|\s+$/g, '');
  13563. }
  13564. if (pos == 'left') {
  13565. return str.replace(/^\s*/, '');
  13566. }
  13567. if (pos == 'right') {
  13568. return str.replace(/(\s*$)/g, '');
  13569. }
  13570. if (pos == 'all') {
  13571. return str.replace(/\s+/g, '');
  13572. }
  13573. return str;
  13574. }
  13575. /**
  13576. * @description 对象转url参数
  13577. * @param {object} data,对象
  13578. * @param {Boolean} isPrefix,是否自动加上"?"
  13579. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13580. */
  13581. function queryParams() {
  13582. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13583. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13584. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13585. var prefix = isPrefix ? '?' : '';
  13586. var _result = [];
  13587. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13588. var _loop = function _loop(key) {
  13589. var value = data[key];
  13590. // 去掉为空的参数
  13591. if (['', undefined, null].indexOf(value) >= 0) {
  13592. return "continue";
  13593. }
  13594. // 如果值为数组,另行处理
  13595. if (value.constructor === Array) {
  13596. // e.g. {ids: [1, 2, 3]}
  13597. switch (arrayFormat) {
  13598. case 'indices':
  13599. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13600. for (var i = 0; i < value.length; i++) {
  13601. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13602. }
  13603. break;
  13604. case 'brackets':
  13605. // 结果: ids[]=1&ids[]=2&ids[]=3
  13606. value.forEach(function (_value) {
  13607. _result.push("".concat(key, "[]=").concat(_value));
  13608. });
  13609. break;
  13610. case 'repeat':
  13611. // 结果: ids=1&ids=2&ids=3
  13612. value.forEach(function (_value) {
  13613. _result.push("".concat(key, "=").concat(_value));
  13614. });
  13615. break;
  13616. case 'comma':
  13617. // 结果: ids=1,2,3
  13618. var commaStr = '';
  13619. value.forEach(function (_value) {
  13620. commaStr += (commaStr ? ',' : '') + _value;
  13621. });
  13622. _result.push("".concat(key, "=").concat(commaStr));
  13623. break;
  13624. default:
  13625. value.forEach(function (_value) {
  13626. _result.push("".concat(key, "[]=").concat(_value));
  13627. });
  13628. }
  13629. } else {
  13630. _result.push("".concat(key, "=").concat(value));
  13631. }
  13632. };
  13633. for (var key in data) {
  13634. var _ret = _loop(key);
  13635. if (_ret === "continue") continue;
  13636. }
  13637. return _result.length ? prefix + _result.join('&') : '';
  13638. }
  13639. /**
  13640. * 显示消息提示框
  13641. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13642. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13643. */
  13644. function toast(title) {
  13645. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13646. uni.showToast({
  13647. title: String(title),
  13648. icon: 'none',
  13649. duration: duration
  13650. });
  13651. }
  13652. /**
  13653. * @description 根据主题type值,获取对应的图标
  13654. * @param {String} type 主题名称,primary|info|error|warning|success
  13655. * @param {boolean} fill 是否使用fill填充实体的图标
  13656. */
  13657. function type2icon() {
  13658. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13659. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13660. // 如果非预置值,默认为success
  13661. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13662. var iconName = '';
  13663. // 目前(2019-12-12),info和primary使用同一个图标
  13664. switch (type) {
  13665. case 'primary':
  13666. iconName = 'info-circle';
  13667. break;
  13668. case 'info':
  13669. iconName = 'info-circle';
  13670. break;
  13671. case 'error':
  13672. iconName = 'close-circle';
  13673. break;
  13674. case 'warning':
  13675. iconName = 'error-circle';
  13676. break;
  13677. case 'success':
  13678. iconName = 'checkmark-circle';
  13679. break;
  13680. default:
  13681. iconName = 'checkmark-circle';
  13682. }
  13683. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13684. if (fill) iconName += '-fill';
  13685. return iconName;
  13686. }
  13687. /**
  13688. * @description 数字格式化
  13689. * @param {number|string} number 要格式化的数字
  13690. * @param {number} decimals 保留几位小数
  13691. * @param {string} decimalPoint 小数点符号
  13692. * @param {string} thousandsSeparator 千分位符号
  13693. * @returns {string} 格式化后的数字
  13694. */
  13695. function priceFormat(number) {
  13696. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13697. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13698. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13699. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13700. var n = !isFinite(+number) ? 0 : +number;
  13701. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13702. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13703. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13704. var s = '';
  13705. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13706. var re = /(-?\d+)(\d{3})/;
  13707. while (re.test(s[0])) {
  13708. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13709. }
  13710. if ((s[1] || '').length < prec) {
  13711. s[1] = s[1] || '';
  13712. s[1] += new Array(prec - s[1].length + 1).join('0');
  13713. }
  13714. return s.join(dec);
  13715. }
  13716. /**
  13717. * @description 获取duration值
  13718. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13719. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13720. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13721. * @param {boolean} unit 提示: 如果是false 默认返回number
  13722. * @return {string|number}
  13723. */
  13724. function getDuration(value) {
  13725. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13726. var valueNum = parseInt(value);
  13727. if (unit) {
  13728. if (/s$/.test(value)) return value;
  13729. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13730. }
  13731. if (/ms$/.test(value)) return valueNum;
  13732. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13733. return valueNum;
  13734. }
  13735. /**
  13736. * @description 日期的月或日补零操作
  13737. * @param {String} value 需要补零的值
  13738. */
  13739. function padZero(value) {
  13740. return "00".concat(value).slice(-2);
  13741. }
  13742. /**
  13743. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13744. * @param {*} instance
  13745. * @param {*} event
  13746. */
  13747. function formValidate(instance, event) {
  13748. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13749. var form = uni.$u.$parent.call(instance, 'u-form');
  13750. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13751. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13752. if (formItem && form) {
  13753. form.validateField(formItem.prop, function () {}, event);
  13754. }
  13755. }
  13756. /**
  13757. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13758. * @param {object} obj 对象
  13759. * @param {string} key 需要获取的属性字段
  13760. * @returns {*}
  13761. */
  13762. function getProperty(obj, key) {
  13763. if (!obj) {
  13764. return;
  13765. }
  13766. if (typeof key !== 'string' || key === '') {
  13767. return '';
  13768. }
  13769. if (key.indexOf('.') !== -1) {
  13770. var keys = key.split('.');
  13771. var firstObj = obj[keys[0]] || {};
  13772. for (var i = 1; i < keys.length; i++) {
  13773. if (firstObj) {
  13774. firstObj = firstObj[keys[i]];
  13775. }
  13776. }
  13777. return firstObj;
  13778. }
  13779. return obj[key];
  13780. }
  13781. /**
  13782. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13783. * @param {object} obj 对象
  13784. * @param {string} key 需要设置的属性
  13785. * @param {string} value 设置的值
  13786. */
  13787. function setProperty(obj, key, value) {
  13788. if (!obj) {
  13789. return;
  13790. }
  13791. // 递归赋值
  13792. var inFn = function inFn(_obj, keys, v) {
  13793. // 最后一个属性key
  13794. if (keys.length === 1) {
  13795. _obj[keys[0]] = v;
  13796. return;
  13797. }
  13798. // 0~length-1个key
  13799. while (keys.length > 1) {
  13800. var k = keys[0];
  13801. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13802. _obj[k] = {};
  13803. }
  13804. var _key = keys.shift();
  13805. // 自调用判断是否存在属性,不存在则自动创建对象
  13806. inFn(_obj[k], keys, v);
  13807. }
  13808. };
  13809. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13810. // 支持多层级赋值操作
  13811. var keys = key.split('.');
  13812. inFn(obj, keys, value);
  13813. } else {
  13814. obj[key] = value;
  13815. }
  13816. }
  13817. /**
  13818. * @description 获取当前页面路径
  13819. */
  13820. function page() {
  13821. var _pages$route, _pages;
  13822. var pages = getCurrentPages();
  13823. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13824. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13825. }
  13826. /**
  13827. * @description 获取当前路由栈实例数组
  13828. */
  13829. function pages() {
  13830. var pages = getCurrentPages();
  13831. return pages;
  13832. }
  13833. /**
  13834. * 获取页面历史栈指定层实例
  13835. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13836. */
  13837. function getHistoryPage() {
  13838. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13839. var pages = getCurrentPages();
  13840. var len = pages.length;
  13841. return pages[len - 1 + back];
  13842. }
  13843. /**
  13844. * @description 修改uView内置属性值
  13845. * @param {object} props 修改内置props属性
  13846. * @param {object} config 修改内置config属性
  13847. * @param {object} color 修改内置color属性
  13848. * @param {object} zIndex 修改内置zIndex属性
  13849. */
  13850. function setConfig(_ref5) {
  13851. var _ref5$props = _ref5.props,
  13852. props = _ref5$props === void 0 ? {} : _ref5$props,
  13853. _ref5$config = _ref5.config,
  13854. config = _ref5$config === void 0 ? {} : _ref5$config,
  13855. _ref5$color = _ref5.color,
  13856. color = _ref5$color === void 0 ? {} : _ref5$color,
  13857. _ref5$zIndex = _ref5.zIndex,
  13858. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13859. var deepMerge = uni.$u.deepMerge;
  13860. uni.$u.config = deepMerge(uni.$u.config, config);
  13861. uni.$u.props = deepMerge(uni.$u.props, props);
  13862. uni.$u.color = deepMerge(uni.$u.color, color);
  13863. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13864. }
  13865. var _default = {
  13866. range: range,
  13867. getPx: getPx,
  13868. sleep: sleep,
  13869. os: os,
  13870. sys: sys,
  13871. random: random,
  13872. guid: guid,
  13873. $parent: $parent,
  13874. addStyle: addStyle,
  13875. addUnit: addUnit,
  13876. deepClone: deepClone,
  13877. deepMerge: deepMerge,
  13878. error: error,
  13879. randomArray: randomArray,
  13880. timeFormat: timeFormat,
  13881. timeFrom: timeFrom,
  13882. trim: trim,
  13883. queryParams: queryParams,
  13884. toast: toast,
  13885. type2icon: type2icon,
  13886. priceFormat: priceFormat,
  13887. getDuration: getDuration,
  13888. padZero: padZero,
  13889. formValidate: formValidate,
  13890. getProperty: getProperty,
  13891. setProperty: setProperty,
  13892. page: page,
  13893. pages: pages,
  13894. getHistoryPage: getHistoryPage,
  13895. setConfig: setConfig
  13896. };
  13897. exports.default = _default;
  13898. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13899. /***/ }),
  13900. /* 64 */
  13901. /*!*****************************************************************************************!*\
  13902. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/function/digit.js ***!
  13903. \*****************************************************************************************/
  13904. /*! no static exports found */
  13905. /***/ (function(module, exports, __webpack_require__) {
  13906. "use strict";
  13907. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13908. Object.defineProperty(exports, "__esModule", {
  13909. value: true
  13910. });
  13911. exports.default = void 0;
  13912. exports.divide = divide;
  13913. exports.enableBoundaryChecking = enableBoundaryChecking;
  13914. exports.minus = minus;
  13915. exports.plus = plus;
  13916. exports.round = round;
  13917. exports.times = times;
  13918. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 65));
  13919. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13920. /**
  13921. * 把错误的数据转正
  13922. * @private
  13923. * @example strip(0.09999999999999998)=0.1
  13924. */
  13925. function strip(num) {
  13926. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13927. return +parseFloat(Number(num).toPrecision(precision));
  13928. }
  13929. /**
  13930. * Return digits length of a number
  13931. * @private
  13932. * @param {*number} num Input number
  13933. */
  13934. function digitLength(num) {
  13935. // Get digit length of e
  13936. var eSplit = num.toString().split(/[eE]/);
  13937. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13938. return len > 0 ? len : 0;
  13939. }
  13940. /**
  13941. * 把小数转成整数,如果是小数则放大成整数
  13942. * @private
  13943. * @param {*number} num 输入数
  13944. */
  13945. function float2Fixed(num) {
  13946. if (num.toString().indexOf('e') === -1) {
  13947. return Number(num.toString().replace('.', ''));
  13948. }
  13949. var dLen = digitLength(num);
  13950. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13951. }
  13952. /**
  13953. * 检测数字是否越界,如果越界给出提示
  13954. * @private
  13955. * @param {*number} num 输入数
  13956. */
  13957. function checkBoundary(num) {
  13958. if (_boundaryCheckingState) {
  13959. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13960. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13961. }
  13962. }
  13963. }
  13964. /**
  13965. * 把递归操作扁平迭代化
  13966. * @param {number[]} arr 要操作的数字数组
  13967. * @param {function} operation 迭代操作
  13968. * @private
  13969. */
  13970. function iteratorOperation(arr, operation) {
  13971. var _arr = (0, _toArray2.default)(arr),
  13972. num1 = _arr[0],
  13973. num2 = _arr[1],
  13974. others = _arr.slice(2);
  13975. var res = operation(num1, num2);
  13976. others.forEach(function (num) {
  13977. res = operation(res, num);
  13978. });
  13979. return res;
  13980. }
  13981. /**
  13982. * 高精度乘法
  13983. * @export
  13984. */
  13985. function times() {
  13986. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13987. nums[_key] = arguments[_key];
  13988. }
  13989. if (nums.length > 2) {
  13990. return iteratorOperation(nums, times);
  13991. }
  13992. var num1 = nums[0],
  13993. num2 = nums[1];
  13994. var num1Changed = float2Fixed(num1);
  13995. var num2Changed = float2Fixed(num2);
  13996. var baseNum = digitLength(num1) + digitLength(num2);
  13997. var leftValue = num1Changed * num2Changed;
  13998. checkBoundary(leftValue);
  13999. return leftValue / Math.pow(10, baseNum);
  14000. }
  14001. /**
  14002. * 高精度加法
  14003. * @export
  14004. */
  14005. function plus() {
  14006. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14007. nums[_key2] = arguments[_key2];
  14008. }
  14009. if (nums.length > 2) {
  14010. return iteratorOperation(nums, plus);
  14011. }
  14012. var num1 = nums[0],
  14013. num2 = nums[1];
  14014. // 取最大的小数位
  14015. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14016. // 把小数都转为整数然后再计算
  14017. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14018. }
  14019. /**
  14020. * 高精度减法
  14021. * @export
  14022. */
  14023. function minus() {
  14024. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14025. nums[_key3] = arguments[_key3];
  14026. }
  14027. if (nums.length > 2) {
  14028. return iteratorOperation(nums, minus);
  14029. }
  14030. var num1 = nums[0],
  14031. num2 = nums[1];
  14032. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14033. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14034. }
  14035. /**
  14036. * 高精度除法
  14037. * @export
  14038. */
  14039. function divide() {
  14040. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14041. nums[_key4] = arguments[_key4];
  14042. }
  14043. if (nums.length > 2) {
  14044. return iteratorOperation(nums, divide);
  14045. }
  14046. var num1 = nums[0],
  14047. num2 = nums[1];
  14048. var num1Changed = float2Fixed(num1);
  14049. var num2Changed = float2Fixed(num2);
  14050. checkBoundary(num1Changed);
  14051. checkBoundary(num2Changed);
  14052. // 重要,这里必须用strip进行修正
  14053. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14054. }
  14055. /**
  14056. * 四舍五入
  14057. * @export
  14058. */
  14059. function round(num, ratio) {
  14060. var base = Math.pow(10, ratio);
  14061. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14062. if (num < 0 && result !== 0) {
  14063. result = times(result, -1);
  14064. }
  14065. // 位数不足则补0
  14066. return result;
  14067. }
  14068. /**
  14069. * 是否进行边界检查,默认开启
  14070. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14071. * @export
  14072. */
  14073. function enableBoundaryChecking() {
  14074. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14075. _boundaryCheckingState = flag;
  14076. }
  14077. var _default = {
  14078. times: times,
  14079. plus: plus,
  14080. minus: minus,
  14081. divide: divide,
  14082. round: round,
  14083. enableBoundaryChecking: enableBoundaryChecking
  14084. };
  14085. exports.default = _default;
  14086. /***/ }),
  14087. /* 65 */
  14088. /*!********************************************************!*\
  14089. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14090. \********************************************************/
  14091. /*! no static exports found */
  14092. /***/ (function(module, exports, __webpack_require__) {
  14093. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14094. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14095. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14096. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14097. function _toArray(arr) {
  14098. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14099. }
  14100. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14101. /***/ }),
  14102. /* 66 */
  14103. /*!****************************************************************************************!*\
  14104. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/config.js ***!
  14105. \****************************************************************************************/
  14106. /*! no static exports found */
  14107. /***/ (function(module, exports, __webpack_require__) {
  14108. "use strict";
  14109. Object.defineProperty(exports, "__esModule", {
  14110. value: true
  14111. });
  14112. exports.default = void 0;
  14113. // 此版本发布于2024-03-17
  14114. var version = '2.0.37';
  14115. // 开发环境才提示,生产环境不会提示
  14116. if (true) {
  14117. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14118. }
  14119. var _default = {
  14120. v: version,
  14121. version: version,
  14122. // 主题名称
  14123. type: ['primary', 'success', 'info', 'error', 'warning'],
  14124. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14125. color: {
  14126. 'u-primary': '#2979ff',
  14127. 'u-warning': '#ff9900',
  14128. 'u-success': '#19be6b',
  14129. 'u-error': '#fa3534',
  14130. 'u-info': '#909399',
  14131. 'u-main-color': '#303133',
  14132. 'u-content-color': '#606266',
  14133. 'u-tips-color': '#909399',
  14134. 'u-light-color': '#c0c4cc'
  14135. },
  14136. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14137. unit: 'px'
  14138. };
  14139. exports.default = _default;
  14140. /***/ }),
  14141. /* 67 */
  14142. /*!***************************************************************************************!*\
  14143. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props.js ***!
  14144. \***************************************************************************************/
  14145. /*! no static exports found */
  14146. /***/ (function(module, exports, __webpack_require__) {
  14147. "use strict";
  14148. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14149. Object.defineProperty(exports, "__esModule", {
  14150. value: true
  14151. });
  14152. exports.default = void 0;
  14153. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14154. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 66));
  14155. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 68));
  14156. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 69));
  14157. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 70));
  14158. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 71));
  14159. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 72));
  14160. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 73));
  14161. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 74));
  14162. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 75));
  14163. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 76));
  14164. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 77));
  14165. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 78));
  14166. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 79));
  14167. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 80));
  14168. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 81));
  14169. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 82));
  14170. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 83));
  14171. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 84));
  14172. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 85));
  14173. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 86));
  14174. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 87));
  14175. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 88));
  14176. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 89));
  14177. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 90));
  14178. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 91));
  14179. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 92));
  14180. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 93));
  14181. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 94));
  14182. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 95));
  14183. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 96));
  14184. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 97));
  14185. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 98));
  14186. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 99));
  14187. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 100));
  14188. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 101));
  14189. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 102));
  14190. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 103));
  14191. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 104));
  14192. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 105));
  14193. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 106));
  14194. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 107));
  14195. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 108));
  14196. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 109));
  14197. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 110));
  14198. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 111));
  14199. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 112));
  14200. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 113));
  14201. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 114));
  14202. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 116));
  14203. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 117));
  14204. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 118));
  14205. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 119));
  14206. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 120));
  14207. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 121));
  14208. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 122));
  14209. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 123));
  14210. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 124));
  14211. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 125));
  14212. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 126));
  14213. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 127));
  14214. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 128));
  14215. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 129));
  14216. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 130));
  14217. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 131));
  14218. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 132));
  14219. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 133));
  14220. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 134));
  14221. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 135));
  14222. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 136));
  14223. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 137));
  14224. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 138));
  14225. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 139));
  14226. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 140));
  14227. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 141));
  14228. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 142));
  14229. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 143));
  14230. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 144));
  14231. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 145));
  14232. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 146));
  14233. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 147));
  14234. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 148));
  14235. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 149));
  14236. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 150));
  14237. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 151));
  14238. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 152));
  14239. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 153));
  14240. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 154));
  14241. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 155));
  14242. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 156));
  14243. 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; }
  14244. 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; }
  14245. var color = _config.default.color;
  14246. 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);
  14247. exports.default = _default;
  14248. /***/ }),
  14249. /* 68 */
  14250. /*!***************************************************************************************************!*\
  14251. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14252. \***************************************************************************************************/
  14253. /*! no static exports found */
  14254. /***/ (function(module, exports, __webpack_require__) {
  14255. "use strict";
  14256. Object.defineProperty(exports, "__esModule", {
  14257. value: true
  14258. });
  14259. exports.default = void 0;
  14260. /*
  14261. * @Author : LQ
  14262. * @Description :
  14263. * @version : 1.0
  14264. * @Date : 2021-08-20 16:44:21
  14265. * @LastAuthor : LQ
  14266. * @lastTime : 2021-08-20 16:44:35
  14267. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14268. */
  14269. var _default = {
  14270. // action-sheet组件
  14271. actionSheet: {
  14272. show: false,
  14273. title: '',
  14274. description: '',
  14275. actions: function actions() {
  14276. return [];
  14277. },
  14278. index: '',
  14279. cancelText: '',
  14280. closeOnClickAction: true,
  14281. safeAreaInsetBottom: true,
  14282. openType: '',
  14283. closeOnClickOverlay: true,
  14284. round: 0
  14285. }
  14286. };
  14287. exports.default = _default;
  14288. /***/ }),
  14289. /* 69 */
  14290. /*!*********************************************************************************************!*\
  14291. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/album.js ***!
  14292. \*********************************************************************************************/
  14293. /*! no static exports found */
  14294. /***/ (function(module, exports, __webpack_require__) {
  14295. "use strict";
  14296. Object.defineProperty(exports, "__esModule", {
  14297. value: true
  14298. });
  14299. exports.default = void 0;
  14300. /*
  14301. * @Author : LQ
  14302. * @Description :
  14303. * @version : 1.0
  14304. * @Date : 2021-08-20 16:44:21
  14305. * @LastAuthor : LQ
  14306. * @lastTime : 2021-08-20 16:47:24
  14307. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14308. */
  14309. var _default = {
  14310. // album 组件
  14311. album: {
  14312. urls: function urls() {
  14313. return [];
  14314. },
  14315. keyName: '',
  14316. singleSize: 180,
  14317. multipleSize: 70,
  14318. space: 6,
  14319. singleMode: 'scaleToFill',
  14320. multipleMode: 'aspectFill',
  14321. maxCount: 9,
  14322. previewFullImage: true,
  14323. rowCount: 3,
  14324. showMore: true
  14325. }
  14326. };
  14327. exports.default = _default;
  14328. /***/ }),
  14329. /* 70 */
  14330. /*!*********************************************************************************************!*\
  14331. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/alert.js ***!
  14332. \*********************************************************************************************/
  14333. /*! no static exports found */
  14334. /***/ (function(module, exports, __webpack_require__) {
  14335. "use strict";
  14336. Object.defineProperty(exports, "__esModule", {
  14337. value: true
  14338. });
  14339. exports.default = void 0;
  14340. /*
  14341. * @Author : LQ
  14342. * @Description :
  14343. * @version : 1.0
  14344. * @Date : 2021-08-20 16:44:21
  14345. * @LastAuthor : LQ
  14346. * @lastTime : 2021-08-20 16:48:53
  14347. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14348. */
  14349. var _default = {
  14350. // alert警告组件
  14351. alert: {
  14352. title: '',
  14353. type: 'warning',
  14354. description: '',
  14355. closable: false,
  14356. showIcon: false,
  14357. effect: 'light',
  14358. center: false,
  14359. fontSize: 14
  14360. }
  14361. };
  14362. exports.default = _default;
  14363. /***/ }),
  14364. /* 71 */
  14365. /*!**********************************************************************************************!*\
  14366. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/avatar.js ***!
  14367. \**********************************************************************************************/
  14368. /*! no static exports found */
  14369. /***/ (function(module, exports, __webpack_require__) {
  14370. "use strict";
  14371. Object.defineProperty(exports, "__esModule", {
  14372. value: true
  14373. });
  14374. exports.default = void 0;
  14375. /*
  14376. * @Author : LQ
  14377. * @Description :
  14378. * @version : 1.0
  14379. * @Date : 2021-08-20 16:44:21
  14380. * @LastAuthor : LQ
  14381. * @lastTime : 2021-08-20 16:49:22
  14382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14383. */
  14384. var _default = {
  14385. // avatar 组件
  14386. avatar: {
  14387. src: '',
  14388. shape: 'circle',
  14389. size: 40,
  14390. mode: 'scaleToFill',
  14391. text: '',
  14392. bgColor: '#c0c4cc',
  14393. color: '#ffffff',
  14394. fontSize: 18,
  14395. icon: '',
  14396. mpAvatar: false,
  14397. randomBgColor: false,
  14398. defaultUrl: '',
  14399. colorIndex: '',
  14400. name: ''
  14401. }
  14402. };
  14403. exports.default = _default;
  14404. /***/ }),
  14405. /* 72 */
  14406. /*!***************************************************************************************************!*\
  14407. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14408. \***************************************************************************************************/
  14409. /*! no static exports found */
  14410. /***/ (function(module, exports, __webpack_require__) {
  14411. "use strict";
  14412. Object.defineProperty(exports, "__esModule", {
  14413. value: true
  14414. });
  14415. exports.default = void 0;
  14416. /*
  14417. * @Author : LQ
  14418. * @Description :
  14419. * @version : 1.0
  14420. * @Date : 2021-08-20 16:44:21
  14421. * @LastAuthor : LQ
  14422. * @lastTime : 2021-08-20 16:49:55
  14423. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14424. */
  14425. var _default = {
  14426. // avatarGroup 组件
  14427. avatarGroup: {
  14428. urls: function urls() {
  14429. return [];
  14430. },
  14431. maxCount: 5,
  14432. shape: 'circle',
  14433. mode: 'scaleToFill',
  14434. showMore: true,
  14435. size: 40,
  14436. keyName: '',
  14437. gap: 0.5,
  14438. extraValue: 0
  14439. }
  14440. };
  14441. exports.default = _default;
  14442. /***/ }),
  14443. /* 73 */
  14444. /*!***********************************************************************************************!*\
  14445. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/backtop.js ***!
  14446. \***********************************************************************************************/
  14447. /*! no static exports found */
  14448. /***/ (function(module, exports, __webpack_require__) {
  14449. "use strict";
  14450. Object.defineProperty(exports, "__esModule", {
  14451. value: true
  14452. });
  14453. exports.default = void 0;
  14454. /*
  14455. * @Author : LQ
  14456. * @Description :
  14457. * @version : 1.0
  14458. * @Date : 2021-08-20 16:44:21
  14459. * @LastAuthor : LQ
  14460. * @lastTime : 2021-08-20 16:50:18
  14461. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14462. */
  14463. var _default = {
  14464. // backtop组件
  14465. backtop: {
  14466. mode: 'circle',
  14467. icon: 'arrow-upward',
  14468. text: '',
  14469. duration: 100,
  14470. scrollTop: 0,
  14471. top: 400,
  14472. bottom: 100,
  14473. right: 20,
  14474. zIndex: 9,
  14475. iconStyle: function iconStyle() {
  14476. return {
  14477. color: '#909399',
  14478. fontSize: '19px'
  14479. };
  14480. }
  14481. }
  14482. };
  14483. exports.default = _default;
  14484. /***/ }),
  14485. /* 74 */
  14486. /*!*********************************************************************************************!*\
  14487. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/badge.js ***!
  14488. \*********************************************************************************************/
  14489. /*! no static exports found */
  14490. /***/ (function(module, exports, __webpack_require__) {
  14491. "use strict";
  14492. Object.defineProperty(exports, "__esModule", {
  14493. value: true
  14494. });
  14495. exports.default = void 0;
  14496. /*
  14497. * @Author : LQ
  14498. * @Description :
  14499. * @version : 1.0
  14500. * @Date : 2021-08-20 16:44:21
  14501. * @LastAuthor : LQ
  14502. * @lastTime : 2021-08-23 19:51:50
  14503. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14504. */
  14505. var _default = {
  14506. // 徽标数组件
  14507. badge: {
  14508. isDot: false,
  14509. value: '',
  14510. show: true,
  14511. max: 999,
  14512. type: 'error',
  14513. showZero: false,
  14514. bgColor: null,
  14515. color: null,
  14516. shape: 'circle',
  14517. numberType: 'overflow',
  14518. offset: function offset() {
  14519. return [];
  14520. },
  14521. inverted: false,
  14522. absolute: false
  14523. }
  14524. };
  14525. exports.default = _default;
  14526. /***/ }),
  14527. /* 75 */
  14528. /*!**********************************************************************************************!*\
  14529. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/button.js ***!
  14530. \**********************************************************************************************/
  14531. /*! no static exports found */
  14532. /***/ (function(module, exports, __webpack_require__) {
  14533. "use strict";
  14534. Object.defineProperty(exports, "__esModule", {
  14535. value: true
  14536. });
  14537. exports.default = void 0;
  14538. /*
  14539. * @Author : LQ
  14540. * @Description :
  14541. * @version : 1.0
  14542. * @Date : 2021-08-20 16:44:21
  14543. * @LastAuthor : LQ
  14544. * @lastTime : 2021-08-20 16:51:27
  14545. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14546. */
  14547. var _default = {
  14548. // button组件
  14549. button: {
  14550. hairline: false,
  14551. type: 'info',
  14552. size: 'normal',
  14553. shape: 'square',
  14554. plain: false,
  14555. disabled: false,
  14556. loading: false,
  14557. loadingText: '',
  14558. loadingMode: 'spinner',
  14559. loadingSize: 15,
  14560. openType: '',
  14561. formType: '',
  14562. appParameter: '',
  14563. hoverStopPropagation: true,
  14564. lang: 'en',
  14565. sessionFrom: '',
  14566. sendMessageTitle: '',
  14567. sendMessagePath: '',
  14568. sendMessageImg: '',
  14569. showMessageCard: false,
  14570. dataName: '',
  14571. throttleTime: 0,
  14572. hoverStartTime: 0,
  14573. hoverStayTime: 200,
  14574. text: '',
  14575. icon: '',
  14576. iconColor: '',
  14577. color: ''
  14578. }
  14579. };
  14580. exports.default = _default;
  14581. /***/ }),
  14582. /* 76 */
  14583. /*!************************************************************************************************!*\
  14584. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/calendar.js ***!
  14585. \************************************************************************************************/
  14586. /*! no static exports found */
  14587. /***/ (function(module, exports, __webpack_require__) {
  14588. "use strict";
  14589. Object.defineProperty(exports, "__esModule", {
  14590. value: true
  14591. });
  14592. exports.default = void 0;
  14593. /*
  14594. * @Author : LQ
  14595. * @Description :
  14596. * @version : 1.0
  14597. * @Date : 2021-08-20 16:44:21
  14598. * @LastAuthor : LQ
  14599. * @lastTime : 2021-08-20 16:52:43
  14600. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14601. */
  14602. var _default = {
  14603. // calendar 组件
  14604. calendar: {
  14605. title: '日期选择',
  14606. showTitle: true,
  14607. showSubtitle: true,
  14608. mode: 'single',
  14609. startText: '开始',
  14610. endText: '结束',
  14611. customList: function customList() {
  14612. return [];
  14613. },
  14614. color: '#3c9cff',
  14615. minDate: 0,
  14616. maxDate: 0,
  14617. defaultDate: null,
  14618. maxCount: Number.MAX_SAFE_INTEGER,
  14619. // Infinity
  14620. rowHeight: 56,
  14621. formatter: null,
  14622. showLunar: false,
  14623. showMark: true,
  14624. confirmText: '确定',
  14625. confirmDisabledText: '确定',
  14626. show: false,
  14627. closeOnClickOverlay: false,
  14628. readonly: false,
  14629. showConfirm: true,
  14630. maxRange: Number.MAX_SAFE_INTEGER,
  14631. // Infinity
  14632. rangePrompt: '',
  14633. showRangePrompt: true,
  14634. allowSameDay: false,
  14635. round: 0,
  14636. monthNum: 3
  14637. }
  14638. };
  14639. exports.default = _default;
  14640. /***/ }),
  14641. /* 77 */
  14642. /*!***************************************************************************************************!*\
  14643. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14644. \***************************************************************************************************/
  14645. /*! no static exports found */
  14646. /***/ (function(module, exports, __webpack_require__) {
  14647. "use strict";
  14648. Object.defineProperty(exports, "__esModule", {
  14649. value: true
  14650. });
  14651. exports.default = void 0;
  14652. /*
  14653. * @Author : LQ
  14654. * @Description :
  14655. * @version : 1.0
  14656. * @Date : 2021-08-20 16:44:21
  14657. * @LastAuthor : LQ
  14658. * @lastTime : 2021-08-20 16:53:20
  14659. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14660. */
  14661. var _default = {
  14662. // 车牌号键盘
  14663. carKeyboard: {
  14664. random: false
  14665. }
  14666. };
  14667. exports.default = _default;
  14668. /***/ }),
  14669. /* 78 */
  14670. /*!********************************************************************************************!*\
  14671. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/cell.js ***!
  14672. \********************************************************************************************/
  14673. /*! no static exports found */
  14674. /***/ (function(module, exports, __webpack_require__) {
  14675. "use strict";
  14676. Object.defineProperty(exports, "__esModule", {
  14677. value: true
  14678. });
  14679. exports.default = void 0;
  14680. /*
  14681. * @Author : LQ
  14682. * @Description :
  14683. * @version : 1.0
  14684. * @Date : 2021-08-20 16:44:21
  14685. * @LastAuthor : LQ
  14686. * @lastTime : 2021-08-23 20:53:09
  14687. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14688. */
  14689. var _default = {
  14690. // cell组件的props
  14691. cell: {
  14692. customClass: '',
  14693. title: '',
  14694. label: '',
  14695. value: '',
  14696. icon: '',
  14697. disabled: false,
  14698. border: true,
  14699. center: false,
  14700. url: '',
  14701. linkType: 'navigateTo',
  14702. clickable: false,
  14703. isLink: false,
  14704. required: false,
  14705. arrowDirection: '',
  14706. iconStyle: {},
  14707. rightIconStyle: {},
  14708. rightIcon: 'arrow-right',
  14709. titleStyle: {},
  14710. size: '',
  14711. stop: true,
  14712. name: ''
  14713. }
  14714. };
  14715. exports.default = _default;
  14716. /***/ }),
  14717. /* 79 */
  14718. /*!*************************************************************************************************!*\
  14719. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14720. \*************************************************************************************************/
  14721. /*! no static exports found */
  14722. /***/ (function(module, exports, __webpack_require__) {
  14723. "use strict";
  14724. Object.defineProperty(exports, "__esModule", {
  14725. value: true
  14726. });
  14727. exports.default = void 0;
  14728. /*
  14729. * @Author : LQ
  14730. * @Description :
  14731. * @version : 1.0
  14732. * @Date : 2021-08-20 16:44:21
  14733. * @LastAuthor : LQ
  14734. * @lastTime : 2021-08-20 16:54:16
  14735. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14736. */
  14737. var _default = {
  14738. // cell-group组件的props
  14739. cellGroup: {
  14740. title: '',
  14741. border: true,
  14742. customStyle: {}
  14743. }
  14744. };
  14745. exports.default = _default;
  14746. /***/ }),
  14747. /* 80 */
  14748. /*!************************************************************************************************!*\
  14749. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/checkbox.js ***!
  14750. \************************************************************************************************/
  14751. /*! no static exports found */
  14752. /***/ (function(module, exports, __webpack_require__) {
  14753. "use strict";
  14754. Object.defineProperty(exports, "__esModule", {
  14755. value: true
  14756. });
  14757. exports.default = void 0;
  14758. /*
  14759. * @Author : LQ
  14760. * @Description :
  14761. * @version : 1.0
  14762. * @Date : 2021-08-20 16:44:21
  14763. * @LastAuthor : LQ
  14764. * @lastTime : 2021-08-23 21:06:59
  14765. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14766. */
  14767. var _default = {
  14768. // checkbox组件
  14769. checkbox: {
  14770. name: '',
  14771. shape: '',
  14772. size: '',
  14773. checkbox: false,
  14774. disabled: '',
  14775. activeColor: '',
  14776. inactiveColor: '',
  14777. iconSize: '',
  14778. iconColor: '',
  14779. label: '',
  14780. labelSize: '',
  14781. labelColor: '',
  14782. labelDisabled: ''
  14783. }
  14784. };
  14785. exports.default = _default;
  14786. /***/ }),
  14787. /* 81 */
  14788. /*!*****************************************************************************************************!*\
  14789. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14790. \*****************************************************************************************************/
  14791. /*! no static exports found */
  14792. /***/ (function(module, exports, __webpack_require__) {
  14793. "use strict";
  14794. Object.defineProperty(exports, "__esModule", {
  14795. value: true
  14796. });
  14797. exports.default = void 0;
  14798. /*
  14799. * @Author : LQ
  14800. * @Description :
  14801. * @version : 1.0
  14802. * @Date : 2021-08-20 16:44:21
  14803. * @LastAuthor : LQ
  14804. * @lastTime : 2021-08-20 16:54:47
  14805. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14806. */
  14807. var _default = {
  14808. // checkbox-group组件
  14809. checkboxGroup: {
  14810. name: '',
  14811. value: function value() {
  14812. return [];
  14813. },
  14814. shape: 'square',
  14815. disabled: false,
  14816. activeColor: '#2979ff',
  14817. inactiveColor: '#c8c9cc',
  14818. size: 18,
  14819. placement: 'row',
  14820. labelSize: 14,
  14821. labelColor: '#303133',
  14822. labelDisabled: false,
  14823. iconColor: '#ffffff',
  14824. iconSize: 12,
  14825. iconPlacement: 'left',
  14826. borderBottom: false
  14827. }
  14828. };
  14829. exports.default = _default;
  14830. /***/ }),
  14831. /* 82 */
  14832. /*!******************************************************************************************************!*\
  14833. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14834. \******************************************************************************************************/
  14835. /*! no static exports found */
  14836. /***/ (function(module, exports, __webpack_require__) {
  14837. "use strict";
  14838. Object.defineProperty(exports, "__esModule", {
  14839. value: true
  14840. });
  14841. exports.default = void 0;
  14842. /*
  14843. * @Author : LQ
  14844. * @Description :
  14845. * @version : 1.0
  14846. * @Date : 2021-08-20 16:44:21
  14847. * @LastAuthor : LQ
  14848. * @lastTime : 2021-08-20 16:55:02
  14849. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14850. */
  14851. var _default = {
  14852. // circleProgress 组件
  14853. circleProgress: {
  14854. percentage: 30
  14855. }
  14856. };
  14857. exports.default = _default;
  14858. /***/ }),
  14859. /* 83 */
  14860. /*!********************************************************************************************!*\
  14861. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/code.js ***!
  14862. \********************************************************************************************/
  14863. /*! no static exports found */
  14864. /***/ (function(module, exports, __webpack_require__) {
  14865. "use strict";
  14866. Object.defineProperty(exports, "__esModule", {
  14867. value: true
  14868. });
  14869. exports.default = void 0;
  14870. /*
  14871. * @Author : LQ
  14872. * @Description :
  14873. * @version : 1.0
  14874. * @Date : 2021-08-20 16:44:21
  14875. * @LastAuthor : LQ
  14876. * @lastTime : 2021-08-20 16:55:27
  14877. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14878. */
  14879. var _default = {
  14880. // code 组件
  14881. code: {
  14882. seconds: 60,
  14883. startText: '获取验证码',
  14884. changeText: 'X秒重新获取',
  14885. endText: '重新获取',
  14886. keepRunning: false,
  14887. uniqueKey: ''
  14888. }
  14889. };
  14890. exports.default = _default;
  14891. /***/ }),
  14892. /* 84 */
  14893. /*!*************************************************************************************************!*\
  14894. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/codeInput.js ***!
  14895. \*************************************************************************************************/
  14896. /*! no static exports found */
  14897. /***/ (function(module, exports, __webpack_require__) {
  14898. "use strict";
  14899. Object.defineProperty(exports, "__esModule", {
  14900. value: true
  14901. });
  14902. exports.default = void 0;
  14903. /*
  14904. * @Author : LQ
  14905. * @Description :
  14906. * @version : 1.0
  14907. * @Date : 2021-08-20 16:44:21
  14908. * @LastAuthor : LQ
  14909. * @lastTime : 2021-08-20 16:55:58
  14910. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14911. */
  14912. var _default = {
  14913. // codeInput 组件
  14914. codeInput: {
  14915. adjustPosition: true,
  14916. maxlength: 6,
  14917. dot: false,
  14918. mode: 'box',
  14919. hairline: false,
  14920. space: 10,
  14921. value: '',
  14922. focus: false,
  14923. bold: false,
  14924. color: '#606266',
  14925. fontSize: 18,
  14926. size: 35,
  14927. disabledKeyboard: false,
  14928. borderColor: '#c9cacc',
  14929. disabledDot: true
  14930. }
  14931. };
  14932. exports.default = _default;
  14933. /***/ }),
  14934. /* 85 */
  14935. /*!*******************************************************************************************!*\
  14936. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/col.js ***!
  14937. \*******************************************************************************************/
  14938. /*! no static exports found */
  14939. /***/ (function(module, exports, __webpack_require__) {
  14940. "use strict";
  14941. Object.defineProperty(exports, "__esModule", {
  14942. value: true
  14943. });
  14944. exports.default = void 0;
  14945. /*
  14946. * @Author : LQ
  14947. * @Description :
  14948. * @version : 1.0
  14949. * @Date : 2021-08-20 16:44:21
  14950. * @LastAuthor : LQ
  14951. * @lastTime : 2021-08-20 16:56:12
  14952. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14953. */
  14954. var _default = {
  14955. // col 组件
  14956. col: {
  14957. span: 12,
  14958. offset: 0,
  14959. justify: 'start',
  14960. align: 'stretch',
  14961. textAlign: 'left'
  14962. }
  14963. };
  14964. exports.default = _default;
  14965. /***/ }),
  14966. /* 86 */
  14967. /*!************************************************************************************************!*\
  14968. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/collapse.js ***!
  14969. \************************************************************************************************/
  14970. /*! no static exports found */
  14971. /***/ (function(module, exports, __webpack_require__) {
  14972. "use strict";
  14973. Object.defineProperty(exports, "__esModule", {
  14974. value: true
  14975. });
  14976. exports.default = void 0;
  14977. /*
  14978. * @Author : LQ
  14979. * @Description :
  14980. * @version : 1.0
  14981. * @Date : 2021-08-20 16:44:21
  14982. * @LastAuthor : LQ
  14983. * @lastTime : 2021-08-20 16:56:30
  14984. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14985. */
  14986. var _default = {
  14987. // collapse 组件
  14988. collapse: {
  14989. value: null,
  14990. accordion: false,
  14991. border: true
  14992. }
  14993. };
  14994. exports.default = _default;
  14995. /***/ }),
  14996. /* 87 */
  14997. /*!****************************************************************************************************!*\
  14998. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/collapseItem.js ***!
  14999. \****************************************************************************************************/
  15000. /*! no static exports found */
  15001. /***/ (function(module, exports, __webpack_require__) {
  15002. "use strict";
  15003. Object.defineProperty(exports, "__esModule", {
  15004. value: true
  15005. });
  15006. exports.default = void 0;
  15007. /*
  15008. * @Author : LQ
  15009. * @Description :
  15010. * @version : 1.0
  15011. * @Date : 2021-08-20 16:44:21
  15012. * @LastAuthor : LQ
  15013. * @lastTime : 2021-08-20 16:56:42
  15014. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15015. */
  15016. var _default = {
  15017. // collapseItem 组件
  15018. collapseItem: {
  15019. title: '',
  15020. value: '',
  15021. label: '',
  15022. disabled: false,
  15023. isLink: true,
  15024. clickable: true,
  15025. border: true,
  15026. align: 'left',
  15027. name: '',
  15028. icon: '',
  15029. duration: 300
  15030. }
  15031. };
  15032. exports.default = _default;
  15033. /***/ }),
  15034. /* 88 */
  15035. /*!****************************************************************************************************!*\
  15036. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15037. \****************************************************************************************************/
  15038. /*! no static exports found */
  15039. /***/ (function(module, exports, __webpack_require__) {
  15040. "use strict";
  15041. Object.defineProperty(exports, "__esModule", {
  15042. value: true
  15043. });
  15044. exports.default = void 0;
  15045. /*
  15046. * @Author : LQ
  15047. * @Description :
  15048. * @version : 1.0
  15049. * @Date : 2021-08-20 16:44:21
  15050. * @LastAuthor : LQ
  15051. * @lastTime : 2021-08-20 16:57:16
  15052. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15053. */
  15054. var _default = {
  15055. // columnNotice 组件
  15056. columnNotice: {
  15057. text: '',
  15058. icon: 'volume',
  15059. mode: '',
  15060. color: '#f9ae3d',
  15061. bgColor: '#fdf6ec',
  15062. fontSize: 14,
  15063. speed: 80,
  15064. step: false,
  15065. duration: 1500,
  15066. disableTouch: true
  15067. }
  15068. };
  15069. exports.default = _default;
  15070. /***/ }),
  15071. /* 89 */
  15072. /*!*************************************************************************************************!*\
  15073. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/countDown.js ***!
  15074. \*************************************************************************************************/
  15075. /*! no static exports found */
  15076. /***/ (function(module, exports, __webpack_require__) {
  15077. "use strict";
  15078. Object.defineProperty(exports, "__esModule", {
  15079. value: true
  15080. });
  15081. exports.default = void 0;
  15082. /*
  15083. * @Author : LQ
  15084. * @Description :
  15085. * @version : 1.0
  15086. * @Date : 2021-08-20 16:44:21
  15087. * @LastAuthor : LQ
  15088. * @lastTime : 2021-08-20 17:11:29
  15089. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15090. */
  15091. var _default = {
  15092. // u-count-down 计时器组件
  15093. countDown: {
  15094. time: 0,
  15095. format: 'HH:mm:ss',
  15096. autoStart: true,
  15097. millisecond: false
  15098. }
  15099. };
  15100. exports.default = _default;
  15101. /***/ }),
  15102. /* 90 */
  15103. /*!***********************************************************************************************!*\
  15104. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/countTo.js ***!
  15105. \***********************************************************************************************/
  15106. /*! no static exports found */
  15107. /***/ (function(module, exports, __webpack_require__) {
  15108. "use strict";
  15109. Object.defineProperty(exports, "__esModule", {
  15110. value: true
  15111. });
  15112. exports.default = void 0;
  15113. /*
  15114. * @Author : LQ
  15115. * @Description :
  15116. * @version : 1.0
  15117. * @Date : 2021-08-20 16:44:21
  15118. * @LastAuthor : LQ
  15119. * @lastTime : 2021-08-20 16:57:32
  15120. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15121. */
  15122. var _default = {
  15123. // countTo 组件
  15124. countTo: {
  15125. startVal: 0,
  15126. endVal: 0,
  15127. duration: 2000,
  15128. autoplay: true,
  15129. decimals: 0,
  15130. useEasing: true,
  15131. decimal: '.',
  15132. color: '#606266',
  15133. fontSize: 22,
  15134. bold: false,
  15135. separator: ''
  15136. }
  15137. };
  15138. exports.default = _default;
  15139. /***/ }),
  15140. /* 91 */
  15141. /*!******************************************************************************************************!*\
  15142. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15143. \******************************************************************************************************/
  15144. /*! no static exports found */
  15145. /***/ (function(module, exports, __webpack_require__) {
  15146. "use strict";
  15147. Object.defineProperty(exports, "__esModule", {
  15148. value: true
  15149. });
  15150. exports.default = void 0;
  15151. /*
  15152. * @Author : LQ
  15153. * @Description :
  15154. * @version : 1.0
  15155. * @Date : 2021-08-20 16:44:21
  15156. * @LastAuthor : LQ
  15157. * @lastTime : 2021-08-20 16:57:48
  15158. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15159. */
  15160. var _default = {
  15161. // datetimePicker 组件
  15162. datetimePicker: {
  15163. show: false,
  15164. showToolbar: true,
  15165. value: '',
  15166. title: '',
  15167. mode: 'datetime',
  15168. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15169. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15170. minHour: 0,
  15171. maxHour: 23,
  15172. minMinute: 0,
  15173. maxMinute: 59,
  15174. filter: null,
  15175. formatter: null,
  15176. loading: false,
  15177. itemHeight: 44,
  15178. cancelText: '取消',
  15179. confirmText: '确认',
  15180. cancelColor: '#909193',
  15181. confirmColor: '#3c9cff',
  15182. visibleItemCount: 5,
  15183. closeOnClickOverlay: false,
  15184. defaultIndex: function defaultIndex() {
  15185. return [];
  15186. }
  15187. }
  15188. };
  15189. exports.default = _default;
  15190. /***/ }),
  15191. /* 92 */
  15192. /*!***********************************************************************************************!*\
  15193. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/divider.js ***!
  15194. \***********************************************************************************************/
  15195. /*! no static exports found */
  15196. /***/ (function(module, exports, __webpack_require__) {
  15197. "use strict";
  15198. Object.defineProperty(exports, "__esModule", {
  15199. value: true
  15200. });
  15201. exports.default = void 0;
  15202. /*
  15203. * @Author : LQ
  15204. * @Description :
  15205. * @version : 1.0
  15206. * @Date : 2021-08-20 16:44:21
  15207. * @LastAuthor : LQ
  15208. * @lastTime : 2021-08-20 16:58:03
  15209. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15210. */
  15211. var _default = {
  15212. // divider组件
  15213. divider: {
  15214. dashed: false,
  15215. hairline: true,
  15216. dot: false,
  15217. textPosition: 'center',
  15218. text: '',
  15219. textSize: 14,
  15220. textColor: '#909399',
  15221. lineColor: '#dcdfe6'
  15222. }
  15223. };
  15224. exports.default = _default;
  15225. /***/ }),
  15226. /* 93 */
  15227. /*!*********************************************************************************************!*\
  15228. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/empty.js ***!
  15229. \*********************************************************************************************/
  15230. /*! no static exports found */
  15231. /***/ (function(module, exports, __webpack_require__) {
  15232. "use strict";
  15233. Object.defineProperty(exports, "__esModule", {
  15234. value: true
  15235. });
  15236. exports.default = void 0;
  15237. /*
  15238. * @Author : LQ
  15239. * @Description :
  15240. * @version : 1.0
  15241. * @Date : 2021-08-20 16:44:21
  15242. * @LastAuthor : LQ
  15243. * @lastTime : 2021-08-20 17:03:27
  15244. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15245. */
  15246. var _default = {
  15247. // empty组件
  15248. empty: {
  15249. icon: '',
  15250. text: '',
  15251. textColor: '#c0c4cc',
  15252. textSize: 14,
  15253. iconColor: '#c0c4cc',
  15254. iconSize: 90,
  15255. mode: 'data',
  15256. width: 160,
  15257. height: 160,
  15258. show: true,
  15259. marginTop: 0
  15260. }
  15261. };
  15262. exports.default = _default;
  15263. /***/ }),
  15264. /* 94 */
  15265. /*!********************************************************************************************!*\
  15266. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/form.js ***!
  15267. \********************************************************************************************/
  15268. /*! no static exports found */
  15269. /***/ (function(module, exports, __webpack_require__) {
  15270. "use strict";
  15271. Object.defineProperty(exports, "__esModule", {
  15272. value: true
  15273. });
  15274. exports.default = void 0;
  15275. /*
  15276. * @Author : LQ
  15277. * @Description :
  15278. * @version : 1.0
  15279. * @Date : 2021-08-20 16:44:21
  15280. * @LastAuthor : LQ
  15281. * @lastTime : 2021-08-20 17:03:49
  15282. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15283. */
  15284. var _default = {
  15285. // form 组件
  15286. form: {
  15287. model: function model() {
  15288. return {};
  15289. },
  15290. rules: function rules() {
  15291. return {};
  15292. },
  15293. errorType: 'message',
  15294. borderBottom: true,
  15295. labelPosition: 'left',
  15296. labelWidth: 45,
  15297. labelAlign: 'left',
  15298. labelStyle: function labelStyle() {
  15299. return {};
  15300. }
  15301. }
  15302. };
  15303. exports.default = _default;
  15304. /***/ }),
  15305. /* 95 */
  15306. /*!************************************************************************************************!*\
  15307. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/formItem.js ***!
  15308. \************************************************************************************************/
  15309. /*! no static exports found */
  15310. /***/ (function(module, exports, __webpack_require__) {
  15311. "use strict";
  15312. Object.defineProperty(exports, "__esModule", {
  15313. value: true
  15314. });
  15315. exports.default = void 0;
  15316. /*
  15317. * @Author : LQ
  15318. * @Description :
  15319. * @version : 1.0
  15320. * @Date : 2021-08-20 16:44:21
  15321. * @LastAuthor : LQ
  15322. * @lastTime : 2021-08-20 17:04:32
  15323. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15324. */
  15325. var _default = {
  15326. // formItem 组件
  15327. formItem: {
  15328. label: '',
  15329. prop: '',
  15330. borderBottom: '',
  15331. labelPosition: '',
  15332. labelWidth: '',
  15333. rightIcon: '',
  15334. leftIcon: '',
  15335. required: false,
  15336. leftIconStyle: ''
  15337. }
  15338. };
  15339. exports.default = _default;
  15340. /***/ }),
  15341. /* 96 */
  15342. /*!*******************************************************************************************!*\
  15343. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/gap.js ***!
  15344. \*******************************************************************************************/
  15345. /*! no static exports found */
  15346. /***/ (function(module, exports, __webpack_require__) {
  15347. "use strict";
  15348. Object.defineProperty(exports, "__esModule", {
  15349. value: true
  15350. });
  15351. exports.default = void 0;
  15352. /*
  15353. * @Author : LQ
  15354. * @Description :
  15355. * @version : 1.0
  15356. * @Date : 2021-08-20 16:44:21
  15357. * @LastAuthor : LQ
  15358. * @lastTime : 2021-08-20 17:05:25
  15359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15360. */
  15361. var _default = {
  15362. // gap组件
  15363. gap: {
  15364. bgColor: 'transparent',
  15365. height: 20,
  15366. marginTop: 0,
  15367. marginBottom: 0,
  15368. customStyle: {}
  15369. }
  15370. };
  15371. exports.default = _default;
  15372. /***/ }),
  15373. /* 97 */
  15374. /*!********************************************************************************************!*\
  15375. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/grid.js ***!
  15376. \********************************************************************************************/
  15377. /*! no static exports found */
  15378. /***/ (function(module, exports, __webpack_require__) {
  15379. "use strict";
  15380. Object.defineProperty(exports, "__esModule", {
  15381. value: true
  15382. });
  15383. exports.default = void 0;
  15384. /*
  15385. * @Author : LQ
  15386. * @Description :
  15387. * @version : 1.0
  15388. * @Date : 2021-08-20 16:44:21
  15389. * @LastAuthor : LQ
  15390. * @lastTime : 2021-08-20 17:05:57
  15391. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15392. */
  15393. var _default = {
  15394. // grid组件
  15395. grid: {
  15396. col: 3,
  15397. border: false,
  15398. align: 'left'
  15399. }
  15400. };
  15401. exports.default = _default;
  15402. /***/ }),
  15403. /* 98 */
  15404. /*!************************************************************************************************!*\
  15405. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/gridItem.js ***!
  15406. \************************************************************************************************/
  15407. /*! no static exports found */
  15408. /***/ (function(module, exports, __webpack_require__) {
  15409. "use strict";
  15410. Object.defineProperty(exports, "__esModule", {
  15411. value: true
  15412. });
  15413. exports.default = void 0;
  15414. /*
  15415. * @Author : LQ
  15416. * @Description :
  15417. * @version : 1.0
  15418. * @Date : 2021-08-20 16:44:21
  15419. * @LastAuthor : LQ
  15420. * @lastTime : 2021-08-20 17:06:13
  15421. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15422. */
  15423. var _default = {
  15424. // grid-item组件
  15425. gridItem: {
  15426. name: null,
  15427. bgColor: 'transparent'
  15428. }
  15429. };
  15430. exports.default = _default;
  15431. /***/ }),
  15432. /* 99 */
  15433. /*!********************************************************************************************!*\
  15434. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/icon.js ***!
  15435. \********************************************************************************************/
  15436. /*! no static exports found */
  15437. /***/ (function(module, exports, __webpack_require__) {
  15438. "use strict";
  15439. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15440. Object.defineProperty(exports, "__esModule", {
  15441. value: true
  15442. });
  15443. exports.default = void 0;
  15444. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15445. /*
  15446. * @Author : LQ
  15447. * @Description :
  15448. * @version : 1.0
  15449. * @Date : 2021-08-20 16:44:21
  15450. * @LastAuthor : LQ
  15451. * @lastTime : 2021-08-20 18:00:14
  15452. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15453. */
  15454. var color = _config.default.color;
  15455. var _default = {
  15456. // icon组件
  15457. icon: {
  15458. name: '',
  15459. color: color['u-content-color'],
  15460. size: '16px',
  15461. bold: false,
  15462. index: '',
  15463. hoverClass: '',
  15464. customPrefix: 'uicon',
  15465. label: '',
  15466. labelPos: 'right',
  15467. labelSize: '15px',
  15468. labelColor: color['u-content-color'],
  15469. space: '3px',
  15470. imgMode: '',
  15471. width: '',
  15472. height: '',
  15473. top: 0,
  15474. stop: false
  15475. }
  15476. };
  15477. exports.default = _default;
  15478. /***/ }),
  15479. /* 100 */
  15480. /*!*********************************************************************************************!*\
  15481. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/image.js ***!
  15482. \*********************************************************************************************/
  15483. /*! no static exports found */
  15484. /***/ (function(module, exports, __webpack_require__) {
  15485. "use strict";
  15486. Object.defineProperty(exports, "__esModule", {
  15487. value: true
  15488. });
  15489. exports.default = void 0;
  15490. /*
  15491. * @Author : LQ
  15492. * @Description :
  15493. * @version : 1.0
  15494. * @Date : 2021-08-20 16:44:21
  15495. * @LastAuthor : LQ
  15496. * @lastTime : 2021-08-20 17:01:51
  15497. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15498. */
  15499. var _default = {
  15500. // image组件
  15501. image: {
  15502. src: '',
  15503. mode: 'aspectFill',
  15504. width: '300',
  15505. height: '225',
  15506. shape: 'square',
  15507. radius: 0,
  15508. lazyLoad: true,
  15509. showMenuByLongpress: true,
  15510. loadingIcon: 'photo',
  15511. errorIcon: 'error-circle',
  15512. showLoading: true,
  15513. showError: true,
  15514. fade: true,
  15515. webp: false,
  15516. duration: 500,
  15517. bgColor: '#f3f4f6'
  15518. }
  15519. };
  15520. exports.default = _default;
  15521. /***/ }),
  15522. /* 101 */
  15523. /*!***************************************************************************************************!*\
  15524. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15525. \***************************************************************************************************/
  15526. /*! no static exports found */
  15527. /***/ (function(module, exports, __webpack_require__) {
  15528. "use strict";
  15529. Object.defineProperty(exports, "__esModule", {
  15530. value: true
  15531. });
  15532. exports.default = void 0;
  15533. /*
  15534. * @Author : LQ
  15535. * @Description :
  15536. * @version : 1.0
  15537. * @Date : 2021-08-20 16:44:21
  15538. * @LastAuthor : LQ
  15539. * @lastTime : 2021-08-20 17:13:15
  15540. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15541. */
  15542. var _default = {
  15543. // indexAnchor 组件
  15544. indexAnchor: {
  15545. text: '',
  15546. color: '#606266',
  15547. size: 14,
  15548. bgColor: '#dedede',
  15549. height: 32
  15550. }
  15551. };
  15552. exports.default = _default;
  15553. /***/ }),
  15554. /* 102 */
  15555. /*!*************************************************************************************************!*\
  15556. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/indexList.js ***!
  15557. \*************************************************************************************************/
  15558. /*! no static exports found */
  15559. /***/ (function(module, exports, __webpack_require__) {
  15560. "use strict";
  15561. Object.defineProperty(exports, "__esModule", {
  15562. value: true
  15563. });
  15564. exports.default = void 0;
  15565. /*
  15566. * @Author : LQ
  15567. * @Description :
  15568. * @version : 1.0
  15569. * @Date : 2021-08-20 16:44:21
  15570. * @LastAuthor : LQ
  15571. * @lastTime : 2021-08-20 17:13:35
  15572. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15573. */
  15574. var _default = {
  15575. // indexList 组件
  15576. indexList: {
  15577. inactiveColor: '#606266',
  15578. activeColor: '#5677fc',
  15579. indexList: function indexList() {
  15580. return [];
  15581. },
  15582. sticky: true,
  15583. customNavHeight: 0
  15584. }
  15585. };
  15586. exports.default = _default;
  15587. /***/ }),
  15588. /* 103 */
  15589. /*!*********************************************************************************************!*\
  15590. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/input.js ***!
  15591. \*********************************************************************************************/
  15592. /*! no static exports found */
  15593. /***/ (function(module, exports, __webpack_require__) {
  15594. "use strict";
  15595. Object.defineProperty(exports, "__esModule", {
  15596. value: true
  15597. });
  15598. exports.default = void 0;
  15599. /*
  15600. * @Author : LQ
  15601. * @Description :
  15602. * @version : 1.0
  15603. * @Date : 2021-08-20 16:44:21
  15604. * @LastAuthor : LQ
  15605. * @lastTime : 2021-08-20 17:13:55
  15606. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15607. */
  15608. var _default = {
  15609. // index 组件
  15610. input: {
  15611. value: '',
  15612. type: 'text',
  15613. fixed: false,
  15614. disabled: false,
  15615. disabledColor: '#f5f7fa',
  15616. clearable: false,
  15617. password: false,
  15618. maxlength: -1,
  15619. placeholder: null,
  15620. placeholderClass: 'input-placeholder',
  15621. placeholderStyle: 'color: #c0c4cc',
  15622. showWordLimit: false,
  15623. confirmType: 'done',
  15624. confirmHold: false,
  15625. holdKeyboard: false,
  15626. focus: false,
  15627. autoBlur: false,
  15628. disableDefaultPadding: false,
  15629. cursor: -1,
  15630. cursorSpacing: 30,
  15631. selectionStart: -1,
  15632. selectionEnd: -1,
  15633. adjustPosition: true,
  15634. inputAlign: 'left',
  15635. fontSize: '15px',
  15636. color: '#303133',
  15637. prefixIcon: '',
  15638. prefixIconStyle: '',
  15639. suffixIcon: '',
  15640. suffixIconStyle: '',
  15641. border: 'surround',
  15642. readonly: false,
  15643. shape: 'square',
  15644. formatter: null
  15645. }
  15646. };
  15647. exports.default = _default;
  15648. /***/ }),
  15649. /* 104 */
  15650. /*!************************************************************************************************!*\
  15651. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/keyboard.js ***!
  15652. \************************************************************************************************/
  15653. /*! no static exports found */
  15654. /***/ (function(module, exports, __webpack_require__) {
  15655. "use strict";
  15656. Object.defineProperty(exports, "__esModule", {
  15657. value: true
  15658. });
  15659. exports.default = void 0;
  15660. /*
  15661. * @Author : LQ
  15662. * @Description :
  15663. * @version : 1.0
  15664. * @Date : 2021-08-20 16:44:21
  15665. * @LastAuthor : LQ
  15666. * @lastTime : 2021-08-20 17:07:49
  15667. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15668. */
  15669. var _default = {
  15670. // 键盘组件
  15671. keyboard: {
  15672. mode: 'number',
  15673. dotDisabled: false,
  15674. tooltip: true,
  15675. showTips: true,
  15676. tips: '',
  15677. showCancel: true,
  15678. showConfirm: true,
  15679. random: false,
  15680. safeAreaInsetBottom: true,
  15681. closeOnClickOverlay: true,
  15682. show: false,
  15683. overlay: true,
  15684. zIndex: 10075,
  15685. cancelText: '取消',
  15686. confirmText: '确定',
  15687. autoChange: false
  15688. }
  15689. };
  15690. exports.default = _default;
  15691. /***/ }),
  15692. /* 105 */
  15693. /*!********************************************************************************************!*\
  15694. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/line.js ***!
  15695. \********************************************************************************************/
  15696. /*! no static exports found */
  15697. /***/ (function(module, exports, __webpack_require__) {
  15698. "use strict";
  15699. Object.defineProperty(exports, "__esModule", {
  15700. value: true
  15701. });
  15702. exports.default = void 0;
  15703. /*
  15704. * @Author : LQ
  15705. * @Description :
  15706. * @version : 1.0
  15707. * @Date : 2021-08-20 16:44:21
  15708. * @LastAuthor : LQ
  15709. * @lastTime : 2021-08-20 17:04:49
  15710. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15711. */
  15712. var _default = {
  15713. // line组件
  15714. line: {
  15715. color: '#d6d7d9',
  15716. length: '100%',
  15717. direction: 'row',
  15718. hairline: true,
  15719. margin: 0,
  15720. dashed: false
  15721. }
  15722. };
  15723. exports.default = _default;
  15724. /***/ }),
  15725. /* 106 */
  15726. /*!****************************************************************************************************!*\
  15727. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15728. \****************************************************************************************************/
  15729. /*! no static exports found */
  15730. /***/ (function(module, exports, __webpack_require__) {
  15731. "use strict";
  15732. Object.defineProperty(exports, "__esModule", {
  15733. value: true
  15734. });
  15735. exports.default = void 0;
  15736. /*
  15737. * @Author : LQ
  15738. * @Description :
  15739. * @version : 1.0
  15740. * @Date : 2021-08-20 16:44:21
  15741. * @LastAuthor : LQ
  15742. * @lastTime : 2021-08-20 17:14:11
  15743. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15744. */
  15745. var _default = {
  15746. // lineProgress 组件
  15747. lineProgress: {
  15748. activeColor: '#19be6b',
  15749. inactiveColor: '#ececec',
  15750. percentage: 0,
  15751. showText: true,
  15752. height: 12
  15753. }
  15754. };
  15755. exports.default = _default;
  15756. /***/ }),
  15757. /* 107 */
  15758. /*!********************************************************************************************!*\
  15759. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/link.js ***!
  15760. \********************************************************************************************/
  15761. /*! no static exports found */
  15762. /***/ (function(module, exports, __webpack_require__) {
  15763. "use strict";
  15764. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15765. Object.defineProperty(exports, "__esModule", {
  15766. value: true
  15767. });
  15768. exports.default = void 0;
  15769. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15770. /*
  15771. * @Author : LQ
  15772. * @Description :
  15773. * @version : 1.0
  15774. * @Date : 2021-08-20 16:44:21
  15775. * @LastAuthor : LQ
  15776. * @lastTime : 2021-08-20 17:45:36
  15777. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15778. */
  15779. var color = _config.default.color;
  15780. var _default = {
  15781. // link超链接组件props参数
  15782. link: {
  15783. color: color['u-primary'],
  15784. fontSize: 15,
  15785. underLine: false,
  15786. href: '',
  15787. mpTips: '链接已复制,请在浏览器打开',
  15788. lineColor: '',
  15789. text: ''
  15790. }
  15791. };
  15792. exports.default = _default;
  15793. /***/ }),
  15794. /* 108 */
  15795. /*!********************************************************************************************!*\
  15796. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/list.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 17:14:53
  15812. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15813. */
  15814. var _default = {
  15815. // list 组件
  15816. list: {
  15817. showScrollbar: false,
  15818. lowerThreshold: 50,
  15819. upperThreshold: 0,
  15820. scrollTop: 0,
  15821. offsetAccuracy: 10,
  15822. enableFlex: false,
  15823. pagingEnabled: false,
  15824. scrollable: true,
  15825. scrollIntoView: '',
  15826. scrollWithAnimation: false,
  15827. enableBackToTop: false,
  15828. height: 0,
  15829. width: 0,
  15830. preLoadScreen: 1
  15831. }
  15832. };
  15833. exports.default = _default;
  15834. /***/ }),
  15835. /* 109 */
  15836. /*!************************************************************************************************!*\
  15837. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/listItem.js ***!
  15838. \************************************************************************************************/
  15839. /*! no static exports found */
  15840. /***/ (function(module, exports, __webpack_require__) {
  15841. "use strict";
  15842. Object.defineProperty(exports, "__esModule", {
  15843. value: true
  15844. });
  15845. exports.default = void 0;
  15846. /*
  15847. * @Author : LQ
  15848. * @Description :
  15849. * @version : 1.0
  15850. * @Date : 2021-08-20 16:44:21
  15851. * @LastAuthor : LQ
  15852. * @lastTime : 2021-08-20 17:15:40
  15853. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15854. */
  15855. var _default = {
  15856. // listItem 组件
  15857. listItem: {
  15858. anchor: ''
  15859. }
  15860. };
  15861. exports.default = _default;
  15862. /***/ }),
  15863. /* 110 */
  15864. /*!***************************************************************************************************!*\
  15865. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15866. \***************************************************************************************************/
  15867. /*! no static exports found */
  15868. /***/ (function(module, exports, __webpack_require__) {
  15869. "use strict";
  15870. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15871. Object.defineProperty(exports, "__esModule", {
  15872. value: true
  15873. });
  15874. exports.default = void 0;
  15875. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15876. /*
  15877. * @Author : LQ
  15878. * @Description :
  15879. * @version : 1.0
  15880. * @Date : 2021-08-20 16:44:21
  15881. * @LastAuthor : LQ
  15882. * @lastTime : 2021-08-20 17:45:47
  15883. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15884. */
  15885. var color = _config.default.color;
  15886. var _default = {
  15887. // loading-icon加载中图标组件
  15888. loadingIcon: {
  15889. show: true,
  15890. color: color['u-tips-color'],
  15891. textColor: color['u-tips-color'],
  15892. vertical: false,
  15893. mode: 'spinner',
  15894. size: 24,
  15895. textSize: 15,
  15896. text: '',
  15897. timingFunction: 'ease-in-out',
  15898. duration: 1200,
  15899. inactiveColor: ''
  15900. }
  15901. };
  15902. exports.default = _default;
  15903. /***/ }),
  15904. /* 111 */
  15905. /*!***************************************************************************************************!*\
  15906. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15907. \***************************************************************************************************/
  15908. /*! no static exports found */
  15909. /***/ (function(module, exports, __webpack_require__) {
  15910. "use strict";
  15911. Object.defineProperty(exports, "__esModule", {
  15912. value: true
  15913. });
  15914. exports.default = void 0;
  15915. /*
  15916. * @Author : LQ
  15917. * @Description :
  15918. * @version : 1.0
  15919. * @Date : 2021-08-20 16:44:21
  15920. * @LastAuthor : LQ
  15921. * @lastTime : 2021-08-20 17:00:23
  15922. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15923. */
  15924. var _default = {
  15925. // loading-page组件
  15926. loadingPage: {
  15927. loadingText: '正在加载',
  15928. image: '',
  15929. loadingMode: 'circle',
  15930. loading: false,
  15931. bgColor: '#ffffff',
  15932. color: '#C8C8C8',
  15933. fontSize: 19,
  15934. iconSize: 28,
  15935. loadingColor: '#C8C8C8'
  15936. }
  15937. };
  15938. exports.default = _default;
  15939. /***/ }),
  15940. /* 112 */
  15941. /*!************************************************************************************************!*\
  15942. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/loadmore.js ***!
  15943. \************************************************************************************************/
  15944. /*! no static exports found */
  15945. /***/ (function(module, exports, __webpack_require__) {
  15946. "use strict";
  15947. Object.defineProperty(exports, "__esModule", {
  15948. value: true
  15949. });
  15950. exports.default = void 0;
  15951. /*
  15952. * @Author : LQ
  15953. * @Description :
  15954. * @version : 1.0
  15955. * @Date : 2021-08-20 16:44:21
  15956. * @LastAuthor : LQ
  15957. * @lastTime : 2021-08-20 17:15:26
  15958. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15959. */
  15960. var _default = {
  15961. // loadmore 组件
  15962. loadmore: {
  15963. status: 'loadmore',
  15964. bgColor: 'transparent',
  15965. icon: true,
  15966. fontSize: 14,
  15967. iconSize: 17,
  15968. color: '#606266',
  15969. loadingIcon: 'spinner',
  15970. loadmoreText: '加载更多',
  15971. loadingText: '正在加载...',
  15972. nomoreText: '没有更多了',
  15973. isDot: false,
  15974. iconColor: '#b7b7b7',
  15975. marginTop: 10,
  15976. marginBottom: 10,
  15977. height: 'auto',
  15978. line: false,
  15979. lineColor: '#E6E8EB',
  15980. dashed: false
  15981. }
  15982. };
  15983. exports.default = _default;
  15984. /***/ }),
  15985. /* 113 */
  15986. /*!*********************************************************************************************!*\
  15987. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/modal.js ***!
  15988. \*********************************************************************************************/
  15989. /*! no static exports found */
  15990. /***/ (function(module, exports, __webpack_require__) {
  15991. "use strict";
  15992. Object.defineProperty(exports, "__esModule", {
  15993. value: true
  15994. });
  15995. exports.default = void 0;
  15996. /*
  15997. * @Author : LQ
  15998. * @Description :
  15999. * @version : 1.0
  16000. * @Date : 2021-08-20 16:44:21
  16001. * @LastAuthor : LQ
  16002. * @lastTime : 2021-08-20 17:15:59
  16003. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16004. */
  16005. var _default = {
  16006. // modal 组件
  16007. modal: {
  16008. show: false,
  16009. title: '',
  16010. content: '',
  16011. confirmText: '确认',
  16012. cancelText: '取消',
  16013. showConfirmButton: true,
  16014. showCancelButton: false,
  16015. confirmColor: '#2979ff',
  16016. cancelColor: '#606266',
  16017. buttonReverse: false,
  16018. zoom: true,
  16019. asyncClose: false,
  16020. closeOnClickOverlay: false,
  16021. negativeTop: 0,
  16022. width: '650rpx',
  16023. confirmButtonShape: '',
  16024. duration: 400
  16025. }
  16026. };
  16027. exports.default = _default;
  16028. /***/ }),
  16029. /* 114 */
  16030. /*!**********************************************************************************************!*\
  16031. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/navbar.js ***!
  16032. \**********************************************************************************************/
  16033. /*! no static exports found */
  16034. /***/ (function(module, exports, __webpack_require__) {
  16035. "use strict";
  16036. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16037. Object.defineProperty(exports, "__esModule", {
  16038. value: true
  16039. });
  16040. exports.default = void 0;
  16041. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 115));
  16042. /*
  16043. * @Author : LQ
  16044. * @Description :
  16045. * @version : 1.0
  16046. * @Date : 2021-08-20 16:44:21
  16047. * @LastAuthor : LQ
  16048. * @lastTime : 2021-08-20 17:16:18
  16049. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16050. */
  16051. var _default = {
  16052. // navbar 组件
  16053. navbar: {
  16054. safeAreaInsetTop: true,
  16055. placeholder: false,
  16056. fixed: true,
  16057. border: false,
  16058. leftIcon: 'arrow-left',
  16059. leftText: '',
  16060. rightText: '',
  16061. rightIcon: '',
  16062. title: '',
  16063. bgColor: '#ffffff',
  16064. titleWidth: '400rpx',
  16065. height: '44px',
  16066. leftIconSize: 20,
  16067. leftIconColor: _color.default.mainColor,
  16068. autoBack: false,
  16069. titleStyle: ''
  16070. }
  16071. };
  16072. exports.default = _default;
  16073. /***/ }),
  16074. /* 115 */
  16075. /*!***************************************************************************************!*\
  16076. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/color.js ***!
  16077. \***************************************************************************************/
  16078. /*! no static exports found */
  16079. /***/ (function(module, exports, __webpack_require__) {
  16080. "use strict";
  16081. Object.defineProperty(exports, "__esModule", {
  16082. value: true
  16083. });
  16084. exports.default = void 0;
  16085. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16086. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16087. var color = {
  16088. primary: '#3c9cff',
  16089. info: '#909399',
  16090. default: '#909399',
  16091. warning: '#f9ae3d',
  16092. error: '#f56c6c',
  16093. success: '#5ac725',
  16094. mainColor: '#303133',
  16095. contentColor: '#606266',
  16096. tipsColor: '#909399',
  16097. lightColor: '#c0c4cc',
  16098. borderColor: '#e4e7ed'
  16099. };
  16100. var _default = color;
  16101. exports.default = _default;
  16102. /***/ }),
  16103. /* 116 */
  16104. /*!*************************************************************************************************!*\
  16105. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16106. \*************************************************************************************************/
  16107. /*! no static exports found */
  16108. /***/ (function(module, exports, __webpack_require__) {
  16109. "use strict";
  16110. Object.defineProperty(exports, "__esModule", {
  16111. value: true
  16112. });
  16113. exports.default = void 0;
  16114. /*
  16115. * @Author : LQ
  16116. * @Description :
  16117. * @version : 1.0
  16118. * @Date : 2021-08-20 16:44:21
  16119. * @LastAuthor : LQ
  16120. * @lastTime : 2021-08-20 17:16:39
  16121. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16122. */
  16123. var _default = {
  16124. // noNetwork
  16125. noNetwork: {
  16126. tips: '哎呀,网络信号丢失',
  16127. zIndex: '',
  16128. 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'
  16129. }
  16130. };
  16131. exports.default = _default;
  16132. /***/ }),
  16133. /* 117 */
  16134. /*!*************************************************************************************************!*\
  16135. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16136. \*************************************************************************************************/
  16137. /*! no static exports found */
  16138. /***/ (function(module, exports, __webpack_require__) {
  16139. "use strict";
  16140. Object.defineProperty(exports, "__esModule", {
  16141. value: true
  16142. });
  16143. exports.default = void 0;
  16144. /*
  16145. * @Author : LQ
  16146. * @Description :
  16147. * @version : 1.0
  16148. * @Date : 2021-08-20 16:44:21
  16149. * @LastAuthor : LQ
  16150. * @lastTime : 2021-08-20 17:17:13
  16151. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16152. */
  16153. var _default = {
  16154. // noticeBar
  16155. noticeBar: {
  16156. text: function text() {
  16157. return [];
  16158. },
  16159. direction: 'row',
  16160. step: false,
  16161. icon: 'volume',
  16162. mode: '',
  16163. color: '#f9ae3d',
  16164. bgColor: '#fdf6ec',
  16165. speed: 80,
  16166. fontSize: 14,
  16167. duration: 2000,
  16168. disableTouch: true,
  16169. url: '',
  16170. linkType: 'navigateTo'
  16171. }
  16172. };
  16173. exports.default = _default;
  16174. /***/ }),
  16175. /* 118 */
  16176. /*!**********************************************************************************************!*\
  16177. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/notify.js ***!
  16178. \**********************************************************************************************/
  16179. /*! no static exports found */
  16180. /***/ (function(module, exports, __webpack_require__) {
  16181. "use strict";
  16182. Object.defineProperty(exports, "__esModule", {
  16183. value: true
  16184. });
  16185. exports.default = void 0;
  16186. /*
  16187. * @Author : LQ
  16188. * @Description :
  16189. * @version : 1.0
  16190. * @Date : 2021-08-20 16:44:21
  16191. * @LastAuthor : LQ
  16192. * @lastTime : 2021-08-20 17:10:21
  16193. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16194. */
  16195. var _default = {
  16196. // notify组件
  16197. notify: {
  16198. top: 0,
  16199. type: 'primary',
  16200. color: '#ffffff',
  16201. bgColor: '',
  16202. message: '',
  16203. duration: 3000,
  16204. fontSize: 15,
  16205. safeAreaInsetTop: false
  16206. }
  16207. };
  16208. exports.default = _default;
  16209. /***/ }),
  16210. /* 119 */
  16211. /*!*************************************************************************************************!*\
  16212. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/numberBox.js ***!
  16213. \*************************************************************************************************/
  16214. /*! no static exports found */
  16215. /***/ (function(module, exports, __webpack_require__) {
  16216. "use strict";
  16217. Object.defineProperty(exports, "__esModule", {
  16218. value: true
  16219. });
  16220. exports.default = void 0;
  16221. /*
  16222. * @Author : LQ
  16223. * @Description :
  16224. * @version : 1.0
  16225. * @Date : 2021-08-20 16:44:21
  16226. * @LastAuthor : LQ
  16227. * @lastTime : 2021-08-20 17:11:46
  16228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16229. */
  16230. var _default = {
  16231. // 步进器组件
  16232. numberBox: {
  16233. name: '',
  16234. value: 0,
  16235. min: 1,
  16236. max: Number.MAX_SAFE_INTEGER,
  16237. step: 1,
  16238. integer: false,
  16239. disabled: false,
  16240. disabledInput: false,
  16241. asyncChange: false,
  16242. inputWidth: 35,
  16243. showMinus: true,
  16244. showPlus: true,
  16245. decimalLength: null,
  16246. longPress: true,
  16247. color: '#323233',
  16248. buttonSize: 30,
  16249. bgColor: '#EBECEE',
  16250. cursorSpacing: 100,
  16251. disableMinus: false,
  16252. disablePlus: false,
  16253. iconStyle: ''
  16254. }
  16255. };
  16256. exports.default = _default;
  16257. /***/ }),
  16258. /* 120 */
  16259. /*!******************************************************************************************************!*\
  16260. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16261. \******************************************************************************************************/
  16262. /*! no static exports found */
  16263. /***/ (function(module, exports, __webpack_require__) {
  16264. "use strict";
  16265. Object.defineProperty(exports, "__esModule", {
  16266. value: true
  16267. });
  16268. exports.default = void 0;
  16269. /*
  16270. * @Author : LQ
  16271. * @Description :
  16272. * @version : 1.0
  16273. * @Date : 2021-08-20 16:44:21
  16274. * @LastAuthor : LQ
  16275. * @lastTime : 2021-08-20 17:08:05
  16276. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16277. */
  16278. var _default = {
  16279. // 数字键盘
  16280. numberKeyboard: {
  16281. mode: 'number',
  16282. dotDisabled: false,
  16283. random: false
  16284. }
  16285. };
  16286. exports.default = _default;
  16287. /***/ }),
  16288. /* 121 */
  16289. /*!***********************************************************************************************!*\
  16290. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/overlay.js ***!
  16291. \***********************************************************************************************/
  16292. /*! no static exports found */
  16293. /***/ (function(module, exports, __webpack_require__) {
  16294. "use strict";
  16295. Object.defineProperty(exports, "__esModule", {
  16296. value: true
  16297. });
  16298. exports.default = void 0;
  16299. /*
  16300. * @Author : LQ
  16301. * @Description :
  16302. * @version : 1.0
  16303. * @Date : 2021-08-20 16:44:21
  16304. * @LastAuthor : LQ
  16305. * @lastTime : 2021-08-20 17:06:50
  16306. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16307. */
  16308. var _default = {
  16309. // overlay组件
  16310. overlay: {
  16311. show: false,
  16312. zIndex: 10070,
  16313. duration: 300,
  16314. opacity: 0.5
  16315. }
  16316. };
  16317. exports.default = _default;
  16318. /***/ }),
  16319. /* 122 */
  16320. /*!*********************************************************************************************!*\
  16321. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/parse.js ***!
  16322. \*********************************************************************************************/
  16323. /*! no static exports found */
  16324. /***/ (function(module, exports, __webpack_require__) {
  16325. "use strict";
  16326. Object.defineProperty(exports, "__esModule", {
  16327. value: true
  16328. });
  16329. exports.default = void 0;
  16330. /*
  16331. * @Author : LQ
  16332. * @Description :
  16333. * @version : 1.0
  16334. * @Date : 2021-08-20 16:44:21
  16335. * @LastAuthor : LQ
  16336. * @lastTime : 2021-08-20 17:17:33
  16337. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16338. */
  16339. var _default = {
  16340. // parse
  16341. parse: {
  16342. copyLink: true,
  16343. errorImg: '',
  16344. lazyLoad: false,
  16345. loadingImg: '',
  16346. pauseVideo: true,
  16347. previewImg: true,
  16348. setTitle: true,
  16349. showImgMenu: true
  16350. }
  16351. };
  16352. exports.default = _default;
  16353. /***/ }),
  16354. /* 123 */
  16355. /*!**********************************************************************************************!*\
  16356. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/picker.js ***!
  16357. \**********************************************************************************************/
  16358. /*! no static exports found */
  16359. /***/ (function(module, exports, __webpack_require__) {
  16360. "use strict";
  16361. Object.defineProperty(exports, "__esModule", {
  16362. value: true
  16363. });
  16364. exports.default = void 0;
  16365. /*
  16366. * @Author : LQ
  16367. * @Description :
  16368. * @version : 1.0
  16369. * @Date : 2021-08-20 16:44:21
  16370. * @LastAuthor : LQ
  16371. * @lastTime : 2021-08-20 17:18:20
  16372. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16373. */
  16374. var _default = {
  16375. // picker
  16376. picker: {
  16377. show: false,
  16378. showToolbar: true,
  16379. title: '',
  16380. columns: function columns() {
  16381. return [];
  16382. },
  16383. loading: false,
  16384. itemHeight: 44,
  16385. cancelText: '取消',
  16386. confirmText: '确定',
  16387. cancelColor: '#909193',
  16388. confirmColor: '#3c9cff',
  16389. visibleItemCount: 5,
  16390. keyName: 'text',
  16391. closeOnClickOverlay: false,
  16392. defaultIndex: function defaultIndex() {
  16393. return [];
  16394. },
  16395. immediateChange: false
  16396. }
  16397. };
  16398. exports.default = _default;
  16399. /***/ }),
  16400. /* 124 */
  16401. /*!*********************************************************************************************!*\
  16402. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/popup.js ***!
  16403. \*********************************************************************************************/
  16404. /*! no static exports found */
  16405. /***/ (function(module, exports, __webpack_require__) {
  16406. "use strict";
  16407. Object.defineProperty(exports, "__esModule", {
  16408. value: true
  16409. });
  16410. exports.default = void 0;
  16411. /*
  16412. * @Author : LQ
  16413. * @Description :
  16414. * @version : 1.0
  16415. * @Date : 2021-08-20 16:44:21
  16416. * @LastAuthor : LQ
  16417. * @lastTime : 2021-08-20 17:06:33
  16418. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16419. */
  16420. var _default = {
  16421. // popup组件
  16422. popup: {
  16423. show: false,
  16424. overlay: true,
  16425. mode: 'bottom',
  16426. duration: 300,
  16427. closeable: false,
  16428. overlayStyle: function overlayStyle() {},
  16429. closeOnClickOverlay: true,
  16430. zIndex: 10075,
  16431. safeAreaInsetBottom: true,
  16432. safeAreaInsetTop: false,
  16433. closeIconPos: 'top-right',
  16434. round: 0,
  16435. zoom: true,
  16436. bgColor: '',
  16437. overlayOpacity: 0.5
  16438. }
  16439. };
  16440. exports.default = _default;
  16441. /***/ }),
  16442. /* 125 */
  16443. /*!*********************************************************************************************!*\
  16444. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/radio.js ***!
  16445. \*********************************************************************************************/
  16446. /*! no static exports found */
  16447. /***/ (function(module, exports, __webpack_require__) {
  16448. "use strict";
  16449. Object.defineProperty(exports, "__esModule", {
  16450. value: true
  16451. });
  16452. exports.default = void 0;
  16453. /*
  16454. * @Author : LQ
  16455. * @Description :
  16456. * @version : 1.0
  16457. * @Date : 2021-08-20 16:44:21
  16458. * @LastAuthor : LQ
  16459. * @lastTime : 2021-08-20 17:02:34
  16460. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16461. */
  16462. var _default = {
  16463. // radio组件
  16464. radio: {
  16465. name: '',
  16466. shape: '',
  16467. disabled: '',
  16468. labelDisabled: '',
  16469. activeColor: '',
  16470. inactiveColor: '',
  16471. iconSize: '',
  16472. labelSize: '',
  16473. label: '',
  16474. labelColor: '',
  16475. size: '',
  16476. iconColor: '',
  16477. placement: ''
  16478. }
  16479. };
  16480. exports.default = _default;
  16481. /***/ }),
  16482. /* 126 */
  16483. /*!**************************************************************************************************!*\
  16484. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16485. \**************************************************************************************************/
  16486. /*! no static exports found */
  16487. /***/ (function(module, exports, __webpack_require__) {
  16488. "use strict";
  16489. Object.defineProperty(exports, "__esModule", {
  16490. value: true
  16491. });
  16492. exports.default = void 0;
  16493. /*
  16494. * @Author : LQ
  16495. * @Description :
  16496. * @version : 1.0
  16497. * @Date : 2021-08-20 16:44:21
  16498. * @LastAuthor : LQ
  16499. * @lastTime : 2021-08-20 17:03:12
  16500. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16501. */
  16502. var _default = {
  16503. // radio-group组件
  16504. radioGroup: {
  16505. value: '',
  16506. disabled: false,
  16507. shape: 'circle',
  16508. activeColor: '#2979ff',
  16509. inactiveColor: '#c8c9cc',
  16510. name: '',
  16511. size: 18,
  16512. placement: 'row',
  16513. label: '',
  16514. labelColor: '#303133',
  16515. labelSize: 14,
  16516. labelDisabled: false,
  16517. iconColor: '#ffffff',
  16518. iconSize: 12,
  16519. borderBottom: false,
  16520. iconPlacement: 'left'
  16521. }
  16522. };
  16523. exports.default = _default;
  16524. /***/ }),
  16525. /* 127 */
  16526. /*!********************************************************************************************!*\
  16527. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/rate.js ***!
  16528. \********************************************************************************************/
  16529. /*! no static exports found */
  16530. /***/ (function(module, exports, __webpack_require__) {
  16531. "use strict";
  16532. Object.defineProperty(exports, "__esModule", {
  16533. value: true
  16534. });
  16535. exports.default = void 0;
  16536. /*
  16537. * @Author : LQ
  16538. * @Description :
  16539. * @version : 1.0
  16540. * @Date : 2021-08-20 16:44:21
  16541. * @LastAuthor : LQ
  16542. * @lastTime : 2021-08-20 17:05:09
  16543. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16544. */
  16545. var _default = {
  16546. // rate组件
  16547. rate: {
  16548. value: 1,
  16549. count: 5,
  16550. disabled: false,
  16551. size: 18,
  16552. inactiveColor: '#b2b2b2',
  16553. activeColor: '#FA3534',
  16554. gutter: 4,
  16555. minCount: 1,
  16556. allowHalf: false,
  16557. activeIcon: 'star-fill',
  16558. inactiveIcon: 'star',
  16559. touchable: true
  16560. }
  16561. };
  16562. exports.default = _default;
  16563. /***/ }),
  16564. /* 128 */
  16565. /*!************************************************************************************************!*\
  16566. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/readMore.js ***!
  16567. \************************************************************************************************/
  16568. /*! no static exports found */
  16569. /***/ (function(module, exports, __webpack_require__) {
  16570. "use strict";
  16571. Object.defineProperty(exports, "__esModule", {
  16572. value: true
  16573. });
  16574. exports.default = void 0;
  16575. /*
  16576. * @Author : LQ
  16577. * @Description :
  16578. * @version : 1.0
  16579. * @Date : 2021-08-20 16:44:21
  16580. * @LastAuthor : LQ
  16581. * @lastTime : 2021-08-20 17:18:41
  16582. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16583. */
  16584. var _default = {
  16585. // readMore
  16586. readMore: {
  16587. showHeight: 400,
  16588. toggle: false,
  16589. closeText: '展开阅读全文',
  16590. openText: '收起',
  16591. color: '#2979ff',
  16592. fontSize: 14,
  16593. textIndent: '2em',
  16594. name: ''
  16595. }
  16596. };
  16597. exports.default = _default;
  16598. /***/ }),
  16599. /* 129 */
  16600. /*!*******************************************************************************************!*\
  16601. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/row.js ***!
  16602. \*******************************************************************************************/
  16603. /*! no static exports found */
  16604. /***/ (function(module, exports, __webpack_require__) {
  16605. "use strict";
  16606. Object.defineProperty(exports, "__esModule", {
  16607. value: true
  16608. });
  16609. exports.default = void 0;
  16610. /*
  16611. * @Author : LQ
  16612. * @Description :
  16613. * @version : 1.0
  16614. * @Date : 2021-08-20 16:44:21
  16615. * @LastAuthor : LQ
  16616. * @lastTime : 2021-08-20 17:18:58
  16617. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16618. */
  16619. var _default = {
  16620. // row
  16621. row: {
  16622. gutter: 0,
  16623. justify: 'start',
  16624. align: 'center'
  16625. }
  16626. };
  16627. exports.default = _default;
  16628. /***/ }),
  16629. /* 130 */
  16630. /*!*************************************************************************************************!*\
  16631. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16632. \*************************************************************************************************/
  16633. /*! no static exports found */
  16634. /***/ (function(module, exports, __webpack_require__) {
  16635. "use strict";
  16636. Object.defineProperty(exports, "__esModule", {
  16637. value: true
  16638. });
  16639. exports.default = void 0;
  16640. /*
  16641. * @Author : LQ
  16642. * @Description :
  16643. * @version : 1.0
  16644. * @Date : 2021-08-20 16:44:21
  16645. * @LastAuthor : LQ
  16646. * @lastTime : 2021-08-20 17:19:13
  16647. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16648. */
  16649. var _default = {
  16650. // rowNotice
  16651. rowNotice: {
  16652. text: '',
  16653. icon: 'volume',
  16654. mode: '',
  16655. color: '#f9ae3d',
  16656. bgColor: '#fdf6ec',
  16657. fontSize: 14,
  16658. speed: 80
  16659. }
  16660. };
  16661. exports.default = _default;
  16662. /***/ }),
  16663. /* 131 */
  16664. /*!**************************************************************************************************!*\
  16665. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/scrollList.js ***!
  16666. \**************************************************************************************************/
  16667. /*! no static exports found */
  16668. /***/ (function(module, exports, __webpack_require__) {
  16669. "use strict";
  16670. Object.defineProperty(exports, "__esModule", {
  16671. value: true
  16672. });
  16673. exports.default = void 0;
  16674. /*
  16675. * @Author : LQ
  16676. * @Description :
  16677. * @version : 1.0
  16678. * @Date : 2021-08-20 16:44:21
  16679. * @LastAuthor : LQ
  16680. * @lastTime : 2021-08-20 17:19:28
  16681. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16682. */
  16683. var _default = {
  16684. // scrollList
  16685. scrollList: {
  16686. indicatorWidth: 50,
  16687. indicatorBarWidth: 20,
  16688. indicator: true,
  16689. indicatorColor: '#f2f2f2',
  16690. indicatorActiveColor: '#3c9cff',
  16691. indicatorStyle: ''
  16692. }
  16693. };
  16694. exports.default = _default;
  16695. /***/ }),
  16696. /* 132 */
  16697. /*!**********************************************************************************************!*\
  16698. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/search.js ***!
  16699. \**********************************************************************************************/
  16700. /*! no static exports found */
  16701. /***/ (function(module, exports, __webpack_require__) {
  16702. "use strict";
  16703. Object.defineProperty(exports, "__esModule", {
  16704. value: true
  16705. });
  16706. exports.default = void 0;
  16707. /*
  16708. * @Author : LQ
  16709. * @Description :
  16710. * @version : 1.0
  16711. * @Date : 2021-08-20 16:44:21
  16712. * @LastAuthor : LQ
  16713. * @lastTime : 2021-08-20 17:19:45
  16714. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16715. */
  16716. var _default = {
  16717. // search
  16718. search: {
  16719. shape: 'round',
  16720. bgColor: '#f2f2f2',
  16721. placeholder: '请输入关键字',
  16722. clearabled: true,
  16723. focus: false,
  16724. showAction: true,
  16725. actionStyle: function actionStyle() {
  16726. return {};
  16727. },
  16728. actionText: '搜索',
  16729. inputAlign: 'left',
  16730. inputStyle: function inputStyle() {
  16731. return {};
  16732. },
  16733. disabled: false,
  16734. borderColor: 'transparent',
  16735. searchIconColor: '#909399',
  16736. searchIconSize: 22,
  16737. color: '#606266',
  16738. placeholderColor: '#909399',
  16739. searchIcon: 'search',
  16740. margin: '0',
  16741. animation: false,
  16742. value: '',
  16743. maxlength: '-1',
  16744. height: 32,
  16745. label: null
  16746. }
  16747. };
  16748. exports.default = _default;
  16749. /***/ }),
  16750. /* 133 */
  16751. /*!***********************************************************************************************!*\
  16752. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/section.js ***!
  16753. \***********************************************************************************************/
  16754. /*! no static exports found */
  16755. /***/ (function(module, exports, __webpack_require__) {
  16756. "use strict";
  16757. Object.defineProperty(exports, "__esModule", {
  16758. value: true
  16759. });
  16760. exports.default = void 0;
  16761. /*
  16762. * @Author : LQ
  16763. * @Description :
  16764. * @version : 1.0
  16765. * @Date : 2021-08-20 16:44:21
  16766. * @LastAuthor : LQ
  16767. * @lastTime : 2021-08-20 17:07:33
  16768. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16769. */
  16770. var _default = {
  16771. // u-section组件
  16772. section: {
  16773. title: '',
  16774. subTitle: '更多',
  16775. right: true,
  16776. fontSize: 15,
  16777. bold: true,
  16778. color: '#303133',
  16779. subColor: '#909399',
  16780. showLine: true,
  16781. lineColor: '',
  16782. arrow: true
  16783. }
  16784. };
  16785. exports.default = _default;
  16786. /***/ }),
  16787. /* 134 */
  16788. /*!************************************************************************************************!*\
  16789. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/skeleton.js ***!
  16790. \************************************************************************************************/
  16791. /*! no static exports found */
  16792. /***/ (function(module, exports, __webpack_require__) {
  16793. "use strict";
  16794. Object.defineProperty(exports, "__esModule", {
  16795. value: true
  16796. });
  16797. exports.default = void 0;
  16798. /*
  16799. * @Author : LQ
  16800. * @Description :
  16801. * @version : 1.0
  16802. * @Date : 2021-08-20 16:44:21
  16803. * @LastAuthor : LQ
  16804. * @lastTime : 2021-08-20 17:20:14
  16805. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16806. */
  16807. var _default = {
  16808. // skeleton
  16809. skeleton: {
  16810. loading: true,
  16811. animate: true,
  16812. rows: 0,
  16813. rowsWidth: '100%',
  16814. rowsHeight: 18,
  16815. title: true,
  16816. titleWidth: '50%',
  16817. titleHeight: 18,
  16818. avatar: false,
  16819. avatarSize: 32,
  16820. avatarShape: 'circle'
  16821. }
  16822. };
  16823. exports.default = _default;
  16824. /***/ }),
  16825. /* 135 */
  16826. /*!**********************************************************************************************!*\
  16827. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/slider.js ***!
  16828. \**********************************************************************************************/
  16829. /*! no static exports found */
  16830. /***/ (function(module, exports, __webpack_require__) {
  16831. "use strict";
  16832. Object.defineProperty(exports, "__esModule", {
  16833. value: true
  16834. });
  16835. exports.default = void 0;
  16836. /*
  16837. * @Author : LQ
  16838. * @Description :
  16839. * @version : 1.0
  16840. * @Date : 2021-08-20 16:44:21
  16841. * @LastAuthor : LQ
  16842. * @lastTime : 2021-08-20 17:08:25
  16843. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16844. */
  16845. var _default = {
  16846. // slider组件
  16847. slider: {
  16848. value: 0,
  16849. blockSize: 18,
  16850. min: 0,
  16851. max: 100,
  16852. step: 1,
  16853. activeColor: '#2979ff',
  16854. inactiveColor: '#c0c4cc',
  16855. blockColor: '#ffffff',
  16856. showValue: false,
  16857. disabled: false,
  16858. blockStyle: function blockStyle() {}
  16859. }
  16860. };
  16861. exports.default = _default;
  16862. /***/ }),
  16863. /* 136 */
  16864. /*!*************************************************************************************************!*\
  16865. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/statusBar.js ***!
  16866. \*************************************************************************************************/
  16867. /*! no static exports found */
  16868. /***/ (function(module, exports, __webpack_require__) {
  16869. "use strict";
  16870. Object.defineProperty(exports, "__esModule", {
  16871. value: true
  16872. });
  16873. exports.default = void 0;
  16874. /*
  16875. * @Author : LQ
  16876. * @Description :
  16877. * @version : 1.0
  16878. * @Date : 2021-08-20 16:44:21
  16879. * @LastAuthor : LQ
  16880. * @lastTime : 2021-08-20 17:20:39
  16881. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16882. */
  16883. var _default = {
  16884. // statusBar
  16885. statusBar: {
  16886. bgColor: 'transparent'
  16887. }
  16888. };
  16889. exports.default = _default;
  16890. /***/ }),
  16891. /* 137 */
  16892. /*!*********************************************************************************************!*\
  16893. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/steps.js ***!
  16894. \*********************************************************************************************/
  16895. /*! no static exports found */
  16896. /***/ (function(module, exports, __webpack_require__) {
  16897. "use strict";
  16898. Object.defineProperty(exports, "__esModule", {
  16899. value: true
  16900. });
  16901. exports.default = void 0;
  16902. /*
  16903. * @Author : LQ
  16904. * @Description :
  16905. * @version : 1.0
  16906. * @Date : 2021-08-20 16:44:21
  16907. * @LastAuthor : LQ
  16908. * @lastTime : 2021-08-20 17:12:37
  16909. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16910. */
  16911. var _default = {
  16912. // steps组件
  16913. steps: {
  16914. direction: 'row',
  16915. current: 0,
  16916. activeColor: '#3c9cff',
  16917. inactiveColor: '#969799',
  16918. activeIcon: '',
  16919. inactiveIcon: '',
  16920. dot: false
  16921. }
  16922. };
  16923. exports.default = _default;
  16924. /***/ }),
  16925. /* 138 */
  16926. /*!*************************************************************************************************!*\
  16927. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16928. \*************************************************************************************************/
  16929. /*! no static exports found */
  16930. /***/ (function(module, exports, __webpack_require__) {
  16931. "use strict";
  16932. Object.defineProperty(exports, "__esModule", {
  16933. value: true
  16934. });
  16935. exports.default = void 0;
  16936. /*
  16937. * @Author : LQ
  16938. * @Description :
  16939. * @version : 1.0
  16940. * @Date : 2021-08-20 16:44:21
  16941. * @LastAuthor : LQ
  16942. * @lastTime : 2021-08-20 17:12:55
  16943. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16944. */
  16945. var _default = {
  16946. // steps-item组件
  16947. stepsItem: {
  16948. title: '',
  16949. desc: '',
  16950. iconSize: 17,
  16951. error: false
  16952. }
  16953. };
  16954. exports.default = _default;
  16955. /***/ }),
  16956. /* 139 */
  16957. /*!**********************************************************************************************!*\
  16958. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/sticky.js ***!
  16959. \**********************************************************************************************/
  16960. /*! no static exports found */
  16961. /***/ (function(module, exports, __webpack_require__) {
  16962. "use strict";
  16963. Object.defineProperty(exports, "__esModule", {
  16964. value: true
  16965. });
  16966. exports.default = void 0;
  16967. /*
  16968. * @Author : LQ
  16969. * @Description :
  16970. * @version : 1.0
  16971. * @Date : 2021-08-20 16:44:21
  16972. * @LastAuthor : LQ
  16973. * @lastTime : 2021-08-20 17:01:30
  16974. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16975. */
  16976. var _default = {
  16977. // sticky组件
  16978. sticky: {
  16979. offsetTop: 0,
  16980. customNavHeight: 0,
  16981. disabled: false,
  16982. bgColor: 'transparent',
  16983. zIndex: '',
  16984. index: ''
  16985. }
  16986. };
  16987. exports.default = _default;
  16988. /***/ }),
  16989. /* 140 */
  16990. /*!**************************************************************************************************!*\
  16991. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/subsection.js ***!
  16992. \**************************************************************************************************/
  16993. /*! no static exports found */
  16994. /***/ (function(module, exports, __webpack_require__) {
  16995. "use strict";
  16996. Object.defineProperty(exports, "__esModule", {
  16997. value: true
  16998. });
  16999. exports.default = void 0;
  17000. /*
  17001. * @Author : LQ
  17002. * @Description :
  17003. * @version : 1.0
  17004. * @Date : 2021-08-20 16:44:21
  17005. * @LastAuthor : LQ
  17006. * @lastTime : 2021-08-20 17:12:20
  17007. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17008. */
  17009. var _default = {
  17010. // subsection组件
  17011. subsection: {
  17012. list: [],
  17013. current: 0,
  17014. activeColor: '#3c9cff',
  17015. inactiveColor: '#303133',
  17016. mode: 'button',
  17017. fontSize: 12,
  17018. bold: true,
  17019. bgColor: '#eeeeef',
  17020. keyName: 'name'
  17021. }
  17022. };
  17023. exports.default = _default;
  17024. /***/ }),
  17025. /* 141 */
  17026. /*!***************************************************************************************************!*\
  17027. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17028. \***************************************************************************************************/
  17029. /*! no static exports found */
  17030. /***/ (function(module, exports, __webpack_require__) {
  17031. "use strict";
  17032. Object.defineProperty(exports, "__esModule", {
  17033. value: true
  17034. });
  17035. exports.default = void 0;
  17036. /*
  17037. * @Author : LQ
  17038. * @Description :
  17039. * @version : 1.0
  17040. * @Date : 2021-08-20 16:44:21
  17041. * @LastAuthor : LQ
  17042. * @lastTime : 2021-08-20 17:00:42
  17043. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17044. */
  17045. var _default = {
  17046. // swipe-action组件
  17047. swipeAction: {
  17048. autoClose: true
  17049. }
  17050. };
  17051. exports.default = _default;
  17052. /***/ }),
  17053. /* 142 */
  17054. /*!*******************************************************************************************************!*\
  17055. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17056. \*******************************************************************************************************/
  17057. /*! no static exports found */
  17058. /***/ (function(module, exports, __webpack_require__) {
  17059. "use strict";
  17060. Object.defineProperty(exports, "__esModule", {
  17061. value: true
  17062. });
  17063. exports.default = void 0;
  17064. /*
  17065. * @Author : LQ
  17066. * @Description :
  17067. * @version : 1.0
  17068. * @Date : 2021-08-20 16:44:21
  17069. * @LastAuthor : LQ
  17070. * @lastTime : 2021-08-20 17:01:13
  17071. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17072. */
  17073. var _default = {
  17074. // swipeActionItem 组件
  17075. swipeActionItem: {
  17076. show: false,
  17077. name: '',
  17078. disabled: false,
  17079. threshold: 20,
  17080. autoClose: true,
  17081. options: [],
  17082. duration: 300
  17083. }
  17084. };
  17085. exports.default = _default;
  17086. /***/ }),
  17087. /* 143 */
  17088. /*!**********************************************************************************************!*\
  17089. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/swiper.js ***!
  17090. \**********************************************************************************************/
  17091. /*! no static exports found */
  17092. /***/ (function(module, exports, __webpack_require__) {
  17093. "use strict";
  17094. Object.defineProperty(exports, "__esModule", {
  17095. value: true
  17096. });
  17097. exports.default = void 0;
  17098. /*
  17099. * @Author : LQ
  17100. * @Description :
  17101. * @version : 1.0
  17102. * @Date : 2021-08-20 16:44:21
  17103. * @LastAuthor : LQ
  17104. * @lastTime : 2021-08-20 17:21:38
  17105. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17106. */
  17107. var _default = {
  17108. // swiper 组件
  17109. swiper: {
  17110. list: function list() {
  17111. return [];
  17112. },
  17113. indicator: false,
  17114. indicatorActiveColor: '#FFFFFF',
  17115. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17116. indicatorStyle: '',
  17117. indicatorMode: 'line',
  17118. autoplay: true,
  17119. current: 0,
  17120. currentItemId: '',
  17121. interval: 3000,
  17122. duration: 300,
  17123. circular: false,
  17124. previousMargin: 0,
  17125. nextMargin: 0,
  17126. acceleration: false,
  17127. displayMultipleItems: 1,
  17128. easingFunction: 'default',
  17129. keyName: 'url',
  17130. imgMode: 'aspectFill',
  17131. height: 130,
  17132. bgColor: '#f3f4f6',
  17133. radius: 4,
  17134. loading: false,
  17135. showTitle: false
  17136. }
  17137. };
  17138. exports.default = _default;
  17139. /***/ }),
  17140. /* 144 */
  17141. /*!********************************************************************************************************!*\
  17142. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/swipterIndicator.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:22:07
  17158. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17159. */
  17160. var _default = {
  17161. // swiperIndicator 组件
  17162. swiperIndicator: {
  17163. length: 0,
  17164. current: 0,
  17165. indicatorActiveColor: '',
  17166. indicatorInactiveColor: '',
  17167. indicatorMode: 'line'
  17168. }
  17169. };
  17170. exports.default = _default;
  17171. /***/ }),
  17172. /* 145 */
  17173. /*!**********************************************************************************************!*\
  17174. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/switch.js ***!
  17175. \**********************************************************************************************/
  17176. /*! no static exports found */
  17177. /***/ (function(module, exports, __webpack_require__) {
  17178. "use strict";
  17179. Object.defineProperty(exports, "__esModule", {
  17180. value: true
  17181. });
  17182. exports.default = void 0;
  17183. /*
  17184. * @Author : LQ
  17185. * @Description :
  17186. * @version : 1.0
  17187. * @Date : 2021-08-20 16:44:21
  17188. * @LastAuthor : LQ
  17189. * @lastTime : 2021-08-20 17:22:24
  17190. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17191. */
  17192. var _default = {
  17193. // switch
  17194. switch: {
  17195. loading: false,
  17196. disabled: false,
  17197. size: 25,
  17198. activeColor: '#2979ff',
  17199. inactiveColor: '#ffffff',
  17200. value: false,
  17201. activeValue: true,
  17202. inactiveValue: false,
  17203. asyncChange: false,
  17204. space: 0
  17205. }
  17206. };
  17207. exports.default = _default;
  17208. /***/ }),
  17209. /* 146 */
  17210. /*!**********************************************************************************************!*\
  17211. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/tabbar.js ***!
  17212. \**********************************************************************************************/
  17213. /*! no static exports found */
  17214. /***/ (function(module, exports, __webpack_require__) {
  17215. "use strict";
  17216. Object.defineProperty(exports, "__esModule", {
  17217. value: true
  17218. });
  17219. exports.default = void 0;
  17220. /*
  17221. * @Author : LQ
  17222. * @Description :
  17223. * @version : 1.0
  17224. * @Date : 2021-08-20 16:44:21
  17225. * @LastAuthor : LQ
  17226. * @lastTime : 2021-08-20 17:22:40
  17227. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17228. */
  17229. var _default = {
  17230. // tabbar
  17231. tabbar: {
  17232. value: null,
  17233. safeAreaInsetBottom: true,
  17234. border: true,
  17235. zIndex: 1,
  17236. activeColor: '#1989fa',
  17237. inactiveColor: '#7d7e80',
  17238. fixed: true,
  17239. placeholder: true
  17240. }
  17241. };
  17242. exports.default = _default;
  17243. /***/ }),
  17244. /* 147 */
  17245. /*!**************************************************************************************************!*\
  17246. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17247. \**************************************************************************************************/
  17248. /*! no static exports found */
  17249. /***/ (function(module, exports, __webpack_require__) {
  17250. "use strict";
  17251. Object.defineProperty(exports, "__esModule", {
  17252. value: true
  17253. });
  17254. exports.default = void 0;
  17255. /*
  17256. * @Author : LQ
  17257. * @Description :
  17258. * @version : 1.0
  17259. * @Date : 2021-08-20 16:44:21
  17260. * @LastAuthor : LQ
  17261. * @lastTime : 2021-08-20 17:22:55
  17262. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17263. */
  17264. var _default = {
  17265. //
  17266. tabbarItem: {
  17267. name: null,
  17268. icon: '',
  17269. badge: null,
  17270. dot: false,
  17271. text: '',
  17272. badgeStyle: 'top: 6px;right:2px;'
  17273. }
  17274. };
  17275. exports.default = _default;
  17276. /***/ }),
  17277. /* 148 */
  17278. /*!********************************************************************************************!*\
  17279. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/tabs.js ***!
  17280. \********************************************************************************************/
  17281. /*! no static exports found */
  17282. /***/ (function(module, exports, __webpack_require__) {
  17283. "use strict";
  17284. Object.defineProperty(exports, "__esModule", {
  17285. value: true
  17286. });
  17287. exports.default = void 0;
  17288. /*
  17289. * @Author : LQ
  17290. * @Description :
  17291. * @version : 1.0
  17292. * @Date : 2021-08-20 16:44:21
  17293. * @LastAuthor : LQ
  17294. * @lastTime : 2021-08-20 17:23:14
  17295. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17296. */
  17297. var _default = {
  17298. //
  17299. tabs: {
  17300. duration: 300,
  17301. list: function list() {
  17302. return [];
  17303. },
  17304. lineColor: '#3c9cff',
  17305. activeStyle: function activeStyle() {
  17306. return {
  17307. color: '#303133'
  17308. };
  17309. },
  17310. inactiveStyle: function inactiveStyle() {
  17311. return {
  17312. color: '#606266'
  17313. };
  17314. },
  17315. lineWidth: 20,
  17316. lineHeight: 3,
  17317. lineBgSize: 'cover',
  17318. itemStyle: function itemStyle() {
  17319. return {
  17320. height: '44px'
  17321. };
  17322. },
  17323. scrollable: true,
  17324. current: 0,
  17325. keyName: 'name'
  17326. }
  17327. };
  17328. exports.default = _default;
  17329. /***/ }),
  17330. /* 149 */
  17331. /*!*******************************************************************************************!*\
  17332. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/tag.js ***!
  17333. \*******************************************************************************************/
  17334. /*! no static exports found */
  17335. /***/ (function(module, exports, __webpack_require__) {
  17336. "use strict";
  17337. Object.defineProperty(exports, "__esModule", {
  17338. value: true
  17339. });
  17340. exports.default = void 0;
  17341. /*
  17342. * @Author : LQ
  17343. * @Description :
  17344. * @version : 1.0
  17345. * @Date : 2021-08-20 16:44:21
  17346. * @LastAuthor : LQ
  17347. * @lastTime : 2021-08-20 17:23:37
  17348. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17349. */
  17350. var _default = {
  17351. // tag 组件
  17352. tag: {
  17353. type: 'primary',
  17354. disabled: false,
  17355. size: 'medium',
  17356. shape: 'square',
  17357. text: '',
  17358. bgColor: '',
  17359. color: '',
  17360. borderColor: '',
  17361. closeColor: '#C6C7CB',
  17362. name: '',
  17363. plainFill: false,
  17364. plain: false,
  17365. closable: false,
  17366. show: true,
  17367. icon: ''
  17368. }
  17369. };
  17370. exports.default = _default;
  17371. /***/ }),
  17372. /* 150 */
  17373. /*!********************************************************************************************!*\
  17374. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/text.js ***!
  17375. \********************************************************************************************/
  17376. /*! no static exports found */
  17377. /***/ (function(module, exports, __webpack_require__) {
  17378. "use strict";
  17379. Object.defineProperty(exports, "__esModule", {
  17380. value: true
  17381. });
  17382. exports.default = void 0;
  17383. /*
  17384. * @Author : LQ
  17385. * @Description :
  17386. * @version : 1.0
  17387. * @Date : 2021-08-20 16:44:21
  17388. * @LastAuthor : LQ
  17389. * @lastTime : 2021-08-20 17:23:58
  17390. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17391. */
  17392. var _default = {
  17393. // text 组件
  17394. text: {
  17395. type: '',
  17396. show: true,
  17397. text: '',
  17398. prefixIcon: '',
  17399. suffixIcon: '',
  17400. mode: '',
  17401. href: '',
  17402. format: '',
  17403. call: false,
  17404. openType: '',
  17405. bold: false,
  17406. block: false,
  17407. lines: '',
  17408. color: '#303133',
  17409. size: 15,
  17410. iconStyle: function iconStyle() {
  17411. return {
  17412. fontSize: '15px'
  17413. };
  17414. },
  17415. decoration: 'none',
  17416. margin: 0,
  17417. lineHeight: '',
  17418. align: 'left',
  17419. wordWrap: 'normal'
  17420. }
  17421. };
  17422. exports.default = _default;
  17423. /***/ }),
  17424. /* 151 */
  17425. /*!************************************************************************************************!*\
  17426. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/textarea.js ***!
  17427. \************************************************************************************************/
  17428. /*! no static exports found */
  17429. /***/ (function(module, exports, __webpack_require__) {
  17430. "use strict";
  17431. Object.defineProperty(exports, "__esModule", {
  17432. value: true
  17433. });
  17434. exports.default = void 0;
  17435. /*
  17436. * @Author : LQ
  17437. * @Description :
  17438. * @version : 1.0
  17439. * @Date : 2021-08-20 16:44:21
  17440. * @LastAuthor : LQ
  17441. * @lastTime : 2021-08-20 17:24:32
  17442. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17443. */
  17444. var _default = {
  17445. // textarea 组件
  17446. textarea: {
  17447. value: '',
  17448. placeholder: '',
  17449. placeholderClass: 'textarea-placeholder',
  17450. placeholderStyle: 'color: #c0c4cc',
  17451. height: 70,
  17452. confirmType: 'done',
  17453. disabled: false,
  17454. count: false,
  17455. focus: false,
  17456. autoHeight: false,
  17457. fixed: false,
  17458. cursorSpacing: 0,
  17459. cursor: '',
  17460. showConfirmBar: true,
  17461. selectionStart: -1,
  17462. selectionEnd: -1,
  17463. adjustPosition: true,
  17464. disableDefaultPadding: false,
  17465. holdKeyboard: false,
  17466. maxlength: 140,
  17467. border: 'surround',
  17468. formatter: null
  17469. }
  17470. };
  17471. exports.default = _default;
  17472. /***/ }),
  17473. /* 152 */
  17474. /*!*********************************************************************************************!*\
  17475. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/toast.js ***!
  17476. \*********************************************************************************************/
  17477. /*! no static exports found */
  17478. /***/ (function(module, exports, __webpack_require__) {
  17479. "use strict";
  17480. Object.defineProperty(exports, "__esModule", {
  17481. value: true
  17482. });
  17483. exports.default = void 0;
  17484. /*
  17485. * @Author : LQ
  17486. * @Description :
  17487. * @version : 1.0
  17488. * @Date : 2021-08-20 16:44:21
  17489. * @LastAuthor : LQ
  17490. * @lastTime : 2021-08-20 17:07:07
  17491. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17492. */
  17493. var _default = {
  17494. // toast组件
  17495. toast: {
  17496. zIndex: 10090,
  17497. loading: false,
  17498. text: '',
  17499. icon: '',
  17500. type: '',
  17501. loadingMode: '',
  17502. show: '',
  17503. overlay: false,
  17504. position: 'center',
  17505. params: function params() {},
  17506. duration: 2000,
  17507. isTab: false,
  17508. url: '',
  17509. callback: null,
  17510. back: false
  17511. }
  17512. };
  17513. exports.default = _default;
  17514. /***/ }),
  17515. /* 153 */
  17516. /*!***********************************************************************************************!*\
  17517. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/toolbar.js ***!
  17518. \***********************************************************************************************/
  17519. /*! no static exports found */
  17520. /***/ (function(module, exports, __webpack_require__) {
  17521. "use strict";
  17522. Object.defineProperty(exports, "__esModule", {
  17523. value: true
  17524. });
  17525. exports.default = void 0;
  17526. /*
  17527. * @Author : LQ
  17528. * @Description :
  17529. * @version : 1.0
  17530. * @Date : 2021-08-20 16:44:21
  17531. * @LastAuthor : LQ
  17532. * @lastTime : 2021-08-20 17:24:55
  17533. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17534. */
  17535. var _default = {
  17536. // toolbar 组件
  17537. toolbar: {
  17538. show: true,
  17539. cancelText: '取消',
  17540. confirmText: '确认',
  17541. cancelColor: '#909193',
  17542. confirmColor: '#3c9cff',
  17543. title: ''
  17544. }
  17545. };
  17546. exports.default = _default;
  17547. /***/ }),
  17548. /* 154 */
  17549. /*!***********************************************************************************************!*\
  17550. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/tooltip.js ***!
  17551. \***********************************************************************************************/
  17552. /*! no static exports found */
  17553. /***/ (function(module, exports, __webpack_require__) {
  17554. "use strict";
  17555. Object.defineProperty(exports, "__esModule", {
  17556. value: true
  17557. });
  17558. exports.default = void 0;
  17559. /*
  17560. * @Author : LQ
  17561. * @Description :
  17562. * @version : 1.0
  17563. * @Date : 2021-08-20 16:44:21
  17564. * @LastAuthor : LQ
  17565. * @lastTime : 2021-08-20 17:25:14
  17566. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17567. */
  17568. var _default = {
  17569. // tooltip 组件
  17570. tooltip: {
  17571. text: '',
  17572. copyText: '',
  17573. size: 14,
  17574. color: '#606266',
  17575. bgColor: 'transparent',
  17576. direction: 'top',
  17577. zIndex: 10071,
  17578. showCopy: true,
  17579. buttons: function buttons() {
  17580. return [];
  17581. },
  17582. overlay: true,
  17583. showToast: true
  17584. }
  17585. };
  17586. exports.default = _default;
  17587. /***/ }),
  17588. /* 155 */
  17589. /*!**************************************************************************************************!*\
  17590. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/transition.js ***!
  17591. \**************************************************************************************************/
  17592. /*! no static exports found */
  17593. /***/ (function(module, exports, __webpack_require__) {
  17594. "use strict";
  17595. Object.defineProperty(exports, "__esModule", {
  17596. value: true
  17597. });
  17598. exports.default = void 0;
  17599. /*
  17600. * @Author : LQ
  17601. * @Description :
  17602. * @version : 1.0
  17603. * @Date : 2021-08-20 16:44:21
  17604. * @LastAuthor : LQ
  17605. * @lastTime : 2021-08-20 16:59:00
  17606. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17607. */
  17608. var _default = {
  17609. // transition动画组件的props
  17610. transition: {
  17611. show: false,
  17612. mode: 'fade',
  17613. duration: '300',
  17614. timingFunction: 'ease-out'
  17615. }
  17616. };
  17617. exports.default = _default;
  17618. /***/ }),
  17619. /* 156 */
  17620. /*!**********************************************************************************************!*\
  17621. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/props/upload.js ***!
  17622. \**********************************************************************************************/
  17623. /*! no static exports found */
  17624. /***/ (function(module, exports, __webpack_require__) {
  17625. "use strict";
  17626. Object.defineProperty(exports, "__esModule", {
  17627. value: true
  17628. });
  17629. exports.default = void 0;
  17630. /*
  17631. * @Author : LQ
  17632. * @Description :
  17633. * @version : 1.0
  17634. * @Date : 2021-08-20 16:44:21
  17635. * @LastAuthor : LQ
  17636. * @lastTime : 2021-08-20 17:09:50
  17637. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17638. */
  17639. var _default = {
  17640. // upload组件
  17641. upload: {
  17642. accept: 'image',
  17643. capture: function capture() {
  17644. return ['album', 'camera'];
  17645. },
  17646. compressed: true,
  17647. camera: 'back',
  17648. maxDuration: 60,
  17649. uploadIcon: 'camera-fill',
  17650. uploadIconColor: '#D3D4D6',
  17651. useBeforeRead: false,
  17652. previewFullImage: true,
  17653. maxCount: 52,
  17654. disabled: false,
  17655. imageMode: 'aspectFill',
  17656. name: '',
  17657. sizeType: function sizeType() {
  17658. return ['original', 'compressed'];
  17659. },
  17660. multiple: false,
  17661. deletable: true,
  17662. maxSize: Number.MAX_VALUE,
  17663. fileList: function fileList() {
  17664. return [];
  17665. },
  17666. uploadText: '',
  17667. width: 80,
  17668. height: 80,
  17669. previewImage: true
  17670. }
  17671. };
  17672. exports.default = _default;
  17673. /***/ }),
  17674. /* 157 */
  17675. /*!****************************************************************************************!*\
  17676. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/config/zIndex.js ***!
  17677. \****************************************************************************************/
  17678. /*! no static exports found */
  17679. /***/ (function(module, exports, __webpack_require__) {
  17680. "use strict";
  17681. Object.defineProperty(exports, "__esModule", {
  17682. value: true
  17683. });
  17684. exports.default = void 0;
  17685. // uniapp在H5中各API的z-index值如下:
  17686. /**
  17687. * actionsheet: 999
  17688. * modal: 999
  17689. * navigate: 998
  17690. * tabbar: 998
  17691. * toast: 999
  17692. */
  17693. var _default = {
  17694. toast: 10090,
  17695. noNetwork: 10080,
  17696. // popup包含popup,actionsheet,keyboard,picker的值
  17697. popup: 10075,
  17698. mask: 10070,
  17699. navbar: 980,
  17700. topTips: 975,
  17701. sticky: 970,
  17702. indexListSticky: 965
  17703. };
  17704. exports.default = _default;
  17705. /***/ }),
  17706. /* 158 */
  17707. /*!********************************************************************************************!*\
  17708. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/libs/function/platform.js ***!
  17709. \********************************************************************************************/
  17710. /*! no static exports found */
  17711. /***/ (function(module, exports, __webpack_require__) {
  17712. "use strict";
  17713. Object.defineProperty(exports, "__esModule", {
  17714. value: true
  17715. });
  17716. exports.default = void 0;
  17717. /**
  17718. * 注意:
  17719. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17720. * module.exports = {
  17721. * transpileDependencies: ['uview-v2']
  17722. * }
  17723. */
  17724. var platform = 'none';
  17725. platform = 'vue2';
  17726. platform = 'weixin';
  17727. platform = 'mp';
  17728. var _default = platform;
  17729. exports.default = _default;
  17730. /***/ }),
  17731. /* 159 */
  17732. /*!*********************************************************************!*\
  17733. !*** D:/baozhida/baozhida-monitoring-host/uni.promisify.adaptor.js ***!
  17734. \*********************************************************************/
  17735. /*! no static exports found */
  17736. /***/ (function(module, exports, __webpack_require__) {
  17737. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17738. uni.addInterceptor({
  17739. returnValue: function returnValue(res) {
  17740. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  17741. return res;
  17742. }
  17743. return new Promise(function (resolve, reject) {
  17744. res.then(function (res) {
  17745. return res[0] ? reject(res[0]) : resolve(res[1]);
  17746. });
  17747. });
  17748. }
  17749. });
  17750. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17751. /***/ }),
  17752. /* 160 */,
  17753. /* 161 */,
  17754. /* 162 */,
  17755. /* 163 */,
  17756. /* 164 */,
  17757. /* 165 */,
  17758. /* 166 */,
  17759. /* 167 */,
  17760. /* 168 */,
  17761. /* 169 */,
  17762. /* 170 */,
  17763. /* 171 */
  17764. /*!************************************************************************!*\
  17765. !*** D:/baozhida/baozhida-monitoring-host/pages/realTime/tableData.js ***!
  17766. \************************************************************************/
  17767. /*! no static exports found */
  17768. /***/ (function(module, exports, __webpack_require__) {
  17769. "use strict";
  17770. Object.defineProperty(exports, "__esModule", {
  17771. value: true
  17772. });
  17773. exports.default = void 0;
  17774. var _default = [{
  17775. "date": "2020-09-01",
  17776. "name": "Dcloud1",
  17777. "address": "上海市普陀区金沙江路 1518 弄"
  17778. }, {
  17779. "date": "2020-09-02",
  17780. "name": "Dcloud2",
  17781. "address": "上海市普陀区金沙江路 1517 弄"
  17782. }, {
  17783. "date": "2020-09-03",
  17784. "name": "Dcloud3",
  17785. "address": "上海市普陀区金沙江路 1519 弄"
  17786. }, {
  17787. "date": "2020-09-04",
  17788. "name": "Dcloud4",
  17789. "address": "上海市普陀区金沙江路 1516 弄"
  17790. }, {
  17791. "date": "2020-09-05",
  17792. "name": "Dcloud5",
  17793. "address": "上海市普陀区金沙江路 1518 弄"
  17794. }, {
  17795. "date": "2020-09-06",
  17796. "name": "Dcloud6",
  17797. "address": "上海市普陀区金沙江路 1517 弄"
  17798. }, {
  17799. "date": "2020-09-07",
  17800. "name": "Dcloud7",
  17801. "address": "上海市普陀区金沙江路 1519 弄"
  17802. }, {
  17803. "date": "2020-09-08",
  17804. "name": "Dcloud8",
  17805. "address": "上海市普陀区金沙江路 1516 弄"
  17806. }, {
  17807. "date": "2020-09-09",
  17808. "name": "Dcloud9",
  17809. "address": "上海市普陀区金沙江路 1518 弄"
  17810. }, {
  17811. "date": "2020-09-10",
  17812. "name": "Dcloud10",
  17813. "address": "上海市普陀区金沙江路 1517 弄"
  17814. }, {
  17815. "date": "2020-09-11",
  17816. "name": "Dcloud11",
  17817. "address": "上海市普陀区金沙江路 1519 弄"
  17818. }, {
  17819. "date": "2020-09-12",
  17820. "name": "Dcloud12",
  17821. "address": "上海市普陀区金沙江路 1516 弄"
  17822. }, {
  17823. "date": "2020-09-13",
  17824. "name": "Dcloud13",
  17825. "address": "上海市普陀区金沙江路 1518 弄"
  17826. }, {
  17827. "date": "2020-09-14",
  17828. "name": "Dcloud14",
  17829. "address": "上海市普陀区金沙江路 1517 弄"
  17830. }, {
  17831. "date": "2020-09-15",
  17832. "name": "Dcloud15",
  17833. "address": "上海市普陀区金沙江路 1519 弄"
  17834. }, {
  17835. "date": "2020-09-16",
  17836. "name": "Dcloud16",
  17837. "address": "上海市普陀区金沙江路 1516 弄"
  17838. }, {
  17839. "date": "2020-09-01",
  17840. "name": "Dcloud17",
  17841. "address": "上海市普陀区金沙江路 1518 弄"
  17842. }, {
  17843. "date": "2020-09-02",
  17844. "name": "Dcloud18",
  17845. "address": "上海市普陀区金沙江路 1517 弄"
  17846. }, {
  17847. "date": "2020-09-03",
  17848. "name": "Dcloud19",
  17849. "address": "上海市普陀区金沙江路 1519 弄"
  17850. }, {
  17851. "date": "2020-09-04",
  17852. "name": "Dcloud20",
  17853. "address": "上海市普陀区金沙江路 1516 弄"
  17854. }, {
  17855. "date": "2020-09-05",
  17856. "name": "Dcloud21",
  17857. "address": "上海市普陀区金沙江路 1518 弄"
  17858. }, {
  17859. "date": "2020-09-06",
  17860. "name": "Dcloud22",
  17861. "address": "上海市普陀区金沙江路 1517 弄"
  17862. }, {
  17863. "date": "2020-09-07",
  17864. "name": "Dcloud23",
  17865. "address": "上海市普陀区金沙江路 1519 弄"
  17866. }, {
  17867. "date": "2020-09-08",
  17868. "name": "Dcloud24",
  17869. "address": "上海市普陀区金沙江路 1516 弄"
  17870. }, {
  17871. "date": "2020-09-09",
  17872. "name": "Dcloud25",
  17873. "address": "上海市普陀区金沙江路 1518 弄"
  17874. }, {
  17875. "date": "2020-09-10",
  17876. "name": "Dcloud26",
  17877. "address": "上海市普陀区金沙江路 1517 弄"
  17878. }, {
  17879. "date": "2020-09-11",
  17880. "name": "Dcloud27",
  17881. "address": "上海市普陀区金沙江路 1519 弄"
  17882. }, {
  17883. "date": "2020-09-12",
  17884. "name": "Dcloud28",
  17885. "address": "上海市普陀区金沙江路 1516 弄"
  17886. }, {
  17887. "date": "2020-09-13",
  17888. "name": "Dcloud29",
  17889. "address": "上海市普陀区金沙江路 1518 弄"
  17890. }, {
  17891. "date": "2020-09-14",
  17892. "name": "Dcloud30",
  17893. "address": "上海市普陀区金沙江路 1517 弄"
  17894. }, {
  17895. "date": "2020-09-15",
  17896. "name": "Dcloud31",
  17897. "address": "上海市普陀区金沙江路 1519 弄"
  17898. }, {
  17899. "date": "2020-09-16",
  17900. "name": "Dcloud32",
  17901. "address": "上海市普陀区金沙江路 1516 弄"
  17902. }, {
  17903. "date": "2020-09-01",
  17904. "name": "Dcloud33",
  17905. "address": "上海市普陀区金沙江路 1518 弄"
  17906. }, {
  17907. "date": "2020-09-02",
  17908. "name": "Dcloud34",
  17909. "address": "上海市普陀区金沙江路 1517 弄"
  17910. }, {
  17911. "date": "2020-09-03",
  17912. "name": "Dcloud35",
  17913. "address": "上海市普陀区金沙江路 1519 弄"
  17914. }, {
  17915. "date": "2020-09-04",
  17916. "name": "Dcloud36",
  17917. "address": "上海市普陀区金沙江路 1516 弄"
  17918. }, {
  17919. "date": "2020-09-05",
  17920. "name": "Dcloud37",
  17921. "address": "上海市普陀区金沙江路 1518 弄"
  17922. }, {
  17923. "date": "2020-09-06",
  17924. "name": "Dcloud38",
  17925. "address": "上海市普陀区金沙江路 1517 弄"
  17926. }, {
  17927. "date": "2020-09-07",
  17928. "name": "Dcloud39",
  17929. "address": "上海市普陀区金沙江路 1519 弄"
  17930. }, {
  17931. "date": "2020-09-08",
  17932. "name": "Dcloud40",
  17933. "address": "上海市普陀区金沙江路 1516 弄"
  17934. }, {
  17935. "date": "2020-09-09",
  17936. "name": "Dcloud41",
  17937. "address": "上海市普陀区金沙江路 1518 弄"
  17938. }, {
  17939. "date": "2020-09-10",
  17940. "name": "Dcloud42",
  17941. "address": "上海市普陀区金沙江路 1517 弄"
  17942. }, {
  17943. "date": "2020-09-11",
  17944. "name": "Dcloud43",
  17945. "address": "上海市普陀区金沙江路 1519 弄"
  17946. }, {
  17947. "date": "2020-09-12",
  17948. "name": "Dcloud44",
  17949. "address": "上海市普陀区金沙江路 1516 弄"
  17950. }, {
  17951. "date": "2020-09-13",
  17952. "name": "Dcloud45",
  17953. "address": "上海市普陀区金沙江路 1518 弄"
  17954. }, {
  17955. "date": "2020-09-14",
  17956. "name": "Dcloud46",
  17957. "address": "上海市普陀区金沙江路 1517 弄"
  17958. }, {
  17959. "date": "2020-09-15",
  17960. "name": "Dcloud47",
  17961. "address": "上海市普陀区金沙江路 1519 弄"
  17962. }, {
  17963. "date": "2020-09-16",
  17964. "name": "Dcloud48",
  17965. "address": "上海市普陀区金沙江路 1516 弄"
  17966. }];
  17967. exports.default = _default;
  17968. /***/ }),
  17969. /* 172 */,
  17970. /* 173 */,
  17971. /* 174 */,
  17972. /* 175 */,
  17973. /* 176 */,
  17974. /* 177 */
  17975. /*!**************************************************************************!*\
  17976. !*** D:/baozhida/baozhida-monitoring-host/pages/historical/tableData.js ***!
  17977. \**************************************************************************/
  17978. /*! no static exports found */
  17979. /***/ (function(module, exports, __webpack_require__) {
  17980. "use strict";
  17981. Object.defineProperty(exports, "__esModule", {
  17982. value: true
  17983. });
  17984. exports.default = void 0;
  17985. var _default = [{
  17986. "date": "2020-09-01",
  17987. "name": "Dcloud1",
  17988. "address": "上海市普陀区金沙江路 1518 弄"
  17989. }, {
  17990. "date": "2020-09-02",
  17991. "name": "Dcloud2",
  17992. "address": "上海市普陀区金沙江路 1517 弄"
  17993. }, {
  17994. "date": "2020-09-03",
  17995. "name": "Dcloud3",
  17996. "address": "上海市普陀区金沙江路 1519 弄"
  17997. }, {
  17998. "date": "2020-09-04",
  17999. "name": "Dcloud4",
  18000. "address": "上海市普陀区金沙江路 1516 弄"
  18001. }, {
  18002. "date": "2020-09-05",
  18003. "name": "Dcloud5",
  18004. "address": "上海市普陀区金沙江路 1518 弄"
  18005. }, {
  18006. "date": "2020-09-06",
  18007. "name": "Dcloud6",
  18008. "address": "上海市普陀区金沙江路 1517 弄"
  18009. }, {
  18010. "date": "2020-09-07",
  18011. "name": "Dcloud7",
  18012. "address": "上海市普陀区金沙江路 1519 弄"
  18013. }, {
  18014. "date": "2020-09-08",
  18015. "name": "Dcloud8",
  18016. "address": "上海市普陀区金沙江路 1516 弄"
  18017. }, {
  18018. "date": "2020-09-09",
  18019. "name": "Dcloud9",
  18020. "address": "上海市普陀区金沙江路 1518 弄"
  18021. }, {
  18022. "date": "2020-09-10",
  18023. "name": "Dcloud10",
  18024. "address": "上海市普陀区金沙江路 1517 弄"
  18025. }, {
  18026. "date": "2020-09-11",
  18027. "name": "Dcloud11",
  18028. "address": "上海市普陀区金沙江路 1519 弄"
  18029. }, {
  18030. "date": "2020-09-12",
  18031. "name": "Dcloud12",
  18032. "address": "上海市普陀区金沙江路 1516 弄"
  18033. }, {
  18034. "date": "2020-09-13",
  18035. "name": "Dcloud13",
  18036. "address": "上海市普陀区金沙江路 1518 弄"
  18037. }, {
  18038. "date": "2020-09-14",
  18039. "name": "Dcloud14",
  18040. "address": "上海市普陀区金沙江路 1517 弄"
  18041. }, {
  18042. "date": "2020-09-15",
  18043. "name": "Dcloud15",
  18044. "address": "上海市普陀区金沙江路 1519 弄"
  18045. }, {
  18046. "date": "2020-09-16",
  18047. "name": "Dcloud16",
  18048. "address": "上海市普陀区金沙江路 1516 弄"
  18049. }, {
  18050. "date": "2020-09-01",
  18051. "name": "Dcloud17",
  18052. "address": "上海市普陀区金沙江路 1518 弄"
  18053. }, {
  18054. "date": "2020-09-02",
  18055. "name": "Dcloud18",
  18056. "address": "上海市普陀区金沙江路 1517 弄"
  18057. }, {
  18058. "date": "2020-09-03",
  18059. "name": "Dcloud19",
  18060. "address": "上海市普陀区金沙江路 1519 弄"
  18061. }, {
  18062. "date": "2020-09-04",
  18063. "name": "Dcloud20",
  18064. "address": "上海市普陀区金沙江路 1516 弄"
  18065. }, {
  18066. "date": "2020-09-05",
  18067. "name": "Dcloud21",
  18068. "address": "上海市普陀区金沙江路 1518 弄"
  18069. }, {
  18070. "date": "2020-09-06",
  18071. "name": "Dcloud22",
  18072. "address": "上海市普陀区金沙江路 1517 弄"
  18073. }, {
  18074. "date": "2020-09-07",
  18075. "name": "Dcloud23",
  18076. "address": "上海市普陀区金沙江路 1519 弄"
  18077. }, {
  18078. "date": "2020-09-08",
  18079. "name": "Dcloud24",
  18080. "address": "上海市普陀区金沙江路 1516 弄"
  18081. }, {
  18082. "date": "2020-09-09",
  18083. "name": "Dcloud25",
  18084. "address": "上海市普陀区金沙江路 1518 弄"
  18085. }, {
  18086. "date": "2020-09-10",
  18087. "name": "Dcloud26",
  18088. "address": "上海市普陀区金沙江路 1517 弄"
  18089. }, {
  18090. "date": "2020-09-11",
  18091. "name": "Dcloud27",
  18092. "address": "上海市普陀区金沙江路 1519 弄"
  18093. }, {
  18094. "date": "2020-09-12",
  18095. "name": "Dcloud28",
  18096. "address": "上海市普陀区金沙江路 1516 弄"
  18097. }, {
  18098. "date": "2020-09-13",
  18099. "name": "Dcloud29",
  18100. "address": "上海市普陀区金沙江路 1518 弄"
  18101. }, {
  18102. "date": "2020-09-14",
  18103. "name": "Dcloud30",
  18104. "address": "上海市普陀区金沙江路 1517 弄"
  18105. }, {
  18106. "date": "2020-09-15",
  18107. "name": "Dcloud31",
  18108. "address": "上海市普陀区金沙江路 1519 弄"
  18109. }, {
  18110. "date": "2020-09-16",
  18111. "name": "Dcloud32",
  18112. "address": "上海市普陀区金沙江路 1516 弄"
  18113. }, {
  18114. "date": "2020-09-01",
  18115. "name": "Dcloud33",
  18116. "address": "上海市普陀区金沙江路 1518 弄"
  18117. }, {
  18118. "date": "2020-09-02",
  18119. "name": "Dcloud34",
  18120. "address": "上海市普陀区金沙江路 1517 弄"
  18121. }, {
  18122. "date": "2020-09-03",
  18123. "name": "Dcloud35",
  18124. "address": "上海市普陀区金沙江路 1519 弄"
  18125. }, {
  18126. "date": "2020-09-04",
  18127. "name": "Dcloud36",
  18128. "address": "上海市普陀区金沙江路 1516 弄"
  18129. }, {
  18130. "date": "2020-09-05",
  18131. "name": "Dcloud37",
  18132. "address": "上海市普陀区金沙江路 1518 弄"
  18133. }, {
  18134. "date": "2020-09-06",
  18135. "name": "Dcloud38",
  18136. "address": "上海市普陀区金沙江路 1517 弄"
  18137. }, {
  18138. "date": "2020-09-07",
  18139. "name": "Dcloud39",
  18140. "address": "上海市普陀区金沙江路 1519 弄"
  18141. }, {
  18142. "date": "2020-09-08",
  18143. "name": "Dcloud40",
  18144. "address": "上海市普陀区金沙江路 1516 弄"
  18145. }, {
  18146. "date": "2020-09-09",
  18147. "name": "Dcloud41",
  18148. "address": "上海市普陀区金沙江路 1518 弄"
  18149. }, {
  18150. "date": "2020-09-10",
  18151. "name": "Dcloud42",
  18152. "address": "上海市普陀区金沙江路 1517 弄"
  18153. }, {
  18154. "date": "2020-09-11",
  18155. "name": "Dcloud43",
  18156. "address": "上海市普陀区金沙江路 1519 弄"
  18157. }, {
  18158. "date": "2020-09-12",
  18159. "name": "Dcloud44",
  18160. "address": "上海市普陀区金沙江路 1516 弄"
  18161. }, {
  18162. "date": "2020-09-13",
  18163. "name": "Dcloud45",
  18164. "address": "上海市普陀区金沙江路 1518 弄"
  18165. }, {
  18166. "date": "2020-09-14",
  18167. "name": "Dcloud46",
  18168. "address": "上海市普陀区金沙江路 1517 弄"
  18169. }, {
  18170. "date": "2020-09-15",
  18171. "name": "Dcloud47",
  18172. "address": "上海市普陀区金沙江路 1519 弄"
  18173. }, {
  18174. "date": "2020-09-16",
  18175. "name": "Dcloud48",
  18176. "address": "上海市普陀区金沙江路 1516 弄"
  18177. }];
  18178. exports.default = _default;
  18179. /***/ }),
  18180. /* 178 */,
  18181. /* 179 */,
  18182. /* 180 */,
  18183. /* 181 */,
  18184. /* 182 */,
  18185. /* 183 */,
  18186. /* 184 */,
  18187. /* 185 */
  18188. /*!*********************************************************************!*\
  18189. !*** D:/baozhida/baozhida-monitoring-host/pages/alarm/tableData.js ***!
  18190. \*********************************************************************/
  18191. /*! no static exports found */
  18192. /***/ (function(module, exports, __webpack_require__) {
  18193. "use strict";
  18194. Object.defineProperty(exports, "__esModule", {
  18195. value: true
  18196. });
  18197. exports.default = void 0;
  18198. var _default = [{
  18199. "date": "2020-09-01",
  18200. "name": "Dcloud1",
  18201. "address": "上海市普陀区金沙江路 1518 弄"
  18202. }, {
  18203. "date": "2020-09-02",
  18204. "name": "Dcloud2",
  18205. "address": "上海市普陀区金沙江路 1517 弄"
  18206. }, {
  18207. "date": "2020-09-03",
  18208. "name": "Dcloud3",
  18209. "address": "上海市普陀区金沙江路 1519 弄"
  18210. }, {
  18211. "date": "2020-09-04",
  18212. "name": "Dcloud4",
  18213. "address": "上海市普陀区金沙江路 1516 弄"
  18214. }, {
  18215. "date": "2020-09-05",
  18216. "name": "Dcloud5",
  18217. "address": "上海市普陀区金沙江路 1518 弄"
  18218. }, {
  18219. "date": "2020-09-06",
  18220. "name": "Dcloud6",
  18221. "address": "上海市普陀区金沙江路 1517 弄"
  18222. }, {
  18223. "date": "2020-09-07",
  18224. "name": "Dcloud7",
  18225. "address": "上海市普陀区金沙江路 1519 弄"
  18226. }, {
  18227. "date": "2020-09-08",
  18228. "name": "Dcloud8",
  18229. "address": "上海市普陀区金沙江路 1516 弄"
  18230. }, {
  18231. "date": "2020-09-09",
  18232. "name": "Dcloud9",
  18233. "address": "上海市普陀区金沙江路 1518 弄"
  18234. }, {
  18235. "date": "2020-09-10",
  18236. "name": "Dcloud10",
  18237. "address": "上海市普陀区金沙江路 1517 弄"
  18238. }, {
  18239. "date": "2020-09-11",
  18240. "name": "Dcloud11",
  18241. "address": "上海市普陀区金沙江路 1519 弄"
  18242. }, {
  18243. "date": "2020-09-12",
  18244. "name": "Dcloud12",
  18245. "address": "上海市普陀区金沙江路 1516 弄"
  18246. }, {
  18247. "date": "2020-09-13",
  18248. "name": "Dcloud13",
  18249. "address": "上海市普陀区金沙江路 1518 弄"
  18250. }, {
  18251. "date": "2020-09-14",
  18252. "name": "Dcloud14",
  18253. "address": "上海市普陀区金沙江路 1517 弄"
  18254. }, {
  18255. "date": "2020-09-15",
  18256. "name": "Dcloud15",
  18257. "address": "上海市普陀区金沙江路 1519 弄"
  18258. }, {
  18259. "date": "2020-09-16",
  18260. "name": "Dcloud16",
  18261. "address": "上海市普陀区金沙江路 1516 弄"
  18262. }, {
  18263. "date": "2020-09-01",
  18264. "name": "Dcloud17",
  18265. "address": "上海市普陀区金沙江路 1518 弄"
  18266. }, {
  18267. "date": "2020-09-02",
  18268. "name": "Dcloud18",
  18269. "address": "上海市普陀区金沙江路 1517 弄"
  18270. }, {
  18271. "date": "2020-09-03",
  18272. "name": "Dcloud19",
  18273. "address": "上海市普陀区金沙江路 1519 弄"
  18274. }, {
  18275. "date": "2020-09-04",
  18276. "name": "Dcloud20",
  18277. "address": "上海市普陀区金沙江路 1516 弄"
  18278. }, {
  18279. "date": "2020-09-05",
  18280. "name": "Dcloud21",
  18281. "address": "上海市普陀区金沙江路 1518 弄"
  18282. }, {
  18283. "date": "2020-09-06",
  18284. "name": "Dcloud22",
  18285. "address": "上海市普陀区金沙江路 1517 弄"
  18286. }, {
  18287. "date": "2020-09-07",
  18288. "name": "Dcloud23",
  18289. "address": "上海市普陀区金沙江路 1519 弄"
  18290. }, {
  18291. "date": "2020-09-08",
  18292. "name": "Dcloud24",
  18293. "address": "上海市普陀区金沙江路 1516 弄"
  18294. }, {
  18295. "date": "2020-09-09",
  18296. "name": "Dcloud25",
  18297. "address": "上海市普陀区金沙江路 1518 弄"
  18298. }, {
  18299. "date": "2020-09-10",
  18300. "name": "Dcloud26",
  18301. "address": "上海市普陀区金沙江路 1517 弄"
  18302. }, {
  18303. "date": "2020-09-11",
  18304. "name": "Dcloud27",
  18305. "address": "上海市普陀区金沙江路 1519 弄"
  18306. }, {
  18307. "date": "2020-09-12",
  18308. "name": "Dcloud28",
  18309. "address": "上海市普陀区金沙江路 1516 弄"
  18310. }, {
  18311. "date": "2020-09-13",
  18312. "name": "Dcloud29",
  18313. "address": "上海市普陀区金沙江路 1518 弄"
  18314. }, {
  18315. "date": "2020-09-14",
  18316. "name": "Dcloud30",
  18317. "address": "上海市普陀区金沙江路 1517 弄"
  18318. }, {
  18319. "date": "2020-09-15",
  18320. "name": "Dcloud31",
  18321. "address": "上海市普陀区金沙江路 1519 弄"
  18322. }, {
  18323. "date": "2020-09-16",
  18324. "name": "Dcloud32",
  18325. "address": "上海市普陀区金沙江路 1516 弄"
  18326. }, {
  18327. "date": "2020-09-01",
  18328. "name": "Dcloud33",
  18329. "address": "上海市普陀区金沙江路 1518 弄"
  18330. }, {
  18331. "date": "2020-09-02",
  18332. "name": "Dcloud34",
  18333. "address": "上海市普陀区金沙江路 1517 弄"
  18334. }, {
  18335. "date": "2020-09-03",
  18336. "name": "Dcloud35",
  18337. "address": "上海市普陀区金沙江路 1519 弄"
  18338. }, {
  18339. "date": "2020-09-04",
  18340. "name": "Dcloud36",
  18341. "address": "上海市普陀区金沙江路 1516 弄"
  18342. }, {
  18343. "date": "2020-09-05",
  18344. "name": "Dcloud37",
  18345. "address": "上海市普陀区金沙江路 1518 弄"
  18346. }, {
  18347. "date": "2020-09-06",
  18348. "name": "Dcloud38",
  18349. "address": "上海市普陀区金沙江路 1517 弄"
  18350. }, {
  18351. "date": "2020-09-07",
  18352. "name": "Dcloud39",
  18353. "address": "上海市普陀区金沙江路 1519 弄"
  18354. }, {
  18355. "date": "2020-09-08",
  18356. "name": "Dcloud40",
  18357. "address": "上海市普陀区金沙江路 1516 弄"
  18358. }, {
  18359. "date": "2020-09-09",
  18360. "name": "Dcloud41",
  18361. "address": "上海市普陀区金沙江路 1518 弄"
  18362. }, {
  18363. "date": "2020-09-10",
  18364. "name": "Dcloud42",
  18365. "address": "上海市普陀区金沙江路 1517 弄"
  18366. }, {
  18367. "date": "2020-09-11",
  18368. "name": "Dcloud43",
  18369. "address": "上海市普陀区金沙江路 1519 弄"
  18370. }, {
  18371. "date": "2020-09-12",
  18372. "name": "Dcloud44",
  18373. "address": "上海市普陀区金沙江路 1516 弄"
  18374. }, {
  18375. "date": "2020-09-13",
  18376. "name": "Dcloud45",
  18377. "address": "上海市普陀区金沙江路 1518 弄"
  18378. }, {
  18379. "date": "2020-09-14",
  18380. "name": "Dcloud46",
  18381. "address": "上海市普陀区金沙江路 1517 弄"
  18382. }, {
  18383. "date": "2020-09-15",
  18384. "name": "Dcloud47",
  18385. "address": "上海市普陀区金沙江路 1519 弄"
  18386. }, {
  18387. "date": "2020-09-16",
  18388. "name": "Dcloud48",
  18389. "address": "上海市普陀区金沙江路 1516 弄"
  18390. }];
  18391. exports.default = _default;
  18392. /***/ }),
  18393. /* 186 */,
  18394. /* 187 */,
  18395. /* 188 */,
  18396. /* 189 */,
  18397. /* 190 */,
  18398. /* 191 */,
  18399. /* 192 */,
  18400. /* 193 */,
  18401. /* 194 */,
  18402. /* 195 */,
  18403. /* 196 */,
  18404. /* 197 */,
  18405. /* 198 */,
  18406. /* 199 */,
  18407. /* 200 */,
  18408. /* 201 */,
  18409. /* 202 */,
  18410. /* 203 */,
  18411. /* 204 */,
  18412. /* 205 */,
  18413. /* 206 */,
  18414. /* 207 */,
  18415. /* 208 */,
  18416. /* 209 */,
  18417. /* 210 */,
  18418. /* 211 */,
  18419. /* 212 */,
  18420. /* 213 */,
  18421. /* 214 */,
  18422. /* 215 */,
  18423. /* 216 */,
  18424. /* 217 */,
  18425. /* 218 */,
  18426. /* 219 */,
  18427. /* 220 */,
  18428. /* 221 */,
  18429. /* 222 */,
  18430. /* 223 */,
  18431. /* 224 */,
  18432. /* 225 */,
  18433. /* 226 */,
  18434. /* 227 */,
  18435. /* 228 */,
  18436. /* 229 */,
  18437. /* 230 */,
  18438. /* 231 */,
  18439. /* 232 */,
  18440. /* 233 */,
  18441. /* 234 */,
  18442. /* 235 */,
  18443. /* 236 */,
  18444. /* 237 */,
  18445. /* 238 */,
  18446. /* 239 */,
  18447. /* 240 */,
  18448. /* 241 */,
  18449. /* 242 */,
  18450. /* 243 */,
  18451. /* 244 */,
  18452. /* 245 */,
  18453. /* 246 */,
  18454. /* 247 */
  18455. /*!*************************************************************************************************************************!*\
  18456. !*** D:/baozhida/baozhida-monitoring-host/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  18457. \*************************************************************************************************************************/
  18458. /*! no static exports found */
  18459. /***/ (function(module, exports, __webpack_require__) {
  18460. "use strict";
  18461. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18462. Object.defineProperty(exports, "__esModule", {
  18463. value: true
  18464. });
  18465. exports.default = void 0;
  18466. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 248));
  18467. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 249));
  18468. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 250));
  18469. var _default = {
  18470. en: _en.default,
  18471. 'zh-Hans': _zhHans.default,
  18472. 'zh-Hant': _zhHant.default
  18473. };
  18474. exports.default = _default;
  18475. /***/ }),
  18476. /* 248 */
  18477. /*!************************************************************************************************************************!*\
  18478. !*** D:/baozhida/baozhida-monitoring-host/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  18479. \************************************************************************************************************************/
  18480. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.SUN, uni-calender.confirm, default */
  18481. /***/ (function(module) {
  18482. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"select date\",\"uni-datetime-picker.selectTime\":\"select time\",\"uni-datetime-picker.selectDateTime\":\"select date and time\",\"uni-datetime-picker.startDate\":\"start date\",\"uni-datetime-picker.endDate\":\"end date\",\"uni-datetime-picker.startTime\":\"start time\",\"uni-datetime-picker.endTime\":\"end time\",\"uni-datetime-picker.ok\":\"ok\",\"uni-datetime-picker.clear\":\"clear\",\"uni-datetime-picker.cancel\":\"cancel\",\"uni-datetime-picker.year\":\"-\",\"uni-datetime-picker.month\":\"\",\"uni-calender.MON\":\"MON\",\"uni-calender.TUE\":\"TUE\",\"uni-calender.WED\":\"WED\",\"uni-calender.THU\":\"THU\",\"uni-calender.FRI\":\"FRI\",\"uni-calender.SAT\":\"SAT\",\"uni-calender.SUN\":\"SUN\",\"uni-calender.confirm\":\"confirm\"}");
  18483. /***/ }),
  18484. /* 249 */
  18485. /*!*****************************************************************************************************************************!*\
  18486. !*** D:/baozhida/baozhida-monitoring-host/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  18487. \*****************************************************************************************************************************/
  18488. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  18489. /***/ (function(module) {
  18490. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"选择日期\",\"uni-datetime-picker.selectTime\":\"选择时间\",\"uni-datetime-picker.selectDateTime\":\"选择日期时间\",\"uni-datetime-picker.startDate\":\"开始日期\",\"uni-datetime-picker.endDate\":\"结束日期\",\"uni-datetime-picker.startTime\":\"开始时间\",\"uni-datetime-picker.endTime\":\"结束时间\",\"uni-datetime-picker.ok\":\"确定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"确认\"}");
  18491. /***/ }),
  18492. /* 250 */
  18493. /*!*****************************************************************************************************************************!*\
  18494. !*** D:/baozhida/baozhida-monitoring-host/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  18495. \*****************************************************************************************************************************/
  18496. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  18497. /***/ (function(module) {
  18498. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"選擇日期\",\"uni-datetime-picker.selectTime\":\"選擇時間\",\"uni-datetime-picker.selectDateTime\":\"選擇日期時間\",\"uni-datetime-picker.startDate\":\"開始日期\",\"uni-datetime-picker.endDate\":\"結束日期\",\"uni-datetime-picker.startTime\":\"開始时间\",\"uni-datetime-picker.endTime\":\"結束时间\",\"uni-datetime-picker.ok\":\"確定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"確認\"}");
  18499. /***/ }),
  18500. /* 251 */
  18501. /*!*******************************************************************************************************************!*\
  18502. !*** D:/baozhida/baozhida-monitoring-host/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  18503. \*******************************************************************************************************************/
  18504. /*! no static exports found */
  18505. /***/ (function(module, exports, __webpack_require__) {
  18506. "use strict";
  18507. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18508. Object.defineProperty(exports, "__esModule", {
  18509. value: true
  18510. });
  18511. exports.Calendar = void 0;
  18512. exports.addZero = addZero;
  18513. exports.checkDate = checkDate;
  18514. exports.dateCompare = dateCompare;
  18515. exports.fixIosDateFormat = fixIosDateFormat;
  18516. exports.getDate = getDate;
  18517. exports.getDateTime = getDateTime;
  18518. exports.getDefaultSecond = getDefaultSecond;
  18519. exports.getTime = getTime;
  18520. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  18521. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  18522. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  18523. var Calendar = /*#__PURE__*/function () {
  18524. function Calendar() {
  18525. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18526. selected = _ref.selected,
  18527. startDate = _ref.startDate,
  18528. endDate = _ref.endDate,
  18529. range = _ref.range;
  18530. (0, _classCallCheck2.default)(this, Calendar);
  18531. // 当前日期
  18532. this.date = this.getDateObj(new Date()); // 当前初入日期
  18533. // 打点信息
  18534. this.selected = selected || [];
  18535. // 起始时间
  18536. this.startDate = startDate;
  18537. // 终止时间
  18538. this.endDate = endDate;
  18539. // 是否范围选择
  18540. this.range = range;
  18541. // 多选状态
  18542. this.cleanMultipleStatus();
  18543. // 每周日期
  18544. this.weeks = {};
  18545. this.lastHover = false;
  18546. }
  18547. /**
  18548. * 设置日期
  18549. * @param {Object} date
  18550. */
  18551. (0, _createClass2.default)(Calendar, [{
  18552. key: "setDate",
  18553. value: function setDate(date) {
  18554. var selectDate = this.getDateObj(date);
  18555. this.getWeeks(selectDate.fullDate);
  18556. }
  18557. /**
  18558. * 清理多选状态
  18559. */
  18560. }, {
  18561. key: "cleanMultipleStatus",
  18562. value: function cleanMultipleStatus() {
  18563. this.multipleStatus = {
  18564. before: '',
  18565. after: '',
  18566. data: []
  18567. };
  18568. }
  18569. }, {
  18570. key: "setStartDate",
  18571. value: function setStartDate(startDate) {
  18572. this.startDate = startDate;
  18573. }
  18574. }, {
  18575. key: "setEndDate",
  18576. value: function setEndDate(endDate) {
  18577. this.endDate = endDate;
  18578. }
  18579. }, {
  18580. key: "getPreMonthObj",
  18581. value: function getPreMonthObj(date) {
  18582. date = fixIosDateFormat(date);
  18583. date = new Date(date);
  18584. var oldMonth = date.getMonth();
  18585. date.setMonth(oldMonth - 1);
  18586. var newMonth = date.getMonth();
  18587. if (oldMonth !== 0 && newMonth - oldMonth === 0) {
  18588. date.setMonth(newMonth - 1);
  18589. }
  18590. return this.getDateObj(date);
  18591. }
  18592. }, {
  18593. key: "getNextMonthObj",
  18594. value: function getNextMonthObj(date) {
  18595. date = fixIosDateFormat(date);
  18596. date = new Date(date);
  18597. var oldMonth = date.getMonth();
  18598. date.setMonth(oldMonth + 1);
  18599. var newMonth = date.getMonth();
  18600. if (newMonth - oldMonth > 1) {
  18601. date.setMonth(newMonth - 1);
  18602. }
  18603. return this.getDateObj(date);
  18604. }
  18605. /**
  18606. * 获取指定格式Date对象
  18607. */
  18608. }, {
  18609. key: "getDateObj",
  18610. value: function getDateObj(date) {
  18611. date = fixIosDateFormat(date);
  18612. date = new Date(date);
  18613. return {
  18614. fullDate: getDate(date),
  18615. year: date.getFullYear(),
  18616. month: addZero(date.getMonth() + 1),
  18617. date: addZero(date.getDate()),
  18618. day: date.getDay()
  18619. };
  18620. }
  18621. /**
  18622. * 获取上一个月日期集合
  18623. */
  18624. }, {
  18625. key: "getPreMonthDays",
  18626. value: function getPreMonthDays(amount, dateObj) {
  18627. var result = [];
  18628. for (var i = amount - 1; i >= 0; i--) {
  18629. var month = dateObj.month - 1;
  18630. result.push({
  18631. date: new Date(dateObj.year, month, -i).getDate(),
  18632. month: month,
  18633. disable: true
  18634. });
  18635. }
  18636. return result;
  18637. }
  18638. /**
  18639. * 获取本月日期集合
  18640. */
  18641. }, {
  18642. key: "getCurrentMonthDays",
  18643. value: function getCurrentMonthDays(amount, dateObj) {
  18644. var _this = this;
  18645. var result = [];
  18646. var fullDate = this.date.fullDate;
  18647. var _loop = function _loop(i) {
  18648. var currentDate = "".concat(dateObj.year, "-").concat(dateObj.month, "-").concat(addZero(i));
  18649. var isToday = fullDate === currentDate;
  18650. // 获取打点信息
  18651. var info = _this.selected && _this.selected.find(function (item) {
  18652. if (_this.dateEqual(currentDate, item.date)) {
  18653. return item;
  18654. }
  18655. });
  18656. // 日期禁用
  18657. var disableBefore = true;
  18658. var disableAfter = true;
  18659. if (_this.startDate) {
  18660. disableBefore = dateCompare(_this.startDate, currentDate);
  18661. }
  18662. if (_this.endDate) {
  18663. disableAfter = dateCompare(currentDate, _this.endDate);
  18664. }
  18665. var multiples = _this.multipleStatus.data;
  18666. var multiplesStatus = -1;
  18667. if (_this.range && multiples) {
  18668. multiplesStatus = multiples.findIndex(function (item) {
  18669. return _this.dateEqual(item, currentDate);
  18670. });
  18671. }
  18672. var checked = multiplesStatus !== -1;
  18673. result.push({
  18674. fullDate: currentDate,
  18675. year: dateObj.year,
  18676. date: i,
  18677. multiple: _this.range ? checked : false,
  18678. beforeMultiple: _this.isLogicBefore(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  18679. afterMultiple: _this.isLogicAfter(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  18680. month: dateObj.month,
  18681. disable: _this.startDate && !dateCompare(_this.startDate, currentDate) || _this.endDate && !dateCompare(currentDate, _this.endDate),
  18682. isToday: isToday,
  18683. userChecked: false,
  18684. extraInfo: info
  18685. });
  18686. };
  18687. for (var i = 1; i <= amount; i++) {
  18688. _loop(i);
  18689. }
  18690. return result;
  18691. }
  18692. /**
  18693. * 获取下一个月日期集合
  18694. */
  18695. }, {
  18696. key: "_getNextMonthDays",
  18697. value: function _getNextMonthDays(amount, dateObj) {
  18698. var result = [];
  18699. var month = dateObj.month + 1;
  18700. for (var i = 1; i <= amount; i++) {
  18701. result.push({
  18702. date: i,
  18703. month: month,
  18704. disable: true
  18705. });
  18706. }
  18707. return result;
  18708. }
  18709. /**
  18710. * 获取当前日期详情
  18711. * @param {Object} date
  18712. */
  18713. }, {
  18714. key: "getInfo",
  18715. value: function getInfo(date) {
  18716. var _this2 = this;
  18717. if (!date) {
  18718. date = new Date();
  18719. }
  18720. return this.calendar.find(function (item) {
  18721. return item.fullDate === _this2.getDateObj(date).fullDate;
  18722. });
  18723. }
  18724. /**
  18725. * 比较时间是否相等
  18726. */
  18727. }, {
  18728. key: "dateEqual",
  18729. value: function dateEqual(before, after) {
  18730. before = new Date(fixIosDateFormat(before));
  18731. after = new Date(fixIosDateFormat(after));
  18732. return before.valueOf() === after.valueOf();
  18733. }
  18734. /**
  18735. * 比较真实起始日期
  18736. */
  18737. }, {
  18738. key: "isLogicBefore",
  18739. value: function isLogicBefore(currentDate, before, after) {
  18740. var logicBefore = before;
  18741. if (before && after) {
  18742. logicBefore = dateCompare(before, after) ? before : after;
  18743. }
  18744. return this.dateEqual(logicBefore, currentDate);
  18745. }
  18746. }, {
  18747. key: "isLogicAfter",
  18748. value: function isLogicAfter(currentDate, before, after) {
  18749. var logicAfter = after;
  18750. if (before && after) {
  18751. logicAfter = dateCompare(before, after) ? after : before;
  18752. }
  18753. return this.dateEqual(logicAfter, currentDate);
  18754. }
  18755. /**
  18756. * 获取日期范围内所有日期
  18757. * @param {Object} begin
  18758. * @param {Object} end
  18759. */
  18760. }, {
  18761. key: "geDateAll",
  18762. value: function geDateAll(begin, end) {
  18763. var arr = [];
  18764. var ab = begin.split('-');
  18765. var ae = end.split('-');
  18766. var db = new Date();
  18767. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  18768. var de = new Date();
  18769. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  18770. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  18771. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  18772. for (var k = unixDb; k <= unixDe;) {
  18773. k = k + 24 * 60 * 60 * 1000;
  18774. arr.push(this.getDateObj(new Date(parseInt(k))).fullDate);
  18775. }
  18776. return arr;
  18777. }
  18778. /**
  18779. * 获取多选状态
  18780. */
  18781. }, {
  18782. key: "setMultiple",
  18783. value: function setMultiple(fullDate) {
  18784. if (!this.range) return;
  18785. var _this$multipleStatus = this.multipleStatus,
  18786. before = _this$multipleStatus.before,
  18787. after = _this$multipleStatus.after;
  18788. if (before && after) {
  18789. if (!this.lastHover) {
  18790. this.lastHover = true;
  18791. return;
  18792. }
  18793. this.multipleStatus.before = fullDate;
  18794. this.multipleStatus.after = '';
  18795. this.multipleStatus.data = [];
  18796. this.multipleStatus.fulldate = '';
  18797. this.lastHover = false;
  18798. } else {
  18799. if (!before) {
  18800. this.multipleStatus.before = fullDate;
  18801. this.multipleStatus.after = undefined;
  18802. this.lastHover = false;
  18803. } else {
  18804. this.multipleStatus.after = fullDate;
  18805. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  18806. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  18807. } else {
  18808. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  18809. }
  18810. this.lastHover = true;
  18811. }
  18812. }
  18813. this.getWeeks(fullDate);
  18814. }
  18815. /**
  18816. * 鼠标 hover 更新多选状态
  18817. */
  18818. }, {
  18819. key: "setHoverMultiple",
  18820. value: function setHoverMultiple(fullDate) {
  18821. //抖音小程序点击会触发hover事件,需要避免一下
  18822. if (!this.range || this.lastHover) return;
  18823. var before = this.multipleStatus.before;
  18824. if (!before) {
  18825. this.multipleStatus.before = fullDate;
  18826. } else {
  18827. this.multipleStatus.after = fullDate;
  18828. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  18829. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  18830. } else {
  18831. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  18832. }
  18833. }
  18834. this.getWeeks(fullDate);
  18835. }
  18836. /**
  18837. * 更新默认值多选状态
  18838. */
  18839. }, {
  18840. key: "setDefaultMultiple",
  18841. value: function setDefaultMultiple(before, after) {
  18842. this.multipleStatus.before = before;
  18843. this.multipleStatus.after = after;
  18844. if (before && after) {
  18845. if (dateCompare(before, after)) {
  18846. this.multipleStatus.data = this.geDateAll(before, after);
  18847. this.getWeeks(after);
  18848. } else {
  18849. this.multipleStatus.data = this.geDateAll(after, before);
  18850. this.getWeeks(before);
  18851. }
  18852. }
  18853. }
  18854. /**
  18855. * 获取每周数据
  18856. * @param {Object} dateData
  18857. */
  18858. }, {
  18859. key: "getWeeks",
  18860. value: function getWeeks(dateData) {
  18861. var _this$getDateObj = this.getDateObj(dateData),
  18862. year = _this$getDateObj.year,
  18863. month = _this$getDateObj.month;
  18864. var preMonthDayAmount = new Date(year, month - 1, 1).getDay();
  18865. var preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData));
  18866. var currentMonthDayAmount = new Date(year, month, 0).getDate();
  18867. var currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData));
  18868. var nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount;
  18869. var nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData));
  18870. var calendarDays = [].concat((0, _toConsumableArray2.default)(preMonthDays), (0, _toConsumableArray2.default)(currentMonthDays), (0, _toConsumableArray2.default)(nextMonthDays));
  18871. var weeks = new Array(6);
  18872. for (var i = 0; i < calendarDays.length; i++) {
  18873. var index = Math.floor(i / 7);
  18874. if (!weeks[index]) {
  18875. weeks[index] = new Array(7);
  18876. }
  18877. weeks[index][i % 7] = calendarDays[i];
  18878. }
  18879. this.calendar = calendarDays;
  18880. this.weeks = weeks;
  18881. }
  18882. }]);
  18883. return Calendar;
  18884. }();
  18885. exports.Calendar = Calendar;
  18886. function getDateTime(date, hideSecond) {
  18887. return "".concat(getDate(date), " ").concat(getTime(date, hideSecond));
  18888. }
  18889. function getDate(date) {
  18890. date = fixIosDateFormat(date);
  18891. date = new Date(date);
  18892. var year = date.getFullYear();
  18893. var month = date.getMonth() + 1;
  18894. var day = date.getDate();
  18895. return "".concat(year, "-").concat(addZero(month), "-").concat(addZero(day));
  18896. }
  18897. function getTime(date, hideSecond) {
  18898. date = fixIosDateFormat(date);
  18899. date = new Date(date);
  18900. var hour = date.getHours();
  18901. var minute = date.getMinutes();
  18902. var second = date.getSeconds();
  18903. return hideSecond ? "".concat(addZero(hour), ":").concat(addZero(minute)) : "".concat(addZero(hour), ":").concat(addZero(minute), ":").concat(addZero(second));
  18904. }
  18905. function addZero(num) {
  18906. if (num < 10) {
  18907. num = "0".concat(num);
  18908. }
  18909. return num;
  18910. }
  18911. function getDefaultSecond(hideSecond) {
  18912. return hideSecond ? '00:00' : '00:00:00';
  18913. }
  18914. function dateCompare(startDate, endDate) {
  18915. startDate = new Date(fixIosDateFormat(startDate));
  18916. endDate = new Date(fixIosDateFormat(endDate));
  18917. return startDate <= endDate;
  18918. }
  18919. function checkDate(date) {
  18920. var dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;
  18921. return date.match(dateReg);
  18922. }
  18923. //ios低版本15及以下,无法匹配 没有 ’秒‘ 时的情况,所以需要在末尾 秒 加上 问号
  18924. var dateTimeReg = /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;
  18925. function fixIosDateFormat(value) {
  18926. if (typeof value === 'string' && dateTimeReg.test(value)) {
  18927. value = value.replace(/-/g, '/');
  18928. }
  18929. return value;
  18930. }
  18931. /***/ }),
  18932. /* 252 */,
  18933. /* 253 */,
  18934. /* 254 */,
  18935. /* 255 */,
  18936. /* 256 */,
  18937. /* 257 */,
  18938. /* 258 */,
  18939. /* 259 */
  18940. /*!**********************************************************************************************!*\
  18941. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-modal/props.js ***!
  18942. \**********************************************************************************************/
  18943. /*! no static exports found */
  18944. /***/ (function(module, exports, __webpack_require__) {
  18945. "use strict";
  18946. /* WEBPACK VAR INJECTION */(function(uni) {
  18947. Object.defineProperty(exports, "__esModule", {
  18948. value: true
  18949. });
  18950. exports.default = void 0;
  18951. var _default = {
  18952. props: {
  18953. // 是否展示modal
  18954. show: {
  18955. type: Boolean,
  18956. default: uni.$u.props.modal.show
  18957. },
  18958. // 标题
  18959. title: {
  18960. type: [String],
  18961. default: uni.$u.props.modal.title
  18962. },
  18963. // 弹窗内容
  18964. content: {
  18965. type: String,
  18966. default: uni.$u.props.modal.content
  18967. },
  18968. // 确认文案
  18969. confirmText: {
  18970. type: String,
  18971. default: uni.$u.props.modal.confirmText
  18972. },
  18973. // 取消文案
  18974. cancelText: {
  18975. type: String,
  18976. default: uni.$u.props.modal.cancelText
  18977. },
  18978. // 是否显示确认按钮
  18979. showConfirmButton: {
  18980. type: Boolean,
  18981. default: uni.$u.props.modal.showConfirmButton
  18982. },
  18983. // 是否显示取消按钮
  18984. showCancelButton: {
  18985. type: Boolean,
  18986. default: uni.$u.props.modal.showCancelButton
  18987. },
  18988. // 确认按钮颜色
  18989. confirmColor: {
  18990. type: String,
  18991. default: uni.$u.props.modal.confirmColor
  18992. },
  18993. // 取消文字颜色
  18994. cancelColor: {
  18995. type: String,
  18996. default: uni.$u.props.modal.cancelColor
  18997. },
  18998. // 对调确认和取消的位置
  18999. buttonReverse: {
  19000. type: Boolean,
  19001. default: uni.$u.props.modal.buttonReverse
  19002. },
  19003. // 是否开启缩放效果
  19004. zoom: {
  19005. type: Boolean,
  19006. default: uni.$u.props.modal.zoom
  19007. },
  19008. // 是否异步关闭,只对确定按钮有效
  19009. asyncClose: {
  19010. type: Boolean,
  19011. default: uni.$u.props.modal.asyncClose
  19012. },
  19013. // 是否允许点击遮罩关闭modal
  19014. closeOnClickOverlay: {
  19015. type: Boolean,
  19016. default: uni.$u.props.modal.closeOnClickOverlay
  19017. },
  19018. // 给一个负的margin-top,往上偏移,避免和键盘重合的情况
  19019. negativeTop: {
  19020. type: [String, Number],
  19021. default: uni.$u.props.modal.negativeTop
  19022. },
  19023. // modal宽度,不支持百分比,可以数值,px,rpx单位
  19024. width: {
  19025. type: [String, Number],
  19026. default: uni.$u.props.modal.width
  19027. },
  19028. // 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
  19029. confirmButtonShape: {
  19030. type: String,
  19031. default: uni.$u.props.modal.confirmButtonShape
  19032. },
  19033. // 弹窗动画过度时间
  19034. duration: {
  19035. type: String | Number,
  19036. default: uni.$u.props.modal.duration
  19037. }
  19038. }
  19039. };
  19040. exports.default = _default;
  19041. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19042. /***/ }),
  19043. /* 260 */,
  19044. /* 261 */,
  19045. /* 262 */,
  19046. /* 263 */,
  19047. /* 264 */,
  19048. /* 265 */,
  19049. /* 266 */,
  19050. /* 267 */
  19051. /*!*********************************************************************************************!*\
  19052. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-icon/icons.js ***!
  19053. \*********************************************************************************************/
  19054. /*! no static exports found */
  19055. /***/ (function(module, exports, __webpack_require__) {
  19056. "use strict";
  19057. Object.defineProperty(exports, "__esModule", {
  19058. value: true
  19059. });
  19060. exports.default = void 0;
  19061. var _default = {
  19062. 'uicon-level': "\uE693",
  19063. 'uicon-column-line': "\uE68E",
  19064. 'uicon-checkbox-mark': "\uE807",
  19065. 'uicon-folder': "\uE7F5",
  19066. 'uicon-movie': "\uE7F6",
  19067. 'uicon-star-fill': "\uE669",
  19068. 'uicon-star': "\uE65F",
  19069. 'uicon-phone-fill': "\uE64F",
  19070. 'uicon-phone': "\uE622",
  19071. 'uicon-apple-fill': "\uE881",
  19072. 'uicon-chrome-circle-fill': "\uE885",
  19073. 'uicon-backspace': "\uE67B",
  19074. 'uicon-attach': "\uE632",
  19075. 'uicon-cut': "\uE948",
  19076. 'uicon-empty-car': "\uE602",
  19077. 'uicon-empty-coupon': "\uE682",
  19078. 'uicon-empty-address': "\uE646",
  19079. 'uicon-empty-favor': "\uE67C",
  19080. 'uicon-empty-permission': "\uE686",
  19081. 'uicon-empty-news': "\uE687",
  19082. 'uicon-empty-search': "\uE664",
  19083. 'uicon-github-circle-fill': "\uE887",
  19084. 'uicon-rmb': "\uE608",
  19085. 'uicon-person-delete-fill': "\uE66A",
  19086. 'uicon-reload': "\uE788",
  19087. 'uicon-order': "\uE68F",
  19088. 'uicon-server-man': "\uE6BC",
  19089. 'uicon-search': "\uE62A",
  19090. 'uicon-fingerprint': "\uE955",
  19091. 'uicon-more-dot-fill': "\uE630",
  19092. 'uicon-scan': "\uE662",
  19093. 'uicon-share-square': "\uE60B",
  19094. 'uicon-map': "\uE61D",
  19095. 'uicon-map-fill': "\uE64E",
  19096. 'uicon-tags': "\uE629",
  19097. 'uicon-tags-fill': "\uE651",
  19098. 'uicon-bookmark-fill': "\uE63B",
  19099. 'uicon-bookmark': "\uE60A",
  19100. 'uicon-eye': "\uE613",
  19101. 'uicon-eye-fill': "\uE641",
  19102. 'uicon-mic': "\uE64A",
  19103. 'uicon-mic-off': "\uE649",
  19104. 'uicon-calendar': "\uE66E",
  19105. 'uicon-calendar-fill': "\uE634",
  19106. 'uicon-trash': "\uE623",
  19107. 'uicon-trash-fill': "\uE658",
  19108. 'uicon-play-left': "\uE66D",
  19109. 'uicon-play-right': "\uE610",
  19110. 'uicon-minus': "\uE618",
  19111. 'uicon-plus': "\uE62D",
  19112. 'uicon-info': "\uE653",
  19113. 'uicon-info-circle': "\uE7D2",
  19114. 'uicon-info-circle-fill': "\uE64B",
  19115. 'uicon-question': "\uE715",
  19116. 'uicon-error': "\uE6D3",
  19117. 'uicon-close': "\uE685",
  19118. 'uicon-checkmark': "\uE6A8",
  19119. 'uicon-android-circle-fill': "\uE67E",
  19120. 'uicon-android-fill': "\uE67D",
  19121. 'uicon-ie': "\uE87B",
  19122. 'uicon-IE-circle-fill': "\uE889",
  19123. 'uicon-google': "\uE87A",
  19124. 'uicon-google-circle-fill': "\uE88A",
  19125. 'uicon-setting-fill': "\uE872",
  19126. 'uicon-setting': "\uE61F",
  19127. 'uicon-minus-square-fill': "\uE855",
  19128. 'uicon-plus-square-fill': "\uE856",
  19129. 'uicon-heart': "\uE7DF",
  19130. 'uicon-heart-fill': "\uE851",
  19131. 'uicon-camera': "\uE7D7",
  19132. 'uicon-camera-fill': "\uE870",
  19133. 'uicon-more-circle': "\uE63E",
  19134. 'uicon-more-circle-fill': "\uE645",
  19135. 'uicon-chat': "\uE620",
  19136. 'uicon-chat-fill': "\uE61E",
  19137. 'uicon-bag-fill': "\uE617",
  19138. 'uicon-bag': "\uE619",
  19139. 'uicon-error-circle-fill': "\uE62C",
  19140. 'uicon-error-circle': "\uE624",
  19141. 'uicon-close-circle': "\uE63F",
  19142. 'uicon-close-circle-fill': "\uE637",
  19143. 'uicon-checkmark-circle': "\uE63D",
  19144. 'uicon-checkmark-circle-fill': "\uE635",
  19145. 'uicon-question-circle-fill': "\uE666",
  19146. 'uicon-question-circle': "\uE625",
  19147. 'uicon-share': "\uE631",
  19148. 'uicon-share-fill': "\uE65E",
  19149. 'uicon-shopping-cart': "\uE621",
  19150. 'uicon-shopping-cart-fill': "\uE65D",
  19151. 'uicon-bell': "\uE609",
  19152. 'uicon-bell-fill': "\uE640",
  19153. 'uicon-list': "\uE650",
  19154. 'uicon-list-dot': "\uE616",
  19155. 'uicon-zhihu': "\uE6BA",
  19156. 'uicon-zhihu-circle-fill': "\uE709",
  19157. 'uicon-zhifubao': "\uE6B9",
  19158. 'uicon-zhifubao-circle-fill': "\uE6B8",
  19159. 'uicon-weixin-circle-fill': "\uE6B1",
  19160. 'uicon-weixin-fill': "\uE6B2",
  19161. 'uicon-twitter-circle-fill': "\uE6AB",
  19162. 'uicon-twitter': "\uE6AA",
  19163. 'uicon-taobao-circle-fill': "\uE6A7",
  19164. 'uicon-taobao': "\uE6A6",
  19165. 'uicon-weibo-circle-fill': "\uE6A5",
  19166. 'uicon-weibo': "\uE6A4",
  19167. 'uicon-qq-fill': "\uE6A1",
  19168. 'uicon-qq-circle-fill': "\uE6A0",
  19169. 'uicon-moments-circel-fill': "\uE69A",
  19170. 'uicon-moments': "\uE69B",
  19171. 'uicon-qzone': "\uE695",
  19172. 'uicon-qzone-circle-fill': "\uE696",
  19173. 'uicon-baidu-circle-fill': "\uE680",
  19174. 'uicon-baidu': "\uE681",
  19175. 'uicon-facebook-circle-fill': "\uE68A",
  19176. 'uicon-facebook': "\uE689",
  19177. 'uicon-car': "\uE60C",
  19178. 'uicon-car-fill': "\uE636",
  19179. 'uicon-warning-fill': "\uE64D",
  19180. 'uicon-warning': "\uE694",
  19181. 'uicon-clock-fill': "\uE638",
  19182. 'uicon-clock': "\uE60F",
  19183. 'uicon-edit-pen': "\uE612",
  19184. 'uicon-edit-pen-fill': "\uE66B",
  19185. 'uicon-email': "\uE611",
  19186. 'uicon-email-fill': "\uE642",
  19187. 'uicon-minus-circle': "\uE61B",
  19188. 'uicon-minus-circle-fill': "\uE652",
  19189. 'uicon-plus-circle': "\uE62E",
  19190. 'uicon-plus-circle-fill': "\uE661",
  19191. 'uicon-file-text': "\uE663",
  19192. 'uicon-file-text-fill': "\uE665",
  19193. 'uicon-pushpin': "\uE7E3",
  19194. 'uicon-pushpin-fill': "\uE86E",
  19195. 'uicon-grid': "\uE673",
  19196. 'uicon-grid-fill': "\uE678",
  19197. 'uicon-play-circle': "\uE647",
  19198. 'uicon-play-circle-fill': "\uE655",
  19199. 'uicon-pause-circle-fill': "\uE654",
  19200. 'uicon-pause': "\uE8FA",
  19201. 'uicon-pause-circle': "\uE643",
  19202. 'uicon-eye-off': "\uE648",
  19203. 'uicon-eye-off-outline': "\uE62B",
  19204. 'uicon-gift-fill': "\uE65C",
  19205. 'uicon-gift': "\uE65B",
  19206. 'uicon-rmb-circle-fill': "\uE657",
  19207. 'uicon-rmb-circle': "\uE677",
  19208. 'uicon-kefu-ermai': "\uE656",
  19209. 'uicon-server-fill': "\uE751",
  19210. 'uicon-coupon-fill': "\uE8C4",
  19211. 'uicon-coupon': "\uE8AE",
  19212. 'uicon-integral': "\uE704",
  19213. 'uicon-integral-fill': "\uE703",
  19214. 'uicon-home-fill': "\uE964",
  19215. 'uicon-home': "\uE965",
  19216. 'uicon-hourglass-half-fill': "\uE966",
  19217. 'uicon-hourglass': "\uE967",
  19218. 'uicon-account': "\uE628",
  19219. 'uicon-plus-people-fill': "\uE626",
  19220. 'uicon-minus-people-fill': "\uE615",
  19221. 'uicon-account-fill': "\uE614",
  19222. 'uicon-thumb-down-fill': "\uE726",
  19223. 'uicon-thumb-down': "\uE727",
  19224. 'uicon-thumb-up': "\uE733",
  19225. 'uicon-thumb-up-fill': "\uE72F",
  19226. 'uicon-lock-fill': "\uE979",
  19227. 'uicon-lock-open': "\uE973",
  19228. 'uicon-lock-opened-fill': "\uE974",
  19229. 'uicon-lock': "\uE97A",
  19230. 'uicon-red-packet-fill': "\uE690",
  19231. 'uicon-photo-fill': "\uE98B",
  19232. 'uicon-photo': "\uE98D",
  19233. 'uicon-volume-off-fill': "\uE659",
  19234. 'uicon-volume-off': "\uE644",
  19235. 'uicon-volume-fill': "\uE670",
  19236. 'uicon-volume': "\uE633",
  19237. 'uicon-red-packet': "\uE691",
  19238. 'uicon-download': "\uE63C",
  19239. 'uicon-arrow-up-fill': "\uE6B0",
  19240. 'uicon-arrow-down-fill': "\uE600",
  19241. 'uicon-play-left-fill': "\uE675",
  19242. 'uicon-play-right-fill': "\uE676",
  19243. 'uicon-rewind-left-fill': "\uE679",
  19244. 'uicon-rewind-right-fill': "\uE67A",
  19245. 'uicon-arrow-downward': "\uE604",
  19246. 'uicon-arrow-leftward': "\uE601",
  19247. 'uicon-arrow-rightward': "\uE603",
  19248. 'uicon-arrow-upward': "\uE607",
  19249. 'uicon-arrow-down': "\uE60D",
  19250. 'uicon-arrow-right': "\uE605",
  19251. 'uicon-arrow-left': "\uE60E",
  19252. 'uicon-arrow-up': "\uE606",
  19253. 'uicon-skip-back-left': "\uE674",
  19254. 'uicon-skip-forward-right': "\uE672",
  19255. 'uicon-rewind-right': "\uE66F",
  19256. 'uicon-rewind-left': "\uE671",
  19257. 'uicon-arrow-right-double': "\uE68D",
  19258. 'uicon-arrow-left-double': "\uE68C",
  19259. 'uicon-wifi-off': "\uE668",
  19260. 'uicon-wifi': "\uE667",
  19261. 'uicon-empty-data': "\uE62F",
  19262. 'uicon-empty-history': "\uE684",
  19263. 'uicon-empty-list': "\uE68B",
  19264. 'uicon-empty-page': "\uE627",
  19265. 'uicon-empty-order': "\uE639",
  19266. 'uicon-man': "\uE697",
  19267. 'uicon-woman': "\uE69C",
  19268. 'uicon-man-add': "\uE61C",
  19269. 'uicon-man-add-fill': "\uE64C",
  19270. 'uicon-man-delete': "\uE61A",
  19271. 'uicon-man-delete-fill': "\uE66A",
  19272. 'uicon-zh': "\uE70A",
  19273. 'uicon-en': "\uE692"
  19274. };
  19275. exports.default = _default;
  19276. /***/ }),
  19277. /* 268 */
  19278. /*!*********************************************************************************************!*\
  19279. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-icon/props.js ***!
  19280. \*********************************************************************************************/
  19281. /*! no static exports found */
  19282. /***/ (function(module, exports, __webpack_require__) {
  19283. "use strict";
  19284. /* WEBPACK VAR INJECTION */(function(uni) {
  19285. Object.defineProperty(exports, "__esModule", {
  19286. value: true
  19287. });
  19288. exports.default = void 0;
  19289. var _default = {
  19290. props: {
  19291. // 图标类名
  19292. name: {
  19293. type: String,
  19294. default: uni.$u.props.icon.name
  19295. },
  19296. // 图标颜色,可接受主题色
  19297. color: {
  19298. type: String,
  19299. default: uni.$u.props.icon.color
  19300. },
  19301. // 字体大小,单位px
  19302. size: {
  19303. type: [String, Number],
  19304. default: uni.$u.props.icon.size
  19305. },
  19306. // 是否显示粗体
  19307. bold: {
  19308. type: Boolean,
  19309. default: uni.$u.props.icon.bold
  19310. },
  19311. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  19312. index: {
  19313. type: [String, Number],
  19314. default: uni.$u.props.icon.index
  19315. },
  19316. // 触摸图标时的类名
  19317. hoverClass: {
  19318. type: String,
  19319. default: uni.$u.props.icon.hoverClass
  19320. },
  19321. // 自定义扩展前缀,方便用户扩展自己的图标库
  19322. customPrefix: {
  19323. type: String,
  19324. default: uni.$u.props.icon.customPrefix
  19325. },
  19326. // 图标右边或者下面的文字
  19327. label: {
  19328. type: [String, Number],
  19329. default: uni.$u.props.icon.label
  19330. },
  19331. // label的位置,只能右边或者下边
  19332. labelPos: {
  19333. type: String,
  19334. default: uni.$u.props.icon.labelPos
  19335. },
  19336. // label的大小
  19337. labelSize: {
  19338. type: [String, Number],
  19339. default: uni.$u.props.icon.labelSize
  19340. },
  19341. // label的颜色
  19342. labelColor: {
  19343. type: String,
  19344. default: uni.$u.props.icon.labelColor
  19345. },
  19346. // label与图标的距离
  19347. space: {
  19348. type: [String, Number],
  19349. default: uni.$u.props.icon.space
  19350. },
  19351. // 图片的mode
  19352. imgMode: {
  19353. type: String,
  19354. default: uni.$u.props.icon.imgMode
  19355. },
  19356. // 用于显示图片小图标时,图片的宽度
  19357. width: {
  19358. type: [String, Number],
  19359. default: uni.$u.props.icon.width
  19360. },
  19361. // 用于显示图片小图标时,图片的高度
  19362. height: {
  19363. type: [String, Number],
  19364. default: uni.$u.props.icon.height
  19365. },
  19366. // 用于解决某些情况下,让图标垂直居中的用途
  19367. top: {
  19368. type: [String, Number],
  19369. default: uni.$u.props.icon.top
  19370. },
  19371. // 是否阻止事件传播
  19372. stop: {
  19373. type: Boolean,
  19374. default: uni.$u.props.icon.stop
  19375. }
  19376. }
  19377. };
  19378. exports.default = _default;
  19379. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19380. /***/ }),
  19381. /* 269 */,
  19382. /* 270 */,
  19383. /* 271 */,
  19384. /* 272 */,
  19385. /* 273 */,
  19386. /* 274 */,
  19387. /* 275 */,
  19388. /* 276 */,
  19389. /* 277 */,
  19390. /* 278 */,
  19391. /* 279 */,
  19392. /* 280 */,
  19393. /* 281 */,
  19394. /* 282 */,
  19395. /* 283 */
  19396. /*!************************************************************************************************************!*\
  19397. !*** D:/baozhida/baozhida-monitoring-host/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js ***!
  19398. \************************************************************************************************************/
  19399. /*! no static exports found */
  19400. /***/ (function(module, exports, __webpack_require__) {
  19401. "use strict";
  19402. Object.defineProperty(exports, "__esModule", {
  19403. value: true
  19404. });
  19405. exports.fontData = void 0;
  19406. var fontData = [{
  19407. "font_class": "arrow-down",
  19408. "unicode": "\uE6BE"
  19409. }, {
  19410. "font_class": "arrow-left",
  19411. "unicode": "\uE6BC"
  19412. }, {
  19413. "font_class": "arrow-right",
  19414. "unicode": "\uE6BB"
  19415. }, {
  19416. "font_class": "arrow-up",
  19417. "unicode": "\uE6BD"
  19418. }, {
  19419. "font_class": "auth",
  19420. "unicode": "\uE6AB"
  19421. }, {
  19422. "font_class": "auth-filled",
  19423. "unicode": "\uE6CC"
  19424. }, {
  19425. "font_class": "back",
  19426. "unicode": "\uE6B9"
  19427. }, {
  19428. "font_class": "bars",
  19429. "unicode": "\uE627"
  19430. }, {
  19431. "font_class": "calendar",
  19432. "unicode": "\uE6A0"
  19433. }, {
  19434. "font_class": "calendar-filled",
  19435. "unicode": "\uE6C0"
  19436. }, {
  19437. "font_class": "camera",
  19438. "unicode": "\uE65A"
  19439. }, {
  19440. "font_class": "camera-filled",
  19441. "unicode": "\uE658"
  19442. }, {
  19443. "font_class": "cart",
  19444. "unicode": "\uE631"
  19445. }, {
  19446. "font_class": "cart-filled",
  19447. "unicode": "\uE6D0"
  19448. }, {
  19449. "font_class": "chat",
  19450. "unicode": "\uE65D"
  19451. }, {
  19452. "font_class": "chat-filled",
  19453. "unicode": "\uE659"
  19454. }, {
  19455. "font_class": "chatboxes",
  19456. "unicode": "\uE696"
  19457. }, {
  19458. "font_class": "chatboxes-filled",
  19459. "unicode": "\uE692"
  19460. }, {
  19461. "font_class": "chatbubble",
  19462. "unicode": "\uE697"
  19463. }, {
  19464. "font_class": "chatbubble-filled",
  19465. "unicode": "\uE694"
  19466. }, {
  19467. "font_class": "checkbox",
  19468. "unicode": "\uE62B"
  19469. }, {
  19470. "font_class": "checkbox-filled",
  19471. "unicode": "\uE62C"
  19472. }, {
  19473. "font_class": "checkmarkempty",
  19474. "unicode": "\uE65C"
  19475. }, {
  19476. "font_class": "circle",
  19477. "unicode": "\uE65B"
  19478. }, {
  19479. "font_class": "circle-filled",
  19480. "unicode": "\uE65E"
  19481. }, {
  19482. "font_class": "clear",
  19483. "unicode": "\uE66D"
  19484. }, {
  19485. "font_class": "close",
  19486. "unicode": "\uE673"
  19487. }, {
  19488. "font_class": "closeempty",
  19489. "unicode": "\uE66C"
  19490. }, {
  19491. "font_class": "cloud-download",
  19492. "unicode": "\uE647"
  19493. }, {
  19494. "font_class": "cloud-download-filled",
  19495. "unicode": "\uE646"
  19496. }, {
  19497. "font_class": "cloud-upload",
  19498. "unicode": "\uE645"
  19499. }, {
  19500. "font_class": "cloud-upload-filled",
  19501. "unicode": "\uE648"
  19502. }, {
  19503. "font_class": "color",
  19504. "unicode": "\uE6CF"
  19505. }, {
  19506. "font_class": "color-filled",
  19507. "unicode": "\uE6C9"
  19508. }, {
  19509. "font_class": "compose",
  19510. "unicode": "\uE67F"
  19511. }, {
  19512. "font_class": "contact",
  19513. "unicode": "\uE693"
  19514. }, {
  19515. "font_class": "contact-filled",
  19516. "unicode": "\uE695"
  19517. }, {
  19518. "font_class": "down",
  19519. "unicode": "\uE6B8"
  19520. }, {
  19521. "font_class": "bottom",
  19522. "unicode": "\uE6B8"
  19523. }, {
  19524. "font_class": "download",
  19525. "unicode": "\uE68D"
  19526. }, {
  19527. "font_class": "download-filled",
  19528. "unicode": "\uE681"
  19529. }, {
  19530. "font_class": "email",
  19531. "unicode": "\uE69E"
  19532. }, {
  19533. "font_class": "email-filled",
  19534. "unicode": "\uE69A"
  19535. }, {
  19536. "font_class": "eye",
  19537. "unicode": "\uE651"
  19538. }, {
  19539. "font_class": "eye-filled",
  19540. "unicode": "\uE66A"
  19541. }, {
  19542. "font_class": "eye-slash",
  19543. "unicode": "\uE6B3"
  19544. }, {
  19545. "font_class": "eye-slash-filled",
  19546. "unicode": "\uE6B4"
  19547. }, {
  19548. "font_class": "fire",
  19549. "unicode": "\uE6A1"
  19550. }, {
  19551. "font_class": "fire-filled",
  19552. "unicode": "\uE6C5"
  19553. }, {
  19554. "font_class": "flag",
  19555. "unicode": "\uE65F"
  19556. }, {
  19557. "font_class": "flag-filled",
  19558. "unicode": "\uE660"
  19559. }, {
  19560. "font_class": "folder-add",
  19561. "unicode": "\uE6A9"
  19562. }, {
  19563. "font_class": "folder-add-filled",
  19564. "unicode": "\uE6C8"
  19565. }, {
  19566. "font_class": "font",
  19567. "unicode": "\uE6A3"
  19568. }, {
  19569. "font_class": "forward",
  19570. "unicode": "\uE6BA"
  19571. }, {
  19572. "font_class": "gear",
  19573. "unicode": "\uE664"
  19574. }, {
  19575. "font_class": "gear-filled",
  19576. "unicode": "\uE661"
  19577. }, {
  19578. "font_class": "gift",
  19579. "unicode": "\uE6A4"
  19580. }, {
  19581. "font_class": "gift-filled",
  19582. "unicode": "\uE6C4"
  19583. }, {
  19584. "font_class": "hand-down",
  19585. "unicode": "\uE63D"
  19586. }, {
  19587. "font_class": "hand-down-filled",
  19588. "unicode": "\uE63C"
  19589. }, {
  19590. "font_class": "hand-up",
  19591. "unicode": "\uE63F"
  19592. }, {
  19593. "font_class": "hand-up-filled",
  19594. "unicode": "\uE63E"
  19595. }, {
  19596. "font_class": "headphones",
  19597. "unicode": "\uE630"
  19598. }, {
  19599. "font_class": "heart",
  19600. "unicode": "\uE639"
  19601. }, {
  19602. "font_class": "heart-filled",
  19603. "unicode": "\uE641"
  19604. }, {
  19605. "font_class": "help",
  19606. "unicode": "\uE679"
  19607. }, {
  19608. "font_class": "help-filled",
  19609. "unicode": "\uE674"
  19610. }, {
  19611. "font_class": "home",
  19612. "unicode": "\uE662"
  19613. }, {
  19614. "font_class": "home-filled",
  19615. "unicode": "\uE663"
  19616. }, {
  19617. "font_class": "image",
  19618. "unicode": "\uE670"
  19619. }, {
  19620. "font_class": "image-filled",
  19621. "unicode": "\uE678"
  19622. }, {
  19623. "font_class": "images",
  19624. "unicode": "\uE650"
  19625. }, {
  19626. "font_class": "images-filled",
  19627. "unicode": "\uE64B"
  19628. }, {
  19629. "font_class": "info",
  19630. "unicode": "\uE669"
  19631. }, {
  19632. "font_class": "info-filled",
  19633. "unicode": "\uE649"
  19634. }, {
  19635. "font_class": "left",
  19636. "unicode": "\uE6B7"
  19637. }, {
  19638. "font_class": "link",
  19639. "unicode": "\uE6A5"
  19640. }, {
  19641. "font_class": "list",
  19642. "unicode": "\uE644"
  19643. }, {
  19644. "font_class": "location",
  19645. "unicode": "\uE6AE"
  19646. }, {
  19647. "font_class": "location-filled",
  19648. "unicode": "\uE6AF"
  19649. }, {
  19650. "font_class": "locked",
  19651. "unicode": "\uE66B"
  19652. }, {
  19653. "font_class": "locked-filled",
  19654. "unicode": "\uE668"
  19655. }, {
  19656. "font_class": "loop",
  19657. "unicode": "\uE633"
  19658. }, {
  19659. "font_class": "mail-open",
  19660. "unicode": "\uE643"
  19661. }, {
  19662. "font_class": "mail-open-filled",
  19663. "unicode": "\uE63A"
  19664. }, {
  19665. "font_class": "map",
  19666. "unicode": "\uE667"
  19667. }, {
  19668. "font_class": "map-filled",
  19669. "unicode": "\uE666"
  19670. }, {
  19671. "font_class": "map-pin",
  19672. "unicode": "\uE6AD"
  19673. }, {
  19674. "font_class": "map-pin-ellipse",
  19675. "unicode": "\uE6AC"
  19676. }, {
  19677. "font_class": "medal",
  19678. "unicode": "\uE6A2"
  19679. }, {
  19680. "font_class": "medal-filled",
  19681. "unicode": "\uE6C3"
  19682. }, {
  19683. "font_class": "mic",
  19684. "unicode": "\uE671"
  19685. }, {
  19686. "font_class": "mic-filled",
  19687. "unicode": "\uE677"
  19688. }, {
  19689. "font_class": "micoff",
  19690. "unicode": "\uE67E"
  19691. }, {
  19692. "font_class": "micoff-filled",
  19693. "unicode": "\uE6B0"
  19694. }, {
  19695. "font_class": "minus",
  19696. "unicode": "\uE66F"
  19697. }, {
  19698. "font_class": "minus-filled",
  19699. "unicode": "\uE67D"
  19700. }, {
  19701. "font_class": "more",
  19702. "unicode": "\uE64D"
  19703. }, {
  19704. "font_class": "more-filled",
  19705. "unicode": "\uE64E"
  19706. }, {
  19707. "font_class": "navigate",
  19708. "unicode": "\uE66E"
  19709. }, {
  19710. "font_class": "navigate-filled",
  19711. "unicode": "\uE67A"
  19712. }, {
  19713. "font_class": "notification",
  19714. "unicode": "\uE6A6"
  19715. }, {
  19716. "font_class": "notification-filled",
  19717. "unicode": "\uE6C1"
  19718. }, {
  19719. "font_class": "paperclip",
  19720. "unicode": "\uE652"
  19721. }, {
  19722. "font_class": "paperplane",
  19723. "unicode": "\uE672"
  19724. }, {
  19725. "font_class": "paperplane-filled",
  19726. "unicode": "\uE675"
  19727. }, {
  19728. "font_class": "person",
  19729. "unicode": "\uE699"
  19730. }, {
  19731. "font_class": "person-filled",
  19732. "unicode": "\uE69D"
  19733. }, {
  19734. "font_class": "personadd",
  19735. "unicode": "\uE69F"
  19736. }, {
  19737. "font_class": "personadd-filled",
  19738. "unicode": "\uE698"
  19739. }, {
  19740. "font_class": "personadd-filled-copy",
  19741. "unicode": "\uE6D1"
  19742. }, {
  19743. "font_class": "phone",
  19744. "unicode": "\uE69C"
  19745. }, {
  19746. "font_class": "phone-filled",
  19747. "unicode": "\uE69B"
  19748. }, {
  19749. "font_class": "plus",
  19750. "unicode": "\uE676"
  19751. }, {
  19752. "font_class": "plus-filled",
  19753. "unicode": "\uE6C7"
  19754. }, {
  19755. "font_class": "plusempty",
  19756. "unicode": "\uE67B"
  19757. }, {
  19758. "font_class": "pulldown",
  19759. "unicode": "\uE632"
  19760. }, {
  19761. "font_class": "pyq",
  19762. "unicode": "\uE682"
  19763. }, {
  19764. "font_class": "qq",
  19765. "unicode": "\uE680"
  19766. }, {
  19767. "font_class": "redo",
  19768. "unicode": "\uE64A"
  19769. }, {
  19770. "font_class": "redo-filled",
  19771. "unicode": "\uE655"
  19772. }, {
  19773. "font_class": "refresh",
  19774. "unicode": "\uE657"
  19775. }, {
  19776. "font_class": "refresh-filled",
  19777. "unicode": "\uE656"
  19778. }, {
  19779. "font_class": "refreshempty",
  19780. "unicode": "\uE6BF"
  19781. }, {
  19782. "font_class": "reload",
  19783. "unicode": "\uE6B2"
  19784. }, {
  19785. "font_class": "right",
  19786. "unicode": "\uE6B5"
  19787. }, {
  19788. "font_class": "scan",
  19789. "unicode": "\uE62A"
  19790. }, {
  19791. "font_class": "search",
  19792. "unicode": "\uE654"
  19793. }, {
  19794. "font_class": "settings",
  19795. "unicode": "\uE653"
  19796. }, {
  19797. "font_class": "settings-filled",
  19798. "unicode": "\uE6CE"
  19799. }, {
  19800. "font_class": "shop",
  19801. "unicode": "\uE62F"
  19802. }, {
  19803. "font_class": "shop-filled",
  19804. "unicode": "\uE6CD"
  19805. }, {
  19806. "font_class": "smallcircle",
  19807. "unicode": "\uE67C"
  19808. }, {
  19809. "font_class": "smallcircle-filled",
  19810. "unicode": "\uE665"
  19811. }, {
  19812. "font_class": "sound",
  19813. "unicode": "\uE684"
  19814. }, {
  19815. "font_class": "sound-filled",
  19816. "unicode": "\uE686"
  19817. }, {
  19818. "font_class": "spinner-cycle",
  19819. "unicode": "\uE68A"
  19820. }, {
  19821. "font_class": "staff",
  19822. "unicode": "\uE6A7"
  19823. }, {
  19824. "font_class": "staff-filled",
  19825. "unicode": "\uE6CB"
  19826. }, {
  19827. "font_class": "star",
  19828. "unicode": "\uE688"
  19829. }, {
  19830. "font_class": "star-filled",
  19831. "unicode": "\uE68F"
  19832. }, {
  19833. "font_class": "starhalf",
  19834. "unicode": "\uE683"
  19835. }, {
  19836. "font_class": "trash",
  19837. "unicode": "\uE687"
  19838. }, {
  19839. "font_class": "trash-filled",
  19840. "unicode": "\uE685"
  19841. }, {
  19842. "font_class": "tune",
  19843. "unicode": "\uE6AA"
  19844. }, {
  19845. "font_class": "tune-filled",
  19846. "unicode": "\uE6CA"
  19847. }, {
  19848. "font_class": "undo",
  19849. "unicode": "\uE64F"
  19850. }, {
  19851. "font_class": "undo-filled",
  19852. "unicode": "\uE64C"
  19853. }, {
  19854. "font_class": "up",
  19855. "unicode": "\uE6B6"
  19856. }, {
  19857. "font_class": "top",
  19858. "unicode": "\uE6B6"
  19859. }, {
  19860. "font_class": "upload",
  19861. "unicode": "\uE690"
  19862. }, {
  19863. "font_class": "upload-filled",
  19864. "unicode": "\uE68E"
  19865. }, {
  19866. "font_class": "videocam",
  19867. "unicode": "\uE68C"
  19868. }, {
  19869. "font_class": "videocam-filled",
  19870. "unicode": "\uE689"
  19871. }, {
  19872. "font_class": "vip",
  19873. "unicode": "\uE6A8"
  19874. }, {
  19875. "font_class": "vip-filled",
  19876. "unicode": "\uE6C6"
  19877. }, {
  19878. "font_class": "wallet",
  19879. "unicode": "\uE6B1"
  19880. }, {
  19881. "font_class": "wallet-filled",
  19882. "unicode": "\uE6C2"
  19883. }, {
  19884. "font_class": "weibo",
  19885. "unicode": "\uE68B"
  19886. }, {
  19887. "font_class": "weixin",
  19888. "unicode": "\uE691"
  19889. }];
  19890. // export const fontData = JSON.parse<IconsDataItem>(fontDataJson)
  19891. exports.fontData = fontData;
  19892. /***/ }),
  19893. /* 284 */,
  19894. /* 285 */,
  19895. /* 286 */,
  19896. /* 287 */,
  19897. /* 288 */,
  19898. /* 289 */,
  19899. /* 290 */,
  19900. /* 291 */,
  19901. /* 292 */,
  19902. /* 293 */,
  19903. /* 294 */,
  19904. /* 295 */,
  19905. /* 296 */,
  19906. /* 297 */,
  19907. /* 298 */,
  19908. /* 299 */,
  19909. /* 300 */,
  19910. /* 301 */,
  19911. /* 302 */,
  19912. /* 303 */,
  19913. /* 304 */,
  19914. /* 305 */
  19915. /*!**********************************************************************************************!*\
  19916. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-popup/props.js ***!
  19917. \**********************************************************************************************/
  19918. /*! no static exports found */
  19919. /***/ (function(module, exports, __webpack_require__) {
  19920. "use strict";
  19921. /* WEBPACK VAR INJECTION */(function(uni) {
  19922. Object.defineProperty(exports, "__esModule", {
  19923. value: true
  19924. });
  19925. exports.default = void 0;
  19926. var _default = {
  19927. props: {
  19928. // 是否展示弹窗
  19929. show: {
  19930. type: Boolean,
  19931. default: uni.$u.props.popup.show
  19932. },
  19933. // 是否显示遮罩
  19934. overlay: {
  19935. type: Boolean,
  19936. default: uni.$u.props.popup.overlay
  19937. },
  19938. // 弹出的方向,可选值为 top bottom right left center
  19939. mode: {
  19940. type: String,
  19941. default: uni.$u.props.popup.mode
  19942. },
  19943. // 动画时长,单位ms
  19944. duration: {
  19945. type: [String, Number],
  19946. default: uni.$u.props.popup.duration
  19947. },
  19948. // 是否显示关闭图标
  19949. closeable: {
  19950. type: Boolean,
  19951. default: uni.$u.props.popup.closeable
  19952. },
  19953. // 自定义遮罩的样式
  19954. overlayStyle: {
  19955. type: [Object, String],
  19956. default: uni.$u.props.popup.overlayStyle
  19957. },
  19958. // 点击遮罩是否关闭弹窗
  19959. closeOnClickOverlay: {
  19960. type: Boolean,
  19961. default: uni.$u.props.popup.closeOnClickOverlay
  19962. },
  19963. // 层级
  19964. zIndex: {
  19965. type: [String, Number],
  19966. default: uni.$u.props.popup.zIndex
  19967. },
  19968. // 是否为iPhoneX留出底部安全距离
  19969. safeAreaInsetBottom: {
  19970. type: Boolean,
  19971. default: uni.$u.props.popup.safeAreaInsetBottom
  19972. },
  19973. // 是否留出顶部安全距离(状态栏高度)
  19974. safeAreaInsetTop: {
  19975. type: Boolean,
  19976. default: uni.$u.props.popup.safeAreaInsetTop
  19977. },
  19978. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  19979. closeIconPos: {
  19980. type: String,
  19981. default: uni.$u.props.popup.closeIconPos
  19982. },
  19983. // 是否显示圆角
  19984. round: {
  19985. type: [Boolean, String, Number],
  19986. default: uni.$u.props.popup.round
  19987. },
  19988. // mode=center,也即中部弹出时,是否使用缩放模式
  19989. zoom: {
  19990. type: Boolean,
  19991. default: uni.$u.props.popup.zoom
  19992. },
  19993. // 弹窗背景色,设置为transparent可去除白色背景
  19994. bgColor: {
  19995. type: String,
  19996. default: uni.$u.props.popup.bgColor
  19997. },
  19998. // 遮罩的透明度,0-1之间
  19999. overlayOpacity: {
  20000. type: [Number, String],
  20001. default: uni.$u.props.popup.overlayOpacity
  20002. }
  20003. }
  20004. };
  20005. exports.default = _default;
  20006. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20007. /***/ }),
  20008. /* 306 */,
  20009. /* 307 */,
  20010. /* 308 */,
  20011. /* 309 */,
  20012. /* 310 */,
  20013. /* 311 */,
  20014. /* 312 */,
  20015. /* 313 */
  20016. /*!*********************************************************************************************!*\
  20017. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-line/props.js ***!
  20018. \*********************************************************************************************/
  20019. /*! no static exports found */
  20020. /***/ (function(module, exports, __webpack_require__) {
  20021. "use strict";
  20022. /* WEBPACK VAR INJECTION */(function(uni) {
  20023. Object.defineProperty(exports, "__esModule", {
  20024. value: true
  20025. });
  20026. exports.default = void 0;
  20027. var _default = {
  20028. props: {
  20029. color: {
  20030. type: String,
  20031. default: uni.$u.props.line.color
  20032. },
  20033. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  20034. length: {
  20035. type: [String, Number],
  20036. default: uni.$u.props.line.length
  20037. },
  20038. // 线条方向,col-竖向,row-横向
  20039. direction: {
  20040. type: String,
  20041. default: uni.$u.props.line.direction
  20042. },
  20043. // 是否显示细边框
  20044. hairline: {
  20045. type: Boolean,
  20046. default: uni.$u.props.line.hairline
  20047. },
  20048. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  20049. margin: {
  20050. type: [String, Number],
  20051. default: uni.$u.props.line.margin
  20052. },
  20053. // 是否虚线,true-虚线,false-实线
  20054. dashed: {
  20055. type: Boolean,
  20056. default: uni.$u.props.line.dashed
  20057. }
  20058. }
  20059. };
  20060. exports.default = _default;
  20061. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20062. /***/ }),
  20063. /* 314 */,
  20064. /* 315 */,
  20065. /* 316 */,
  20066. /* 317 */,
  20067. /* 318 */,
  20068. /* 319 */,
  20069. /* 320 */,
  20070. /* 321 */
  20071. /*!*****************************************************************************************************!*\
  20072. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-loading-icon/props.js ***!
  20073. \*****************************************************************************************************/
  20074. /*! no static exports found */
  20075. /***/ (function(module, exports, __webpack_require__) {
  20076. "use strict";
  20077. /* WEBPACK VAR INJECTION */(function(uni) {
  20078. Object.defineProperty(exports, "__esModule", {
  20079. value: true
  20080. });
  20081. exports.default = void 0;
  20082. var _default = {
  20083. props: {
  20084. // 是否显示组件
  20085. show: {
  20086. type: Boolean,
  20087. default: uni.$u.props.loadingIcon.show
  20088. },
  20089. // 颜色
  20090. color: {
  20091. type: String,
  20092. default: uni.$u.props.loadingIcon.color
  20093. },
  20094. // 提示文字颜色
  20095. textColor: {
  20096. type: String,
  20097. default: uni.$u.props.loadingIcon.textColor
  20098. },
  20099. // 文字和图标是否垂直排列
  20100. vertical: {
  20101. type: Boolean,
  20102. default: uni.$u.props.loadingIcon.vertical
  20103. },
  20104. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  20105. mode: {
  20106. type: String,
  20107. default: uni.$u.props.loadingIcon.mode
  20108. },
  20109. // 图标大小,单位默认px
  20110. size: {
  20111. type: [String, Number],
  20112. default: uni.$u.props.loadingIcon.size
  20113. },
  20114. // 文字大小
  20115. textSize: {
  20116. type: [String, Number],
  20117. default: uni.$u.props.loadingIcon.textSize
  20118. },
  20119. // 文字内容
  20120. text: {
  20121. type: [String, Number],
  20122. default: uni.$u.props.loadingIcon.text
  20123. },
  20124. // 动画模式
  20125. timingFunction: {
  20126. type: String,
  20127. default: uni.$u.props.loadingIcon.timingFunction
  20128. },
  20129. // 动画执行周期时间
  20130. duration: {
  20131. type: [String, Number],
  20132. default: uni.$u.props.loadingIcon.duration
  20133. },
  20134. // mode=circle时的暗边颜色
  20135. inactiveColor: {
  20136. type: String,
  20137. default: uni.$u.props.loadingIcon.inactiveColor
  20138. }
  20139. }
  20140. };
  20141. exports.default = _default;
  20142. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20143. /***/ }),
  20144. /* 322 */,
  20145. /* 323 */,
  20146. /* 324 */,
  20147. /* 325 */,
  20148. /* 326 */,
  20149. /* 327 */,
  20150. /* 328 */,
  20151. /* 329 */,
  20152. /* 330 */,
  20153. /* 331 */,
  20154. /* 332 */,
  20155. /* 333 */,
  20156. /* 334 */,
  20157. /* 335 */,
  20158. /* 336 */
  20159. /*!************************************************************************************************!*\
  20160. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-overlay/props.js ***!
  20161. \************************************************************************************************/
  20162. /*! no static exports found */
  20163. /***/ (function(module, exports, __webpack_require__) {
  20164. "use strict";
  20165. /* WEBPACK VAR INJECTION */(function(uni) {
  20166. Object.defineProperty(exports, "__esModule", {
  20167. value: true
  20168. });
  20169. exports.default = void 0;
  20170. var _default = {
  20171. props: {
  20172. // 是否显示遮罩
  20173. show: {
  20174. type: Boolean,
  20175. default: uni.$u.props.overlay.show
  20176. },
  20177. // 层级z-index
  20178. zIndex: {
  20179. type: [String, Number],
  20180. default: uni.$u.props.overlay.zIndex
  20181. },
  20182. // 遮罩的过渡时间,单位为ms
  20183. duration: {
  20184. type: [String, Number],
  20185. default: uni.$u.props.overlay.duration
  20186. },
  20187. // 不透明度值,当做rgba的第四个参数
  20188. opacity: {
  20189. type: [String, Number],
  20190. default: uni.$u.props.overlay.opacity
  20191. }
  20192. }
  20193. };
  20194. exports.default = _default;
  20195. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20196. /***/ }),
  20197. /* 337 */,
  20198. /* 338 */,
  20199. /* 339 */,
  20200. /* 340 */,
  20201. /* 341 */,
  20202. /* 342 */,
  20203. /* 343 */,
  20204. /* 344 */
  20205. /*!***************************************************************************************************!*\
  20206. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-transition/props.js ***!
  20207. \***************************************************************************************************/
  20208. /*! no static exports found */
  20209. /***/ (function(module, exports, __webpack_require__) {
  20210. "use strict";
  20211. /* WEBPACK VAR INJECTION */(function(uni) {
  20212. Object.defineProperty(exports, "__esModule", {
  20213. value: true
  20214. });
  20215. exports.default = void 0;
  20216. var _default = {
  20217. props: {
  20218. // 是否展示组件
  20219. show: {
  20220. type: Boolean,
  20221. default: uni.$u.props.transition.show
  20222. },
  20223. // 使用的动画模式
  20224. mode: {
  20225. type: String,
  20226. default: uni.$u.props.transition.mode
  20227. },
  20228. // 动画的执行时间,单位ms
  20229. duration: {
  20230. type: [String, Number],
  20231. default: uni.$u.props.transition.duration
  20232. },
  20233. // 使用的动画过渡函数
  20234. timingFunction: {
  20235. type: String,
  20236. default: uni.$u.props.transition.timingFunction
  20237. }
  20238. }
  20239. };
  20240. exports.default = _default;
  20241. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20242. /***/ }),
  20243. /* 345 */
  20244. /*!********************************************************************************************************!*\
  20245. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-transition/transition.js ***!
  20246. \********************************************************************************************************/
  20247. /*! no static exports found */
  20248. /***/ (function(module, exports, __webpack_require__) {
  20249. "use strict";
  20250. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20251. Object.defineProperty(exports, "__esModule", {
  20252. value: true
  20253. });
  20254. exports.default = void 0;
  20255. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  20256. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  20257. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 346));
  20258. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  20259. var nextTick = function nextTick() {
  20260. return new Promise(function (resolve) {
  20261. return setTimeout(resolve, 1000 / 50);
  20262. });
  20263. };
  20264. // nvue动画模块实现细节抽离在外部文件
  20265. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  20266. var getClassNames = function getClassNames(name) {
  20267. return {
  20268. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  20269. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  20270. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  20271. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  20272. };
  20273. };
  20274. var _default = {
  20275. methods: {
  20276. // 组件被点击发出事件
  20277. clickHandler: function clickHandler() {
  20278. this.$emit('click');
  20279. },
  20280. // vue版本的组件进场处理
  20281. vueEnter: function vueEnter() {
  20282. var _this = this;
  20283. // 动画进入时的类名
  20284. var classNames = getClassNames(this.mode);
  20285. // 定义状态和发出动画进入前事件
  20286. this.status = 'enter';
  20287. this.$emit('beforeEnter');
  20288. this.inited = true;
  20289. this.display = true;
  20290. this.classes = classNames.enter;
  20291. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  20292. return _regenerator.default.wrap(function _callee$(_context) {
  20293. while (1) {
  20294. switch (_context.prev = _context.next) {
  20295. case 0:
  20296. // 标识动画尚未结束
  20297. _this.$emit('enter');
  20298. _this.transitionEnded = false;
  20299. // 组件动画进入后触发的事件
  20300. _this.$emit('afterEnter');
  20301. // 赋予组件enter-to类名
  20302. _this.classes = classNames['enter-to'];
  20303. case 4:
  20304. case "end":
  20305. return _context.stop();
  20306. }
  20307. }
  20308. }, _callee);
  20309. })));
  20310. },
  20311. // 动画离场处理
  20312. vueLeave: function vueLeave() {
  20313. var _this2 = this;
  20314. // 如果不是展示状态,无需执行逻辑
  20315. if (!this.display) return;
  20316. var classNames = getClassNames(this.mode);
  20317. // 标记离开状态和发出事件
  20318. this.status = 'leave';
  20319. this.$emit('beforeLeave');
  20320. // 获得类名
  20321. this.classes = classNames.leave;
  20322. this.$nextTick(function () {
  20323. // 动画正在离场的状态
  20324. _this2.transitionEnded = false;
  20325. _this2.$emit('leave');
  20326. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  20327. setTimeout(_this2.onTransitionEnd, _this2.duration);
  20328. _this2.classes = classNames['leave-to'];
  20329. });
  20330. },
  20331. // 完成过渡后触发
  20332. onTransitionEnd: function onTransitionEnd() {
  20333. // 如果已经是结束的状态,无需再处理
  20334. if (this.transitionEnded) return;
  20335. this.transitionEnded = true;
  20336. // 发出组件动画执行后的事件
  20337. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  20338. if (!this.show && this.display) {
  20339. this.display = false;
  20340. this.inited = false;
  20341. }
  20342. }
  20343. }
  20344. };
  20345. exports.default = _default;
  20346. /***/ }),
  20347. /* 346 */
  20348. /*!**********************************************************************************************************!*\
  20349. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  20350. \**********************************************************************************************************/
  20351. /*! no static exports found */
  20352. /***/ (function(module, exports, __webpack_require__) {
  20353. "use strict";
  20354. Object.defineProperty(exports, "__esModule", {
  20355. value: true
  20356. });
  20357. exports.default = void 0;
  20358. var _default = {
  20359. fade: {
  20360. enter: {
  20361. opacity: 0
  20362. },
  20363. 'enter-to': {
  20364. opacity: 1
  20365. },
  20366. leave: {
  20367. opacity: 1
  20368. },
  20369. 'leave-to': {
  20370. opacity: 0
  20371. }
  20372. },
  20373. 'fade-up': {
  20374. enter: {
  20375. opacity: 0,
  20376. transform: 'translateY(100%)'
  20377. },
  20378. 'enter-to': {
  20379. opacity: 1,
  20380. transform: 'translateY(0)'
  20381. },
  20382. leave: {
  20383. opacity: 1,
  20384. transform: 'translateY(0)'
  20385. },
  20386. 'leave-to': {
  20387. opacity: 0,
  20388. transform: 'translateY(100%)'
  20389. }
  20390. },
  20391. 'fade-down': {
  20392. enter: {
  20393. opacity: 0,
  20394. transform: 'translateY(-100%)'
  20395. },
  20396. 'enter-to': {
  20397. opacity: 1,
  20398. transform: 'translateY(0)'
  20399. },
  20400. leave: {
  20401. opacity: 1,
  20402. transform: 'translateY(0)'
  20403. },
  20404. 'leave-to': {
  20405. opacity: 0,
  20406. transform: 'translateY(-100%)'
  20407. }
  20408. },
  20409. 'fade-left': {
  20410. enter: {
  20411. opacity: 0,
  20412. transform: 'translateX(-100%)'
  20413. },
  20414. 'enter-to': {
  20415. opacity: 1,
  20416. transform: 'translateY(0)'
  20417. },
  20418. leave: {
  20419. opacity: 1,
  20420. transform: 'translateY(0)'
  20421. },
  20422. 'leave-to': {
  20423. opacity: 0,
  20424. transform: 'translateX(-100%)'
  20425. }
  20426. },
  20427. 'fade-right': {
  20428. enter: {
  20429. opacity: 0,
  20430. transform: 'translateX(100%)'
  20431. },
  20432. 'enter-to': {
  20433. opacity: 1,
  20434. transform: 'translateY(0)'
  20435. },
  20436. leave: {
  20437. opacity: 1,
  20438. transform: 'translateY(0)'
  20439. },
  20440. 'leave-to': {
  20441. opacity: 0,
  20442. transform: 'translateX(100%)'
  20443. }
  20444. },
  20445. 'slide-up': {
  20446. enter: {
  20447. transform: 'translateY(100%)'
  20448. },
  20449. 'enter-to': {
  20450. transform: 'translateY(0)'
  20451. },
  20452. leave: {
  20453. transform: 'translateY(0)'
  20454. },
  20455. 'leave-to': {
  20456. transform: 'translateY(100%)'
  20457. }
  20458. },
  20459. 'slide-down': {
  20460. enter: {
  20461. transform: 'translateY(-100%)'
  20462. },
  20463. 'enter-to': {
  20464. transform: 'translateY(0)'
  20465. },
  20466. leave: {
  20467. transform: 'translateY(0)'
  20468. },
  20469. 'leave-to': {
  20470. transform: 'translateY(-100%)'
  20471. }
  20472. },
  20473. 'slide-left': {
  20474. enter: {
  20475. transform: 'translateX(-100%)'
  20476. },
  20477. 'enter-to': {
  20478. transform: 'translateY(0)'
  20479. },
  20480. leave: {
  20481. transform: 'translateY(0)'
  20482. },
  20483. 'leave-to': {
  20484. transform: 'translateX(-100%)'
  20485. }
  20486. },
  20487. 'slide-right': {
  20488. enter: {
  20489. transform: 'translateX(100%)'
  20490. },
  20491. 'enter-to': {
  20492. transform: 'translateY(0)'
  20493. },
  20494. leave: {
  20495. transform: 'translateY(0)'
  20496. },
  20497. 'leave-to': {
  20498. transform: 'translateX(100%)'
  20499. }
  20500. },
  20501. zoom: {
  20502. enter: {
  20503. transform: 'scale(0.95)'
  20504. },
  20505. 'enter-to': {
  20506. transform: 'scale(1)'
  20507. },
  20508. leave: {
  20509. transform: 'scale(1)'
  20510. },
  20511. 'leave-to': {
  20512. transform: 'scale(0.95)'
  20513. }
  20514. },
  20515. 'fade-zoom': {
  20516. enter: {
  20517. opacity: 0,
  20518. transform: 'scale(0.95)'
  20519. },
  20520. 'enter-to': {
  20521. opacity: 1,
  20522. transform: 'scale(1)'
  20523. },
  20524. leave: {
  20525. opacity: 1,
  20526. transform: 'scale(1)'
  20527. },
  20528. 'leave-to': {
  20529. opacity: 0,
  20530. transform: 'scale(0.95)'
  20531. }
  20532. }
  20533. };
  20534. exports.default = _default;
  20535. /***/ }),
  20536. /* 347 */,
  20537. /* 348 */,
  20538. /* 349 */,
  20539. /* 350 */,
  20540. /* 351 */,
  20541. /* 352 */,
  20542. /* 353 */,
  20543. /* 354 */
  20544. /*!***************************************************************************************************!*\
  20545. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-status-bar/props.js ***!
  20546. \***************************************************************************************************/
  20547. /*! no static exports found */
  20548. /***/ (function(module, exports, __webpack_require__) {
  20549. "use strict";
  20550. /* WEBPACK VAR INJECTION */(function(uni) {
  20551. Object.defineProperty(exports, "__esModule", {
  20552. value: true
  20553. });
  20554. exports.default = void 0;
  20555. var _default = {
  20556. props: {
  20557. bgColor: {
  20558. type: String,
  20559. default: uni.$u.props.statusBar.bgColor
  20560. }
  20561. }
  20562. };
  20563. exports.default = _default;
  20564. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20565. /***/ }),
  20566. /* 355 */,
  20567. /* 356 */,
  20568. /* 357 */,
  20569. /* 358 */,
  20570. /* 359 */,
  20571. /* 360 */,
  20572. /* 361 */,
  20573. /* 362 */
  20574. /*!****************************************************************************************************!*\
  20575. !*** D:/baozhida/baozhida-monitoring-host/node_modules/uview-ui/components/u-safe-bottom/props.js ***!
  20576. \****************************************************************************************************/
  20577. /*! no static exports found */
  20578. /***/ (function(module, exports, __webpack_require__) {
  20579. "use strict";
  20580. Object.defineProperty(exports, "__esModule", {
  20581. value: true
  20582. });
  20583. exports.default = void 0;
  20584. var _default = {
  20585. props: {}
  20586. };
  20587. exports.default = _default;
  20588. /***/ })
  20589. ]]);
  20590. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map