vendor.js 658 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791
  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) {
  346. resolve(res);
  347. return;
  348. }
  349. if (res[0]) {
  350. reject(res[0]);
  351. } else {
  352. resolve(res[1]);
  353. }
  354. });
  355. });
  356. }
  357. };
  358. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  359. var CONTEXT_API_RE = /^create|Manager$/;
  360. // Context例外情况
  361. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  362. // 同步例外情况
  363. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  364. var CALLBACK_API_RE = /^on|^off/;
  365. function isContextApi(name) {
  366. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  367. }
  368. function isSyncApi(name) {
  369. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  370. }
  371. function isCallbackApi(name) {
  372. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  373. }
  374. function handlePromise(promise) {
  375. return promise.then(function (data) {
  376. return [null, data];
  377. }).catch(function (err) {
  378. return [err];
  379. });
  380. }
  381. function shouldPromise(name) {
  382. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  383. return false;
  384. }
  385. return true;
  386. }
  387. /* eslint-disable no-extend-native */
  388. if (!Promise.prototype.finally) {
  389. Promise.prototype.finally = function (callback) {
  390. var promise = this.constructor;
  391. return this.then(function (value) {
  392. return promise.resolve(callback()).then(function () {
  393. return value;
  394. });
  395. }, function (reason) {
  396. return promise.resolve(callback()).then(function () {
  397. throw reason;
  398. });
  399. });
  400. };
  401. }
  402. function promisify(name, api) {
  403. if (!shouldPromise(name) || !isFn(api)) {
  404. return api;
  405. }
  406. return function promiseApi() {
  407. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  408. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  409. params[_key2 - 1] = arguments[_key2];
  410. }
  411. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  412. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  413. }
  414. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  415. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  416. success: resolve,
  417. fail: reject
  418. })].concat(params));
  419. })));
  420. };
  421. }
  422. var EPS = 1e-4;
  423. var BASE_DEVICE_WIDTH = 750;
  424. var isIOS = false;
  425. var deviceWidth = 0;
  426. var deviceDPR = 0;
  427. function checkDeviceWidth() {
  428. var _Object$assign = Object.assign({}, wx.getWindowInfo(), {
  429. platform: wx.getDeviceInfo().platform
  430. }),
  431. windowWidth = _Object$assign.windowWidth,
  432. pixelRatio = _Object$assign.pixelRatio,
  433. platform = _Object$assign.platform; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  434. deviceWidth = windowWidth;
  435. deviceDPR = pixelRatio;
  436. isIOS = platform === 'ios';
  437. }
  438. function upx2px(number, newDeviceWidth) {
  439. if (deviceWidth === 0) {
  440. checkDeviceWidth();
  441. }
  442. number = Number(number);
  443. if (number === 0) {
  444. return 0;
  445. }
  446. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  447. if (result < 0) {
  448. result = -result;
  449. }
  450. result = Math.floor(result + EPS);
  451. if (result === 0) {
  452. if (deviceDPR === 1 || !isIOS) {
  453. result = 1;
  454. } else {
  455. result = 0.5;
  456. }
  457. }
  458. return number < 0 ? -result : result;
  459. }
  460. var LOCALE_ZH_HANS = 'zh-Hans';
  461. var LOCALE_ZH_HANT = 'zh-Hant';
  462. var LOCALE_EN = 'en';
  463. var LOCALE_FR = 'fr';
  464. var LOCALE_ES = 'es';
  465. var messages = {};
  466. var locale;
  467. {
  468. locale = normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN;
  469. }
  470. function initI18nMessages() {
  471. if (!isEnableLocale()) {
  472. return;
  473. }
  474. var localeKeys = Object.keys(__uniConfig.locales);
  475. if (localeKeys.length) {
  476. localeKeys.forEach(function (locale) {
  477. var curMessages = messages[locale];
  478. var userMessages = __uniConfig.locales[locale];
  479. if (curMessages) {
  480. Object.assign(curMessages, userMessages);
  481. } else {
  482. messages[locale] = userMessages;
  483. }
  484. });
  485. }
  486. }
  487. initI18nMessages();
  488. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  489. var t = i18n.t;
  490. var i18nMixin = i18n.mixin = {
  491. beforeCreate: function beforeCreate() {
  492. var _this = this;
  493. var unwatch = i18n.i18n.watchLocale(function () {
  494. _this.$forceUpdate();
  495. });
  496. this.$once('hook:beforeDestroy', function () {
  497. unwatch();
  498. });
  499. },
  500. methods: {
  501. $$t: function $$t(key, values) {
  502. return t(key, values);
  503. }
  504. }
  505. };
  506. var setLocale = i18n.setLocale;
  507. var getLocale = i18n.getLocale;
  508. function initAppLocale(Vue, appVm, locale) {
  509. var state = Vue.observable({
  510. locale: locale || i18n.getLocale()
  511. });
  512. var localeWatchers = [];
  513. appVm.$watchLocale = function (fn) {
  514. localeWatchers.push(fn);
  515. };
  516. Object.defineProperty(appVm, '$locale', {
  517. get: function get() {
  518. return state.locale;
  519. },
  520. set: function set(v) {
  521. state.locale = v;
  522. localeWatchers.forEach(function (watch) {
  523. return watch(v);
  524. });
  525. }
  526. });
  527. }
  528. function isEnableLocale() {
  529. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  530. }
  531. function include(str, parts) {
  532. return !!parts.find(function (part) {
  533. return str.indexOf(part) !== -1;
  534. });
  535. }
  536. function startsWith(str, parts) {
  537. return parts.find(function (part) {
  538. return str.indexOf(part) === 0;
  539. });
  540. }
  541. function normalizeLocale(locale, messages) {
  542. if (!locale) {
  543. return;
  544. }
  545. locale = locale.trim().replace(/_/g, '-');
  546. if (messages && messages[locale]) {
  547. return locale;
  548. }
  549. locale = locale.toLowerCase();
  550. if (locale === 'chinese') {
  551. // 支付宝
  552. return LOCALE_ZH_HANS;
  553. }
  554. if (locale.indexOf('zh') === 0) {
  555. if (locale.indexOf('-hans') > -1) {
  556. return LOCALE_ZH_HANS;
  557. }
  558. if (locale.indexOf('-hant') > -1) {
  559. return LOCALE_ZH_HANT;
  560. }
  561. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  562. return LOCALE_ZH_HANT;
  563. }
  564. return LOCALE_ZH_HANS;
  565. }
  566. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  567. if (lang) {
  568. return lang;
  569. }
  570. }
  571. // export function initI18n() {
  572. // const localeKeys = Object.keys(__uniConfig.locales || {})
  573. // if (localeKeys.length) {
  574. // localeKeys.forEach((locale) =>
  575. // i18n.add(locale, __uniConfig.locales[locale])
  576. // )
  577. // }
  578. // }
  579. function getLocale$1() {
  580. // 优先使用 $locale
  581. if (isFn(getApp)) {
  582. var app = getApp({
  583. allowDefault: true
  584. });
  585. if (app && app.$vm) {
  586. return app.$vm.$locale;
  587. }
  588. }
  589. return normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN;
  590. }
  591. function setLocale$1(locale) {
  592. var app = isFn(getApp) ? getApp() : false;
  593. if (!app) {
  594. return false;
  595. }
  596. var oldLocale = app.$vm.$locale;
  597. if (oldLocale !== locale) {
  598. app.$vm.$locale = locale;
  599. onLocaleChangeCallbacks.forEach(function (fn) {
  600. return fn({
  601. locale: locale
  602. });
  603. });
  604. return true;
  605. }
  606. return false;
  607. }
  608. var onLocaleChangeCallbacks = [];
  609. function onLocaleChange(fn) {
  610. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  611. onLocaleChangeCallbacks.push(fn);
  612. }
  613. }
  614. if (typeof global !== 'undefined') {
  615. global.getLocale = getLocale$1;
  616. }
  617. var interceptors = {
  618. promiseInterceptor: promiseInterceptor
  619. };
  620. var baseApi = /*#__PURE__*/Object.freeze({
  621. __proto__: null,
  622. upx2px: upx2px,
  623. rpx2px: upx2px,
  624. getLocale: getLocale$1,
  625. setLocale: setLocale$1,
  626. onLocaleChange: onLocaleChange,
  627. addInterceptor: addInterceptor,
  628. removeInterceptor: removeInterceptor,
  629. interceptors: interceptors
  630. });
  631. function findExistsPageIndex(url) {
  632. var pages = getCurrentPages();
  633. var len = pages.length;
  634. while (len--) {
  635. var page = pages[len];
  636. if (page.$page && page.$page.fullPath === url) {
  637. return len;
  638. }
  639. }
  640. return -1;
  641. }
  642. var redirectTo = {
  643. name: function name(fromArgs) {
  644. if (fromArgs.exists === 'back' && fromArgs.delta) {
  645. return 'navigateBack';
  646. }
  647. return 'redirectTo';
  648. },
  649. args: function args(fromArgs) {
  650. if (fromArgs.exists === 'back' && fromArgs.url) {
  651. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  652. if (existsPageIndex !== -1) {
  653. var delta = getCurrentPages().length - 1 - existsPageIndex;
  654. if (delta > 0) {
  655. fromArgs.delta = delta;
  656. }
  657. }
  658. }
  659. }
  660. };
  661. var previewImage = {
  662. args: function args(fromArgs) {
  663. var currentIndex = parseInt(fromArgs.current);
  664. if (isNaN(currentIndex)) {
  665. return;
  666. }
  667. var urls = fromArgs.urls;
  668. if (!Array.isArray(urls)) {
  669. return;
  670. }
  671. var len = urls.length;
  672. if (!len) {
  673. return;
  674. }
  675. if (currentIndex < 0) {
  676. currentIndex = 0;
  677. } else if (currentIndex >= len) {
  678. currentIndex = len - 1;
  679. }
  680. if (currentIndex > 0) {
  681. fromArgs.current = urls[currentIndex];
  682. fromArgs.urls = urls.filter(function (item, index) {
  683. return index < currentIndex ? item !== urls[currentIndex] : true;
  684. });
  685. } else {
  686. fromArgs.current = urls[0];
  687. }
  688. return {
  689. indicator: false,
  690. loop: false
  691. };
  692. }
  693. };
  694. var UUID_KEY = '__DC_STAT_UUID';
  695. var deviceId;
  696. function useDeviceId(result) {
  697. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  698. if (!deviceId) {
  699. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  700. wx.setStorage({
  701. key: UUID_KEY,
  702. data: deviceId
  703. });
  704. }
  705. result.deviceId = deviceId;
  706. }
  707. function addSafeAreaInsets(result) {
  708. if (result.safeArea) {
  709. var safeArea = result.safeArea;
  710. result.safeAreaInsets = {
  711. top: safeArea.top,
  712. left: safeArea.left,
  713. right: result.windowWidth - safeArea.right,
  714. bottom: result.screenHeight - safeArea.bottom
  715. };
  716. }
  717. }
  718. function populateParameters(result) {
  719. var _result$brand = result.brand,
  720. brand = _result$brand === void 0 ? '' : _result$brand,
  721. _result$model = result.model,
  722. model = _result$model === void 0 ? '' : _result$model,
  723. _result$system = result.system,
  724. system = _result$system === void 0 ? '' : _result$system,
  725. _result$language = result.language,
  726. language = _result$language === void 0 ? '' : _result$language,
  727. theme = result.theme,
  728. version = result.version,
  729. platform = result.platform,
  730. fontSizeSetting = result.fontSizeSetting,
  731. SDKVersion = result.SDKVersion,
  732. pixelRatio = result.pixelRatio,
  733. deviceOrientation = result.deviceOrientation;
  734. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  735. var extraParam = {};
  736. // osName osVersion
  737. var osName = '';
  738. var osVersion = '';
  739. {
  740. osName = system.split(' ')[0] || '';
  741. osVersion = system.split(' ')[1] || '';
  742. }
  743. var hostVersion = version;
  744. // deviceType
  745. var deviceType = getGetDeviceType(result, model);
  746. // deviceModel
  747. var deviceBrand = getDeviceBrand(brand);
  748. // hostName
  749. var _hostName = getHostName(result);
  750. // deviceOrientation
  751. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  752. // devicePixelRatio
  753. var _devicePixelRatio = pixelRatio;
  754. // SDKVersion
  755. var _SDKVersion = SDKVersion;
  756. // hostLanguage
  757. var hostLanguage = (language || '').replace(/_/g, '-');
  758. // wx.getAccountInfoSync
  759. var parameters = {
  760. appId: "__UNI__3D28200",
  761. appName: "baozhida-figure-platter",
  762. appVersion: "1.0.0",
  763. appVersionCode: "100",
  764. appLanguage: getAppLanguage(hostLanguage),
  765. uniCompileVersion: "4.45",
  766. uniCompilerVersion: "4.45",
  767. uniRuntimeVersion: "4.45",
  768. uniPlatform: undefined || "mp-weixin",
  769. deviceBrand: deviceBrand,
  770. deviceModel: model,
  771. deviceType: deviceType,
  772. devicePixelRatio: _devicePixelRatio,
  773. deviceOrientation: _deviceOrientation,
  774. osName: osName.toLocaleLowerCase(),
  775. osVersion: osVersion,
  776. hostTheme: theme,
  777. hostVersion: hostVersion,
  778. hostLanguage: hostLanguage,
  779. hostName: _hostName,
  780. hostSDKVersion: _SDKVersion,
  781. hostFontSizeSetting: fontSizeSetting,
  782. windowTop: 0,
  783. windowBottom: 0,
  784. // TODO
  785. osLanguage: undefined,
  786. osTheme: undefined,
  787. ua: undefined,
  788. hostPackageName: undefined,
  789. browserName: undefined,
  790. browserVersion: undefined,
  791. isUniAppX: false
  792. };
  793. Object.assign(result, parameters, extraParam);
  794. }
  795. function getGetDeviceType(result, model) {
  796. var deviceType = result.deviceType || 'phone';
  797. {
  798. var deviceTypeMaps = {
  799. ipad: 'pad',
  800. windows: 'pc',
  801. mac: 'pc'
  802. };
  803. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  804. var _model = model.toLocaleLowerCase();
  805. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  806. var _m = deviceTypeMapsKeys[index];
  807. if (_model.indexOf(_m) !== -1) {
  808. deviceType = deviceTypeMaps[_m];
  809. break;
  810. }
  811. }
  812. }
  813. return deviceType;
  814. }
  815. function getDeviceBrand(brand) {
  816. var deviceBrand = brand;
  817. if (deviceBrand) {
  818. deviceBrand = brand.toLocaleLowerCase();
  819. }
  820. return deviceBrand;
  821. }
  822. function getAppLanguage(defaultLanguage) {
  823. return getLocale$1 ? getLocale$1() : defaultLanguage;
  824. }
  825. function getHostName(result) {
  826. var _platform = 'WeChat';
  827. var _hostName = result.hostName || _platform; // mp-jd
  828. {
  829. if (result.environment) {
  830. _hostName = result.environment;
  831. } else if (result.host && result.host.env) {
  832. _hostName = result.host.env;
  833. }
  834. }
  835. return _hostName;
  836. }
  837. var getSystemInfo = {
  838. returnValue: function returnValue(result) {
  839. useDeviceId(result);
  840. addSafeAreaInsets(result);
  841. populateParameters(result);
  842. }
  843. };
  844. var showActionSheet = {
  845. args: function args(fromArgs) {
  846. if ((0, _typeof2.default)(fromArgs) === 'object') {
  847. fromArgs.alertText = fromArgs.title;
  848. }
  849. }
  850. };
  851. var getAppBaseInfo = {
  852. returnValue: function returnValue(result) {
  853. var _result = result,
  854. version = _result.version,
  855. language = _result.language,
  856. SDKVersion = _result.SDKVersion,
  857. theme = _result.theme;
  858. var _hostName = getHostName(result);
  859. var hostLanguage = (language || '').replace('_', '-');
  860. result = sortObject(Object.assign(result, {
  861. appId: "__UNI__3D28200",
  862. appName: "baozhida-figure-platter",
  863. appVersion: "1.0.0",
  864. appVersionCode: "100",
  865. appLanguage: getAppLanguage(hostLanguage),
  866. hostVersion: version,
  867. hostLanguage: hostLanguage,
  868. hostName: _hostName,
  869. hostSDKVersion: SDKVersion,
  870. hostTheme: theme,
  871. isUniAppX: false,
  872. uniPlatform: undefined || "mp-weixin",
  873. uniCompileVersion: "4.45",
  874. uniCompilerVersion: "4.45",
  875. uniRuntimeVersion: "4.45"
  876. }));
  877. }
  878. };
  879. var getDeviceInfo = {
  880. returnValue: function returnValue(result) {
  881. var _result2 = result,
  882. brand = _result2.brand,
  883. model = _result2.model;
  884. var deviceType = getGetDeviceType(result, model);
  885. var deviceBrand = getDeviceBrand(brand);
  886. useDeviceId(result);
  887. result = sortObject(Object.assign(result, {
  888. deviceType: deviceType,
  889. deviceBrand: deviceBrand,
  890. deviceModel: model
  891. }));
  892. }
  893. };
  894. var getWindowInfo = {
  895. returnValue: function returnValue(result) {
  896. addSafeAreaInsets(result);
  897. result = sortObject(Object.assign(result, {
  898. windowTop: 0,
  899. windowBottom: 0
  900. }));
  901. }
  902. };
  903. var getAppAuthorizeSetting = {
  904. returnValue: function returnValue(result) {
  905. var locationReducedAccuracy = result.locationReducedAccuracy;
  906. result.locationAccuracy = 'unsupported';
  907. if (locationReducedAccuracy === true) {
  908. result.locationAccuracy = 'reduced';
  909. } else if (locationReducedAccuracy === false) {
  910. result.locationAccuracy = 'full';
  911. }
  912. }
  913. };
  914. // import navigateTo from 'uni-helpers/navigate-to'
  915. var compressImage = {
  916. args: function args(fromArgs) {
  917. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  918. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  919. fromArgs.compressHeight = fromArgs.compressedHeight;
  920. }
  921. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  922. fromArgs.compressWidth = fromArgs.compressedWidth;
  923. }
  924. }
  925. };
  926. var protocols = {
  927. redirectTo: redirectTo,
  928. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  929. previewImage: previewImage,
  930. getSystemInfo: getSystemInfo,
  931. getSystemInfoSync: getSystemInfo,
  932. showActionSheet: showActionSheet,
  933. getAppBaseInfo: getAppBaseInfo,
  934. getDeviceInfo: getDeviceInfo,
  935. getWindowInfo: getWindowInfo,
  936. getAppAuthorizeSetting: getAppAuthorizeSetting,
  937. compressImage: compressImage
  938. };
  939. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  940. var canIUses = [];
  941. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  942. function processCallback(methodName, method, returnValue) {
  943. return function (res) {
  944. return method(processReturnValue(methodName, res, returnValue));
  945. };
  946. }
  947. function processArgs(methodName, fromArgs) {
  948. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  949. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  950. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  951. if (isPlainObject(fromArgs)) {
  952. // 一般 api 的参数解析
  953. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  954. if (isFn(argsOption)) {
  955. argsOption = argsOption(fromArgs, toArgs) || {};
  956. }
  957. for (var key in fromArgs) {
  958. if (hasOwn(argsOption, key)) {
  959. var keyOption = argsOption[key];
  960. if (isFn(keyOption)) {
  961. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  962. }
  963. if (!keyOption) {
  964. // 不支持的参数
  965. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  966. } else if (isStr(keyOption)) {
  967. // 重写参数 key
  968. toArgs[keyOption] = fromArgs[key];
  969. } else if (isPlainObject(keyOption)) {
  970. // {name:newName,value:value}可重新指定参数 key:value
  971. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  972. }
  973. } else if (CALLBACKS.indexOf(key) !== -1) {
  974. if (isFn(fromArgs[key])) {
  975. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  976. }
  977. } else {
  978. if (!keepFromArgs) {
  979. toArgs[key] = fromArgs[key];
  980. }
  981. }
  982. }
  983. return toArgs;
  984. } else if (isFn(fromArgs)) {
  985. fromArgs = processCallback(methodName, fromArgs, returnValue);
  986. }
  987. return fromArgs;
  988. }
  989. function processReturnValue(methodName, res, returnValue) {
  990. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  991. if (isFn(protocols.returnValue)) {
  992. // 处理通用 returnValue
  993. res = protocols.returnValue(methodName, res);
  994. }
  995. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  996. }
  997. function wrapper(methodName, method) {
  998. if (hasOwn(protocols, methodName)) {
  999. var protocol = protocols[methodName];
  1000. if (!protocol) {
  1001. // 暂不支持的 api
  1002. return function () {
  1003. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1004. };
  1005. }
  1006. return function (arg1, arg2) {
  1007. // 目前 api 最多两个参数
  1008. var options = protocol;
  1009. if (isFn(protocol)) {
  1010. options = protocol(arg1);
  1011. }
  1012. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1013. var args = [arg1];
  1014. if (typeof arg2 !== 'undefined') {
  1015. args.push(arg2);
  1016. }
  1017. if (isFn(options.name)) {
  1018. methodName = options.name(arg1);
  1019. } else if (isStr(options.name)) {
  1020. methodName = options.name;
  1021. }
  1022. var returnValue = wx[methodName].apply(wx, args);
  1023. if (isSyncApi(methodName)) {
  1024. // 同步 api
  1025. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1026. }
  1027. return returnValue;
  1028. };
  1029. }
  1030. return method;
  1031. }
  1032. var todoApis = Object.create(null);
  1033. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1034. function createTodoApi(name) {
  1035. return function todoApi(_ref) {
  1036. var fail = _ref.fail,
  1037. complete = _ref.complete;
  1038. var res = {
  1039. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1040. };
  1041. isFn(fail) && fail(res);
  1042. isFn(complete) && complete(res);
  1043. };
  1044. }
  1045. TODOS.forEach(function (name) {
  1046. todoApis[name] = createTodoApi(name);
  1047. });
  1048. var providers = {
  1049. oauth: ['weixin'],
  1050. share: ['weixin'],
  1051. payment: ['wxpay'],
  1052. push: ['weixin']
  1053. };
  1054. function getProvider(_ref2) {
  1055. var service = _ref2.service,
  1056. success = _ref2.success,
  1057. fail = _ref2.fail,
  1058. complete = _ref2.complete;
  1059. var res = false;
  1060. if (providers[service]) {
  1061. res = {
  1062. errMsg: 'getProvider:ok',
  1063. service: service,
  1064. provider: providers[service]
  1065. };
  1066. isFn(success) && success(res);
  1067. } else {
  1068. res = {
  1069. errMsg: 'getProvider:fail service not found'
  1070. };
  1071. isFn(fail) && fail(res);
  1072. }
  1073. isFn(complete) && complete(res);
  1074. }
  1075. var extraApi = /*#__PURE__*/Object.freeze({
  1076. __proto__: null,
  1077. getProvider: getProvider
  1078. });
  1079. var getEmitter = function () {
  1080. var Emitter;
  1081. return function getUniEmitter() {
  1082. if (!Emitter) {
  1083. Emitter = new _vue.default();
  1084. }
  1085. return Emitter;
  1086. };
  1087. }();
  1088. function apply(ctx, method, args) {
  1089. return ctx[method].apply(ctx, args);
  1090. }
  1091. function $on() {
  1092. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1093. }
  1094. function $off() {
  1095. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1096. }
  1097. function $once() {
  1098. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1099. }
  1100. function $emit() {
  1101. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1102. }
  1103. var eventApi = /*#__PURE__*/Object.freeze({
  1104. __proto__: null,
  1105. $on: $on,
  1106. $off: $off,
  1107. $once: $once,
  1108. $emit: $emit
  1109. });
  1110. /**
  1111. * 框架内 try-catch
  1112. */
  1113. /**
  1114. * 开发者 try-catch
  1115. */
  1116. function tryCatch(fn) {
  1117. return function () {
  1118. try {
  1119. return fn.apply(fn, arguments);
  1120. } catch (e) {
  1121. // TODO
  1122. console.error(e);
  1123. }
  1124. };
  1125. }
  1126. function getApiCallbacks(params) {
  1127. var apiCallbacks = {};
  1128. for (var name in params) {
  1129. var param = params[name];
  1130. if (isFn(param)) {
  1131. apiCallbacks[name] = tryCatch(param);
  1132. delete params[name];
  1133. }
  1134. }
  1135. return apiCallbacks;
  1136. }
  1137. var cid;
  1138. var cidErrMsg;
  1139. var enabled;
  1140. function normalizePushMessage(message) {
  1141. try {
  1142. return JSON.parse(message);
  1143. } catch (e) {}
  1144. return message;
  1145. }
  1146. function invokePushCallback(args) {
  1147. if (args.type === 'enabled') {
  1148. enabled = true;
  1149. } else if (args.type === 'clientId') {
  1150. cid = args.cid;
  1151. cidErrMsg = args.errMsg;
  1152. invokeGetPushCidCallbacks(cid, args.errMsg);
  1153. } else if (args.type === 'pushMsg') {
  1154. var message = {
  1155. type: 'receive',
  1156. data: normalizePushMessage(args.message)
  1157. };
  1158. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1159. var callback = onPushMessageCallbacks[i];
  1160. callback(message);
  1161. // 该消息已被阻止
  1162. if (message.stopped) {
  1163. break;
  1164. }
  1165. }
  1166. } else if (args.type === 'click') {
  1167. onPushMessageCallbacks.forEach(function (callback) {
  1168. callback({
  1169. type: 'click',
  1170. data: normalizePushMessage(args.message)
  1171. });
  1172. });
  1173. }
  1174. }
  1175. var getPushCidCallbacks = [];
  1176. function invokeGetPushCidCallbacks(cid, errMsg) {
  1177. getPushCidCallbacks.forEach(function (callback) {
  1178. callback(cid, errMsg);
  1179. });
  1180. getPushCidCallbacks.length = 0;
  1181. }
  1182. function getPushClientId(args) {
  1183. if (!isPlainObject(args)) {
  1184. args = {};
  1185. }
  1186. var _getApiCallbacks = getApiCallbacks(args),
  1187. success = _getApiCallbacks.success,
  1188. fail = _getApiCallbacks.fail,
  1189. complete = _getApiCallbacks.complete;
  1190. var hasSuccess = isFn(success);
  1191. var hasFail = isFn(fail);
  1192. var hasComplete = isFn(complete);
  1193. Promise.resolve().then(function () {
  1194. if (typeof enabled === 'undefined') {
  1195. enabled = false;
  1196. cid = '';
  1197. cidErrMsg = 'uniPush is not enabled';
  1198. }
  1199. getPushCidCallbacks.push(function (cid, errMsg) {
  1200. var res;
  1201. if (cid) {
  1202. res = {
  1203. errMsg: 'getPushClientId:ok',
  1204. cid: cid
  1205. };
  1206. hasSuccess && success(res);
  1207. } else {
  1208. res = {
  1209. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1210. };
  1211. hasFail && fail(res);
  1212. }
  1213. hasComplete && complete(res);
  1214. });
  1215. if (typeof cid !== 'undefined') {
  1216. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1217. }
  1218. });
  1219. }
  1220. var onPushMessageCallbacks = [];
  1221. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1222. var onPushMessage = function onPushMessage(fn) {
  1223. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1224. onPushMessageCallbacks.push(fn);
  1225. }
  1226. };
  1227. var offPushMessage = function offPushMessage(fn) {
  1228. if (!fn) {
  1229. onPushMessageCallbacks.length = 0;
  1230. } else {
  1231. var index = onPushMessageCallbacks.indexOf(fn);
  1232. if (index > -1) {
  1233. onPushMessageCallbacks.splice(index, 1);
  1234. }
  1235. }
  1236. };
  1237. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1238. if (!baseInfo) {
  1239. baseInfo = wx.getSystemInfoSync();
  1240. }
  1241. var host = baseInfo ? baseInfo.host : null;
  1242. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1243. var api = /*#__PURE__*/Object.freeze({
  1244. __proto__: null,
  1245. shareVideoMessage: shareVideoMessage,
  1246. getPushClientId: getPushClientId,
  1247. onPushMessage: onPushMessage,
  1248. offPushMessage: offPushMessage,
  1249. invokePushCallback: invokePushCallback
  1250. });
  1251. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1252. function findVmByVueId(vm, vuePid) {
  1253. var $children = vm.$children;
  1254. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1255. for (var i = $children.length - 1; i >= 0; i--) {
  1256. var childVm = $children[i];
  1257. if (childVm.$scope._$vueId === vuePid) {
  1258. return childVm;
  1259. }
  1260. }
  1261. // 反向递归查找
  1262. var parentVm;
  1263. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1264. parentVm = findVmByVueId($children[_i], vuePid);
  1265. if (parentVm) {
  1266. return parentVm;
  1267. }
  1268. }
  1269. }
  1270. function initBehavior(options) {
  1271. return Behavior(options);
  1272. }
  1273. function isPage() {
  1274. return !!this.route;
  1275. }
  1276. function initRelation(detail) {
  1277. this.triggerEvent('__l', detail);
  1278. }
  1279. function selectAllComponents(mpInstance, selector, $refs) {
  1280. var components = mpInstance.selectAllComponents(selector) || [];
  1281. components.forEach(function (component) {
  1282. var ref = component.dataset.ref;
  1283. $refs[ref] = component.$vm || toSkip(component);
  1284. {
  1285. if (component.dataset.vueGeneric === 'scoped') {
  1286. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1287. selectAllComponents(scopedComponent, selector, $refs);
  1288. });
  1289. }
  1290. }
  1291. });
  1292. }
  1293. function syncRefs(refs, newRefs) {
  1294. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1295. var newKeys = Object.keys(newRefs);
  1296. newKeys.forEach(function (key) {
  1297. var oldValue = refs[key];
  1298. var newValue = newRefs[key];
  1299. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1300. return oldValue.includes(value);
  1301. })) {
  1302. return;
  1303. }
  1304. refs[key] = newValue;
  1305. oldKeys.delete(key);
  1306. });
  1307. oldKeys.forEach(function (key) {
  1308. delete refs[key];
  1309. });
  1310. return refs;
  1311. }
  1312. function initRefs(vm) {
  1313. var mpInstance = vm.$scope;
  1314. var refs = {};
  1315. Object.defineProperty(vm, '$refs', {
  1316. get: function get() {
  1317. var $refs = {};
  1318. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1319. // TODO 暂不考虑 for 中的 scoped
  1320. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1321. forComponents.forEach(function (component) {
  1322. var ref = component.dataset.ref;
  1323. if (!$refs[ref]) {
  1324. $refs[ref] = [];
  1325. }
  1326. $refs[ref].push(component.$vm || toSkip(component));
  1327. });
  1328. return syncRefs(refs, $refs);
  1329. }
  1330. });
  1331. }
  1332. function handleLink(event) {
  1333. var _ref3 = event.detail || event.value,
  1334. vuePid = _ref3.vuePid,
  1335. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1336. var parentVm;
  1337. if (vuePid) {
  1338. parentVm = findVmByVueId(this.$vm, vuePid);
  1339. }
  1340. if (!parentVm) {
  1341. parentVm = this.$vm;
  1342. }
  1343. vueOptions.parent = parentVm;
  1344. }
  1345. function markMPComponent(component) {
  1346. // 在 Vue 中标记为小程序组件
  1347. var IS_MP = '__v_isMPComponent';
  1348. Object.defineProperty(component, IS_MP, {
  1349. configurable: true,
  1350. enumerable: false,
  1351. value: true
  1352. });
  1353. return component;
  1354. }
  1355. function toSkip(obj) {
  1356. var OB = '__ob__';
  1357. var SKIP = '__v_skip';
  1358. if (isObject(obj) && Object.isExtensible(obj)) {
  1359. // 避免被 @vue/composition-api 观测
  1360. Object.defineProperty(obj, OB, {
  1361. configurable: true,
  1362. enumerable: false,
  1363. value: (0, _defineProperty2.default)({}, SKIP, true)
  1364. });
  1365. }
  1366. return obj;
  1367. }
  1368. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1369. function initWorkletMethods(mpMethods, vueMethods) {
  1370. if (vueMethods) {
  1371. Object.keys(vueMethods).forEach(function (name) {
  1372. var matches = name.match(WORKLET_RE);
  1373. if (matches) {
  1374. var workletName = matches[1];
  1375. mpMethods[name] = vueMethods[name];
  1376. mpMethods[workletName] = vueMethods[workletName];
  1377. }
  1378. });
  1379. }
  1380. }
  1381. var MPPage = Page;
  1382. var MPComponent = Component;
  1383. var customizeRE = /:/g;
  1384. var customize = cached(function (str) {
  1385. return camelize(str.replace(customizeRE, '-'));
  1386. });
  1387. function initTriggerEvent(mpInstance) {
  1388. var oldTriggerEvent = mpInstance.triggerEvent;
  1389. var newTriggerEvent = function newTriggerEvent(event) {
  1390. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1391. args[_key3 - 1] = arguments[_key3];
  1392. }
  1393. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1394. if (this.$vm || this.dataset && this.dataset.comType) {
  1395. event = customize(event);
  1396. } else {
  1397. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1398. var newEvent = customize(event);
  1399. if (newEvent !== event) {
  1400. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1401. }
  1402. }
  1403. return oldTriggerEvent.apply(this, [event].concat(args));
  1404. };
  1405. try {
  1406. // 京东小程序 triggerEvent 为只读
  1407. mpInstance.triggerEvent = newTriggerEvent;
  1408. } catch (error) {
  1409. mpInstance._triggerEvent = newTriggerEvent;
  1410. }
  1411. }
  1412. function initHook(name, options, isComponent) {
  1413. var oldHook = options[name];
  1414. options[name] = function () {
  1415. markMPComponent(this);
  1416. initTriggerEvent(this);
  1417. if (oldHook) {
  1418. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1419. args[_key4] = arguments[_key4];
  1420. }
  1421. return oldHook.apply(this, args);
  1422. }
  1423. };
  1424. }
  1425. if (!MPPage.__$wrappered) {
  1426. MPPage.__$wrappered = true;
  1427. Page = function Page() {
  1428. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1429. initHook('onLoad', options);
  1430. return MPPage(options);
  1431. };
  1432. Page.after = MPPage.after;
  1433. Component = function Component() {
  1434. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1435. initHook('created', options);
  1436. return MPComponent(options);
  1437. };
  1438. }
  1439. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1440. function initMocks(vm, mocks) {
  1441. var mpInstance = vm.$mp[vm.mpType];
  1442. mocks.forEach(function (mock) {
  1443. if (hasOwn(mpInstance, mock)) {
  1444. vm[mock] = mpInstance[mock];
  1445. }
  1446. });
  1447. }
  1448. function hasHook(hook, vueOptions) {
  1449. if (!vueOptions) {
  1450. return true;
  1451. }
  1452. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1453. return true;
  1454. }
  1455. vueOptions = vueOptions.default || vueOptions;
  1456. if (isFn(vueOptions)) {
  1457. if (isFn(vueOptions.extendOptions[hook])) {
  1458. return true;
  1459. }
  1460. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1461. return true;
  1462. }
  1463. return false;
  1464. }
  1465. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1466. return true;
  1467. }
  1468. var mixins = vueOptions.mixins;
  1469. if (Array.isArray(mixins)) {
  1470. return !!mixins.find(function (mixin) {
  1471. return hasHook(hook, mixin);
  1472. });
  1473. }
  1474. }
  1475. function initHooks(mpOptions, hooks, vueOptions) {
  1476. hooks.forEach(function (hook) {
  1477. if (hasHook(hook, vueOptions)) {
  1478. mpOptions[hook] = function (args) {
  1479. return this.$vm && this.$vm.__call_hook(hook, args);
  1480. };
  1481. }
  1482. });
  1483. }
  1484. function initUnknownHooks(mpOptions, vueOptions) {
  1485. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1486. findHooks(vueOptions).forEach(function (hook) {
  1487. return initHook$1(mpOptions, hook, excludes);
  1488. });
  1489. }
  1490. function findHooks(vueOptions) {
  1491. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1492. if (vueOptions) {
  1493. Object.keys(vueOptions).forEach(function (name) {
  1494. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1495. hooks.push(name);
  1496. }
  1497. });
  1498. }
  1499. return hooks;
  1500. }
  1501. function initHook$1(mpOptions, hook, excludes) {
  1502. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1503. mpOptions[hook] = function (args) {
  1504. return this.$vm && this.$vm.__call_hook(hook, args);
  1505. };
  1506. }
  1507. }
  1508. function initVueComponent(Vue, vueOptions) {
  1509. vueOptions = vueOptions.default || vueOptions;
  1510. var VueComponent;
  1511. if (isFn(vueOptions)) {
  1512. VueComponent = vueOptions;
  1513. } else {
  1514. VueComponent = Vue.extend(vueOptions);
  1515. }
  1516. vueOptions = VueComponent.options;
  1517. return [VueComponent, vueOptions];
  1518. }
  1519. function initSlots(vm, vueSlots) {
  1520. if (Array.isArray(vueSlots) && vueSlots.length) {
  1521. var $slots = Object.create(null);
  1522. vueSlots.forEach(function (slotName) {
  1523. $slots[slotName] = true;
  1524. });
  1525. vm.$scopedSlots = vm.$slots = $slots;
  1526. }
  1527. }
  1528. function initVueIds(vueIds, mpInstance) {
  1529. vueIds = (vueIds || '').split(',');
  1530. var len = vueIds.length;
  1531. if (len === 1) {
  1532. mpInstance._$vueId = vueIds[0];
  1533. } else if (len === 2) {
  1534. mpInstance._$vueId = vueIds[0];
  1535. mpInstance._$vuePid = vueIds[1];
  1536. }
  1537. }
  1538. function initData(vueOptions, context) {
  1539. var data = vueOptions.data || {};
  1540. var methods = vueOptions.methods || {};
  1541. if (typeof data === 'function') {
  1542. try {
  1543. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1544. } catch (e) {
  1545. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-figure-platter","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1546. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1547. }
  1548. }
  1549. } else {
  1550. try {
  1551. // 对 data 格式化
  1552. data = JSON.parse(JSON.stringify(data));
  1553. } catch (e) {}
  1554. }
  1555. if (!isPlainObject(data)) {
  1556. data = {};
  1557. }
  1558. Object.keys(methods).forEach(function (methodName) {
  1559. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1560. data[methodName] = methods[methodName];
  1561. }
  1562. });
  1563. return data;
  1564. }
  1565. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1566. function createObserver(name) {
  1567. return function observer(newVal, oldVal) {
  1568. if (this.$vm) {
  1569. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1570. }
  1571. };
  1572. }
  1573. function initBehaviors(vueOptions, initBehavior) {
  1574. var vueBehaviors = vueOptions.behaviors;
  1575. var vueExtends = vueOptions.extends;
  1576. var vueMixins = vueOptions.mixins;
  1577. var vueProps = vueOptions.props;
  1578. if (!vueProps) {
  1579. vueOptions.props = vueProps = [];
  1580. }
  1581. var behaviors = [];
  1582. if (Array.isArray(vueBehaviors)) {
  1583. vueBehaviors.forEach(function (behavior) {
  1584. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1585. if (behavior === 'uni://form-field') {
  1586. if (Array.isArray(vueProps)) {
  1587. vueProps.push('name');
  1588. vueProps.push('value');
  1589. } else {
  1590. vueProps.name = {
  1591. type: String,
  1592. default: ''
  1593. };
  1594. vueProps.value = {
  1595. type: [String, Number, Boolean, Array, Object, Date],
  1596. default: ''
  1597. };
  1598. }
  1599. }
  1600. });
  1601. }
  1602. if (isPlainObject(vueExtends) && vueExtends.props) {
  1603. behaviors.push(initBehavior({
  1604. properties: initProperties(vueExtends.props, true)
  1605. }));
  1606. }
  1607. if (Array.isArray(vueMixins)) {
  1608. vueMixins.forEach(function (vueMixin) {
  1609. if (isPlainObject(vueMixin) && vueMixin.props) {
  1610. behaviors.push(initBehavior({
  1611. properties: initProperties(vueMixin.props, true)
  1612. }));
  1613. }
  1614. });
  1615. }
  1616. return behaviors;
  1617. }
  1618. function parsePropType(key, type, defaultValue, file) {
  1619. // [String]=>String
  1620. if (Array.isArray(type) && type.length === 1) {
  1621. return type[0];
  1622. }
  1623. return type;
  1624. }
  1625. function initProperties(props) {
  1626. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1627. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1628. var options = arguments.length > 3 ? arguments[3] : undefined;
  1629. var properties = {};
  1630. if (!isBehavior) {
  1631. properties.vueId = {
  1632. type: String,
  1633. value: ''
  1634. };
  1635. {
  1636. if (options.virtualHost) {
  1637. properties.virtualHostStyle = {
  1638. type: null,
  1639. value: ''
  1640. };
  1641. properties.virtualHostClass = {
  1642. type: null,
  1643. value: ''
  1644. };
  1645. }
  1646. }
  1647. // scopedSlotsCompiler auto
  1648. properties.scopedSlotsCompiler = {
  1649. type: String,
  1650. value: ''
  1651. };
  1652. properties.vueSlots = {
  1653. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1654. type: null,
  1655. value: [],
  1656. observer: function observer(newVal, oldVal) {
  1657. var $slots = Object.create(null);
  1658. newVal.forEach(function (slotName) {
  1659. $slots[slotName] = true;
  1660. });
  1661. this.setData({
  1662. $slots: $slots
  1663. });
  1664. }
  1665. };
  1666. }
  1667. if (Array.isArray(props)) {
  1668. // ['title']
  1669. props.forEach(function (key) {
  1670. properties[key] = {
  1671. type: null,
  1672. observer: createObserver(key)
  1673. };
  1674. });
  1675. } else if (isPlainObject(props)) {
  1676. // {title:{type:String,default:''},content:String}
  1677. Object.keys(props).forEach(function (key) {
  1678. var opts = props[key];
  1679. if (isPlainObject(opts)) {
  1680. // title:{type:String,default:''}
  1681. var value = opts.default;
  1682. if (isFn(value)) {
  1683. value = value();
  1684. }
  1685. opts.type = parsePropType(key, opts.type);
  1686. properties[key] = {
  1687. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1688. value: value,
  1689. observer: createObserver(key)
  1690. };
  1691. } else {
  1692. // content:String
  1693. var type = parsePropType(key, opts);
  1694. properties[key] = {
  1695. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1696. observer: createObserver(key)
  1697. };
  1698. }
  1699. });
  1700. }
  1701. return properties;
  1702. }
  1703. function wrapper$1(event) {
  1704. // TODO 又得兼容 mpvue 的 mp 对象
  1705. try {
  1706. event.mp = JSON.parse(JSON.stringify(event));
  1707. } catch (e) {}
  1708. event.stopPropagation = noop;
  1709. event.preventDefault = noop;
  1710. event.target = event.target || {};
  1711. if (!hasOwn(event, 'detail')) {
  1712. event.detail = {};
  1713. }
  1714. if (hasOwn(event, 'markerId')) {
  1715. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1716. event.detail.markerId = event.markerId;
  1717. }
  1718. if (isPlainObject(event.detail)) {
  1719. event.target = Object.assign({}, event.target, event.detail);
  1720. }
  1721. return event;
  1722. }
  1723. function getExtraValue(vm, dataPathsArray) {
  1724. var context = vm;
  1725. dataPathsArray.forEach(function (dataPathArray) {
  1726. var dataPath = dataPathArray[0];
  1727. var value = dataPathArray[2];
  1728. if (dataPath || typeof value !== 'undefined') {
  1729. // ['','',index,'disable']
  1730. var propPath = dataPathArray[1];
  1731. var valuePath = dataPathArray[3];
  1732. var vFor;
  1733. if (Number.isInteger(dataPath)) {
  1734. vFor = dataPath;
  1735. } else if (!dataPath) {
  1736. vFor = context;
  1737. } else if (typeof dataPath === 'string' && dataPath) {
  1738. if (dataPath.indexOf('#s#') === 0) {
  1739. vFor = dataPath.substr(3);
  1740. } else {
  1741. vFor = vm.__get_value(dataPath, context);
  1742. }
  1743. }
  1744. if (Number.isInteger(vFor)) {
  1745. context = value;
  1746. } else if (!propPath) {
  1747. context = vFor[value];
  1748. } else {
  1749. if (Array.isArray(vFor)) {
  1750. context = vFor.find(function (vForItem) {
  1751. return vm.__get_value(propPath, vForItem) === value;
  1752. });
  1753. } else if (isPlainObject(vFor)) {
  1754. context = Object.keys(vFor).find(function (vForKey) {
  1755. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1756. });
  1757. } else {
  1758. console.error('v-for 暂不支持循环数据:', vFor);
  1759. }
  1760. }
  1761. if (valuePath) {
  1762. context = vm.__get_value(valuePath, context);
  1763. }
  1764. }
  1765. });
  1766. return context;
  1767. }
  1768. function processEventExtra(vm, extra, event, __args__) {
  1769. var extraObj = {};
  1770. if (Array.isArray(extra) && extra.length) {
  1771. /**
  1772. *[
  1773. * ['data.items', 'data.id', item.data.id],
  1774. * ['metas', 'id', meta.id]
  1775. *],
  1776. *[
  1777. * ['data.items', 'data.id', item.data.id],
  1778. * ['metas', 'id', meta.id]
  1779. *],
  1780. *'test'
  1781. */
  1782. extra.forEach(function (dataPath, index) {
  1783. if (typeof dataPath === 'string') {
  1784. if (!dataPath) {
  1785. // model,prop.sync
  1786. extraObj['$' + index] = vm;
  1787. } else {
  1788. if (dataPath === '$event') {
  1789. // $event
  1790. extraObj['$' + index] = event;
  1791. } else if (dataPath === 'arguments') {
  1792. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1793. } else if (dataPath.indexOf('$event.') === 0) {
  1794. // $event.target.value
  1795. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1796. } else {
  1797. extraObj['$' + index] = vm.__get_value(dataPath);
  1798. }
  1799. }
  1800. } else {
  1801. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1802. }
  1803. });
  1804. }
  1805. return extraObj;
  1806. }
  1807. function getObjByArray(arr) {
  1808. var obj = {};
  1809. for (var i = 1; i < arr.length; i++) {
  1810. var element = arr[i];
  1811. obj[element[0]] = element[1];
  1812. }
  1813. return obj;
  1814. }
  1815. function processEventArgs(vm, event) {
  1816. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1817. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1818. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1819. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1820. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1821. // fixed 用户直接触发 mpInstance.triggerEvent
  1822. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1823. if (isCustom) {
  1824. // 自定义事件
  1825. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1826. if (!args.length) {
  1827. // 无参数,直接传入 event 或 detail 数组
  1828. if (isCustomMPEvent) {
  1829. return [event];
  1830. }
  1831. return __args__;
  1832. }
  1833. }
  1834. var extraObj = processEventExtra(vm, extra, event, __args__);
  1835. var ret = [];
  1836. args.forEach(function (arg) {
  1837. if (arg === '$event') {
  1838. if (methodName === '__set_model' && !isCustom) {
  1839. // input v-model value
  1840. ret.push(event.target.value);
  1841. } else {
  1842. if (isCustom && !isCustomMPEvent) {
  1843. ret.push(__args__[0]);
  1844. } else {
  1845. // wxcomponent 组件或内置组件
  1846. ret.push(event);
  1847. }
  1848. }
  1849. } else {
  1850. if (Array.isArray(arg) && arg[0] === 'o') {
  1851. ret.push(getObjByArray(arg));
  1852. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1853. ret.push(extraObj[arg]);
  1854. } else {
  1855. ret.push(arg);
  1856. }
  1857. }
  1858. });
  1859. return ret;
  1860. }
  1861. var ONCE = '~';
  1862. var CUSTOM = '^';
  1863. function isMatchEventType(eventType, optType) {
  1864. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1865. }
  1866. function getContextVm(vm) {
  1867. var $parent = vm.$parent;
  1868. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1869. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1870. $parent = $parent.$parent;
  1871. }
  1872. return $parent && $parent.$parent;
  1873. }
  1874. function handleEvent(event) {
  1875. var _this2 = this;
  1876. event = wrapper$1(event);
  1877. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1878. var dataset = (event.currentTarget || event.target).dataset;
  1879. if (!dataset) {
  1880. return console.warn('事件信息不存在');
  1881. }
  1882. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1883. if (!eventOpts) {
  1884. return console.warn('事件信息不存在');
  1885. }
  1886. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1887. var eventType = event.type;
  1888. var ret = [];
  1889. eventOpts.forEach(function (eventOpt) {
  1890. var type = eventOpt[0];
  1891. var eventsArray = eventOpt[1];
  1892. var isCustom = type.charAt(0) === CUSTOM;
  1893. type = isCustom ? type.slice(1) : type;
  1894. var isOnce = type.charAt(0) === ONCE;
  1895. type = isOnce ? type.slice(1) : type;
  1896. if (eventsArray && isMatchEventType(eventType, type)) {
  1897. eventsArray.forEach(function (eventArray) {
  1898. var methodName = eventArray[0];
  1899. if (methodName) {
  1900. var handlerCtx = _this2.$vm;
  1901. if (handlerCtx.$options.generic) {
  1902. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1903. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1904. }
  1905. if (methodName === '$emit') {
  1906. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1907. return;
  1908. }
  1909. var handler = handlerCtx[methodName];
  1910. if (!isFn(handler)) {
  1911. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1912. var path = _this2.route || _this2.is;
  1913. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1914. }
  1915. if (isOnce) {
  1916. if (handler.once) {
  1917. return;
  1918. }
  1919. handler.once = true;
  1920. }
  1921. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1922. params = Array.isArray(params) ? params : [];
  1923. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1924. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1925. // eslint-disable-next-line no-sparse-arrays
  1926. params = params.concat([,,,,,,,,,, event]);
  1927. }
  1928. ret.push(handler.apply(handlerCtx, params));
  1929. }
  1930. });
  1931. }
  1932. });
  1933. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1934. return ret[0];
  1935. }
  1936. }
  1937. var eventChannels = {};
  1938. function getEventChannel(id) {
  1939. var eventChannel = eventChannels[id];
  1940. delete eventChannels[id];
  1941. return eventChannel;
  1942. }
  1943. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1944. function initEventChannel() {
  1945. _vue.default.prototype.getOpenerEventChannel = function () {
  1946. // 微信小程序使用自身getOpenerEventChannel
  1947. {
  1948. return this.$scope.getOpenerEventChannel();
  1949. }
  1950. };
  1951. var callHook = _vue.default.prototype.__call_hook;
  1952. _vue.default.prototype.__call_hook = function (hook, args) {
  1953. if (hook === 'onLoad' && args && args.__id__) {
  1954. this.__eventChannel__ = getEventChannel(args.__id__);
  1955. delete args.__id__;
  1956. }
  1957. return callHook.call(this, hook, args);
  1958. };
  1959. }
  1960. function initScopedSlotsParams() {
  1961. var center = {};
  1962. var parents = {};
  1963. function currentId(fn) {
  1964. var vueIds = this.$options.propsData.vueId;
  1965. if (vueIds) {
  1966. var vueId = vueIds.split(',')[0];
  1967. fn(vueId);
  1968. }
  1969. }
  1970. _vue.default.prototype.$hasSSP = function (vueId) {
  1971. var slot = center[vueId];
  1972. if (!slot) {
  1973. parents[vueId] = this;
  1974. this.$on('hook:destroyed', function () {
  1975. delete parents[vueId];
  1976. });
  1977. }
  1978. return slot;
  1979. };
  1980. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1981. var slot = center[vueId];
  1982. if (slot) {
  1983. var params = slot[name] || [];
  1984. if (needAll) {
  1985. return params;
  1986. }
  1987. return params[0];
  1988. }
  1989. };
  1990. _vue.default.prototype.$setSSP = function (name, value) {
  1991. var index = 0;
  1992. currentId.call(this, function (vueId) {
  1993. var slot = center[vueId];
  1994. var params = slot[name] = slot[name] || [];
  1995. params.push(value);
  1996. index = params.length - 1;
  1997. });
  1998. return index;
  1999. };
  2000. _vue.default.prototype.$initSSP = function () {
  2001. currentId.call(this, function (vueId) {
  2002. center[vueId] = {};
  2003. });
  2004. };
  2005. _vue.default.prototype.$callSSP = function () {
  2006. currentId.call(this, function (vueId) {
  2007. if (parents[vueId]) {
  2008. parents[vueId].$forceUpdate();
  2009. }
  2010. });
  2011. };
  2012. _vue.default.mixin({
  2013. destroyed: function destroyed() {
  2014. var propsData = this.$options.propsData;
  2015. var vueId = propsData && propsData.vueId;
  2016. if (vueId) {
  2017. delete center[vueId];
  2018. delete parents[vueId];
  2019. }
  2020. }
  2021. });
  2022. }
  2023. function parseBaseApp(vm, _ref4) {
  2024. var mocks = _ref4.mocks,
  2025. initRefs = _ref4.initRefs;
  2026. initEventChannel();
  2027. {
  2028. initScopedSlotsParams();
  2029. }
  2030. if (vm.$options.store) {
  2031. _vue.default.prototype.$store = vm.$options.store;
  2032. }
  2033. uniIdMixin(_vue.default);
  2034. _vue.default.prototype.mpHost = "mp-weixin";
  2035. _vue.default.mixin({
  2036. beforeCreate: function beforeCreate() {
  2037. if (!this.$options.mpType) {
  2038. return;
  2039. }
  2040. this.mpType = this.$options.mpType;
  2041. this.$mp = (0, _defineProperty2.default)({
  2042. data: {}
  2043. }, this.mpType, this.$options.mpInstance);
  2044. this.$scope = this.$options.mpInstance;
  2045. delete this.$options.mpType;
  2046. delete this.$options.mpInstance;
  2047. if (this.mpType === 'page' && typeof getApp === 'function') {
  2048. // hack vue-i18n
  2049. var app = getApp();
  2050. if (app.$vm && app.$vm.$i18n) {
  2051. this._i18n = app.$vm.$i18n;
  2052. }
  2053. }
  2054. if (this.mpType !== 'app') {
  2055. initRefs(this);
  2056. initMocks(this, mocks);
  2057. }
  2058. }
  2059. });
  2060. var appOptions = {
  2061. onLaunch: function onLaunch(args) {
  2062. if (this.$vm) {
  2063. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2064. return;
  2065. }
  2066. {
  2067. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2068. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2069. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2070. }
  2071. }
  2072. this.$vm = vm;
  2073. this.$vm.$mp = {
  2074. app: this
  2075. };
  2076. this.$vm.$scope = this;
  2077. // vm 上也挂载 globalData
  2078. this.$vm.globalData = this.globalData;
  2079. this.$vm._isMounted = true;
  2080. this.$vm.__call_hook('mounted', args);
  2081. this.$vm.__call_hook('onLaunch', args);
  2082. }
  2083. };
  2084. // 兼容旧版本 globalData
  2085. appOptions.globalData = vm.$options.globalData || {};
  2086. // 将 methods 中的方法挂在 getApp() 中
  2087. var methods = vm.$options.methods;
  2088. if (methods) {
  2089. Object.keys(methods).forEach(function (name) {
  2090. appOptions[name] = methods[name];
  2091. });
  2092. }
  2093. initAppLocale(_vue.default, vm, normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN);
  2094. initHooks(appOptions, hooks);
  2095. initUnknownHooks(appOptions, vm.$options);
  2096. return appOptions;
  2097. }
  2098. function parseApp(vm) {
  2099. return parseBaseApp(vm, {
  2100. mocks: mocks,
  2101. initRefs: initRefs
  2102. });
  2103. }
  2104. function createApp(vm) {
  2105. App(parseApp(vm));
  2106. return vm;
  2107. }
  2108. var encodeReserveRE = /[!'()*]/g;
  2109. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2110. return '%' + c.charCodeAt(0).toString(16);
  2111. };
  2112. var commaRE = /%2C/g;
  2113. // fixed encodeURIComponent which is more conformant to RFC3986:
  2114. // - escapes [!'()*]
  2115. // - preserve commas
  2116. var encode = function encode(str) {
  2117. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2118. };
  2119. function stringifyQuery(obj) {
  2120. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2121. var res = obj ? Object.keys(obj).map(function (key) {
  2122. var val = obj[key];
  2123. if (val === undefined) {
  2124. return '';
  2125. }
  2126. if (val === null) {
  2127. return encodeStr(key);
  2128. }
  2129. if (Array.isArray(val)) {
  2130. var result = [];
  2131. val.forEach(function (val2) {
  2132. if (val2 === undefined) {
  2133. return;
  2134. }
  2135. if (val2 === null) {
  2136. result.push(encodeStr(key));
  2137. } else {
  2138. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2139. }
  2140. });
  2141. return result.join('&');
  2142. }
  2143. return encodeStr(key) + '=' + encodeStr(val);
  2144. }).filter(function (x) {
  2145. return x.length > 0;
  2146. }).join('&') : null;
  2147. return res ? "?".concat(res) : '';
  2148. }
  2149. function parseBaseComponent(vueComponentOptions) {
  2150. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2151. isPage = _ref5.isPage,
  2152. initRelation = _ref5.initRelation;
  2153. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2154. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2155. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2156. VueComponent = _initVueComponent2[0],
  2157. vueOptions = _initVueComponent2[1];
  2158. var options = _objectSpread({
  2159. multipleSlots: true,
  2160. // styleIsolation: 'apply-shared',
  2161. addGlobalClass: true
  2162. }, vueOptions.options || {});
  2163. {
  2164. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2165. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2166. Object.assign(options, vueOptions['mp-weixin'].options);
  2167. }
  2168. }
  2169. var componentOptions = {
  2170. options: options,
  2171. data: initData(vueOptions, _vue.default.prototype),
  2172. behaviors: initBehaviors(vueOptions, initBehavior),
  2173. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2174. lifetimes: {
  2175. attached: function attached() {
  2176. var properties = this.properties;
  2177. var options = {
  2178. mpType: isPage.call(this) ? 'page' : 'component',
  2179. mpInstance: this,
  2180. propsData: properties
  2181. };
  2182. initVueIds(properties.vueId, this);
  2183. // 处理父子关系
  2184. initRelation.call(this, {
  2185. vuePid: this._$vuePid,
  2186. vueOptions: options
  2187. });
  2188. // 初始化 vue 实例
  2189. this.$vm = new VueComponent(options);
  2190. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2191. initSlots(this.$vm, properties.vueSlots);
  2192. // 触发首次 setData
  2193. this.$vm.$mount();
  2194. },
  2195. ready: function ready() {
  2196. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2197. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2198. if (this.$vm) {
  2199. this.$vm._isMounted = true;
  2200. this.$vm.__call_hook('mounted');
  2201. this.$vm.__call_hook('onReady');
  2202. }
  2203. },
  2204. detached: function detached() {
  2205. this.$vm && this.$vm.$destroy();
  2206. }
  2207. },
  2208. pageLifetimes: {
  2209. show: function show(args) {
  2210. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2211. },
  2212. hide: function hide() {
  2213. this.$vm && this.$vm.__call_hook('onPageHide');
  2214. },
  2215. resize: function resize(size) {
  2216. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2217. }
  2218. },
  2219. methods: {
  2220. __l: handleLink,
  2221. __e: handleEvent
  2222. }
  2223. };
  2224. // externalClasses
  2225. if (vueOptions.externalClasses) {
  2226. componentOptions.externalClasses = vueOptions.externalClasses;
  2227. }
  2228. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2229. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2230. componentOptions.methods[callMethod] = function (args) {
  2231. return this.$vm[callMethod](args);
  2232. };
  2233. });
  2234. }
  2235. if (needVueOptions) {
  2236. return [componentOptions, vueOptions, VueComponent];
  2237. }
  2238. if (isPage) {
  2239. return componentOptions;
  2240. }
  2241. return [componentOptions, VueComponent];
  2242. }
  2243. function parseComponent(vueComponentOptions, needVueOptions) {
  2244. return parseBaseComponent(vueComponentOptions, {
  2245. isPage: isPage,
  2246. initRelation: initRelation
  2247. }, needVueOptions);
  2248. }
  2249. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2250. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2251. function parseBasePage(vuePageOptions) {
  2252. var _parseComponent = parseComponent(vuePageOptions, true),
  2253. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2254. pageOptions = _parseComponent2[0],
  2255. vueOptions = _parseComponent2[1];
  2256. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2257. pageOptions.methods.onLoad = function (query) {
  2258. this.options = query;
  2259. var copyQuery = Object.assign({}, query);
  2260. delete copyQuery.__id__;
  2261. this.$page = {
  2262. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2263. };
  2264. this.$vm.$mp.query = query; // 兼容 mpvue
  2265. this.$vm.__call_hook('onLoad', query);
  2266. };
  2267. {
  2268. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2269. }
  2270. {
  2271. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2272. }
  2273. return pageOptions;
  2274. }
  2275. function parsePage(vuePageOptions) {
  2276. return parseBasePage(vuePageOptions);
  2277. }
  2278. function createPage(vuePageOptions) {
  2279. {
  2280. return Component(parsePage(vuePageOptions));
  2281. }
  2282. }
  2283. function createComponent(vueOptions) {
  2284. {
  2285. return Component(parseComponent(vueOptions));
  2286. }
  2287. }
  2288. function createSubpackageApp(vm) {
  2289. var appOptions = parseApp(vm);
  2290. var app = getApp({
  2291. allowDefault: true
  2292. });
  2293. vm.$scope = app;
  2294. var globalData = app.globalData;
  2295. if (globalData) {
  2296. Object.keys(appOptions.globalData).forEach(function (name) {
  2297. if (!hasOwn(globalData, name)) {
  2298. globalData[name] = appOptions.globalData[name];
  2299. }
  2300. });
  2301. }
  2302. Object.keys(appOptions).forEach(function (name) {
  2303. if (!hasOwn(app, name)) {
  2304. app[name] = appOptions[name];
  2305. }
  2306. });
  2307. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2308. wx.onAppShow(function () {
  2309. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2310. args[_key5] = arguments[_key5];
  2311. }
  2312. vm.__call_hook('onShow', args);
  2313. });
  2314. }
  2315. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2316. wx.onAppHide(function () {
  2317. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2318. args[_key6] = arguments[_key6];
  2319. }
  2320. vm.__call_hook('onHide', args);
  2321. });
  2322. }
  2323. if (isFn(appOptions.onLaunch)) {
  2324. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2325. vm.__call_hook('onLaunch', args);
  2326. }
  2327. return vm;
  2328. }
  2329. function createPlugin(vm) {
  2330. var appOptions = parseApp(vm);
  2331. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2332. wx.onAppShow(function () {
  2333. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2334. args[_key7] = arguments[_key7];
  2335. }
  2336. vm.__call_hook('onShow', args);
  2337. });
  2338. }
  2339. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2340. wx.onAppHide(function () {
  2341. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2342. args[_key8] = arguments[_key8];
  2343. }
  2344. vm.__call_hook('onHide', args);
  2345. });
  2346. }
  2347. if (isFn(appOptions.onLaunch)) {
  2348. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2349. vm.__call_hook('onLaunch', args);
  2350. }
  2351. return vm;
  2352. }
  2353. todos.forEach(function (todoApi) {
  2354. protocols[todoApi] = false;
  2355. });
  2356. canIUses.forEach(function (canIUseApi) {
  2357. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2358. if (!wx.canIUse(apiName)) {
  2359. protocols[canIUseApi] = false;
  2360. }
  2361. });
  2362. var uni = {};
  2363. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2364. uni = new Proxy({}, {
  2365. get: function get(target, name) {
  2366. if (hasOwn(target, name)) {
  2367. return target[name];
  2368. }
  2369. if (baseApi[name]) {
  2370. return baseApi[name];
  2371. }
  2372. if (api[name]) {
  2373. return promisify(name, api[name]);
  2374. }
  2375. {
  2376. if (extraApi[name]) {
  2377. return promisify(name, extraApi[name]);
  2378. }
  2379. if (todoApis[name]) {
  2380. return promisify(name, todoApis[name]);
  2381. }
  2382. }
  2383. if (eventApi[name]) {
  2384. return eventApi[name];
  2385. }
  2386. return promisify(name, wrapper(name, wx[name]));
  2387. },
  2388. set: function set(target, name, value) {
  2389. target[name] = value;
  2390. return true;
  2391. }
  2392. });
  2393. } else {
  2394. Object.keys(baseApi).forEach(function (name) {
  2395. uni[name] = baseApi[name];
  2396. });
  2397. {
  2398. Object.keys(todoApis).forEach(function (name) {
  2399. uni[name] = promisify(name, todoApis[name]);
  2400. });
  2401. Object.keys(extraApi).forEach(function (name) {
  2402. uni[name] = promisify(name, extraApi[name]);
  2403. });
  2404. }
  2405. Object.keys(eventApi).forEach(function (name) {
  2406. uni[name] = eventApi[name];
  2407. });
  2408. Object.keys(api).forEach(function (name) {
  2409. uni[name] = promisify(name, api[name]);
  2410. });
  2411. Object.keys(wx).forEach(function (name) {
  2412. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2413. uni[name] = promisify(name, wrapper(name, wx[name]));
  2414. }
  2415. });
  2416. }
  2417. wx.createApp = createApp;
  2418. wx.createPage = createPage;
  2419. wx.createComponent = createComponent;
  2420. wx.createSubpackageApp = createSubpackageApp;
  2421. wx.createPlugin = createPlugin;
  2422. var uni$1 = uni;
  2423. var _default = uni$1;
  2424. exports.default = _default;
  2425. /* 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)))
  2426. /***/ }),
  2427. /* 3 */
  2428. /*!***********************************!*\
  2429. !*** (webpack)/buildin/global.js ***!
  2430. \***********************************/
  2431. /*! no static exports found */
  2432. /***/ (function(module, exports) {
  2433. var g;
  2434. // This works in non-strict mode
  2435. g = (function() {
  2436. return this;
  2437. })();
  2438. try {
  2439. // This works if eval is allowed (see CSP)
  2440. g = g || new Function("return this")();
  2441. } catch (e) {
  2442. // This works if the window reference is available
  2443. if (typeof window === "object") g = window;
  2444. }
  2445. // g can still be undefined, but nothing to do about it...
  2446. // We return undefined, instead of nothing here, so it's
  2447. // easier to handle this case. if(!global) { ...}
  2448. module.exports = g;
  2449. /***/ }),
  2450. /* 4 */
  2451. /*!**********************************************************************!*\
  2452. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2453. \**********************************************************************/
  2454. /*! no static exports found */
  2455. /***/ (function(module, exports) {
  2456. function _interopRequireDefault(obj) {
  2457. return obj && obj.__esModule ? obj : {
  2458. "default": obj
  2459. };
  2460. }
  2461. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2462. /***/ }),
  2463. /* 5 */
  2464. /*!**************************************************************!*\
  2465. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2466. \**************************************************************/
  2467. /*! no static exports found */
  2468. /***/ (function(module, exports, __webpack_require__) {
  2469. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2470. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2471. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2472. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2473. function _slicedToArray(arr, i) {
  2474. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2475. }
  2476. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2477. /***/ }),
  2478. /* 6 */
  2479. /*!***************************************************************!*\
  2480. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2481. \***************************************************************/
  2482. /*! no static exports found */
  2483. /***/ (function(module, exports) {
  2484. function _arrayWithHoles(arr) {
  2485. if (Array.isArray(arr)) return arr;
  2486. }
  2487. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2488. /***/ }),
  2489. /* 7 */
  2490. /*!*********************************************************************!*\
  2491. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2492. \*********************************************************************/
  2493. /*! no static exports found */
  2494. /***/ (function(module, exports) {
  2495. function _iterableToArrayLimit(r, l) {
  2496. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2497. if (null != t) {
  2498. var e,
  2499. n,
  2500. i,
  2501. u,
  2502. a = [],
  2503. f = !0,
  2504. o = !1;
  2505. try {
  2506. if (i = (t = t.call(r)).next, 0 === l) {
  2507. if (Object(t) !== t) return;
  2508. f = !1;
  2509. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2510. ;
  2511. }
  2512. } catch (r) {
  2513. o = !0, n = r;
  2514. } finally {
  2515. try {
  2516. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2517. } finally {
  2518. if (o) throw n;
  2519. }
  2520. }
  2521. return a;
  2522. }
  2523. }
  2524. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2525. /***/ }),
  2526. /* 8 */
  2527. /*!***************************************************************************!*\
  2528. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2529. \***************************************************************************/
  2530. /*! no static exports found */
  2531. /***/ (function(module, exports, __webpack_require__) {
  2532. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2533. function _unsupportedIterableToArray(o, minLen) {
  2534. if (!o) return;
  2535. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2536. var n = Object.prototype.toString.call(o).slice(8, -1);
  2537. if (n === "Object" && o.constructor) n = o.constructor.name;
  2538. if (n === "Map" || n === "Set") return Array.from(o);
  2539. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2540. }
  2541. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2542. /***/ }),
  2543. /* 9 */
  2544. /*!*****************************************************************!*\
  2545. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2546. \*****************************************************************/
  2547. /*! no static exports found */
  2548. /***/ (function(module, exports) {
  2549. function _arrayLikeToArray(arr, len) {
  2550. if (len == null || len > arr.length) len = arr.length;
  2551. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2552. arr2[i] = arr[i];
  2553. }
  2554. return arr2;
  2555. }
  2556. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2557. /***/ }),
  2558. /* 10 */
  2559. /*!****************************************************************!*\
  2560. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2561. \****************************************************************/
  2562. /*! no static exports found */
  2563. /***/ (function(module, exports) {
  2564. function _nonIterableRest() {
  2565. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2566. }
  2567. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2568. /***/ }),
  2569. /* 11 */
  2570. /*!***************************************************************!*\
  2571. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2572. \***************************************************************/
  2573. /*! no static exports found */
  2574. /***/ (function(module, exports, __webpack_require__) {
  2575. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2576. function _defineProperty(obj, key, value) {
  2577. key = toPropertyKey(key);
  2578. if (key in obj) {
  2579. Object.defineProperty(obj, key, {
  2580. value: value,
  2581. enumerable: true,
  2582. configurable: true,
  2583. writable: true
  2584. });
  2585. } else {
  2586. obj[key] = value;
  2587. }
  2588. return obj;
  2589. }
  2590. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 12 */
  2593. /*!**************************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2595. \**************************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports, __webpack_require__) {
  2598. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2599. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2600. function toPropertyKey(t) {
  2601. var i = toPrimitive(t, "string");
  2602. return "symbol" == _typeof(i) ? i : i + "";
  2603. }
  2604. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2605. /***/ }),
  2606. /* 13 */
  2607. /*!*******************************************************!*\
  2608. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2609. \*******************************************************/
  2610. /*! no static exports found */
  2611. /***/ (function(module, exports) {
  2612. function _typeof(o) {
  2613. "@babel/helpers - typeof";
  2614. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2615. return typeof o;
  2616. } : function (o) {
  2617. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2618. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2619. }
  2620. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2621. /***/ }),
  2622. /* 14 */
  2623. /*!************************************************************!*\
  2624. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2625. \************************************************************/
  2626. /*! no static exports found */
  2627. /***/ (function(module, exports, __webpack_require__) {
  2628. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2629. function toPrimitive(t, r) {
  2630. if ("object" != _typeof(t) || !t) return t;
  2631. var e = t[Symbol.toPrimitive];
  2632. if (void 0 !== e) {
  2633. var i = e.call(t, r || "default");
  2634. if ("object" != _typeof(i)) return i;
  2635. throw new TypeError("@@toPrimitive must return a primitive value.");
  2636. }
  2637. return ("string" === r ? String : Number)(t);
  2638. }
  2639. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2640. /***/ }),
  2641. /* 15 */
  2642. /*!**********************************************************!*\
  2643. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2644. \**********************************************************/
  2645. /*! no static exports found */
  2646. /***/ (function(module, exports, __webpack_require__) {
  2647. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2648. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2649. function _construct(t, e, r) {
  2650. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2651. var o = [null];
  2652. o.push.apply(o, e);
  2653. var p = new (t.bind.apply(t, o))();
  2654. return r && setPrototypeOf(p, r.prototype), p;
  2655. }
  2656. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2657. /***/ }),
  2658. /* 16 */
  2659. /*!***************************************************************!*\
  2660. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2661. \***************************************************************/
  2662. /*! no static exports found */
  2663. /***/ (function(module, exports) {
  2664. function _setPrototypeOf(o, p) {
  2665. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2666. o.__proto__ = p;
  2667. return o;
  2668. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2669. return _setPrototypeOf(o, p);
  2670. }
  2671. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2672. /***/ }),
  2673. /* 17 */
  2674. /*!*************************************************************************!*\
  2675. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2676. \*************************************************************************/
  2677. /*! no static exports found */
  2678. /***/ (function(module, exports) {
  2679. function _isNativeReflectConstruct() {
  2680. try {
  2681. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2682. } catch (t) {}
  2683. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2684. return !!t;
  2685. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2686. }
  2687. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2688. /***/ }),
  2689. /* 18 */
  2690. /*!******************************************************************!*\
  2691. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2692. \******************************************************************/
  2693. /*! no static exports found */
  2694. /***/ (function(module, exports, __webpack_require__) {
  2695. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2696. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2697. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2698. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2699. function _toConsumableArray(arr) {
  2700. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2701. }
  2702. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2703. /***/ }),
  2704. /* 19 */
  2705. /*!******************************************************************!*\
  2706. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2707. \******************************************************************/
  2708. /*! no static exports found */
  2709. /***/ (function(module, exports, __webpack_require__) {
  2710. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2711. function _arrayWithoutHoles(arr) {
  2712. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2713. }
  2714. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2715. /***/ }),
  2716. /* 20 */
  2717. /*!****************************************************************!*\
  2718. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2719. \****************************************************************/
  2720. /*! no static exports found */
  2721. /***/ (function(module, exports) {
  2722. function _iterableToArray(iter) {
  2723. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2724. }
  2725. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2726. /***/ }),
  2727. /* 21 */
  2728. /*!******************************************************************!*\
  2729. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2730. \******************************************************************/
  2731. /*! no static exports found */
  2732. /***/ (function(module, exports) {
  2733. function _nonIterableSpread() {
  2734. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2735. }
  2736. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2737. /***/ }),
  2738. /* 22 */
  2739. /*!*************************************************************!*\
  2740. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2741. \*************************************************************/
  2742. /*! no static exports found */
  2743. /***/ (function(module, exports, __webpack_require__) {
  2744. "use strict";
  2745. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2746. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2747. Object.defineProperty(exports, "__esModule", {
  2748. value: true
  2749. });
  2750. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2751. exports.compileI18nJsonStr = compileI18nJsonStr;
  2752. exports.hasI18nJson = hasI18nJson;
  2753. exports.initVueI18n = initVueI18n;
  2754. exports.isI18nStr = isI18nStr;
  2755. exports.isString = void 0;
  2756. exports.normalizeLocale = normalizeLocale;
  2757. exports.parseI18nJson = parseI18nJson;
  2758. exports.resolveLocale = resolveLocale;
  2759. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2760. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2761. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2762. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2763. var isObject = function isObject(val) {
  2764. return val !== null && (0, _typeof2.default)(val) === 'object';
  2765. };
  2766. var defaultDelimiters = ['{', '}'];
  2767. var BaseFormatter = /*#__PURE__*/function () {
  2768. function BaseFormatter() {
  2769. (0, _classCallCheck2.default)(this, BaseFormatter);
  2770. this._caches = Object.create(null);
  2771. }
  2772. (0, _createClass2.default)(BaseFormatter, [{
  2773. key: "interpolate",
  2774. value: function interpolate(message, values) {
  2775. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2776. if (!values) {
  2777. return [message];
  2778. }
  2779. var tokens = this._caches[message];
  2780. if (!tokens) {
  2781. tokens = parse(message, delimiters);
  2782. this._caches[message] = tokens;
  2783. }
  2784. return compile(tokens, values);
  2785. }
  2786. }]);
  2787. return BaseFormatter;
  2788. }();
  2789. exports.Formatter = BaseFormatter;
  2790. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2791. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2792. function parse(format, _ref) {
  2793. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2794. startDelimiter = _ref2[0],
  2795. endDelimiter = _ref2[1];
  2796. var tokens = [];
  2797. var position = 0;
  2798. var text = '';
  2799. while (position < format.length) {
  2800. var char = format[position++];
  2801. if (char === startDelimiter) {
  2802. if (text) {
  2803. tokens.push({
  2804. type: 'text',
  2805. value: text
  2806. });
  2807. }
  2808. text = '';
  2809. var sub = '';
  2810. char = format[position++];
  2811. while (char !== undefined && char !== endDelimiter) {
  2812. sub += char;
  2813. char = format[position++];
  2814. }
  2815. var isClosed = char === endDelimiter;
  2816. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2817. tokens.push({
  2818. value: sub,
  2819. type: type
  2820. });
  2821. }
  2822. // else if (char === '%') {
  2823. // // when found rails i18n syntax, skip text capture
  2824. // if (format[position] !== '{') {
  2825. // text += char
  2826. // }
  2827. // }
  2828. else {
  2829. text += char;
  2830. }
  2831. }
  2832. text && tokens.push({
  2833. type: 'text',
  2834. value: text
  2835. });
  2836. return tokens;
  2837. }
  2838. function compile(tokens, values) {
  2839. var compiled = [];
  2840. var index = 0;
  2841. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2842. if (mode === 'unknown') {
  2843. return compiled;
  2844. }
  2845. while (index < tokens.length) {
  2846. var token = tokens[index];
  2847. switch (token.type) {
  2848. case 'text':
  2849. compiled.push(token.value);
  2850. break;
  2851. case 'list':
  2852. compiled.push(values[parseInt(token.value, 10)]);
  2853. break;
  2854. case 'named':
  2855. if (mode === 'named') {
  2856. compiled.push(values[token.value]);
  2857. } else {
  2858. if (true) {
  2859. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2860. }
  2861. }
  2862. break;
  2863. case 'unknown':
  2864. if (true) {
  2865. console.warn("Detect 'unknown' type of token!");
  2866. }
  2867. break;
  2868. }
  2869. index++;
  2870. }
  2871. return compiled;
  2872. }
  2873. var LOCALE_ZH_HANS = 'zh-Hans';
  2874. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2875. var LOCALE_ZH_HANT = 'zh-Hant';
  2876. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2877. var LOCALE_EN = 'en';
  2878. exports.LOCALE_EN = LOCALE_EN;
  2879. var LOCALE_FR = 'fr';
  2880. exports.LOCALE_FR = LOCALE_FR;
  2881. var LOCALE_ES = 'es';
  2882. exports.LOCALE_ES = LOCALE_ES;
  2883. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2884. var hasOwn = function hasOwn(val, key) {
  2885. return hasOwnProperty.call(val, key);
  2886. };
  2887. var defaultFormatter = new BaseFormatter();
  2888. function include(str, parts) {
  2889. return !!parts.find(function (part) {
  2890. return str.indexOf(part) !== -1;
  2891. });
  2892. }
  2893. function startsWith(str, parts) {
  2894. return parts.find(function (part) {
  2895. return str.indexOf(part) === 0;
  2896. });
  2897. }
  2898. function normalizeLocale(locale, messages) {
  2899. if (!locale) {
  2900. return;
  2901. }
  2902. locale = locale.trim().replace(/_/g, '-');
  2903. if (messages && messages[locale]) {
  2904. return locale;
  2905. }
  2906. locale = locale.toLowerCase();
  2907. if (locale === 'chinese') {
  2908. // 支付宝
  2909. return LOCALE_ZH_HANS;
  2910. }
  2911. if (locale.indexOf('zh') === 0) {
  2912. if (locale.indexOf('-hans') > -1) {
  2913. return LOCALE_ZH_HANS;
  2914. }
  2915. if (locale.indexOf('-hant') > -1) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2919. return LOCALE_ZH_HANT;
  2920. }
  2921. return LOCALE_ZH_HANS;
  2922. }
  2923. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2924. if (messages && Object.keys(messages).length > 0) {
  2925. locales = Object.keys(messages);
  2926. }
  2927. var lang = startsWith(locale, locales);
  2928. if (lang) {
  2929. return lang;
  2930. }
  2931. }
  2932. var I18n = /*#__PURE__*/function () {
  2933. function I18n(_ref3) {
  2934. var locale = _ref3.locale,
  2935. fallbackLocale = _ref3.fallbackLocale,
  2936. messages = _ref3.messages,
  2937. watcher = _ref3.watcher,
  2938. formater = _ref3.formater;
  2939. (0, _classCallCheck2.default)(this, I18n);
  2940. this.locale = LOCALE_EN;
  2941. this.fallbackLocale = LOCALE_EN;
  2942. this.message = {};
  2943. this.messages = {};
  2944. this.watchers = [];
  2945. if (fallbackLocale) {
  2946. this.fallbackLocale = fallbackLocale;
  2947. }
  2948. this.formater = formater || defaultFormatter;
  2949. this.messages = messages || {};
  2950. this.setLocale(locale || LOCALE_EN);
  2951. if (watcher) {
  2952. this.watchLocale(watcher);
  2953. }
  2954. }
  2955. (0, _createClass2.default)(I18n, [{
  2956. key: "setLocale",
  2957. value: function setLocale(locale) {
  2958. var _this = this;
  2959. var oldLocale = this.locale;
  2960. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2961. if (!this.messages[this.locale]) {
  2962. // 可能初始化时不存在
  2963. this.messages[this.locale] = {};
  2964. }
  2965. this.message = this.messages[this.locale];
  2966. // 仅发生变化时,通知
  2967. if (oldLocale !== this.locale) {
  2968. this.watchers.forEach(function (watcher) {
  2969. watcher(_this.locale, oldLocale);
  2970. });
  2971. }
  2972. }
  2973. }, {
  2974. key: "getLocale",
  2975. value: function getLocale() {
  2976. return this.locale;
  2977. }
  2978. }, {
  2979. key: "watchLocale",
  2980. value: function watchLocale(fn) {
  2981. var _this2 = this;
  2982. var index = this.watchers.push(fn) - 1;
  2983. return function () {
  2984. _this2.watchers.splice(index, 1);
  2985. };
  2986. }
  2987. }, {
  2988. key: "add",
  2989. value: function add(locale, message) {
  2990. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2991. var curMessages = this.messages[locale];
  2992. if (curMessages) {
  2993. if (override) {
  2994. Object.assign(curMessages, message);
  2995. } else {
  2996. Object.keys(message).forEach(function (key) {
  2997. if (!hasOwn(curMessages, key)) {
  2998. curMessages[key] = message[key];
  2999. }
  3000. });
  3001. }
  3002. } else {
  3003. this.messages[locale] = message;
  3004. }
  3005. }
  3006. }, {
  3007. key: "f",
  3008. value: function f(message, values, delimiters) {
  3009. return this.formater.interpolate(message, values, delimiters).join('');
  3010. }
  3011. }, {
  3012. key: "t",
  3013. value: function t(key, locale, values) {
  3014. var message = this.message;
  3015. if (typeof locale === 'string') {
  3016. locale = normalizeLocale(locale, this.messages);
  3017. locale && (message = this.messages[locale]);
  3018. } else {
  3019. values = locale;
  3020. }
  3021. if (!hasOwn(message, key)) {
  3022. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3023. return key;
  3024. }
  3025. return this.formater.interpolate(message[key], values).join('');
  3026. }
  3027. }]);
  3028. return I18n;
  3029. }();
  3030. exports.I18n = I18n;
  3031. function watchAppLocale(appVm, i18n) {
  3032. // 需要保证 watch 的触发在组件渲染之前
  3033. if (appVm.$watchLocale) {
  3034. // vue2
  3035. appVm.$watchLocale(function (newLocale) {
  3036. i18n.setLocale(newLocale);
  3037. });
  3038. } else {
  3039. appVm.$watch(function () {
  3040. return appVm.$locale;
  3041. }, function (newLocale) {
  3042. i18n.setLocale(newLocale);
  3043. });
  3044. }
  3045. }
  3046. function getDefaultLocale() {
  3047. if (typeof uni !== 'undefined' && uni.getLocale) {
  3048. return uni.getLocale();
  3049. }
  3050. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3051. if (typeof global !== 'undefined' && global.getLocale) {
  3052. return global.getLocale();
  3053. }
  3054. return LOCALE_EN;
  3055. }
  3056. function initVueI18n(locale) {
  3057. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3058. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3059. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3060. // 兼容旧版本入参
  3061. if (typeof locale !== 'string') {
  3062. var _ref4 = [messages, locale];
  3063. locale = _ref4[0];
  3064. messages = _ref4[1];
  3065. }
  3066. if (typeof locale !== 'string') {
  3067. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3068. locale = getDefaultLocale();
  3069. }
  3070. if (typeof fallbackLocale !== 'string') {
  3071. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3072. }
  3073. var i18n = new I18n({
  3074. locale: locale,
  3075. fallbackLocale: fallbackLocale,
  3076. messages: messages,
  3077. watcher: watcher
  3078. });
  3079. var _t = function t(key, values) {
  3080. if (typeof getApp !== 'function') {
  3081. // app view
  3082. /* eslint-disable no-func-assign */
  3083. _t = function t(key, values) {
  3084. return i18n.t(key, values);
  3085. };
  3086. } else {
  3087. var isWatchedAppLocale = false;
  3088. _t = function t(key, values) {
  3089. var appVm = getApp().$vm;
  3090. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3091. // options: {
  3092. // type: Array,
  3093. // default () {
  3094. // return [{
  3095. // icon: 'shop',
  3096. // text: t("uni-goods-nav.options.shop"),
  3097. // }, {
  3098. // icon: 'cart',
  3099. // text: t("uni-goods-nav.options.cart")
  3100. // }]
  3101. // }
  3102. // },
  3103. if (appVm) {
  3104. // 触发响应式
  3105. appVm.$locale;
  3106. if (!isWatchedAppLocale) {
  3107. isWatchedAppLocale = true;
  3108. watchAppLocale(appVm, i18n);
  3109. }
  3110. }
  3111. return i18n.t(key, values);
  3112. };
  3113. }
  3114. return _t(key, values);
  3115. };
  3116. return {
  3117. i18n: i18n,
  3118. f: function f(message, values, delimiters) {
  3119. return i18n.f(message, values, delimiters);
  3120. },
  3121. t: function t(key, values) {
  3122. return _t(key, values);
  3123. },
  3124. add: function add(locale, message) {
  3125. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3126. return i18n.add(locale, message, override);
  3127. },
  3128. watch: function watch(fn) {
  3129. return i18n.watchLocale(fn);
  3130. },
  3131. getLocale: function getLocale() {
  3132. return i18n.getLocale();
  3133. },
  3134. setLocale: function setLocale(newLocale) {
  3135. return i18n.setLocale(newLocale);
  3136. }
  3137. };
  3138. }
  3139. var isString = function isString(val) {
  3140. return typeof val === 'string';
  3141. };
  3142. exports.isString = isString;
  3143. var formater;
  3144. function hasI18nJson(jsonObj, delimiters) {
  3145. if (!formater) {
  3146. formater = new BaseFormatter();
  3147. }
  3148. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3149. var value = jsonObj[key];
  3150. if (isString(value)) {
  3151. if (isI18nStr(value, delimiters)) {
  3152. return true;
  3153. }
  3154. } else {
  3155. return hasI18nJson(value, delimiters);
  3156. }
  3157. });
  3158. }
  3159. function parseI18nJson(jsonObj, values, delimiters) {
  3160. if (!formater) {
  3161. formater = new BaseFormatter();
  3162. }
  3163. walkJsonObj(jsonObj, function (jsonObj, key) {
  3164. var value = jsonObj[key];
  3165. if (isString(value)) {
  3166. if (isI18nStr(value, delimiters)) {
  3167. jsonObj[key] = compileStr(value, values, delimiters);
  3168. }
  3169. } else {
  3170. parseI18nJson(value, values, delimiters);
  3171. }
  3172. });
  3173. return jsonObj;
  3174. }
  3175. function compileI18nJsonStr(jsonStr, _ref5) {
  3176. var locale = _ref5.locale,
  3177. locales = _ref5.locales,
  3178. delimiters = _ref5.delimiters;
  3179. if (!isI18nStr(jsonStr, delimiters)) {
  3180. return jsonStr;
  3181. }
  3182. if (!formater) {
  3183. formater = new BaseFormatter();
  3184. }
  3185. var localeValues = [];
  3186. Object.keys(locales).forEach(function (name) {
  3187. if (name !== locale) {
  3188. localeValues.push({
  3189. locale: name,
  3190. values: locales[name]
  3191. });
  3192. }
  3193. });
  3194. localeValues.unshift({
  3195. locale: locale,
  3196. values: locales[locale]
  3197. });
  3198. try {
  3199. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3200. } catch (e) {}
  3201. return jsonStr;
  3202. }
  3203. function isI18nStr(value, delimiters) {
  3204. return value.indexOf(delimiters[0]) > -1;
  3205. }
  3206. function compileStr(value, values, delimiters) {
  3207. return formater.interpolate(value, values, delimiters).join('');
  3208. }
  3209. function compileValue(jsonObj, key, localeValues, delimiters) {
  3210. var value = jsonObj[key];
  3211. if (isString(value)) {
  3212. // 存在国际化
  3213. if (isI18nStr(value, delimiters)) {
  3214. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3215. if (localeValues.length > 1) {
  3216. // 格式化国际化语言
  3217. var valueLocales = jsonObj[key + 'Locales'] = {};
  3218. localeValues.forEach(function (localValue) {
  3219. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3220. });
  3221. }
  3222. }
  3223. } else {
  3224. compileJsonObj(value, localeValues, delimiters);
  3225. }
  3226. }
  3227. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3228. walkJsonObj(jsonObj, function (jsonObj, key) {
  3229. compileValue(jsonObj, key, localeValues, delimiters);
  3230. });
  3231. return jsonObj;
  3232. }
  3233. function walkJsonObj(jsonObj, walk) {
  3234. if (Array.isArray(jsonObj)) {
  3235. for (var i = 0; i < jsonObj.length; i++) {
  3236. if (walk(jsonObj, i)) {
  3237. return true;
  3238. }
  3239. }
  3240. } else if (isObject(jsonObj)) {
  3241. for (var key in jsonObj) {
  3242. if (walk(jsonObj, key)) {
  3243. return true;
  3244. }
  3245. }
  3246. }
  3247. return false;
  3248. }
  3249. function resolveLocale(locales) {
  3250. return function (locale) {
  3251. if (!locale) {
  3252. return locale;
  3253. }
  3254. locale = normalizeLocale(locale) || locale;
  3255. return resolveLocaleChain(locale).find(function (locale) {
  3256. return locales.indexOf(locale) > -1;
  3257. });
  3258. };
  3259. }
  3260. function resolveLocaleChain(locale) {
  3261. var chain = [];
  3262. var tokens = locale.split('-');
  3263. while (tokens.length) {
  3264. chain.push(tokens.join('-'));
  3265. tokens.pop();
  3266. }
  3267. return chain;
  3268. }
  3269. /* 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)))
  3270. /***/ }),
  3271. /* 23 */
  3272. /*!***************************************************************!*\
  3273. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3274. \***************************************************************/
  3275. /*! no static exports found */
  3276. /***/ (function(module, exports) {
  3277. function _classCallCheck(instance, Constructor) {
  3278. if (!(instance instanceof Constructor)) {
  3279. throw new TypeError("Cannot call a class as a function");
  3280. }
  3281. }
  3282. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3283. /***/ }),
  3284. /* 24 */
  3285. /*!************************************************************!*\
  3286. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3287. \************************************************************/
  3288. /*! no static exports found */
  3289. /***/ (function(module, exports, __webpack_require__) {
  3290. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3291. function _defineProperties(target, props) {
  3292. for (var i = 0; i < props.length; i++) {
  3293. var descriptor = props[i];
  3294. descriptor.enumerable = descriptor.enumerable || false;
  3295. descriptor.configurable = true;
  3296. if ("value" in descriptor) descriptor.writable = true;
  3297. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3298. }
  3299. }
  3300. function _createClass(Constructor, protoProps, staticProps) {
  3301. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3302. if (staticProps) _defineProperties(Constructor, staticProps);
  3303. Object.defineProperty(Constructor, "prototype", {
  3304. writable: false
  3305. });
  3306. return Constructor;
  3307. }
  3308. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3309. /***/ }),
  3310. /* 25 */
  3311. /*!******************************************************************************************!*\
  3312. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3313. \******************************************************************************************/
  3314. /*! exports provided: default */
  3315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3316. "use strict";
  3317. __webpack_require__.r(__webpack_exports__);
  3318. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3319. * Vue.js v2.6.11
  3320. * (c) 2014-2024 Evan You
  3321. * Released under the MIT License.
  3322. */
  3323. /* */
  3324. var emptyObject = Object.freeze({});
  3325. // These helpers produce better VM code in JS engines due to their
  3326. // explicitness and function inlining.
  3327. function isUndef (v) {
  3328. return v === undefined || v === null
  3329. }
  3330. function isDef (v) {
  3331. return v !== undefined && v !== null
  3332. }
  3333. function isTrue (v) {
  3334. return v === true
  3335. }
  3336. function isFalse (v) {
  3337. return v === false
  3338. }
  3339. /**
  3340. * Check if value is primitive.
  3341. */
  3342. function isPrimitive (value) {
  3343. return (
  3344. typeof value === 'string' ||
  3345. typeof value === 'number' ||
  3346. // $flow-disable-line
  3347. typeof value === 'symbol' ||
  3348. typeof value === 'boolean'
  3349. )
  3350. }
  3351. /**
  3352. * Quick object check - this is primarily used to tell
  3353. * Objects from primitive values when we know the value
  3354. * is a JSON-compliant type.
  3355. */
  3356. function isObject (obj) {
  3357. return obj !== null && typeof obj === 'object'
  3358. }
  3359. /**
  3360. * Get the raw type string of a value, e.g., [object Object].
  3361. */
  3362. var _toString = Object.prototype.toString;
  3363. function toRawType (value) {
  3364. return _toString.call(value).slice(8, -1)
  3365. }
  3366. /**
  3367. * Strict object type check. Only returns true
  3368. * for plain JavaScript objects.
  3369. */
  3370. function isPlainObject (obj) {
  3371. return _toString.call(obj) === '[object Object]'
  3372. }
  3373. function isRegExp (v) {
  3374. return _toString.call(v) === '[object RegExp]'
  3375. }
  3376. /**
  3377. * Check if val is a valid array index.
  3378. */
  3379. function isValidArrayIndex (val) {
  3380. var n = parseFloat(String(val));
  3381. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3382. }
  3383. function isPromise (val) {
  3384. return (
  3385. isDef(val) &&
  3386. typeof val.then === 'function' &&
  3387. typeof val.catch === 'function'
  3388. )
  3389. }
  3390. /**
  3391. * Convert a value to a string that is actually rendered.
  3392. */
  3393. function toString (val) {
  3394. return val == null
  3395. ? ''
  3396. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3397. ? JSON.stringify(val, null, 2)
  3398. : String(val)
  3399. }
  3400. /**
  3401. * Convert an input value to a number for persistence.
  3402. * If the conversion fails, return original string.
  3403. */
  3404. function toNumber (val) {
  3405. var n = parseFloat(val);
  3406. return isNaN(n) ? val : n
  3407. }
  3408. /**
  3409. * Make a map and return a function for checking if a key
  3410. * is in that map.
  3411. */
  3412. function makeMap (
  3413. str,
  3414. expectsLowerCase
  3415. ) {
  3416. var map = Object.create(null);
  3417. var list = str.split(',');
  3418. for (var i = 0; i < list.length; i++) {
  3419. map[list[i]] = true;
  3420. }
  3421. return expectsLowerCase
  3422. ? function (val) { return map[val.toLowerCase()]; }
  3423. : function (val) { return map[val]; }
  3424. }
  3425. /**
  3426. * Check if a tag is a built-in tag.
  3427. */
  3428. var isBuiltInTag = makeMap('slot,component', true);
  3429. /**
  3430. * Check if an attribute is a reserved attribute.
  3431. */
  3432. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3433. /**
  3434. * Remove an item from an array.
  3435. */
  3436. function remove (arr, item) {
  3437. if (arr.length) {
  3438. var index = arr.indexOf(item);
  3439. if (index > -1) {
  3440. return arr.splice(index, 1)
  3441. }
  3442. }
  3443. }
  3444. /**
  3445. * Check whether an object has the property.
  3446. */
  3447. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3448. function hasOwn (obj, key) {
  3449. return hasOwnProperty.call(obj, key)
  3450. }
  3451. /**
  3452. * Create a cached version of a pure function.
  3453. */
  3454. function cached (fn) {
  3455. var cache = Object.create(null);
  3456. return (function cachedFn (str) {
  3457. var hit = cache[str];
  3458. return hit || (cache[str] = fn(str))
  3459. })
  3460. }
  3461. /**
  3462. * Camelize a hyphen-delimited string.
  3463. */
  3464. var camelizeRE = /-(\w)/g;
  3465. var camelize = cached(function (str) {
  3466. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3467. });
  3468. /**
  3469. * Capitalize a string.
  3470. */
  3471. var capitalize = cached(function (str) {
  3472. return str.charAt(0).toUpperCase() + str.slice(1)
  3473. });
  3474. /**
  3475. * Hyphenate a camelCase string.
  3476. */
  3477. var hyphenateRE = /\B([A-Z])/g;
  3478. var hyphenate = cached(function (str) {
  3479. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3480. });
  3481. /**
  3482. * Simple bind polyfill for environments that do not support it,
  3483. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3484. * since native bind is now performant enough in most browsers.
  3485. * But removing it would mean breaking code that was able to run in
  3486. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3487. */
  3488. /* istanbul ignore next */
  3489. function polyfillBind (fn, ctx) {
  3490. function boundFn (a) {
  3491. var l = arguments.length;
  3492. return l
  3493. ? l > 1
  3494. ? fn.apply(ctx, arguments)
  3495. : fn.call(ctx, a)
  3496. : fn.call(ctx)
  3497. }
  3498. boundFn._length = fn.length;
  3499. return boundFn
  3500. }
  3501. function nativeBind (fn, ctx) {
  3502. return fn.bind(ctx)
  3503. }
  3504. var bind = Function.prototype.bind
  3505. ? nativeBind
  3506. : polyfillBind;
  3507. /**
  3508. * Convert an Array-like object to a real Array.
  3509. */
  3510. function toArray (list, start) {
  3511. start = start || 0;
  3512. var i = list.length - start;
  3513. var ret = new Array(i);
  3514. while (i--) {
  3515. ret[i] = list[i + start];
  3516. }
  3517. return ret
  3518. }
  3519. /**
  3520. * Mix properties into target object.
  3521. */
  3522. function extend (to, _from) {
  3523. for (var key in _from) {
  3524. to[key] = _from[key];
  3525. }
  3526. return to
  3527. }
  3528. /**
  3529. * Merge an Array of Objects into a single Object.
  3530. */
  3531. function toObject (arr) {
  3532. var res = {};
  3533. for (var i = 0; i < arr.length; i++) {
  3534. if (arr[i]) {
  3535. extend(res, arr[i]);
  3536. }
  3537. }
  3538. return res
  3539. }
  3540. /* eslint-disable no-unused-vars */
  3541. /**
  3542. * Perform no operation.
  3543. * Stubbing args to make Flow happy without leaving useless transpiled code
  3544. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3545. */
  3546. function noop (a, b, c) {}
  3547. /**
  3548. * Always return false.
  3549. */
  3550. var no = function (a, b, c) { return false; };
  3551. /* eslint-enable no-unused-vars */
  3552. /**
  3553. * Return the same value.
  3554. */
  3555. var identity = function (_) { return _; };
  3556. /**
  3557. * Check if two values are loosely equal - that is,
  3558. * if they are plain objects, do they have the same shape?
  3559. */
  3560. function looseEqual (a, b) {
  3561. if (a === b) { return true }
  3562. var isObjectA = isObject(a);
  3563. var isObjectB = isObject(b);
  3564. if (isObjectA && isObjectB) {
  3565. try {
  3566. var isArrayA = Array.isArray(a);
  3567. var isArrayB = Array.isArray(b);
  3568. if (isArrayA && isArrayB) {
  3569. return a.length === b.length && a.every(function (e, i) {
  3570. return looseEqual(e, b[i])
  3571. })
  3572. } else if (a instanceof Date && b instanceof Date) {
  3573. return a.getTime() === b.getTime()
  3574. } else if (!isArrayA && !isArrayB) {
  3575. var keysA = Object.keys(a);
  3576. var keysB = Object.keys(b);
  3577. return keysA.length === keysB.length && keysA.every(function (key) {
  3578. return looseEqual(a[key], b[key])
  3579. })
  3580. } else {
  3581. /* istanbul ignore next */
  3582. return false
  3583. }
  3584. } catch (e) {
  3585. /* istanbul ignore next */
  3586. return false
  3587. }
  3588. } else if (!isObjectA && !isObjectB) {
  3589. return String(a) === String(b)
  3590. } else {
  3591. return false
  3592. }
  3593. }
  3594. /**
  3595. * Return the first index at which a loosely equal value can be
  3596. * found in the array (if value is a plain object, the array must
  3597. * contain an object of the same shape), or -1 if it is not present.
  3598. */
  3599. function looseIndexOf (arr, val) {
  3600. for (var i = 0; i < arr.length; i++) {
  3601. if (looseEqual(arr[i], val)) { return i }
  3602. }
  3603. return -1
  3604. }
  3605. /**
  3606. * Ensure a function is called only once.
  3607. */
  3608. function once (fn) {
  3609. var called = false;
  3610. return function () {
  3611. if (!called) {
  3612. called = true;
  3613. fn.apply(this, arguments);
  3614. }
  3615. }
  3616. }
  3617. var ASSET_TYPES = [
  3618. 'component',
  3619. 'directive',
  3620. 'filter'
  3621. ];
  3622. var LIFECYCLE_HOOKS = [
  3623. 'beforeCreate',
  3624. 'created',
  3625. 'beforeMount',
  3626. 'mounted',
  3627. 'beforeUpdate',
  3628. 'updated',
  3629. 'beforeDestroy',
  3630. 'destroyed',
  3631. 'activated',
  3632. 'deactivated',
  3633. 'errorCaptured',
  3634. 'serverPrefetch'
  3635. ];
  3636. /* */
  3637. var config = ({
  3638. /**
  3639. * Option merge strategies (used in core/util/options)
  3640. */
  3641. // $flow-disable-line
  3642. optionMergeStrategies: Object.create(null),
  3643. /**
  3644. * Whether to suppress warnings.
  3645. */
  3646. silent: false,
  3647. /**
  3648. * Show production mode tip message on boot?
  3649. */
  3650. productionTip: "development" !== 'production',
  3651. /**
  3652. * Whether to enable devtools
  3653. */
  3654. devtools: "development" !== 'production',
  3655. /**
  3656. * Whether to record perf
  3657. */
  3658. performance: false,
  3659. /**
  3660. * Error handler for watcher errors
  3661. */
  3662. errorHandler: null,
  3663. /**
  3664. * Warn handler for watcher warns
  3665. */
  3666. warnHandler: null,
  3667. /**
  3668. * Ignore certain custom elements
  3669. */
  3670. ignoredElements: [],
  3671. /**
  3672. * Custom user key aliases for v-on
  3673. */
  3674. // $flow-disable-line
  3675. keyCodes: Object.create(null),
  3676. /**
  3677. * Check if a tag is reserved so that it cannot be registered as a
  3678. * component. This is platform-dependent and may be overwritten.
  3679. */
  3680. isReservedTag: no,
  3681. /**
  3682. * Check if an attribute is reserved so that it cannot be used as a component
  3683. * prop. This is platform-dependent and may be overwritten.
  3684. */
  3685. isReservedAttr: no,
  3686. /**
  3687. * Check if a tag is an unknown element.
  3688. * Platform-dependent.
  3689. */
  3690. isUnknownElement: no,
  3691. /**
  3692. * Get the namespace of an element
  3693. */
  3694. getTagNamespace: noop,
  3695. /**
  3696. * Parse the real tag name for the specific platform.
  3697. */
  3698. parsePlatformTagName: identity,
  3699. /**
  3700. * Check if an attribute must be bound using property, e.g. value
  3701. * Platform-dependent.
  3702. */
  3703. mustUseProp: no,
  3704. /**
  3705. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3706. * This will significantly reduce performance if set to false.
  3707. */
  3708. async: true,
  3709. /**
  3710. * Exposed for legacy reasons
  3711. */
  3712. _lifecycleHooks: LIFECYCLE_HOOKS
  3713. });
  3714. /* */
  3715. /**
  3716. * unicode letters used for parsing html tags, component names and property paths.
  3717. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3718. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3719. */
  3720. 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/;
  3721. /**
  3722. * Check if a string starts with $ or _
  3723. */
  3724. function isReserved (str) {
  3725. var c = (str + '').charCodeAt(0);
  3726. return c === 0x24 || c === 0x5F
  3727. }
  3728. /**
  3729. * Define a property.
  3730. */
  3731. function def (obj, key, val, enumerable) {
  3732. Object.defineProperty(obj, key, {
  3733. value: val,
  3734. enumerable: !!enumerable,
  3735. writable: true,
  3736. configurable: true
  3737. });
  3738. }
  3739. /**
  3740. * Parse simple path.
  3741. */
  3742. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3743. function parsePath (path) {
  3744. if (bailRE.test(path)) {
  3745. return
  3746. }
  3747. var segments = path.split('.');
  3748. return function (obj) {
  3749. for (var i = 0; i < segments.length; i++) {
  3750. if (!obj) { return }
  3751. obj = obj[segments[i]];
  3752. }
  3753. return obj
  3754. }
  3755. }
  3756. /* */
  3757. // can we use __proto__?
  3758. var hasProto = '__proto__' in {};
  3759. // Browser environment sniffing
  3760. var inBrowser = typeof window !== 'undefined';
  3761. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3762. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3763. var UA = inBrowser && window.navigator && window.navigator.userAgent.toLowerCase();
  3764. var isIE = UA && /msie|trident/.test(UA);
  3765. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3766. var isEdge = UA && UA.indexOf('edge/') > 0;
  3767. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3768. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3769. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3770. var isPhantomJS = UA && /phantomjs/.test(UA);
  3771. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3772. // Firefox has a "watch" function on Object.prototype...
  3773. var nativeWatch = ({}).watch;
  3774. if (inBrowser) {
  3775. try {
  3776. var opts = {};
  3777. Object.defineProperty(opts, 'passive', ({
  3778. get: function get () {
  3779. }
  3780. })); // https://github.com/facebook/flow/issues/285
  3781. window.addEventListener('test-passive', null, opts);
  3782. } catch (e) {}
  3783. }
  3784. // this needs to be lazy-evaled because vue may be required before
  3785. // vue-server-renderer can set VUE_ENV
  3786. var _isServer;
  3787. var isServerRendering = function () {
  3788. if (_isServer === undefined) {
  3789. /* istanbul ignore if */
  3790. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3791. // detect presence of vue-server-renderer and avoid
  3792. // Webpack shimming the process
  3793. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3794. } else {
  3795. _isServer = false;
  3796. }
  3797. }
  3798. return _isServer
  3799. };
  3800. // detect devtools
  3801. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3802. /* istanbul ignore next */
  3803. function isNative (Ctor) {
  3804. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3805. }
  3806. var hasSymbol =
  3807. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3808. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3809. var _Set;
  3810. /* istanbul ignore if */ // $flow-disable-line
  3811. if (typeof Set !== 'undefined' && isNative(Set)) {
  3812. // use native Set when available.
  3813. _Set = Set;
  3814. } else {
  3815. // a non-standard Set polyfill that only works with primitive keys.
  3816. _Set = /*@__PURE__*/(function () {
  3817. function Set () {
  3818. this.set = Object.create(null);
  3819. }
  3820. Set.prototype.has = function has (key) {
  3821. return this.set[key] === true
  3822. };
  3823. Set.prototype.add = function add (key) {
  3824. this.set[key] = true;
  3825. };
  3826. Set.prototype.clear = function clear () {
  3827. this.set = Object.create(null);
  3828. };
  3829. return Set;
  3830. }());
  3831. }
  3832. /* */
  3833. var warn = noop;
  3834. var tip = noop;
  3835. var generateComponentTrace = (noop); // work around flow check
  3836. var formatComponentName = (noop);
  3837. if (true) {
  3838. var hasConsole = typeof console !== 'undefined';
  3839. var classifyRE = /(?:^|[-_])(\w)/g;
  3840. var classify = function (str) { return str
  3841. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3842. .replace(/[-_]/g, ''); };
  3843. warn = function (msg, vm) {
  3844. var trace = vm ? generateComponentTrace(vm) : '';
  3845. if (config.warnHandler) {
  3846. config.warnHandler.call(null, msg, vm, trace);
  3847. } else if (hasConsole && (!config.silent)) {
  3848. console.error(("[Vue warn]: " + msg + trace));
  3849. }
  3850. };
  3851. tip = function (msg, vm) {
  3852. if (hasConsole && (!config.silent)) {
  3853. console.warn("[Vue tip]: " + msg + (
  3854. vm ? generateComponentTrace(vm) : ''
  3855. ));
  3856. }
  3857. };
  3858. formatComponentName = function (vm, includeFile) {
  3859. if (vm.$root === vm) {
  3860. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3861. return ('') + vm.$options.__file
  3862. }
  3863. return '<Root>'
  3864. }
  3865. var options = typeof vm === 'function' && vm.cid != null
  3866. ? vm.options
  3867. : vm._isVue
  3868. ? vm.$options || vm.constructor.options
  3869. : vm;
  3870. var name = options.name || options._componentTag;
  3871. var file = options.__file;
  3872. if (!name && file) {
  3873. var match = file.match(/([^/\\]+)\.vue$/);
  3874. name = match && match[1];
  3875. }
  3876. return (
  3877. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3878. (file && includeFile !== false ? (" at " + file) : '')
  3879. )
  3880. };
  3881. var repeat = function (str, n) {
  3882. var res = '';
  3883. while (n) {
  3884. if (n % 2 === 1) { res += str; }
  3885. if (n > 1) { str += str; }
  3886. n >>= 1;
  3887. }
  3888. return res
  3889. };
  3890. generateComponentTrace = function (vm) {
  3891. if (vm._isVue && vm.$parent) {
  3892. var tree = [];
  3893. var currentRecursiveSequence = 0;
  3894. while (vm && vm.$options.name !== 'PageBody') {
  3895. if (tree.length > 0) {
  3896. var last = tree[tree.length - 1];
  3897. if (last.constructor === vm.constructor) {
  3898. currentRecursiveSequence++;
  3899. vm = vm.$parent;
  3900. continue
  3901. } else if (currentRecursiveSequence > 0) {
  3902. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3903. currentRecursiveSequence = 0;
  3904. }
  3905. }
  3906. !vm.$options.isReserved && tree.push(vm);
  3907. vm = vm.$parent;
  3908. }
  3909. return '\n\nfound in\n\n' + tree
  3910. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3911. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3912. : formatComponentName(vm))); })
  3913. .join('\n')
  3914. } else {
  3915. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3916. }
  3917. };
  3918. }
  3919. /* */
  3920. var uid = 0;
  3921. /**
  3922. * A dep is an observable that can have multiple
  3923. * directives subscribing to it.
  3924. */
  3925. var Dep = function Dep () {
  3926. this.id = uid++;
  3927. this.subs = [];
  3928. };
  3929. Dep.prototype.addSub = function addSub (sub) {
  3930. this.subs.push(sub);
  3931. };
  3932. Dep.prototype.removeSub = function removeSub (sub) {
  3933. remove(this.subs, sub);
  3934. };
  3935. Dep.prototype.depend = function depend () {
  3936. if (Dep.SharedObject.target) {
  3937. Dep.SharedObject.target.addDep(this);
  3938. }
  3939. };
  3940. Dep.prototype.notify = function notify () {
  3941. // stabilize the subscriber list first
  3942. var subs = this.subs.slice();
  3943. if ( true && !config.async) {
  3944. // subs aren't sorted in scheduler if not running async
  3945. // we need to sort them now to make sure they fire in correct
  3946. // order
  3947. subs.sort(function (a, b) { return a.id - b.id; });
  3948. }
  3949. for (var i = 0, l = subs.length; i < l; i++) {
  3950. subs[i].update();
  3951. }
  3952. };
  3953. // The current target watcher being evaluated.
  3954. // This is globally unique because only one watcher
  3955. // can be evaluated at a time.
  3956. // fixed by xxxxxx (nvue shared vuex)
  3957. /* eslint-disable no-undef */
  3958. Dep.SharedObject = {};
  3959. Dep.SharedObject.target = null;
  3960. Dep.SharedObject.targetStack = [];
  3961. function pushTarget (target) {
  3962. Dep.SharedObject.targetStack.push(target);
  3963. Dep.SharedObject.target = target;
  3964. Dep.target = target;
  3965. }
  3966. function popTarget () {
  3967. Dep.SharedObject.targetStack.pop();
  3968. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3969. Dep.target = Dep.SharedObject.target;
  3970. }
  3971. /* */
  3972. var VNode = function VNode (
  3973. tag,
  3974. data,
  3975. children,
  3976. text,
  3977. elm,
  3978. context,
  3979. componentOptions,
  3980. asyncFactory
  3981. ) {
  3982. this.tag = tag;
  3983. this.data = data;
  3984. this.children = children;
  3985. this.text = text;
  3986. this.elm = elm;
  3987. this.ns = undefined;
  3988. this.context = context;
  3989. this.fnContext = undefined;
  3990. this.fnOptions = undefined;
  3991. this.fnScopeId = undefined;
  3992. this.key = data && data.key;
  3993. this.componentOptions = componentOptions;
  3994. this.componentInstance = undefined;
  3995. this.parent = undefined;
  3996. this.raw = false;
  3997. this.isStatic = false;
  3998. this.isRootInsert = true;
  3999. this.isComment = false;
  4000. this.isCloned = false;
  4001. this.isOnce = false;
  4002. this.asyncFactory = asyncFactory;
  4003. this.asyncMeta = undefined;
  4004. this.isAsyncPlaceholder = false;
  4005. };
  4006. var prototypeAccessors = { child: { configurable: true } };
  4007. // DEPRECATED: alias for componentInstance for backwards compat.
  4008. /* istanbul ignore next */
  4009. prototypeAccessors.child.get = function () {
  4010. return this.componentInstance
  4011. };
  4012. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4013. var createEmptyVNode = function (text) {
  4014. if ( text === void 0 ) text = '';
  4015. var node = new VNode();
  4016. node.text = text;
  4017. node.isComment = true;
  4018. return node
  4019. };
  4020. function createTextVNode (val) {
  4021. return new VNode(undefined, undefined, undefined, String(val))
  4022. }
  4023. // optimized shallow clone
  4024. // used for static nodes and slot nodes because they may be reused across
  4025. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4026. // on their elm reference.
  4027. function cloneVNode (vnode) {
  4028. var cloned = new VNode(
  4029. vnode.tag,
  4030. vnode.data,
  4031. // #7975
  4032. // clone children array to avoid mutating original in case of cloning
  4033. // a child.
  4034. vnode.children && vnode.children.slice(),
  4035. vnode.text,
  4036. vnode.elm,
  4037. vnode.context,
  4038. vnode.componentOptions,
  4039. vnode.asyncFactory
  4040. );
  4041. cloned.ns = vnode.ns;
  4042. cloned.isStatic = vnode.isStatic;
  4043. cloned.key = vnode.key;
  4044. cloned.isComment = vnode.isComment;
  4045. cloned.fnContext = vnode.fnContext;
  4046. cloned.fnOptions = vnode.fnOptions;
  4047. cloned.fnScopeId = vnode.fnScopeId;
  4048. cloned.asyncMeta = vnode.asyncMeta;
  4049. cloned.isCloned = true;
  4050. return cloned
  4051. }
  4052. /*
  4053. * not type checking this file because flow doesn't play well with
  4054. * dynamically accessing methods on Array prototype
  4055. */
  4056. var arrayProto = Array.prototype;
  4057. var arrayMethods = Object.create(arrayProto);
  4058. var methodsToPatch = [
  4059. 'push',
  4060. 'pop',
  4061. 'shift',
  4062. 'unshift',
  4063. 'splice',
  4064. 'sort',
  4065. 'reverse'
  4066. ];
  4067. /**
  4068. * Intercept mutating methods and emit events
  4069. */
  4070. methodsToPatch.forEach(function (method) {
  4071. // cache original method
  4072. var original = arrayProto[method];
  4073. def(arrayMethods, method, function mutator () {
  4074. var args = [], len = arguments.length;
  4075. while ( len-- ) args[ len ] = arguments[ len ];
  4076. var result = original.apply(this, args);
  4077. var ob = this.__ob__;
  4078. var inserted;
  4079. switch (method) {
  4080. case 'push':
  4081. case 'unshift':
  4082. inserted = args;
  4083. break
  4084. case 'splice':
  4085. inserted = args.slice(2);
  4086. break
  4087. }
  4088. if (inserted) { ob.observeArray(inserted); }
  4089. // notify change
  4090. ob.dep.notify();
  4091. return result
  4092. });
  4093. });
  4094. /* */
  4095. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4096. /**
  4097. * In some cases we may want to disable observation inside a component's
  4098. * update computation.
  4099. */
  4100. var shouldObserve = true;
  4101. function toggleObserving (value) {
  4102. shouldObserve = value;
  4103. }
  4104. /**
  4105. * Observer class that is attached to each observed
  4106. * object. Once attached, the observer converts the target
  4107. * object's property keys into getter/setters that
  4108. * collect dependencies and dispatch updates.
  4109. */
  4110. var Observer = function Observer (value) {
  4111. this.value = value;
  4112. this.dep = new Dep();
  4113. this.vmCount = 0;
  4114. def(value, '__ob__', this);
  4115. if (Array.isArray(value)) {
  4116. if (hasProto) {
  4117. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4118. if(value.push !== value.__proto__.push){
  4119. copyAugment(value, arrayMethods, arrayKeys);
  4120. } else {
  4121. protoAugment(value, arrayMethods);
  4122. }
  4123. }
  4124. } else {
  4125. copyAugment(value, arrayMethods, arrayKeys);
  4126. }
  4127. this.observeArray(value);
  4128. } else {
  4129. this.walk(value);
  4130. }
  4131. };
  4132. /**
  4133. * Walk through all properties and convert them into
  4134. * getter/setters. This method should only be called when
  4135. * value type is Object.
  4136. */
  4137. Observer.prototype.walk = function walk (obj) {
  4138. var keys = Object.keys(obj);
  4139. for (var i = 0; i < keys.length; i++) {
  4140. defineReactive$$1(obj, keys[i]);
  4141. }
  4142. };
  4143. /**
  4144. * Observe a list of Array items.
  4145. */
  4146. Observer.prototype.observeArray = function observeArray (items) {
  4147. for (var i = 0, l = items.length; i < l; i++) {
  4148. observe(items[i]);
  4149. }
  4150. };
  4151. // helpers
  4152. /**
  4153. * Augment a target Object or Array by intercepting
  4154. * the prototype chain using __proto__
  4155. */
  4156. function protoAugment (target, src) {
  4157. /* eslint-disable no-proto */
  4158. target.__proto__ = src;
  4159. /* eslint-enable no-proto */
  4160. }
  4161. /**
  4162. * Augment a target Object or Array by defining
  4163. * hidden properties.
  4164. */
  4165. /* istanbul ignore next */
  4166. function copyAugment (target, src, keys) {
  4167. for (var i = 0, l = keys.length; i < l; i++) {
  4168. var key = keys[i];
  4169. def(target, key, src[key]);
  4170. }
  4171. }
  4172. /**
  4173. * Attempt to create an observer instance for a value,
  4174. * returns the new observer if successfully observed,
  4175. * or the existing observer if the value already has one.
  4176. */
  4177. function observe (value, asRootData) {
  4178. if (!isObject(value) || value instanceof VNode) {
  4179. return
  4180. }
  4181. var ob;
  4182. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4183. ob = value.__ob__;
  4184. } else if (
  4185. shouldObserve &&
  4186. !isServerRendering() &&
  4187. (Array.isArray(value) || isPlainObject(value)) &&
  4188. Object.isExtensible(value) &&
  4189. !value._isVue &&
  4190. !value.__v_isMPComponent
  4191. ) {
  4192. ob = new Observer(value);
  4193. }
  4194. if (asRootData && ob) {
  4195. ob.vmCount++;
  4196. }
  4197. return ob
  4198. }
  4199. /**
  4200. * Define a reactive property on an Object.
  4201. */
  4202. function defineReactive$$1 (
  4203. obj,
  4204. key,
  4205. val,
  4206. customSetter,
  4207. shallow
  4208. ) {
  4209. var dep = new Dep();
  4210. var property = Object.getOwnPropertyDescriptor(obj, key);
  4211. if (property && property.configurable === false) {
  4212. return
  4213. }
  4214. // cater for pre-defined getter/setters
  4215. var getter = property && property.get;
  4216. var setter = property && property.set;
  4217. if ((!getter || setter) && arguments.length === 2) {
  4218. val = obj[key];
  4219. }
  4220. var childOb = !shallow && observe(val);
  4221. Object.defineProperty(obj, key, {
  4222. enumerable: true,
  4223. configurable: true,
  4224. get: function reactiveGetter () {
  4225. var value = getter ? getter.call(obj) : val;
  4226. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4227. dep.depend();
  4228. if (childOb) {
  4229. childOb.dep.depend();
  4230. if (Array.isArray(value)) {
  4231. dependArray(value);
  4232. }
  4233. }
  4234. }
  4235. return value
  4236. },
  4237. set: function reactiveSetter (newVal) {
  4238. var value = getter ? getter.call(obj) : val;
  4239. /* eslint-disable no-self-compare */
  4240. if (newVal === value || (newVal !== newVal && value !== value)) {
  4241. return
  4242. }
  4243. /* eslint-enable no-self-compare */
  4244. if ( true && customSetter) {
  4245. customSetter();
  4246. }
  4247. // #7981: for accessor properties without setter
  4248. if (getter && !setter) { return }
  4249. if (setter) {
  4250. setter.call(obj, newVal);
  4251. } else {
  4252. val = newVal;
  4253. }
  4254. childOb = !shallow && observe(newVal);
  4255. dep.notify();
  4256. }
  4257. });
  4258. }
  4259. /**
  4260. * Set a property on an object. Adds the new property and
  4261. * triggers change notification if the property doesn't
  4262. * already exist.
  4263. */
  4264. function set (target, key, val) {
  4265. if ( true &&
  4266. (isUndef(target) || isPrimitive(target))
  4267. ) {
  4268. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4269. }
  4270. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4271. target.length = Math.max(target.length, key);
  4272. target.splice(key, 1, val);
  4273. return val
  4274. }
  4275. if (key in target && !(key in Object.prototype)) {
  4276. target[key] = val;
  4277. return val
  4278. }
  4279. var ob = (target).__ob__;
  4280. if (target._isVue || (ob && ob.vmCount)) {
  4281. true && warn(
  4282. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4283. 'at runtime - declare it upfront in the data option.'
  4284. );
  4285. return val
  4286. }
  4287. if (!ob) {
  4288. target[key] = val;
  4289. return val
  4290. }
  4291. defineReactive$$1(ob.value, key, val);
  4292. ob.dep.notify();
  4293. return val
  4294. }
  4295. /**
  4296. * Delete a property and trigger change if necessary.
  4297. */
  4298. function del (target, key) {
  4299. if ( true &&
  4300. (isUndef(target) || isPrimitive(target))
  4301. ) {
  4302. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4303. }
  4304. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4305. target.splice(key, 1);
  4306. return
  4307. }
  4308. var ob = (target).__ob__;
  4309. if (target._isVue || (ob && ob.vmCount)) {
  4310. true && warn(
  4311. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4312. '- just set it to null.'
  4313. );
  4314. return
  4315. }
  4316. if (!hasOwn(target, key)) {
  4317. return
  4318. }
  4319. delete target[key];
  4320. if (!ob) {
  4321. return
  4322. }
  4323. ob.dep.notify();
  4324. }
  4325. /**
  4326. * Collect dependencies on array elements when the array is touched, since
  4327. * we cannot intercept array element access like property getters.
  4328. */
  4329. function dependArray (value) {
  4330. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4331. e = value[i];
  4332. e && e.__ob__ && e.__ob__.dep.depend();
  4333. if (Array.isArray(e)) {
  4334. dependArray(e);
  4335. }
  4336. }
  4337. }
  4338. /* */
  4339. /**
  4340. * Option overwriting strategies are functions that handle
  4341. * how to merge a parent option value and a child option
  4342. * value into the final value.
  4343. */
  4344. var strats = config.optionMergeStrategies;
  4345. /**
  4346. * Options with restrictions
  4347. */
  4348. if (true) {
  4349. strats.el = strats.propsData = function (parent, child, vm, key) {
  4350. if (!vm) {
  4351. warn(
  4352. "option \"" + key + "\" can only be used during instance " +
  4353. 'creation with the `new` keyword.'
  4354. );
  4355. }
  4356. return defaultStrat(parent, child)
  4357. };
  4358. }
  4359. /**
  4360. * Helper that recursively merges two data objects together.
  4361. */
  4362. function mergeData (to, from) {
  4363. if (!from) { return to }
  4364. var key, toVal, fromVal;
  4365. var keys = hasSymbol
  4366. ? Reflect.ownKeys(from)
  4367. : Object.keys(from);
  4368. for (var i = 0; i < keys.length; i++) {
  4369. key = keys[i];
  4370. // in case the object is already observed...
  4371. if (key === '__ob__') { continue }
  4372. toVal = to[key];
  4373. fromVal = from[key];
  4374. if (!hasOwn(to, key)) {
  4375. set(to, key, fromVal);
  4376. } else if (
  4377. toVal !== fromVal &&
  4378. isPlainObject(toVal) &&
  4379. isPlainObject(fromVal)
  4380. ) {
  4381. mergeData(toVal, fromVal);
  4382. }
  4383. }
  4384. return to
  4385. }
  4386. /**
  4387. * Data
  4388. */
  4389. function mergeDataOrFn (
  4390. parentVal,
  4391. childVal,
  4392. vm
  4393. ) {
  4394. if (!vm) {
  4395. // in a Vue.extend merge, both should be functions
  4396. if (!childVal) {
  4397. return parentVal
  4398. }
  4399. if (!parentVal) {
  4400. return childVal
  4401. }
  4402. // when parentVal & childVal are both present,
  4403. // we need to return a function that returns the
  4404. // merged result of both functions... no need to
  4405. // check if parentVal is a function here because
  4406. // it has to be a function to pass previous merges.
  4407. return function mergedDataFn () {
  4408. return mergeData(
  4409. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4410. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4411. )
  4412. }
  4413. } else {
  4414. return function mergedInstanceDataFn () {
  4415. // instance merge
  4416. var instanceData = typeof childVal === 'function'
  4417. ? childVal.call(vm, vm)
  4418. : childVal;
  4419. var defaultData = typeof parentVal === 'function'
  4420. ? parentVal.call(vm, vm)
  4421. : parentVal;
  4422. if (instanceData) {
  4423. return mergeData(instanceData, defaultData)
  4424. } else {
  4425. return defaultData
  4426. }
  4427. }
  4428. }
  4429. }
  4430. strats.data = function (
  4431. parentVal,
  4432. childVal,
  4433. vm
  4434. ) {
  4435. if (!vm) {
  4436. if (childVal && typeof childVal !== 'function') {
  4437. true && warn(
  4438. 'The "data" option should be a function ' +
  4439. 'that returns a per-instance value in component ' +
  4440. 'definitions.',
  4441. vm
  4442. );
  4443. return parentVal
  4444. }
  4445. return mergeDataOrFn(parentVal, childVal)
  4446. }
  4447. return mergeDataOrFn(parentVal, childVal, vm)
  4448. };
  4449. /**
  4450. * Hooks and props are merged as arrays.
  4451. */
  4452. function mergeHook (
  4453. parentVal,
  4454. childVal
  4455. ) {
  4456. var res = childVal
  4457. ? parentVal
  4458. ? parentVal.concat(childVal)
  4459. : Array.isArray(childVal)
  4460. ? childVal
  4461. : [childVal]
  4462. : parentVal;
  4463. return res
  4464. ? dedupeHooks(res)
  4465. : res
  4466. }
  4467. function dedupeHooks (hooks) {
  4468. var res = [];
  4469. for (var i = 0; i < hooks.length; i++) {
  4470. if (res.indexOf(hooks[i]) === -1) {
  4471. res.push(hooks[i]);
  4472. }
  4473. }
  4474. return res
  4475. }
  4476. LIFECYCLE_HOOKS.forEach(function (hook) {
  4477. strats[hook] = mergeHook;
  4478. });
  4479. /**
  4480. * Assets
  4481. *
  4482. * When a vm is present (instance creation), we need to do
  4483. * a three-way merge between constructor options, instance
  4484. * options and parent options.
  4485. */
  4486. function mergeAssets (
  4487. parentVal,
  4488. childVal,
  4489. vm,
  4490. key
  4491. ) {
  4492. var res = Object.create(parentVal || null);
  4493. if (childVal) {
  4494. true && assertObjectType(key, childVal, vm);
  4495. return extend(res, childVal)
  4496. } else {
  4497. return res
  4498. }
  4499. }
  4500. ASSET_TYPES.forEach(function (type) {
  4501. strats[type + 's'] = mergeAssets;
  4502. });
  4503. /**
  4504. * Watchers.
  4505. *
  4506. * Watchers hashes should not overwrite one
  4507. * another, so we merge them as arrays.
  4508. */
  4509. strats.watch = function (
  4510. parentVal,
  4511. childVal,
  4512. vm,
  4513. key
  4514. ) {
  4515. // work around Firefox's Object.prototype.watch...
  4516. if (parentVal === nativeWatch) { parentVal = undefined; }
  4517. if (childVal === nativeWatch) { childVal = undefined; }
  4518. /* istanbul ignore if */
  4519. if (!childVal) { return Object.create(parentVal || null) }
  4520. if (true) {
  4521. assertObjectType(key, childVal, vm);
  4522. }
  4523. if (!parentVal) { return childVal }
  4524. var ret = {};
  4525. extend(ret, parentVal);
  4526. for (var key$1 in childVal) {
  4527. var parent = ret[key$1];
  4528. var child = childVal[key$1];
  4529. if (parent && !Array.isArray(parent)) {
  4530. parent = [parent];
  4531. }
  4532. ret[key$1] = parent
  4533. ? parent.concat(child)
  4534. : Array.isArray(child) ? child : [child];
  4535. }
  4536. return ret
  4537. };
  4538. /**
  4539. * Other object hashes.
  4540. */
  4541. strats.props =
  4542. strats.methods =
  4543. strats.inject =
  4544. strats.computed = function (
  4545. parentVal,
  4546. childVal,
  4547. vm,
  4548. key
  4549. ) {
  4550. if (childVal && "development" !== 'production') {
  4551. assertObjectType(key, childVal, vm);
  4552. }
  4553. if (!parentVal) { return childVal }
  4554. var ret = Object.create(null);
  4555. extend(ret, parentVal);
  4556. if (childVal) { extend(ret, childVal); }
  4557. return ret
  4558. };
  4559. strats.provide = mergeDataOrFn;
  4560. /**
  4561. * Default strategy.
  4562. */
  4563. var defaultStrat = function (parentVal, childVal) {
  4564. return childVal === undefined
  4565. ? parentVal
  4566. : childVal
  4567. };
  4568. /**
  4569. * Validate component names
  4570. */
  4571. function checkComponents (options) {
  4572. for (var key in options.components) {
  4573. validateComponentName(key);
  4574. }
  4575. }
  4576. function validateComponentName (name) {
  4577. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4578. warn(
  4579. 'Invalid component name: "' + name + '". Component names ' +
  4580. 'should conform to valid custom element name in html5 specification.'
  4581. );
  4582. }
  4583. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4584. warn(
  4585. 'Do not use built-in or reserved HTML elements as component ' +
  4586. 'id: ' + name
  4587. );
  4588. }
  4589. }
  4590. /**
  4591. * Ensure all props option syntax are normalized into the
  4592. * Object-based format.
  4593. */
  4594. function normalizeProps (options, vm) {
  4595. var props = options.props;
  4596. if (!props) { return }
  4597. var res = {};
  4598. var i, val, name;
  4599. if (Array.isArray(props)) {
  4600. i = props.length;
  4601. while (i--) {
  4602. val = props[i];
  4603. if (typeof val === 'string') {
  4604. name = camelize(val);
  4605. res[name] = { type: null };
  4606. } else if (true) {
  4607. warn('props must be strings when using array syntax.');
  4608. }
  4609. }
  4610. } else if (isPlainObject(props)) {
  4611. for (var key in props) {
  4612. val = props[key];
  4613. name = camelize(key);
  4614. res[name] = isPlainObject(val)
  4615. ? val
  4616. : { type: val };
  4617. }
  4618. } else if (true) {
  4619. warn(
  4620. "Invalid value for option \"props\": expected an Array or an Object, " +
  4621. "but got " + (toRawType(props)) + ".",
  4622. vm
  4623. );
  4624. }
  4625. options.props = res;
  4626. }
  4627. /**
  4628. * Normalize all injections into Object-based format
  4629. */
  4630. function normalizeInject (options, vm) {
  4631. var inject = options.inject;
  4632. if (!inject) { return }
  4633. var normalized = options.inject = {};
  4634. if (Array.isArray(inject)) {
  4635. for (var i = 0; i < inject.length; i++) {
  4636. normalized[inject[i]] = { from: inject[i] };
  4637. }
  4638. } else if (isPlainObject(inject)) {
  4639. for (var key in inject) {
  4640. var val = inject[key];
  4641. normalized[key] = isPlainObject(val)
  4642. ? extend({ from: key }, val)
  4643. : { from: val };
  4644. }
  4645. } else if (true) {
  4646. warn(
  4647. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4648. "but got " + (toRawType(inject)) + ".",
  4649. vm
  4650. );
  4651. }
  4652. }
  4653. /**
  4654. * Normalize raw function directives into object format.
  4655. */
  4656. function normalizeDirectives (options) {
  4657. var dirs = options.directives;
  4658. if (dirs) {
  4659. for (var key in dirs) {
  4660. var def$$1 = dirs[key];
  4661. if (typeof def$$1 === 'function') {
  4662. dirs[key] = { bind: def$$1, update: def$$1 };
  4663. }
  4664. }
  4665. }
  4666. }
  4667. function assertObjectType (name, value, vm) {
  4668. if (!isPlainObject(value)) {
  4669. warn(
  4670. "Invalid value for option \"" + name + "\": expected an Object, " +
  4671. "but got " + (toRawType(value)) + ".",
  4672. vm
  4673. );
  4674. }
  4675. }
  4676. /**
  4677. * Merge two option objects into a new one.
  4678. * Core utility used in both instantiation and inheritance.
  4679. */
  4680. function mergeOptions (
  4681. parent,
  4682. child,
  4683. vm
  4684. ) {
  4685. if (true) {
  4686. checkComponents(child);
  4687. }
  4688. if (typeof child === 'function') {
  4689. child = child.options;
  4690. }
  4691. normalizeProps(child, vm);
  4692. normalizeInject(child, vm);
  4693. normalizeDirectives(child);
  4694. // Apply extends and mixins on the child options,
  4695. // but only if it is a raw options object that isn't
  4696. // the result of another mergeOptions call.
  4697. // Only merged options has the _base property.
  4698. if (!child._base) {
  4699. if (child.extends) {
  4700. parent = mergeOptions(parent, child.extends, vm);
  4701. }
  4702. if (child.mixins) {
  4703. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4704. parent = mergeOptions(parent, child.mixins[i], vm);
  4705. }
  4706. }
  4707. }
  4708. var options = {};
  4709. var key;
  4710. for (key in parent) {
  4711. mergeField(key);
  4712. }
  4713. for (key in child) {
  4714. if (!hasOwn(parent, key)) {
  4715. mergeField(key);
  4716. }
  4717. }
  4718. function mergeField (key) {
  4719. var strat = strats[key] || defaultStrat;
  4720. options[key] = strat(parent[key], child[key], vm, key);
  4721. }
  4722. return options
  4723. }
  4724. /**
  4725. * Resolve an asset.
  4726. * This function is used because child instances need access
  4727. * to assets defined in its ancestor chain.
  4728. */
  4729. function resolveAsset (
  4730. options,
  4731. type,
  4732. id,
  4733. warnMissing
  4734. ) {
  4735. /* istanbul ignore if */
  4736. if (typeof id !== 'string') {
  4737. return
  4738. }
  4739. var assets = options[type];
  4740. // check local registration variations first
  4741. if (hasOwn(assets, id)) { return assets[id] }
  4742. var camelizedId = camelize(id);
  4743. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4744. var PascalCaseId = capitalize(camelizedId);
  4745. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4746. // fallback to prototype chain
  4747. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4748. if ( true && warnMissing && !res) {
  4749. warn(
  4750. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4751. options
  4752. );
  4753. }
  4754. return res
  4755. }
  4756. /* */
  4757. function validateProp (
  4758. key,
  4759. propOptions,
  4760. propsData,
  4761. vm
  4762. ) {
  4763. var prop = propOptions[key];
  4764. var absent = !hasOwn(propsData, key);
  4765. var value = propsData[key];
  4766. // boolean casting
  4767. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4768. if (booleanIndex > -1) {
  4769. if (absent && !hasOwn(prop, 'default')) {
  4770. value = false;
  4771. } else if (value === '' || value === hyphenate(key)) {
  4772. // only cast empty string / same name to boolean if
  4773. // boolean has higher priority
  4774. var stringIndex = getTypeIndex(String, prop.type);
  4775. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4776. value = true;
  4777. }
  4778. }
  4779. }
  4780. // check default value
  4781. if (value === undefined) {
  4782. value = getPropDefaultValue(vm, prop, key);
  4783. // since the default value is a fresh copy,
  4784. // make sure to observe it.
  4785. var prevShouldObserve = shouldObserve;
  4786. toggleObserving(true);
  4787. observe(value);
  4788. toggleObserving(prevShouldObserve);
  4789. }
  4790. if (
  4791. true
  4792. ) {
  4793. assertProp(prop, key, value, vm, absent);
  4794. }
  4795. return value
  4796. }
  4797. /**
  4798. * Get the default value of a prop.
  4799. */
  4800. function getPropDefaultValue (vm, prop, key) {
  4801. // no default, return undefined
  4802. if (!hasOwn(prop, 'default')) {
  4803. return undefined
  4804. }
  4805. var def = prop.default;
  4806. // warn against non-factory defaults for Object & Array
  4807. if ( true && isObject(def)) {
  4808. warn(
  4809. 'Invalid default value for prop "' + key + '": ' +
  4810. 'Props with type Object/Array must use a factory function ' +
  4811. 'to return the default value.',
  4812. vm
  4813. );
  4814. }
  4815. // the raw prop value was also undefined from previous render,
  4816. // return previous default value to avoid unnecessary watcher trigger
  4817. if (vm && vm.$options.propsData &&
  4818. vm.$options.propsData[key] === undefined &&
  4819. vm._props[key] !== undefined
  4820. ) {
  4821. return vm._props[key]
  4822. }
  4823. // call factory function for non-Function types
  4824. // a value is Function if its prototype is function even across different execution context
  4825. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4826. ? def.call(vm)
  4827. : def
  4828. }
  4829. /**
  4830. * Assert whether a prop is valid.
  4831. */
  4832. function assertProp (
  4833. prop,
  4834. name,
  4835. value,
  4836. vm,
  4837. absent
  4838. ) {
  4839. if (prop.required && absent) {
  4840. warn(
  4841. 'Missing required prop: "' + name + '"',
  4842. vm
  4843. );
  4844. return
  4845. }
  4846. if (value == null && !prop.required) {
  4847. return
  4848. }
  4849. var type = prop.type;
  4850. var valid = !type || type === true;
  4851. var expectedTypes = [];
  4852. if (type) {
  4853. if (!Array.isArray(type)) {
  4854. type = [type];
  4855. }
  4856. for (var i = 0; i < type.length && !valid; i++) {
  4857. var assertedType = assertType(value, type[i]);
  4858. expectedTypes.push(assertedType.expectedType || '');
  4859. valid = assertedType.valid;
  4860. }
  4861. }
  4862. if (!valid) {
  4863. warn(
  4864. getInvalidTypeMessage(name, value, expectedTypes),
  4865. vm
  4866. );
  4867. return
  4868. }
  4869. var validator = prop.validator;
  4870. if (validator) {
  4871. if (!validator(value)) {
  4872. warn(
  4873. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4874. vm
  4875. );
  4876. }
  4877. }
  4878. }
  4879. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4880. function assertType (value, type) {
  4881. var valid;
  4882. var expectedType = getType(type);
  4883. if (simpleCheckRE.test(expectedType)) {
  4884. var t = typeof value;
  4885. valid = t === expectedType.toLowerCase();
  4886. // for primitive wrapper objects
  4887. if (!valid && t === 'object') {
  4888. valid = value instanceof type;
  4889. }
  4890. } else if (expectedType === 'Object') {
  4891. valid = isPlainObject(value);
  4892. } else if (expectedType === 'Array') {
  4893. valid = Array.isArray(value);
  4894. } else {
  4895. valid = value instanceof type;
  4896. }
  4897. return {
  4898. valid: valid,
  4899. expectedType: expectedType
  4900. }
  4901. }
  4902. /**
  4903. * Use function string name to check built-in types,
  4904. * because a simple equality check will fail when running
  4905. * across different vms / iframes.
  4906. */
  4907. function getType (fn) {
  4908. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4909. return match ? match[1] : ''
  4910. }
  4911. function isSameType (a, b) {
  4912. return getType(a) === getType(b)
  4913. }
  4914. function getTypeIndex (type, expectedTypes) {
  4915. if (!Array.isArray(expectedTypes)) {
  4916. return isSameType(expectedTypes, type) ? 0 : -1
  4917. }
  4918. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4919. if (isSameType(expectedTypes[i], type)) {
  4920. return i
  4921. }
  4922. }
  4923. return -1
  4924. }
  4925. function getInvalidTypeMessage (name, value, expectedTypes) {
  4926. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4927. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4928. var expectedType = expectedTypes[0];
  4929. var receivedType = toRawType(value);
  4930. var expectedValue = styleValue(value, expectedType);
  4931. var receivedValue = styleValue(value, receivedType);
  4932. // check if we need to specify expected value
  4933. if (expectedTypes.length === 1 &&
  4934. isExplicable(expectedType) &&
  4935. !isBoolean(expectedType, receivedType)) {
  4936. message += " with value " + expectedValue;
  4937. }
  4938. message += ", got " + receivedType + " ";
  4939. // check if we need to specify received value
  4940. if (isExplicable(receivedType)) {
  4941. message += "with value " + receivedValue + ".";
  4942. }
  4943. return message
  4944. }
  4945. function styleValue (value, type) {
  4946. if (type === 'String') {
  4947. return ("\"" + value + "\"")
  4948. } else if (type === 'Number') {
  4949. return ("" + (Number(value)))
  4950. } else {
  4951. return ("" + value)
  4952. }
  4953. }
  4954. function isExplicable (value) {
  4955. var explicitTypes = ['string', 'number', 'boolean'];
  4956. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4957. }
  4958. function isBoolean () {
  4959. var args = [], len = arguments.length;
  4960. while ( len-- ) args[ len ] = arguments[ len ];
  4961. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4962. }
  4963. /* */
  4964. function handleError (err, vm, info) {
  4965. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4966. // See: https://github.com/vuejs/vuex/issues/1505
  4967. pushTarget();
  4968. try {
  4969. if (vm) {
  4970. var cur = vm;
  4971. while ((cur = cur.$parent)) {
  4972. var hooks = cur.$options.errorCaptured;
  4973. if (hooks) {
  4974. for (var i = 0; i < hooks.length; i++) {
  4975. try {
  4976. var capture = hooks[i].call(cur, err, vm, info) === false;
  4977. if (capture) { return }
  4978. } catch (e) {
  4979. globalHandleError(e, cur, 'errorCaptured hook');
  4980. }
  4981. }
  4982. }
  4983. }
  4984. }
  4985. globalHandleError(err, vm, info);
  4986. } finally {
  4987. popTarget();
  4988. }
  4989. }
  4990. function invokeWithErrorHandling (
  4991. handler,
  4992. context,
  4993. args,
  4994. vm,
  4995. info
  4996. ) {
  4997. var res;
  4998. try {
  4999. res = args ? handler.apply(context, args) : handler.call(context);
  5000. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5001. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5002. // issue #9511
  5003. // avoid catch triggering multiple times when nested calls
  5004. res._handled = true;
  5005. }
  5006. } catch (e) {
  5007. handleError(e, vm, info);
  5008. }
  5009. return res
  5010. }
  5011. function globalHandleError (err, vm, info) {
  5012. if (config.errorHandler) {
  5013. try {
  5014. return config.errorHandler.call(null, err, vm, info)
  5015. } catch (e) {
  5016. // if the user intentionally throws the original error in the handler,
  5017. // do not log it twice
  5018. if (e !== err) {
  5019. logError(e, null, 'config.errorHandler');
  5020. }
  5021. }
  5022. }
  5023. logError(err, vm, info);
  5024. }
  5025. function logError (err, vm, info) {
  5026. if (true) {
  5027. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5028. }
  5029. /* istanbul ignore else */
  5030. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5031. console.error(err);
  5032. } else {
  5033. throw err
  5034. }
  5035. }
  5036. /* */
  5037. var callbacks = [];
  5038. var pending = false;
  5039. function flushCallbacks () {
  5040. pending = false;
  5041. var copies = callbacks.slice(0);
  5042. callbacks.length = 0;
  5043. for (var i = 0; i < copies.length; i++) {
  5044. copies[i]();
  5045. }
  5046. }
  5047. // Here we have async deferring wrappers using microtasks.
  5048. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5049. // However, it has subtle problems when state is changed right before repaint
  5050. // (e.g. #6813, out-in transitions).
  5051. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5052. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5053. // So we now use microtasks everywhere, again.
  5054. // A major drawback of this tradeoff is that there are some scenarios
  5055. // where microtasks have too high a priority and fire in between supposedly
  5056. // sequential events (e.g. #4521, #6690, which have workarounds)
  5057. // or even between bubbling of the same event (#6566).
  5058. var timerFunc;
  5059. // The nextTick behavior leverages the microtask queue, which can be accessed
  5060. // via either native Promise.then or MutationObserver.
  5061. // MutationObserver has wider support, however it is seriously bugged in
  5062. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5063. // completely stops working after triggering a few times... so, if native
  5064. // Promise is available, we will use it:
  5065. /* istanbul ignore next, $flow-disable-line */
  5066. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5067. var p = Promise.resolve();
  5068. timerFunc = function () {
  5069. p.then(flushCallbacks);
  5070. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5071. // it can get stuck in a weird state where callbacks are pushed into the
  5072. // microtask queue but the queue isn't being flushed, until the browser
  5073. // needs to do some other work, e.g. handle a timer. Therefore we can
  5074. // "force" the microtask queue to be flushed by adding an empty timer.
  5075. if (isIOS) { setTimeout(noop); }
  5076. };
  5077. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5078. isNative(MutationObserver) ||
  5079. // PhantomJS and iOS 7.x
  5080. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5081. )) {
  5082. // Use MutationObserver where native Promise is not available,
  5083. // e.g. PhantomJS, iOS7, Android 4.4
  5084. // (#6466 MutationObserver is unreliable in IE11)
  5085. var counter = 1;
  5086. var observer = new MutationObserver(flushCallbacks);
  5087. var textNode = document.createTextNode(String(counter));
  5088. observer.observe(textNode, {
  5089. characterData: true
  5090. });
  5091. timerFunc = function () {
  5092. counter = (counter + 1) % 2;
  5093. textNode.data = String(counter);
  5094. };
  5095. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5096. // Fallback to setImmediate.
  5097. // Technically it leverages the (macro) task queue,
  5098. // but it is still a better choice than setTimeout.
  5099. timerFunc = function () {
  5100. setImmediate(flushCallbacks);
  5101. };
  5102. } else {
  5103. // Fallback to setTimeout.
  5104. timerFunc = function () {
  5105. setTimeout(flushCallbacks, 0);
  5106. };
  5107. }
  5108. function nextTick (cb, ctx) {
  5109. var _resolve;
  5110. callbacks.push(function () {
  5111. if (cb) {
  5112. try {
  5113. cb.call(ctx);
  5114. } catch (e) {
  5115. handleError(e, ctx, 'nextTick');
  5116. }
  5117. } else if (_resolve) {
  5118. _resolve(ctx);
  5119. }
  5120. });
  5121. if (!pending) {
  5122. pending = true;
  5123. timerFunc();
  5124. }
  5125. // $flow-disable-line
  5126. if (!cb && typeof Promise !== 'undefined') {
  5127. return new Promise(function (resolve) {
  5128. _resolve = resolve;
  5129. })
  5130. }
  5131. }
  5132. /* */
  5133. /* not type checking this file because flow doesn't play well with Proxy */
  5134. var initProxy;
  5135. if (true) {
  5136. var allowedGlobals = makeMap(
  5137. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5138. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5139. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5140. 'require' // for Webpack/Browserify
  5141. );
  5142. var warnNonPresent = function (target, key) {
  5143. warn(
  5144. "Property or method \"" + key + "\" is not defined on the instance but " +
  5145. 'referenced during render. Make sure that this property is reactive, ' +
  5146. 'either in the data option, or for class-based components, by ' +
  5147. 'initializing the property. ' +
  5148. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5149. target
  5150. );
  5151. };
  5152. var warnReservedPrefix = function (target, key) {
  5153. warn(
  5154. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5155. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5156. 'prevent conflicts with Vue internals. ' +
  5157. 'See: https://vuejs.org/v2/api/#data',
  5158. target
  5159. );
  5160. };
  5161. var hasProxy =
  5162. typeof Proxy !== 'undefined' && isNative(Proxy);
  5163. if (hasProxy) {
  5164. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5165. config.keyCodes = new Proxy(config.keyCodes, {
  5166. set: function set (target, key, value) {
  5167. if (isBuiltInModifier(key)) {
  5168. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5169. return false
  5170. } else {
  5171. target[key] = value;
  5172. return true
  5173. }
  5174. }
  5175. });
  5176. }
  5177. var hasHandler = {
  5178. has: function has (target, key) {
  5179. var has = key in target;
  5180. var isAllowed = allowedGlobals(key) ||
  5181. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5182. if (!has && !isAllowed) {
  5183. if (key in target.$data) { warnReservedPrefix(target, key); }
  5184. else { warnNonPresent(target, key); }
  5185. }
  5186. return has || !isAllowed
  5187. }
  5188. };
  5189. var getHandler = {
  5190. get: function get (target, key) {
  5191. if (typeof key === 'string' && !(key in target)) {
  5192. if (key in target.$data) { warnReservedPrefix(target, key); }
  5193. else { warnNonPresent(target, key); }
  5194. }
  5195. return target[key]
  5196. }
  5197. };
  5198. initProxy = function initProxy (vm) {
  5199. if (hasProxy) {
  5200. // determine which proxy handler to use
  5201. var options = vm.$options;
  5202. var handlers = options.render && options.render._withStripped
  5203. ? getHandler
  5204. : hasHandler;
  5205. vm._renderProxy = new Proxy(vm, handlers);
  5206. } else {
  5207. vm._renderProxy = vm;
  5208. }
  5209. };
  5210. }
  5211. /* */
  5212. var seenObjects = new _Set();
  5213. /**
  5214. * Recursively traverse an object to evoke all converted
  5215. * getters, so that every nested property inside the object
  5216. * is collected as a "deep" dependency.
  5217. */
  5218. function traverse (val) {
  5219. _traverse(val, seenObjects);
  5220. seenObjects.clear();
  5221. }
  5222. function _traverse (val, seen) {
  5223. var i, keys;
  5224. var isA = Array.isArray(val);
  5225. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5226. return
  5227. }
  5228. if (val.__ob__) {
  5229. var depId = val.__ob__.dep.id;
  5230. if (seen.has(depId)) {
  5231. return
  5232. }
  5233. seen.add(depId);
  5234. }
  5235. if (isA) {
  5236. i = val.length;
  5237. while (i--) { _traverse(val[i], seen); }
  5238. } else {
  5239. keys = Object.keys(val);
  5240. i = keys.length;
  5241. while (i--) { _traverse(val[keys[i]], seen); }
  5242. }
  5243. }
  5244. var mark;
  5245. var measure;
  5246. if (true) {
  5247. var perf = inBrowser && window.performance;
  5248. /* istanbul ignore if */
  5249. if (
  5250. perf &&
  5251. perf.mark &&
  5252. perf.measure &&
  5253. perf.clearMarks &&
  5254. perf.clearMeasures
  5255. ) {
  5256. mark = function (tag) { return perf.mark(tag); };
  5257. measure = function (name, startTag, endTag) {
  5258. perf.measure(name, startTag, endTag);
  5259. perf.clearMarks(startTag);
  5260. perf.clearMarks(endTag);
  5261. // perf.clearMeasures(name)
  5262. };
  5263. }
  5264. }
  5265. /* */
  5266. var normalizeEvent = cached(function (name) {
  5267. var passive = name.charAt(0) === '&';
  5268. name = passive ? name.slice(1) : name;
  5269. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5270. name = once$$1 ? name.slice(1) : name;
  5271. var capture = name.charAt(0) === '!';
  5272. name = capture ? name.slice(1) : name;
  5273. return {
  5274. name: name,
  5275. once: once$$1,
  5276. capture: capture,
  5277. passive: passive
  5278. }
  5279. });
  5280. function createFnInvoker (fns, vm) {
  5281. function invoker () {
  5282. var arguments$1 = arguments;
  5283. var fns = invoker.fns;
  5284. if (Array.isArray(fns)) {
  5285. var cloned = fns.slice();
  5286. for (var i = 0; i < cloned.length; i++) {
  5287. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5288. }
  5289. } else {
  5290. // return handler return value for single handlers
  5291. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5292. }
  5293. }
  5294. invoker.fns = fns;
  5295. return invoker
  5296. }
  5297. function updateListeners (
  5298. on,
  5299. oldOn,
  5300. add,
  5301. remove$$1,
  5302. createOnceHandler,
  5303. vm
  5304. ) {
  5305. var name, def$$1, cur, old, event;
  5306. for (name in on) {
  5307. def$$1 = cur = on[name];
  5308. old = oldOn[name];
  5309. event = normalizeEvent(name);
  5310. if (isUndef(cur)) {
  5311. true && warn(
  5312. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5313. vm
  5314. );
  5315. } else if (isUndef(old)) {
  5316. if (isUndef(cur.fns)) {
  5317. cur = on[name] = createFnInvoker(cur, vm);
  5318. }
  5319. if (isTrue(event.once)) {
  5320. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5321. }
  5322. add(event.name, cur, event.capture, event.passive, event.params);
  5323. } else if (cur !== old) {
  5324. old.fns = cur;
  5325. on[name] = old;
  5326. }
  5327. }
  5328. for (name in oldOn) {
  5329. if (isUndef(on[name])) {
  5330. event = normalizeEvent(name);
  5331. remove$$1(event.name, oldOn[name], event.capture);
  5332. }
  5333. }
  5334. }
  5335. /* */
  5336. /* */
  5337. // fixed by xxxxxx (mp properties)
  5338. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5339. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5340. if (isUndef(propOptions)) {
  5341. return res
  5342. }
  5343. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5344. var attrs = data.attrs;
  5345. var props = data.props;
  5346. if (isDef(attrs) || isDef(props)) {
  5347. for (var key in propOptions) {
  5348. var altKey = hyphenate(key);
  5349. var result = checkProp(res, props, key, altKey, true) ||
  5350. checkProp(res, attrs, key, altKey, false);
  5351. // externalClass
  5352. if (
  5353. result &&
  5354. res[key] &&
  5355. externalClasses.indexOf(altKey) !== -1 &&
  5356. context[camelize(res[key])]
  5357. ) {
  5358. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5359. res[key] = context[camelize(res[key])];
  5360. }
  5361. }
  5362. }
  5363. return res
  5364. }
  5365. function extractPropsFromVNodeData (
  5366. data,
  5367. Ctor,
  5368. tag,
  5369. context// fixed by xxxxxx
  5370. ) {
  5371. // we are only extracting raw values here.
  5372. // validation and default values are handled in the child
  5373. // component itself.
  5374. var propOptions = Ctor.options.props;
  5375. if (isUndef(propOptions)) {
  5376. // fixed by xxxxxx
  5377. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5378. }
  5379. var res = {};
  5380. var attrs = data.attrs;
  5381. var props = data.props;
  5382. if (isDef(attrs) || isDef(props)) {
  5383. for (var key in propOptions) {
  5384. var altKey = hyphenate(key);
  5385. if (true) {
  5386. var keyInLowerCase = key.toLowerCase();
  5387. if (
  5388. key !== keyInLowerCase &&
  5389. attrs && hasOwn(attrs, keyInLowerCase)
  5390. ) {
  5391. tip(
  5392. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5393. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5394. " \"" + key + "\". " +
  5395. "Note that HTML attributes are case-insensitive and camelCased " +
  5396. "props need to use their kebab-case equivalents when using in-DOM " +
  5397. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5398. );
  5399. }
  5400. }
  5401. checkProp(res, props, key, altKey, true) ||
  5402. checkProp(res, attrs, key, altKey, false);
  5403. }
  5404. }
  5405. // fixed by xxxxxx
  5406. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5407. }
  5408. function checkProp (
  5409. res,
  5410. hash,
  5411. key,
  5412. altKey,
  5413. preserve
  5414. ) {
  5415. if (isDef(hash)) {
  5416. if (hasOwn(hash, key)) {
  5417. res[key] = hash[key];
  5418. if (!preserve) {
  5419. delete hash[key];
  5420. }
  5421. return true
  5422. } else if (hasOwn(hash, altKey)) {
  5423. res[key] = hash[altKey];
  5424. if (!preserve) {
  5425. delete hash[altKey];
  5426. }
  5427. return true
  5428. }
  5429. }
  5430. return false
  5431. }
  5432. /* */
  5433. // The template compiler attempts to minimize the need for normalization by
  5434. // statically analyzing the template at compile time.
  5435. //
  5436. // For plain HTML markup, normalization can be completely skipped because the
  5437. // generated render function is guaranteed to return Array<VNode>. There are
  5438. // two cases where extra normalization is needed:
  5439. // 1. When the children contains components - because a functional component
  5440. // may return an Array instead of a single root. In this case, just a simple
  5441. // normalization is needed - if any child is an Array, we flatten the whole
  5442. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5443. // because functional components already normalize their own children.
  5444. function simpleNormalizeChildren (children) {
  5445. for (var i = 0; i < children.length; i++) {
  5446. if (Array.isArray(children[i])) {
  5447. return Array.prototype.concat.apply([], children)
  5448. }
  5449. }
  5450. return children
  5451. }
  5452. // 2. When the children contains constructs that always generated nested Arrays,
  5453. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5454. // with hand-written render functions / JSX. In such cases a full normalization
  5455. // is needed to cater to all possible types of children values.
  5456. function normalizeChildren (children) {
  5457. return isPrimitive(children)
  5458. ? [createTextVNode(children)]
  5459. : Array.isArray(children)
  5460. ? normalizeArrayChildren(children)
  5461. : undefined
  5462. }
  5463. function isTextNode (node) {
  5464. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5465. }
  5466. function normalizeArrayChildren (children, nestedIndex) {
  5467. var res = [];
  5468. var i, c, lastIndex, last;
  5469. for (i = 0; i < children.length; i++) {
  5470. c = children[i];
  5471. if (isUndef(c) || typeof c === 'boolean') { continue }
  5472. lastIndex = res.length - 1;
  5473. last = res[lastIndex];
  5474. // nested
  5475. if (Array.isArray(c)) {
  5476. if (c.length > 0) {
  5477. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5478. // merge adjacent text nodes
  5479. if (isTextNode(c[0]) && isTextNode(last)) {
  5480. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5481. c.shift();
  5482. }
  5483. res.push.apply(res, c);
  5484. }
  5485. } else if (isPrimitive(c)) {
  5486. if (isTextNode(last)) {
  5487. // merge adjacent text nodes
  5488. // this is necessary for SSR hydration because text nodes are
  5489. // essentially merged when rendered to HTML strings
  5490. res[lastIndex] = createTextVNode(last.text + c);
  5491. } else if (c !== '') {
  5492. // convert primitive to vnode
  5493. res.push(createTextVNode(c));
  5494. }
  5495. } else {
  5496. if (isTextNode(c) && isTextNode(last)) {
  5497. // merge adjacent text nodes
  5498. res[lastIndex] = createTextVNode(last.text + c.text);
  5499. } else {
  5500. // default key for nested array children (likely generated by v-for)
  5501. if (isTrue(children._isVList) &&
  5502. isDef(c.tag) &&
  5503. isUndef(c.key) &&
  5504. isDef(nestedIndex)) {
  5505. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5506. }
  5507. res.push(c);
  5508. }
  5509. }
  5510. }
  5511. return res
  5512. }
  5513. /* */
  5514. function initProvide (vm) {
  5515. var provide = vm.$options.provide;
  5516. if (provide) {
  5517. vm._provided = typeof provide === 'function'
  5518. ? provide.call(vm)
  5519. : provide;
  5520. }
  5521. }
  5522. function initInjections (vm) {
  5523. var result = resolveInject(vm.$options.inject, vm);
  5524. if (result) {
  5525. toggleObserving(false);
  5526. Object.keys(result).forEach(function (key) {
  5527. /* istanbul ignore else */
  5528. if (true) {
  5529. defineReactive$$1(vm, key, result[key], function () {
  5530. warn(
  5531. "Avoid mutating an injected value directly since the changes will be " +
  5532. "overwritten whenever the provided component re-renders. " +
  5533. "injection being mutated: \"" + key + "\"",
  5534. vm
  5535. );
  5536. });
  5537. } else {}
  5538. });
  5539. toggleObserving(true);
  5540. }
  5541. }
  5542. function resolveInject (inject, vm) {
  5543. if (inject) {
  5544. // inject is :any because flow is not smart enough to figure out cached
  5545. var result = Object.create(null);
  5546. var keys = hasSymbol
  5547. ? Reflect.ownKeys(inject)
  5548. : Object.keys(inject);
  5549. for (var i = 0; i < keys.length; i++) {
  5550. var key = keys[i];
  5551. // #6574 in case the inject object is observed...
  5552. if (key === '__ob__') { continue }
  5553. var provideKey = inject[key].from;
  5554. var source = vm;
  5555. while (source) {
  5556. if (source._provided && hasOwn(source._provided, provideKey)) {
  5557. result[key] = source._provided[provideKey];
  5558. break
  5559. }
  5560. source = source.$parent;
  5561. }
  5562. if (!source) {
  5563. if ('default' in inject[key]) {
  5564. var provideDefault = inject[key].default;
  5565. result[key] = typeof provideDefault === 'function'
  5566. ? provideDefault.call(vm)
  5567. : provideDefault;
  5568. } else if (true) {
  5569. warn(("Injection \"" + key + "\" not found"), vm);
  5570. }
  5571. }
  5572. }
  5573. return result
  5574. }
  5575. }
  5576. /* */
  5577. /**
  5578. * Runtime helper for resolving raw children VNodes into a slot object.
  5579. */
  5580. function resolveSlots (
  5581. children,
  5582. context
  5583. ) {
  5584. if (!children || !children.length) {
  5585. return {}
  5586. }
  5587. var slots = {};
  5588. for (var i = 0, l = children.length; i < l; i++) {
  5589. var child = children[i];
  5590. var data = child.data;
  5591. // remove slot attribute if the node is resolved as a Vue slot node
  5592. if (data && data.attrs && data.attrs.slot) {
  5593. delete data.attrs.slot;
  5594. }
  5595. // named slots should only be respected if the vnode was rendered in the
  5596. // same context.
  5597. if ((child.context === context || child.fnContext === context) &&
  5598. data && data.slot != null
  5599. ) {
  5600. var name = data.slot;
  5601. var slot = (slots[name] || (slots[name] = []));
  5602. if (child.tag === 'template') {
  5603. slot.push.apply(slot, child.children || []);
  5604. } else {
  5605. slot.push(child);
  5606. }
  5607. } else {
  5608. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5609. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5610. (slots['page'] || (slots['page'] = [])).push(child);
  5611. }else{
  5612. (slots.default || (slots.default = [])).push(child);
  5613. }
  5614. }
  5615. }
  5616. // ignore slots that contains only whitespace
  5617. for (var name$1 in slots) {
  5618. if (slots[name$1].every(isWhitespace)) {
  5619. delete slots[name$1];
  5620. }
  5621. }
  5622. return slots
  5623. }
  5624. function isWhitespace (node) {
  5625. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5626. }
  5627. /* */
  5628. function normalizeScopedSlots (
  5629. slots,
  5630. normalSlots,
  5631. prevSlots
  5632. ) {
  5633. var res;
  5634. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5635. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5636. var key = slots && slots.$key;
  5637. if (!slots) {
  5638. res = {};
  5639. } else if (slots._normalized) {
  5640. // fast path 1: child component re-render only, parent did not change
  5641. return slots._normalized
  5642. } else if (
  5643. isStable &&
  5644. prevSlots &&
  5645. prevSlots !== emptyObject &&
  5646. key === prevSlots.$key &&
  5647. !hasNormalSlots &&
  5648. !prevSlots.$hasNormal
  5649. ) {
  5650. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5651. // only need to normalize once
  5652. return prevSlots
  5653. } else {
  5654. res = {};
  5655. for (var key$1 in slots) {
  5656. if (slots[key$1] && key$1[0] !== '$') {
  5657. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5658. }
  5659. }
  5660. }
  5661. // expose normal slots on scopedSlots
  5662. for (var key$2 in normalSlots) {
  5663. if (!(key$2 in res)) {
  5664. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5665. }
  5666. }
  5667. // avoriaz seems to mock a non-extensible $scopedSlots object
  5668. // and when that is passed down this would cause an error
  5669. if (slots && Object.isExtensible(slots)) {
  5670. (slots)._normalized = res;
  5671. }
  5672. def(res, '$stable', isStable);
  5673. def(res, '$key', key);
  5674. def(res, '$hasNormal', hasNormalSlots);
  5675. return res
  5676. }
  5677. function normalizeScopedSlot(normalSlots, key, fn) {
  5678. var normalized = function () {
  5679. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5680. res = res && typeof res === 'object' && !Array.isArray(res)
  5681. ? [res] // single vnode
  5682. : normalizeChildren(res);
  5683. return res && (
  5684. res.length === 0 ||
  5685. (res.length === 1 && res[0].isComment) // #9658
  5686. ) ? undefined
  5687. : res
  5688. };
  5689. // this is a slot using the new v-slot syntax without scope. although it is
  5690. // compiled as a scoped slot, render fn users would expect it to be present
  5691. // on this.$slots because the usage is semantically a normal slot.
  5692. if (fn.proxy) {
  5693. Object.defineProperty(normalSlots, key, {
  5694. get: normalized,
  5695. enumerable: true,
  5696. configurable: true
  5697. });
  5698. }
  5699. return normalized
  5700. }
  5701. function proxyNormalSlot(slots, key) {
  5702. return function () { return slots[key]; }
  5703. }
  5704. /* */
  5705. /**
  5706. * Runtime helper for rendering v-for lists.
  5707. */
  5708. function renderList (
  5709. val,
  5710. render
  5711. ) {
  5712. var ret, i, l, keys, key;
  5713. if (Array.isArray(val) || typeof val === 'string') {
  5714. ret = new Array(val.length);
  5715. for (i = 0, l = val.length; i < l; i++) {
  5716. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5717. }
  5718. } else if (typeof val === 'number') {
  5719. ret = new Array(val);
  5720. for (i = 0; i < val; i++) {
  5721. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5722. }
  5723. } else if (isObject(val)) {
  5724. if (hasSymbol && val[Symbol.iterator]) {
  5725. ret = [];
  5726. var iterator = val[Symbol.iterator]();
  5727. var result = iterator.next();
  5728. while (!result.done) {
  5729. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5730. result = iterator.next();
  5731. }
  5732. } else {
  5733. keys = Object.keys(val);
  5734. ret = new Array(keys.length);
  5735. for (i = 0, l = keys.length; i < l; i++) {
  5736. key = keys[i];
  5737. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5738. }
  5739. }
  5740. }
  5741. if (!isDef(ret)) {
  5742. ret = [];
  5743. }
  5744. (ret)._isVList = true;
  5745. return ret
  5746. }
  5747. /* */
  5748. /**
  5749. * Runtime helper for rendering <slot>
  5750. */
  5751. function renderSlot (
  5752. name,
  5753. fallback,
  5754. props,
  5755. bindObject
  5756. ) {
  5757. var scopedSlotFn = this.$scopedSlots[name];
  5758. var nodes;
  5759. if (scopedSlotFn) { // scoped slot
  5760. props = props || {};
  5761. if (bindObject) {
  5762. if ( true && !isObject(bindObject)) {
  5763. warn(
  5764. 'slot v-bind without argument expects an Object',
  5765. this
  5766. );
  5767. }
  5768. props = extend(extend({}, bindObject), props);
  5769. }
  5770. // fixed by xxxxxx app-plus scopedSlot
  5771. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5772. } else {
  5773. nodes = this.$slots[name] || fallback;
  5774. }
  5775. var target = props && props.slot;
  5776. if (target) {
  5777. return this.$createElement('template', { slot: target }, nodes)
  5778. } else {
  5779. return nodes
  5780. }
  5781. }
  5782. /* */
  5783. /**
  5784. * Runtime helper for resolving filters
  5785. */
  5786. function resolveFilter (id) {
  5787. return resolveAsset(this.$options, 'filters', id, true) || identity
  5788. }
  5789. /* */
  5790. function isKeyNotMatch (expect, actual) {
  5791. if (Array.isArray(expect)) {
  5792. return expect.indexOf(actual) === -1
  5793. } else {
  5794. return expect !== actual
  5795. }
  5796. }
  5797. /**
  5798. * Runtime helper for checking keyCodes from config.
  5799. * exposed as Vue.prototype._k
  5800. * passing in eventKeyName as last argument separately for backwards compat
  5801. */
  5802. function checkKeyCodes (
  5803. eventKeyCode,
  5804. key,
  5805. builtInKeyCode,
  5806. eventKeyName,
  5807. builtInKeyName
  5808. ) {
  5809. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5810. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5811. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5812. } else if (mappedKeyCode) {
  5813. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5814. } else if (eventKeyName) {
  5815. return hyphenate(eventKeyName) !== key
  5816. }
  5817. }
  5818. /* */
  5819. /**
  5820. * Runtime helper for merging v-bind="object" into a VNode's data.
  5821. */
  5822. function bindObjectProps (
  5823. data,
  5824. tag,
  5825. value,
  5826. asProp,
  5827. isSync
  5828. ) {
  5829. if (value) {
  5830. if (!isObject(value)) {
  5831. true && warn(
  5832. 'v-bind without argument expects an Object or Array value',
  5833. this
  5834. );
  5835. } else {
  5836. if (Array.isArray(value)) {
  5837. value = toObject(value);
  5838. }
  5839. var hash;
  5840. var loop = function ( key ) {
  5841. if (
  5842. key === 'class' ||
  5843. key === 'style' ||
  5844. isReservedAttribute(key)
  5845. ) {
  5846. hash = data;
  5847. } else {
  5848. var type = data.attrs && data.attrs.type;
  5849. hash = asProp || config.mustUseProp(tag, type, key)
  5850. ? data.domProps || (data.domProps = {})
  5851. : data.attrs || (data.attrs = {});
  5852. }
  5853. var camelizedKey = camelize(key);
  5854. var hyphenatedKey = hyphenate(key);
  5855. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5856. hash[key] = value[key];
  5857. if (isSync) {
  5858. var on = data.on || (data.on = {});
  5859. on[("update:" + key)] = function ($event) {
  5860. value[key] = $event;
  5861. };
  5862. }
  5863. }
  5864. };
  5865. for (var key in value) loop( key );
  5866. }
  5867. }
  5868. return data
  5869. }
  5870. /* */
  5871. /**
  5872. * Runtime helper for rendering static trees.
  5873. */
  5874. function renderStatic (
  5875. index,
  5876. isInFor
  5877. ) {
  5878. var cached = this._staticTrees || (this._staticTrees = []);
  5879. var tree = cached[index];
  5880. // if has already-rendered static tree and not inside v-for,
  5881. // we can reuse the same tree.
  5882. if (tree && !isInFor) {
  5883. return tree
  5884. }
  5885. // otherwise, render a fresh tree.
  5886. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5887. this._renderProxy,
  5888. null,
  5889. this // for render fns generated for functional component templates
  5890. );
  5891. markStatic(tree, ("__static__" + index), false);
  5892. return tree
  5893. }
  5894. /**
  5895. * Runtime helper for v-once.
  5896. * Effectively it means marking the node as static with a unique key.
  5897. */
  5898. function markOnce (
  5899. tree,
  5900. index,
  5901. key
  5902. ) {
  5903. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5904. return tree
  5905. }
  5906. function markStatic (
  5907. tree,
  5908. key,
  5909. isOnce
  5910. ) {
  5911. if (Array.isArray(tree)) {
  5912. for (var i = 0; i < tree.length; i++) {
  5913. if (tree[i] && typeof tree[i] !== 'string') {
  5914. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5915. }
  5916. }
  5917. } else {
  5918. markStaticNode(tree, key, isOnce);
  5919. }
  5920. }
  5921. function markStaticNode (node, key, isOnce) {
  5922. node.isStatic = true;
  5923. node.key = key;
  5924. node.isOnce = isOnce;
  5925. }
  5926. /* */
  5927. function bindObjectListeners (data, value) {
  5928. if (value) {
  5929. if (!isPlainObject(value)) {
  5930. true && warn(
  5931. 'v-on without argument expects an Object value',
  5932. this
  5933. );
  5934. } else {
  5935. var on = data.on = data.on ? extend({}, data.on) : {};
  5936. for (var key in value) {
  5937. var existing = on[key];
  5938. var ours = value[key];
  5939. on[key] = existing ? [].concat(existing, ours) : ours;
  5940. }
  5941. }
  5942. }
  5943. return data
  5944. }
  5945. /* */
  5946. function resolveScopedSlots (
  5947. fns, // see flow/vnode
  5948. res,
  5949. // the following are added in 2.6
  5950. hasDynamicKeys,
  5951. contentHashKey
  5952. ) {
  5953. res = res || { $stable: !hasDynamicKeys };
  5954. for (var i = 0; i < fns.length; i++) {
  5955. var slot = fns[i];
  5956. if (Array.isArray(slot)) {
  5957. resolveScopedSlots(slot, res, hasDynamicKeys);
  5958. } else if (slot) {
  5959. // marker for reverse proxying v-slot without scope on this.$slots
  5960. if (slot.proxy) {
  5961. slot.fn.proxy = true;
  5962. }
  5963. res[slot.key] = slot.fn;
  5964. }
  5965. }
  5966. if (contentHashKey) {
  5967. (res).$key = contentHashKey;
  5968. }
  5969. return res
  5970. }
  5971. /* */
  5972. function bindDynamicKeys (baseObj, values) {
  5973. for (var i = 0; i < values.length; i += 2) {
  5974. var key = values[i];
  5975. if (typeof key === 'string' && key) {
  5976. baseObj[values[i]] = values[i + 1];
  5977. } else if ( true && key !== '' && key !== null) {
  5978. // null is a special value for explicitly removing a binding
  5979. warn(
  5980. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5981. this
  5982. );
  5983. }
  5984. }
  5985. return baseObj
  5986. }
  5987. // helper to dynamically append modifier runtime markers to event names.
  5988. // ensure only append when value is already string, otherwise it will be cast
  5989. // to string and cause the type check to miss.
  5990. function prependModifier (value, symbol) {
  5991. return typeof value === 'string' ? symbol + value : value
  5992. }
  5993. /* */
  5994. function installRenderHelpers (target) {
  5995. target._o = markOnce;
  5996. target._n = toNumber;
  5997. target._s = toString;
  5998. target._l = renderList;
  5999. target._t = renderSlot;
  6000. target._q = looseEqual;
  6001. target._i = looseIndexOf;
  6002. target._m = renderStatic;
  6003. target._f = resolveFilter;
  6004. target._k = checkKeyCodes;
  6005. target._b = bindObjectProps;
  6006. target._v = createTextVNode;
  6007. target._e = createEmptyVNode;
  6008. target._u = resolveScopedSlots;
  6009. target._g = bindObjectListeners;
  6010. target._d = bindDynamicKeys;
  6011. target._p = prependModifier;
  6012. }
  6013. /* */
  6014. function FunctionalRenderContext (
  6015. data,
  6016. props,
  6017. children,
  6018. parent,
  6019. Ctor
  6020. ) {
  6021. var this$1 = this;
  6022. var options = Ctor.options;
  6023. // ensure the createElement function in functional components
  6024. // gets a unique context - this is necessary for correct named slot check
  6025. var contextVm;
  6026. if (hasOwn(parent, '_uid')) {
  6027. contextVm = Object.create(parent);
  6028. // $flow-disable-line
  6029. contextVm._original = parent;
  6030. } else {
  6031. // the context vm passed in is a functional context as well.
  6032. // in this case we want to make sure we are able to get a hold to the
  6033. // real context instance.
  6034. contextVm = parent;
  6035. // $flow-disable-line
  6036. parent = parent._original;
  6037. }
  6038. var isCompiled = isTrue(options._compiled);
  6039. var needNormalization = !isCompiled;
  6040. this.data = data;
  6041. this.props = props;
  6042. this.children = children;
  6043. this.parent = parent;
  6044. this.listeners = data.on || emptyObject;
  6045. this.injections = resolveInject(options.inject, parent);
  6046. this.slots = function () {
  6047. if (!this$1.$slots) {
  6048. normalizeScopedSlots(
  6049. data.scopedSlots,
  6050. this$1.$slots = resolveSlots(children, parent)
  6051. );
  6052. }
  6053. return this$1.$slots
  6054. };
  6055. Object.defineProperty(this, 'scopedSlots', ({
  6056. enumerable: true,
  6057. get: function get () {
  6058. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6059. }
  6060. }));
  6061. // support for compiled functional template
  6062. if (isCompiled) {
  6063. // exposing $options for renderStatic()
  6064. this.$options = options;
  6065. // pre-resolve slots for renderSlot()
  6066. this.$slots = this.slots();
  6067. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6068. }
  6069. if (options._scopeId) {
  6070. this._c = function (a, b, c, d) {
  6071. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6072. if (vnode && !Array.isArray(vnode)) {
  6073. vnode.fnScopeId = options._scopeId;
  6074. vnode.fnContext = parent;
  6075. }
  6076. return vnode
  6077. };
  6078. } else {
  6079. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6080. }
  6081. }
  6082. installRenderHelpers(FunctionalRenderContext.prototype);
  6083. function createFunctionalComponent (
  6084. Ctor,
  6085. propsData,
  6086. data,
  6087. contextVm,
  6088. children
  6089. ) {
  6090. var options = Ctor.options;
  6091. var props = {};
  6092. var propOptions = options.props;
  6093. if (isDef(propOptions)) {
  6094. for (var key in propOptions) {
  6095. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6096. }
  6097. } else {
  6098. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6099. if (isDef(data.props)) { mergeProps(props, data.props); }
  6100. }
  6101. var renderContext = new FunctionalRenderContext(
  6102. data,
  6103. props,
  6104. children,
  6105. contextVm,
  6106. Ctor
  6107. );
  6108. var vnode = options.render.call(null, renderContext._c, renderContext);
  6109. if (vnode instanceof VNode) {
  6110. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6111. } else if (Array.isArray(vnode)) {
  6112. var vnodes = normalizeChildren(vnode) || [];
  6113. var res = new Array(vnodes.length);
  6114. for (var i = 0; i < vnodes.length; i++) {
  6115. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6116. }
  6117. return res
  6118. }
  6119. }
  6120. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6121. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6122. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6123. // that should not be matched to match.
  6124. var clone = cloneVNode(vnode);
  6125. clone.fnContext = contextVm;
  6126. clone.fnOptions = options;
  6127. if (true) {
  6128. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6129. }
  6130. if (data.slot) {
  6131. (clone.data || (clone.data = {})).slot = data.slot;
  6132. }
  6133. return clone
  6134. }
  6135. function mergeProps (to, from) {
  6136. for (var key in from) {
  6137. to[camelize(key)] = from[key];
  6138. }
  6139. }
  6140. /* */
  6141. /* */
  6142. /* */
  6143. /* */
  6144. // inline hooks to be invoked on component VNodes during patch
  6145. var componentVNodeHooks = {
  6146. init: function init (vnode, hydrating) {
  6147. if (
  6148. vnode.componentInstance &&
  6149. !vnode.componentInstance._isDestroyed &&
  6150. vnode.data.keepAlive
  6151. ) {
  6152. // kept-alive components, treat as a patch
  6153. var mountedNode = vnode; // work around flow
  6154. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6155. } else {
  6156. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6157. vnode,
  6158. activeInstance
  6159. );
  6160. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6161. }
  6162. },
  6163. prepatch: function prepatch (oldVnode, vnode) {
  6164. var options = vnode.componentOptions;
  6165. var child = vnode.componentInstance = oldVnode.componentInstance;
  6166. updateChildComponent(
  6167. child,
  6168. options.propsData, // updated props
  6169. options.listeners, // updated listeners
  6170. vnode, // new parent vnode
  6171. options.children // new children
  6172. );
  6173. },
  6174. insert: function insert (vnode) {
  6175. var context = vnode.context;
  6176. var componentInstance = vnode.componentInstance;
  6177. if (!componentInstance._isMounted) {
  6178. callHook(componentInstance, 'onServiceCreated');
  6179. callHook(componentInstance, 'onServiceAttached');
  6180. componentInstance._isMounted = true;
  6181. callHook(componentInstance, 'mounted');
  6182. }
  6183. if (vnode.data.keepAlive) {
  6184. if (context._isMounted) {
  6185. // vue-router#1212
  6186. // During updates, a kept-alive component's child components may
  6187. // change, so directly walking the tree here may call activated hooks
  6188. // on incorrect children. Instead we push them into a queue which will
  6189. // be processed after the whole patch process ended.
  6190. queueActivatedComponent(componentInstance);
  6191. } else {
  6192. activateChildComponent(componentInstance, true /* direct */);
  6193. }
  6194. }
  6195. },
  6196. destroy: function destroy (vnode) {
  6197. var componentInstance = vnode.componentInstance;
  6198. if (!componentInstance._isDestroyed) {
  6199. if (!vnode.data.keepAlive) {
  6200. componentInstance.$destroy();
  6201. } else {
  6202. deactivateChildComponent(componentInstance, true /* direct */);
  6203. }
  6204. }
  6205. }
  6206. };
  6207. var hooksToMerge = Object.keys(componentVNodeHooks);
  6208. function createComponent (
  6209. Ctor,
  6210. data,
  6211. context,
  6212. children,
  6213. tag
  6214. ) {
  6215. if (isUndef(Ctor)) {
  6216. return
  6217. }
  6218. var baseCtor = context.$options._base;
  6219. // plain options object: turn it into a constructor
  6220. if (isObject(Ctor)) {
  6221. Ctor = baseCtor.extend(Ctor);
  6222. }
  6223. // if at this stage it's not a constructor or an async component factory,
  6224. // reject.
  6225. if (typeof Ctor !== 'function') {
  6226. if (true) {
  6227. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6228. }
  6229. return
  6230. }
  6231. // async component
  6232. var asyncFactory;
  6233. if (isUndef(Ctor.cid)) {
  6234. asyncFactory = Ctor;
  6235. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6236. if (Ctor === undefined) {
  6237. // return a placeholder node for async component, which is rendered
  6238. // as a comment node but preserves all the raw information for the node.
  6239. // the information will be used for async server-rendering and hydration.
  6240. return createAsyncPlaceholder(
  6241. asyncFactory,
  6242. data,
  6243. context,
  6244. children,
  6245. tag
  6246. )
  6247. }
  6248. }
  6249. data = data || {};
  6250. // resolve constructor options in case global mixins are applied after
  6251. // component constructor creation
  6252. resolveConstructorOptions(Ctor);
  6253. // transform component v-model data into props & events
  6254. if (isDef(data.model)) {
  6255. transformModel(Ctor.options, data);
  6256. }
  6257. // extract props
  6258. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6259. // functional component
  6260. if (isTrue(Ctor.options.functional)) {
  6261. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6262. }
  6263. // extract listeners, since these needs to be treated as
  6264. // child component listeners instead of DOM listeners
  6265. var listeners = data.on;
  6266. // replace with listeners with .native modifier
  6267. // so it gets processed during parent component patch.
  6268. data.on = data.nativeOn;
  6269. if (isTrue(Ctor.options.abstract)) {
  6270. // abstract components do not keep anything
  6271. // other than props & listeners & slot
  6272. // work around flow
  6273. var slot = data.slot;
  6274. data = {};
  6275. if (slot) {
  6276. data.slot = slot;
  6277. }
  6278. }
  6279. // install component management hooks onto the placeholder node
  6280. installComponentHooks(data);
  6281. // return a placeholder vnode
  6282. var name = Ctor.options.name || tag;
  6283. var vnode = new VNode(
  6284. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6285. data, undefined, undefined, undefined, context,
  6286. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6287. asyncFactory
  6288. );
  6289. return vnode
  6290. }
  6291. function createComponentInstanceForVnode (
  6292. vnode, // we know it's MountedComponentVNode but flow doesn't
  6293. parent // activeInstance in lifecycle state
  6294. ) {
  6295. var options = {
  6296. _isComponent: true,
  6297. _parentVnode: vnode,
  6298. parent: parent
  6299. };
  6300. // check inline-template render functions
  6301. var inlineTemplate = vnode.data.inlineTemplate;
  6302. if (isDef(inlineTemplate)) {
  6303. options.render = inlineTemplate.render;
  6304. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6305. }
  6306. return new vnode.componentOptions.Ctor(options)
  6307. }
  6308. function installComponentHooks (data) {
  6309. var hooks = data.hook || (data.hook = {});
  6310. for (var i = 0; i < hooksToMerge.length; i++) {
  6311. var key = hooksToMerge[i];
  6312. var existing = hooks[key];
  6313. var toMerge = componentVNodeHooks[key];
  6314. if (existing !== toMerge && !(existing && existing._merged)) {
  6315. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6316. }
  6317. }
  6318. }
  6319. function mergeHook$1 (f1, f2) {
  6320. var merged = function (a, b) {
  6321. // flow complains about extra args which is why we use any
  6322. f1(a, b);
  6323. f2(a, b);
  6324. };
  6325. merged._merged = true;
  6326. return merged
  6327. }
  6328. // transform component v-model info (value and callback) into
  6329. // prop and event handler respectively.
  6330. function transformModel (options, data) {
  6331. var prop = (options.model && options.model.prop) || 'value';
  6332. var event = (options.model && options.model.event) || 'input'
  6333. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6334. var on = data.on || (data.on = {});
  6335. var existing = on[event];
  6336. var callback = data.model.callback;
  6337. if (isDef(existing)) {
  6338. if (
  6339. Array.isArray(existing)
  6340. ? existing.indexOf(callback) === -1
  6341. : existing !== callback
  6342. ) {
  6343. on[event] = [callback].concat(existing);
  6344. }
  6345. } else {
  6346. on[event] = callback;
  6347. }
  6348. }
  6349. /* */
  6350. var SIMPLE_NORMALIZE = 1;
  6351. var ALWAYS_NORMALIZE = 2;
  6352. // wrapper function for providing a more flexible interface
  6353. // without getting yelled at by flow
  6354. function createElement (
  6355. context,
  6356. tag,
  6357. data,
  6358. children,
  6359. normalizationType,
  6360. alwaysNormalize
  6361. ) {
  6362. if (Array.isArray(data) || isPrimitive(data)) {
  6363. normalizationType = children;
  6364. children = data;
  6365. data = undefined;
  6366. }
  6367. if (isTrue(alwaysNormalize)) {
  6368. normalizationType = ALWAYS_NORMALIZE;
  6369. }
  6370. return _createElement(context, tag, data, children, normalizationType)
  6371. }
  6372. function _createElement (
  6373. context,
  6374. tag,
  6375. data,
  6376. children,
  6377. normalizationType
  6378. ) {
  6379. if (isDef(data) && isDef((data).__ob__)) {
  6380. true && warn(
  6381. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6382. 'Always create fresh vnode data objects in each render!',
  6383. context
  6384. );
  6385. return createEmptyVNode()
  6386. }
  6387. // object syntax in v-bind
  6388. if (isDef(data) && isDef(data.is)) {
  6389. tag = data.is;
  6390. }
  6391. if (!tag) {
  6392. // in case of component :is set to falsy value
  6393. return createEmptyVNode()
  6394. }
  6395. // warn against non-primitive key
  6396. if ( true &&
  6397. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6398. ) {
  6399. {
  6400. warn(
  6401. 'Avoid using non-primitive value as key, ' +
  6402. 'use string/number value instead.',
  6403. context
  6404. );
  6405. }
  6406. }
  6407. // support single function children as default scoped slot
  6408. if (Array.isArray(children) &&
  6409. typeof children[0] === 'function'
  6410. ) {
  6411. data = data || {};
  6412. data.scopedSlots = { default: children[0] };
  6413. children.length = 0;
  6414. }
  6415. if (normalizationType === ALWAYS_NORMALIZE) {
  6416. children = normalizeChildren(children);
  6417. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6418. children = simpleNormalizeChildren(children);
  6419. }
  6420. var vnode, ns;
  6421. if (typeof tag === 'string') {
  6422. var Ctor;
  6423. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6424. if (config.isReservedTag(tag)) {
  6425. // platform built-in elements
  6426. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6427. warn(
  6428. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6429. context
  6430. );
  6431. }
  6432. vnode = new VNode(
  6433. config.parsePlatformTagName(tag), data, children,
  6434. undefined, undefined, context
  6435. );
  6436. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6437. // component
  6438. vnode = createComponent(Ctor, data, context, children, tag);
  6439. } else {
  6440. // unknown or unlisted namespaced elements
  6441. // check at runtime because it may get assigned a namespace when its
  6442. // parent normalizes children
  6443. vnode = new VNode(
  6444. tag, data, children,
  6445. undefined, undefined, context
  6446. );
  6447. }
  6448. } else {
  6449. // direct component options / constructor
  6450. vnode = createComponent(tag, data, context, children);
  6451. }
  6452. if (Array.isArray(vnode)) {
  6453. return vnode
  6454. } else if (isDef(vnode)) {
  6455. if (isDef(ns)) { applyNS(vnode, ns); }
  6456. if (isDef(data)) { registerDeepBindings(data); }
  6457. return vnode
  6458. } else {
  6459. return createEmptyVNode()
  6460. }
  6461. }
  6462. function applyNS (vnode, ns, force) {
  6463. vnode.ns = ns;
  6464. if (vnode.tag === 'foreignObject') {
  6465. // use default namespace inside foreignObject
  6466. ns = undefined;
  6467. force = true;
  6468. }
  6469. if (isDef(vnode.children)) {
  6470. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6471. var child = vnode.children[i];
  6472. if (isDef(child.tag) && (
  6473. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6474. applyNS(child, ns, force);
  6475. }
  6476. }
  6477. }
  6478. }
  6479. // ref #5318
  6480. // necessary to ensure parent re-render when deep bindings like :style and
  6481. // :class are used on slot nodes
  6482. function registerDeepBindings (data) {
  6483. if (isObject(data.style)) {
  6484. traverse(data.style);
  6485. }
  6486. if (isObject(data.class)) {
  6487. traverse(data.class);
  6488. }
  6489. }
  6490. /* */
  6491. function initRender (vm) {
  6492. vm._vnode = null; // the root of the child tree
  6493. vm._staticTrees = null; // v-once cached trees
  6494. var options = vm.$options;
  6495. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6496. var renderContext = parentVnode && parentVnode.context;
  6497. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6498. vm.$scopedSlots = emptyObject;
  6499. // bind the createElement fn to this instance
  6500. // so that we get proper render context inside it.
  6501. // args order: tag, data, children, normalizationType, alwaysNormalize
  6502. // internal version is used by render functions compiled from templates
  6503. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6504. // normalization is always applied for the public version, used in
  6505. // user-written render functions.
  6506. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6507. // $attrs & $listeners are exposed for easier HOC creation.
  6508. // they need to be reactive so that HOCs using them are always updated
  6509. var parentData = parentVnode && parentVnode.data;
  6510. /* istanbul ignore else */
  6511. if (true) {
  6512. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6514. }, true);
  6515. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6516. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6517. }, true);
  6518. } else {}
  6519. }
  6520. var currentRenderingInstance = null;
  6521. function renderMixin (Vue) {
  6522. // install runtime convenience helpers
  6523. installRenderHelpers(Vue.prototype);
  6524. Vue.prototype.$nextTick = function (fn) {
  6525. return nextTick(fn, this)
  6526. };
  6527. Vue.prototype._render = function () {
  6528. var vm = this;
  6529. var ref = vm.$options;
  6530. var render = ref.render;
  6531. var _parentVnode = ref._parentVnode;
  6532. if (_parentVnode) {
  6533. vm.$scopedSlots = normalizeScopedSlots(
  6534. _parentVnode.data.scopedSlots,
  6535. vm.$slots,
  6536. vm.$scopedSlots
  6537. );
  6538. }
  6539. // set parent vnode. this allows render functions to have access
  6540. // to the data on the placeholder node.
  6541. vm.$vnode = _parentVnode;
  6542. // render self
  6543. var vnode;
  6544. try {
  6545. // There's no need to maintain a stack because all render fns are called
  6546. // separately from one another. Nested component's render fns are called
  6547. // when parent component is patched.
  6548. currentRenderingInstance = vm;
  6549. vnode = render.call(vm._renderProxy, vm.$createElement);
  6550. } catch (e) {
  6551. handleError(e, vm, "render");
  6552. // return error render result,
  6553. // or previous vnode to prevent render error causing blank component
  6554. /* istanbul ignore else */
  6555. if ( true && vm.$options.renderError) {
  6556. try {
  6557. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6558. } catch (e) {
  6559. handleError(e, vm, "renderError");
  6560. vnode = vm._vnode;
  6561. }
  6562. } else {
  6563. vnode = vm._vnode;
  6564. }
  6565. } finally {
  6566. currentRenderingInstance = null;
  6567. }
  6568. // if the returned array contains only a single node, allow it
  6569. if (Array.isArray(vnode) && vnode.length === 1) {
  6570. vnode = vnode[0];
  6571. }
  6572. // return empty vnode in case the render function errored out
  6573. if (!(vnode instanceof VNode)) {
  6574. if ( true && Array.isArray(vnode)) {
  6575. warn(
  6576. 'Multiple root nodes returned from render function. Render function ' +
  6577. 'should return a single root node.',
  6578. vm
  6579. );
  6580. }
  6581. vnode = createEmptyVNode();
  6582. }
  6583. // set parent
  6584. vnode.parent = _parentVnode;
  6585. return vnode
  6586. };
  6587. }
  6588. /* */
  6589. function ensureCtor (comp, base) {
  6590. if (
  6591. comp.__esModule ||
  6592. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6593. ) {
  6594. comp = comp.default;
  6595. }
  6596. return isObject(comp)
  6597. ? base.extend(comp)
  6598. : comp
  6599. }
  6600. function createAsyncPlaceholder (
  6601. factory,
  6602. data,
  6603. context,
  6604. children,
  6605. tag
  6606. ) {
  6607. var node = createEmptyVNode();
  6608. node.asyncFactory = factory;
  6609. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6610. return node
  6611. }
  6612. function resolveAsyncComponent (
  6613. factory,
  6614. baseCtor
  6615. ) {
  6616. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6617. return factory.errorComp
  6618. }
  6619. if (isDef(factory.resolved)) {
  6620. return factory.resolved
  6621. }
  6622. var owner = currentRenderingInstance;
  6623. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6624. // already pending
  6625. factory.owners.push(owner);
  6626. }
  6627. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6628. return factory.loadingComp
  6629. }
  6630. if (owner && !isDef(factory.owners)) {
  6631. var owners = factory.owners = [owner];
  6632. var sync = true;
  6633. var timerLoading = null;
  6634. var timerTimeout = null
  6635. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6636. var forceRender = function (renderCompleted) {
  6637. for (var i = 0, l = owners.length; i < l; i++) {
  6638. (owners[i]).$forceUpdate();
  6639. }
  6640. if (renderCompleted) {
  6641. owners.length = 0;
  6642. if (timerLoading !== null) {
  6643. clearTimeout(timerLoading);
  6644. timerLoading = null;
  6645. }
  6646. if (timerTimeout !== null) {
  6647. clearTimeout(timerTimeout);
  6648. timerTimeout = null;
  6649. }
  6650. }
  6651. };
  6652. var resolve = once(function (res) {
  6653. // cache resolved
  6654. factory.resolved = ensureCtor(res, baseCtor);
  6655. // invoke callbacks only if this is not a synchronous resolve
  6656. // (async resolves are shimmed as synchronous during SSR)
  6657. if (!sync) {
  6658. forceRender(true);
  6659. } else {
  6660. owners.length = 0;
  6661. }
  6662. });
  6663. var reject = once(function (reason) {
  6664. true && warn(
  6665. "Failed to resolve async component: " + (String(factory)) +
  6666. (reason ? ("\nReason: " + reason) : '')
  6667. );
  6668. if (isDef(factory.errorComp)) {
  6669. factory.error = true;
  6670. forceRender(true);
  6671. }
  6672. });
  6673. var res = factory(resolve, reject);
  6674. if (isObject(res)) {
  6675. if (isPromise(res)) {
  6676. // () => Promise
  6677. if (isUndef(factory.resolved)) {
  6678. res.then(resolve, reject);
  6679. }
  6680. } else if (isPromise(res.component)) {
  6681. res.component.then(resolve, reject);
  6682. if (isDef(res.error)) {
  6683. factory.errorComp = ensureCtor(res.error, baseCtor);
  6684. }
  6685. if (isDef(res.loading)) {
  6686. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6687. if (res.delay === 0) {
  6688. factory.loading = true;
  6689. } else {
  6690. timerLoading = setTimeout(function () {
  6691. timerLoading = null;
  6692. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6693. factory.loading = true;
  6694. forceRender(false);
  6695. }
  6696. }, res.delay || 200);
  6697. }
  6698. }
  6699. if (isDef(res.timeout)) {
  6700. timerTimeout = setTimeout(function () {
  6701. timerTimeout = null;
  6702. if (isUndef(factory.resolved)) {
  6703. reject(
  6704. true
  6705. ? ("timeout (" + (res.timeout) + "ms)")
  6706. : undefined
  6707. );
  6708. }
  6709. }, res.timeout);
  6710. }
  6711. }
  6712. }
  6713. sync = false;
  6714. // return in case resolved synchronously
  6715. return factory.loading
  6716. ? factory.loadingComp
  6717. : factory.resolved
  6718. }
  6719. }
  6720. /* */
  6721. function isAsyncPlaceholder (node) {
  6722. return node.isComment && node.asyncFactory
  6723. }
  6724. /* */
  6725. function getFirstComponentChild (children) {
  6726. if (Array.isArray(children)) {
  6727. for (var i = 0; i < children.length; i++) {
  6728. var c = children[i];
  6729. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6730. return c
  6731. }
  6732. }
  6733. }
  6734. }
  6735. /* */
  6736. /* */
  6737. function initEvents (vm) {
  6738. vm._events = Object.create(null);
  6739. vm._hasHookEvent = false;
  6740. // init parent attached events
  6741. var listeners = vm.$options._parentListeners;
  6742. if (listeners) {
  6743. updateComponentListeners(vm, listeners);
  6744. }
  6745. }
  6746. var target;
  6747. function add (event, fn) {
  6748. target.$on(event, fn);
  6749. }
  6750. function remove$1 (event, fn) {
  6751. target.$off(event, fn);
  6752. }
  6753. function createOnceHandler (event, fn) {
  6754. var _target = target;
  6755. return function onceHandler () {
  6756. var res = fn.apply(null, arguments);
  6757. if (res !== null) {
  6758. _target.$off(event, onceHandler);
  6759. }
  6760. }
  6761. }
  6762. function updateComponentListeners (
  6763. vm,
  6764. listeners,
  6765. oldListeners
  6766. ) {
  6767. target = vm;
  6768. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6769. target = undefined;
  6770. }
  6771. function eventsMixin (Vue) {
  6772. var hookRE = /^hook:/;
  6773. Vue.prototype.$on = function (event, fn) {
  6774. var vm = this;
  6775. if (Array.isArray(event)) {
  6776. for (var i = 0, l = event.length; i < l; i++) {
  6777. vm.$on(event[i], fn);
  6778. }
  6779. } else {
  6780. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6781. // optimize hook:event cost by using a boolean flag marked at registration
  6782. // instead of a hash lookup
  6783. if (hookRE.test(event)) {
  6784. vm._hasHookEvent = true;
  6785. }
  6786. }
  6787. return vm
  6788. };
  6789. Vue.prototype.$once = function (event, fn) {
  6790. var vm = this;
  6791. function on () {
  6792. vm.$off(event, on);
  6793. fn.apply(vm, arguments);
  6794. }
  6795. on.fn = fn;
  6796. vm.$on(event, on);
  6797. return vm
  6798. };
  6799. Vue.prototype.$off = function (event, fn) {
  6800. var vm = this;
  6801. // all
  6802. if (!arguments.length) {
  6803. vm._events = Object.create(null);
  6804. return vm
  6805. }
  6806. // array of events
  6807. if (Array.isArray(event)) {
  6808. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6809. vm.$off(event[i$1], fn);
  6810. }
  6811. return vm
  6812. }
  6813. // specific event
  6814. var cbs = vm._events[event];
  6815. if (!cbs) {
  6816. return vm
  6817. }
  6818. if (!fn) {
  6819. vm._events[event] = null;
  6820. return vm
  6821. }
  6822. // specific handler
  6823. var cb;
  6824. var i = cbs.length;
  6825. while (i--) {
  6826. cb = cbs[i];
  6827. if (cb === fn || cb.fn === fn) {
  6828. cbs.splice(i, 1);
  6829. break
  6830. }
  6831. }
  6832. return vm
  6833. };
  6834. Vue.prototype.$emit = function (event) {
  6835. var vm = this;
  6836. if (true) {
  6837. var lowerCaseEvent = event.toLowerCase();
  6838. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6839. tip(
  6840. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6841. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6842. "Note that HTML attributes are case-insensitive and you cannot use " +
  6843. "v-on to listen to camelCase events when using in-DOM templates. " +
  6844. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6845. );
  6846. }
  6847. }
  6848. var cbs = vm._events[event];
  6849. if (cbs) {
  6850. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6851. var args = toArray(arguments, 1);
  6852. var info = "event handler for \"" + event + "\"";
  6853. for (var i = 0, l = cbs.length; i < l; i++) {
  6854. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6855. }
  6856. }
  6857. return vm
  6858. };
  6859. }
  6860. /* */
  6861. var activeInstance = null;
  6862. var isUpdatingChildComponent = false;
  6863. function setActiveInstance(vm) {
  6864. var prevActiveInstance = activeInstance;
  6865. activeInstance = vm;
  6866. return function () {
  6867. activeInstance = prevActiveInstance;
  6868. }
  6869. }
  6870. function initLifecycle (vm) {
  6871. var options = vm.$options;
  6872. // locate first non-abstract parent
  6873. var parent = options.parent;
  6874. if (parent && !options.abstract) {
  6875. while (parent.$options.abstract && parent.$parent) {
  6876. parent = parent.$parent;
  6877. }
  6878. parent.$children.push(vm);
  6879. }
  6880. vm.$parent = parent;
  6881. vm.$root = parent ? parent.$root : vm;
  6882. vm.$children = [];
  6883. vm.$refs = {};
  6884. vm._watcher = null;
  6885. vm._inactive = null;
  6886. vm._directInactive = false;
  6887. vm._isMounted = false;
  6888. vm._isDestroyed = false;
  6889. vm._isBeingDestroyed = false;
  6890. }
  6891. function lifecycleMixin (Vue) {
  6892. Vue.prototype._update = function (vnode, hydrating) {
  6893. var vm = this;
  6894. var prevEl = vm.$el;
  6895. var prevVnode = vm._vnode;
  6896. var restoreActiveInstance = setActiveInstance(vm);
  6897. vm._vnode = vnode;
  6898. // Vue.prototype.__patch__ is injected in entry points
  6899. // based on the rendering backend used.
  6900. if (!prevVnode) {
  6901. // initial render
  6902. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6903. } else {
  6904. // updates
  6905. vm.$el = vm.__patch__(prevVnode, vnode);
  6906. }
  6907. restoreActiveInstance();
  6908. // update __vue__ reference
  6909. if (prevEl) {
  6910. prevEl.__vue__ = null;
  6911. }
  6912. if (vm.$el) {
  6913. vm.$el.__vue__ = vm;
  6914. }
  6915. // if parent is an HOC, update its $el as well
  6916. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6917. vm.$parent.$el = vm.$el;
  6918. }
  6919. // updated hook is called by the scheduler to ensure that children are
  6920. // updated in a parent's updated hook.
  6921. };
  6922. Vue.prototype.$forceUpdate = function () {
  6923. var vm = this;
  6924. if (vm._watcher) {
  6925. vm._watcher.update();
  6926. }
  6927. };
  6928. Vue.prototype.$destroy = function () {
  6929. var vm = this;
  6930. if (vm._isBeingDestroyed) {
  6931. return
  6932. }
  6933. callHook(vm, 'beforeDestroy');
  6934. vm._isBeingDestroyed = true;
  6935. // remove self from parent
  6936. var parent = vm.$parent;
  6937. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6938. remove(parent.$children, vm);
  6939. }
  6940. // teardown watchers
  6941. if (vm._watcher) {
  6942. vm._watcher.teardown();
  6943. }
  6944. var i = vm._watchers.length;
  6945. while (i--) {
  6946. vm._watchers[i].teardown();
  6947. }
  6948. // remove reference from data ob
  6949. // frozen object may not have observer.
  6950. if (vm._data.__ob__) {
  6951. vm._data.__ob__.vmCount--;
  6952. }
  6953. // call the last hook...
  6954. vm._isDestroyed = true;
  6955. // invoke destroy hooks on current rendered tree
  6956. vm.__patch__(vm._vnode, null);
  6957. // fire destroyed hook
  6958. callHook(vm, 'destroyed');
  6959. // turn off all instance listeners.
  6960. vm.$off();
  6961. // remove __vue__ reference
  6962. if (vm.$el) {
  6963. vm.$el.__vue__ = null;
  6964. }
  6965. // release circular reference (#6759)
  6966. if (vm.$vnode) {
  6967. vm.$vnode.parent = null;
  6968. }
  6969. };
  6970. }
  6971. function updateChildComponent (
  6972. vm,
  6973. propsData,
  6974. listeners,
  6975. parentVnode,
  6976. renderChildren
  6977. ) {
  6978. if (true) {
  6979. isUpdatingChildComponent = true;
  6980. }
  6981. // determine whether component has slot children
  6982. // we need to do this before overwriting $options._renderChildren.
  6983. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6984. // dynamic slot names). Static scoped slots compiled from template has the
  6985. // "$stable" marker.
  6986. var newScopedSlots = parentVnode.data.scopedSlots;
  6987. var oldScopedSlots = vm.$scopedSlots;
  6988. var hasDynamicScopedSlot = !!(
  6989. (newScopedSlots && !newScopedSlots.$stable) ||
  6990. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6991. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6992. );
  6993. // Any static slot children from the parent may have changed during parent's
  6994. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6995. // update is necessary to ensure correctness.
  6996. var needsForceUpdate = !!(
  6997. renderChildren || // has new static slots
  6998. vm.$options._renderChildren || // has old static slots
  6999. hasDynamicScopedSlot
  7000. );
  7001. vm.$options._parentVnode = parentVnode;
  7002. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7003. if (vm._vnode) { // update child tree's parent
  7004. vm._vnode.parent = parentVnode;
  7005. }
  7006. vm.$options._renderChildren = renderChildren;
  7007. // update $attrs and $listeners hash
  7008. // these are also reactive so they may trigger child update if the child
  7009. // used them during render
  7010. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7011. vm.$listeners = listeners || emptyObject;
  7012. // update props
  7013. if (propsData && vm.$options.props) {
  7014. toggleObserving(false);
  7015. var props = vm._props;
  7016. var propKeys = vm.$options._propKeys || [];
  7017. for (var i = 0; i < propKeys.length; i++) {
  7018. var key = propKeys[i];
  7019. var propOptions = vm.$options.props; // wtf flow?
  7020. props[key] = validateProp(key, propOptions, propsData, vm);
  7021. }
  7022. toggleObserving(true);
  7023. // keep a copy of raw propsData
  7024. vm.$options.propsData = propsData;
  7025. }
  7026. // fixed by xxxxxx update properties(mp runtime)
  7027. vm._$updateProperties && vm._$updateProperties(vm);
  7028. // update listeners
  7029. listeners = listeners || emptyObject;
  7030. var oldListeners = vm.$options._parentListeners;
  7031. vm.$options._parentListeners = listeners;
  7032. updateComponentListeners(vm, listeners, oldListeners);
  7033. // resolve slots + force update if has children
  7034. if (needsForceUpdate) {
  7035. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7036. vm.$forceUpdate();
  7037. }
  7038. if (true) {
  7039. isUpdatingChildComponent = false;
  7040. }
  7041. }
  7042. function isInInactiveTree (vm) {
  7043. while (vm && (vm = vm.$parent)) {
  7044. if (vm._inactive) { return true }
  7045. }
  7046. return false
  7047. }
  7048. function activateChildComponent (vm, direct) {
  7049. if (direct) {
  7050. vm._directInactive = false;
  7051. if (isInInactiveTree(vm)) {
  7052. return
  7053. }
  7054. } else if (vm._directInactive) {
  7055. return
  7056. }
  7057. if (vm._inactive || vm._inactive === null) {
  7058. vm._inactive = false;
  7059. for (var i = 0; i < vm.$children.length; i++) {
  7060. activateChildComponent(vm.$children[i]);
  7061. }
  7062. callHook(vm, 'activated');
  7063. }
  7064. }
  7065. function deactivateChildComponent (vm, direct) {
  7066. if (direct) {
  7067. vm._directInactive = true;
  7068. if (isInInactiveTree(vm)) {
  7069. return
  7070. }
  7071. }
  7072. if (!vm._inactive) {
  7073. vm._inactive = true;
  7074. for (var i = 0; i < vm.$children.length; i++) {
  7075. deactivateChildComponent(vm.$children[i]);
  7076. }
  7077. callHook(vm, 'deactivated');
  7078. }
  7079. }
  7080. function callHook (vm, hook) {
  7081. // #7573 disable dep collection when invoking lifecycle hooks
  7082. pushTarget();
  7083. var handlers = vm.$options[hook];
  7084. var info = hook + " hook";
  7085. if (handlers) {
  7086. for (var i = 0, j = handlers.length; i < j; i++) {
  7087. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7088. }
  7089. }
  7090. if (vm._hasHookEvent) {
  7091. vm.$emit('hook:' + hook);
  7092. }
  7093. popTarget();
  7094. }
  7095. /* */
  7096. var MAX_UPDATE_COUNT = 100;
  7097. var queue = [];
  7098. var activatedChildren = [];
  7099. var has = {};
  7100. var circular = {};
  7101. var waiting = false;
  7102. var flushing = false;
  7103. var index = 0;
  7104. /**
  7105. * Reset the scheduler's state.
  7106. */
  7107. function resetSchedulerState () {
  7108. index = queue.length = activatedChildren.length = 0;
  7109. has = {};
  7110. if (true) {
  7111. circular = {};
  7112. }
  7113. waiting = flushing = false;
  7114. }
  7115. // Async edge case #6566 requires saving the timestamp when event listeners are
  7116. // attached. However, calling performance.now() has a perf overhead especially
  7117. // if the page has thousands of event listeners. Instead, we take a timestamp
  7118. // every time the scheduler flushes and use that for all event listeners
  7119. // attached during that flush.
  7120. var currentFlushTimestamp = 0;
  7121. // Async edge case fix requires storing an event listener's attach timestamp.
  7122. var getNow = Date.now;
  7123. // Determine what event timestamp the browser is using. Annoyingly, the
  7124. // timestamp can either be hi-res (relative to page load) or low-res
  7125. // (relative to UNIX epoch), so in order to compare time we have to use the
  7126. // same timestamp type when saving the flush timestamp.
  7127. // All IE versions use low-res event timestamps, and have problematic clock
  7128. // implementations (#9632)
  7129. if (inBrowser && !isIE) {
  7130. var performance = window.performance;
  7131. if (
  7132. performance &&
  7133. typeof performance.now === 'function' &&
  7134. getNow() > document.createEvent('Event').timeStamp
  7135. ) {
  7136. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7137. // smaller than it, it means the event is using a hi-res timestamp,
  7138. // and we need to use the hi-res version for event listener timestamps as
  7139. // well.
  7140. getNow = function () { return performance.now(); };
  7141. }
  7142. }
  7143. /**
  7144. * Flush both queues and run the watchers.
  7145. */
  7146. function flushSchedulerQueue () {
  7147. currentFlushTimestamp = getNow();
  7148. flushing = true;
  7149. var watcher, id;
  7150. // Sort queue before flush.
  7151. // This ensures that:
  7152. // 1. Components are updated from parent to child. (because parent is always
  7153. // created before the child)
  7154. // 2. A component's user watchers are run before its render watcher (because
  7155. // user watchers are created before the render watcher)
  7156. // 3. If a component is destroyed during a parent component's watcher run,
  7157. // its watchers can be skipped.
  7158. queue.sort(function (a, b) { return a.id - b.id; });
  7159. // do not cache length because more watchers might be pushed
  7160. // as we run existing watchers
  7161. for (index = 0; index < queue.length; index++) {
  7162. watcher = queue[index];
  7163. if (watcher.before) {
  7164. watcher.before();
  7165. }
  7166. id = watcher.id;
  7167. has[id] = null;
  7168. watcher.run();
  7169. // in dev build, check and stop circular updates.
  7170. if ( true && has[id] != null) {
  7171. circular[id] = (circular[id] || 0) + 1;
  7172. if (circular[id] > MAX_UPDATE_COUNT) {
  7173. warn(
  7174. 'You may have an infinite update loop ' + (
  7175. watcher.user
  7176. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7177. : "in a component render function."
  7178. ),
  7179. watcher.vm
  7180. );
  7181. break
  7182. }
  7183. }
  7184. }
  7185. // keep copies of post queues before resetting state
  7186. var activatedQueue = activatedChildren.slice();
  7187. var updatedQueue = queue.slice();
  7188. resetSchedulerState();
  7189. // call component updated and activated hooks
  7190. callActivatedHooks(activatedQueue);
  7191. callUpdatedHooks(updatedQueue);
  7192. // devtool hook
  7193. /* istanbul ignore if */
  7194. if (devtools && config.devtools) {
  7195. devtools.emit('flush');
  7196. }
  7197. }
  7198. function callUpdatedHooks (queue) {
  7199. var i = queue.length;
  7200. while (i--) {
  7201. var watcher = queue[i];
  7202. var vm = watcher.vm;
  7203. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7204. callHook(vm, 'updated');
  7205. }
  7206. }
  7207. }
  7208. /**
  7209. * Queue a kept-alive component that was activated during patch.
  7210. * The queue will be processed after the entire tree has been patched.
  7211. */
  7212. function queueActivatedComponent (vm) {
  7213. // setting _inactive to false here so that a render function can
  7214. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7215. vm._inactive = false;
  7216. activatedChildren.push(vm);
  7217. }
  7218. function callActivatedHooks (queue) {
  7219. for (var i = 0; i < queue.length; i++) {
  7220. queue[i]._inactive = true;
  7221. activateChildComponent(queue[i], true /* true */);
  7222. }
  7223. }
  7224. /**
  7225. * Push a watcher into the watcher queue.
  7226. * Jobs with duplicate IDs will be skipped unless it's
  7227. * pushed when the queue is being flushed.
  7228. */
  7229. function queueWatcher (watcher) {
  7230. var id = watcher.id;
  7231. if (has[id] == null) {
  7232. has[id] = true;
  7233. if (!flushing) {
  7234. queue.push(watcher);
  7235. } else {
  7236. // if already flushing, splice the watcher based on its id
  7237. // if already past its id, it will be run next immediately.
  7238. var i = queue.length - 1;
  7239. while (i > index && queue[i].id > watcher.id) {
  7240. i--;
  7241. }
  7242. queue.splice(i + 1, 0, watcher);
  7243. }
  7244. // queue the flush
  7245. if (!waiting) {
  7246. waiting = true;
  7247. if ( true && !config.async) {
  7248. flushSchedulerQueue();
  7249. return
  7250. }
  7251. nextTick(flushSchedulerQueue);
  7252. }
  7253. }
  7254. }
  7255. /* */
  7256. var uid$2 = 0;
  7257. /**
  7258. * A watcher parses an expression, collects dependencies,
  7259. * and fires callback when the expression value changes.
  7260. * This is used for both the $watch() api and directives.
  7261. */
  7262. var Watcher = function Watcher (
  7263. vm,
  7264. expOrFn,
  7265. cb,
  7266. options,
  7267. isRenderWatcher
  7268. ) {
  7269. this.vm = vm;
  7270. if (isRenderWatcher) {
  7271. vm._watcher = this;
  7272. }
  7273. vm._watchers.push(this);
  7274. // options
  7275. if (options) {
  7276. this.deep = !!options.deep;
  7277. this.user = !!options.user;
  7278. this.lazy = !!options.lazy;
  7279. this.sync = !!options.sync;
  7280. this.before = options.before;
  7281. } else {
  7282. this.deep = this.user = this.lazy = this.sync = false;
  7283. }
  7284. this.cb = cb;
  7285. this.id = ++uid$2; // uid for batching
  7286. this.active = true;
  7287. this.dirty = this.lazy; // for lazy watchers
  7288. this.deps = [];
  7289. this.newDeps = [];
  7290. this.depIds = new _Set();
  7291. this.newDepIds = new _Set();
  7292. this.expression = true
  7293. ? expOrFn.toString()
  7294. : undefined;
  7295. // parse expression for getter
  7296. if (typeof expOrFn === 'function') {
  7297. this.getter = expOrFn;
  7298. } else {
  7299. this.getter = parsePath(expOrFn);
  7300. if (!this.getter) {
  7301. this.getter = noop;
  7302. true && warn(
  7303. "Failed watching path: \"" + expOrFn + "\" " +
  7304. 'Watcher only accepts simple dot-delimited paths. ' +
  7305. 'For full control, use a function instead.',
  7306. vm
  7307. );
  7308. }
  7309. }
  7310. this.value = this.lazy
  7311. ? undefined
  7312. : this.get();
  7313. };
  7314. /**
  7315. * Evaluate the getter, and re-collect dependencies.
  7316. */
  7317. Watcher.prototype.get = function get () {
  7318. pushTarget(this);
  7319. var value;
  7320. var vm = this.vm;
  7321. try {
  7322. value = this.getter.call(vm, vm);
  7323. } catch (e) {
  7324. if (this.user) {
  7325. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7326. } else {
  7327. throw e
  7328. }
  7329. } finally {
  7330. // "touch" every property so they are all tracked as
  7331. // dependencies for deep watching
  7332. if (this.deep) {
  7333. traverse(value);
  7334. }
  7335. popTarget();
  7336. this.cleanupDeps();
  7337. }
  7338. return value
  7339. };
  7340. /**
  7341. * Add a dependency to this directive.
  7342. */
  7343. Watcher.prototype.addDep = function addDep (dep) {
  7344. var id = dep.id;
  7345. if (!this.newDepIds.has(id)) {
  7346. this.newDepIds.add(id);
  7347. this.newDeps.push(dep);
  7348. if (!this.depIds.has(id)) {
  7349. dep.addSub(this);
  7350. }
  7351. }
  7352. };
  7353. /**
  7354. * Clean up for dependency collection.
  7355. */
  7356. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7357. var i = this.deps.length;
  7358. while (i--) {
  7359. var dep = this.deps[i];
  7360. if (!this.newDepIds.has(dep.id)) {
  7361. dep.removeSub(this);
  7362. }
  7363. }
  7364. var tmp = this.depIds;
  7365. this.depIds = this.newDepIds;
  7366. this.newDepIds = tmp;
  7367. this.newDepIds.clear();
  7368. tmp = this.deps;
  7369. this.deps = this.newDeps;
  7370. this.newDeps = tmp;
  7371. this.newDeps.length = 0;
  7372. };
  7373. /**
  7374. * Subscriber interface.
  7375. * Will be called when a dependency changes.
  7376. */
  7377. Watcher.prototype.update = function update () {
  7378. /* istanbul ignore else */
  7379. if (this.lazy) {
  7380. this.dirty = true;
  7381. } else if (this.sync) {
  7382. this.run();
  7383. } else {
  7384. queueWatcher(this);
  7385. }
  7386. };
  7387. /**
  7388. * Scheduler job interface.
  7389. * Will be called by the scheduler.
  7390. */
  7391. Watcher.prototype.run = function run () {
  7392. if (this.active) {
  7393. var value = this.get();
  7394. if (
  7395. value !== this.value ||
  7396. // Deep watchers and watchers on Object/Arrays should fire even
  7397. // when the value is the same, because the value may
  7398. // have mutated.
  7399. isObject(value) ||
  7400. this.deep
  7401. ) {
  7402. // set new value
  7403. var oldValue = this.value;
  7404. this.value = value;
  7405. if (this.user) {
  7406. try {
  7407. this.cb.call(this.vm, value, oldValue);
  7408. } catch (e) {
  7409. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7410. }
  7411. } else {
  7412. this.cb.call(this.vm, value, oldValue);
  7413. }
  7414. }
  7415. }
  7416. };
  7417. /**
  7418. * Evaluate the value of the watcher.
  7419. * This only gets called for lazy watchers.
  7420. */
  7421. Watcher.prototype.evaluate = function evaluate () {
  7422. this.value = this.get();
  7423. this.dirty = false;
  7424. };
  7425. /**
  7426. * Depend on all deps collected by this watcher.
  7427. */
  7428. Watcher.prototype.depend = function depend () {
  7429. var i = this.deps.length;
  7430. while (i--) {
  7431. this.deps[i].depend();
  7432. }
  7433. };
  7434. /**
  7435. * Remove self from all dependencies' subscriber list.
  7436. */
  7437. Watcher.prototype.teardown = function teardown () {
  7438. if (this.active) {
  7439. // remove self from vm's watcher list
  7440. // this is a somewhat expensive operation so we skip it
  7441. // if the vm is being destroyed.
  7442. if (!this.vm._isBeingDestroyed) {
  7443. remove(this.vm._watchers, this);
  7444. }
  7445. var i = this.deps.length;
  7446. while (i--) {
  7447. this.deps[i].removeSub(this);
  7448. }
  7449. this.active = false;
  7450. }
  7451. };
  7452. /* */
  7453. var sharedPropertyDefinition = {
  7454. enumerable: true,
  7455. configurable: true,
  7456. get: noop,
  7457. set: noop
  7458. };
  7459. function proxy (target, sourceKey, key) {
  7460. sharedPropertyDefinition.get = function proxyGetter () {
  7461. return this[sourceKey][key]
  7462. };
  7463. sharedPropertyDefinition.set = function proxySetter (val) {
  7464. this[sourceKey][key] = val;
  7465. };
  7466. Object.defineProperty(target, key, sharedPropertyDefinition);
  7467. }
  7468. function initState (vm) {
  7469. vm._watchers = [];
  7470. var opts = vm.$options;
  7471. if (opts.props) { initProps(vm, opts.props); }
  7472. if (opts.methods) { initMethods(vm, opts.methods); }
  7473. if (opts.data) {
  7474. initData(vm);
  7475. } else {
  7476. observe(vm._data = {}, true /* asRootData */);
  7477. }
  7478. if (opts.computed) { initComputed(vm, opts.computed); }
  7479. if (opts.watch && opts.watch !== nativeWatch) {
  7480. initWatch(vm, opts.watch);
  7481. }
  7482. }
  7483. function initProps (vm, propsOptions) {
  7484. var propsData = vm.$options.propsData || {};
  7485. var props = vm._props = {};
  7486. // cache prop keys so that future props updates can iterate using Array
  7487. // instead of dynamic object key enumeration.
  7488. var keys = vm.$options._propKeys = [];
  7489. var isRoot = !vm.$parent;
  7490. // root instance props should be converted
  7491. if (!isRoot) {
  7492. toggleObserving(false);
  7493. }
  7494. var loop = function ( key ) {
  7495. keys.push(key);
  7496. var value = validateProp(key, propsOptions, propsData, vm);
  7497. /* istanbul ignore else */
  7498. if (true) {
  7499. var hyphenatedKey = hyphenate(key);
  7500. if (isReservedAttribute(hyphenatedKey) ||
  7501. config.isReservedAttr(hyphenatedKey)) {
  7502. warn(
  7503. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7504. vm
  7505. );
  7506. }
  7507. defineReactive$$1(props, key, value, function () {
  7508. if (!isRoot && !isUpdatingChildComponent) {
  7509. {
  7510. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7511. return
  7512. }
  7513. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7514. if(
  7515. key === 'value' &&
  7516. Array.isArray(vm.$options.behaviors) &&
  7517. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7518. ){
  7519. return
  7520. }
  7521. if(vm._getFormData){
  7522. return
  7523. }
  7524. var $parent = vm.$parent;
  7525. while($parent){
  7526. if($parent.__next_tick_pending){
  7527. return
  7528. }
  7529. $parent = $parent.$parent;
  7530. }
  7531. }
  7532. warn(
  7533. "Avoid mutating a prop directly since the value will be " +
  7534. "overwritten whenever the parent component re-renders. " +
  7535. "Instead, use a data or computed property based on the prop's " +
  7536. "value. Prop being mutated: \"" + key + "\"",
  7537. vm
  7538. );
  7539. }
  7540. });
  7541. } else {}
  7542. // static props are already proxied on the component's prototype
  7543. // during Vue.extend(). We only need to proxy props defined at
  7544. // instantiation here.
  7545. if (!(key in vm)) {
  7546. proxy(vm, "_props", key);
  7547. }
  7548. };
  7549. for (var key in propsOptions) loop( key );
  7550. toggleObserving(true);
  7551. }
  7552. function initData (vm) {
  7553. var data = vm.$options.data;
  7554. data = vm._data = typeof data === 'function'
  7555. ? getData(data, vm)
  7556. : data || {};
  7557. if (!isPlainObject(data)) {
  7558. data = {};
  7559. true && warn(
  7560. 'data functions should return an object:\n' +
  7561. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7562. vm
  7563. );
  7564. }
  7565. // proxy data on instance
  7566. var keys = Object.keys(data);
  7567. var props = vm.$options.props;
  7568. var methods = vm.$options.methods;
  7569. var i = keys.length;
  7570. while (i--) {
  7571. var key = keys[i];
  7572. if (true) {
  7573. if (methods && hasOwn(methods, key)) {
  7574. warn(
  7575. ("Method \"" + key + "\" has already been defined as a data property."),
  7576. vm
  7577. );
  7578. }
  7579. }
  7580. if (props && hasOwn(props, key)) {
  7581. true && warn(
  7582. "The data property \"" + key + "\" is already declared as a prop. " +
  7583. "Use prop default value instead.",
  7584. vm
  7585. );
  7586. } else if (!isReserved(key)) {
  7587. proxy(vm, "_data", key);
  7588. }
  7589. }
  7590. // observe data
  7591. observe(data, true /* asRootData */);
  7592. }
  7593. function getData (data, vm) {
  7594. // #7573 disable dep collection when invoking data getters
  7595. pushTarget();
  7596. try {
  7597. return data.call(vm, vm)
  7598. } catch (e) {
  7599. handleError(e, vm, "data()");
  7600. return {}
  7601. } finally {
  7602. popTarget();
  7603. }
  7604. }
  7605. var computedWatcherOptions = { lazy: true };
  7606. function initComputed (vm, computed) {
  7607. // $flow-disable-line
  7608. var watchers = vm._computedWatchers = Object.create(null);
  7609. // computed properties are just getters during SSR
  7610. var isSSR = isServerRendering();
  7611. for (var key in computed) {
  7612. var userDef = computed[key];
  7613. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7614. if ( true && getter == null) {
  7615. warn(
  7616. ("Getter is missing for computed property \"" + key + "\"."),
  7617. vm
  7618. );
  7619. }
  7620. if (!isSSR) {
  7621. // create internal watcher for the computed property.
  7622. watchers[key] = new Watcher(
  7623. vm,
  7624. getter || noop,
  7625. noop,
  7626. computedWatcherOptions
  7627. );
  7628. }
  7629. // component-defined computed properties are already defined on the
  7630. // component prototype. We only need to define computed properties defined
  7631. // at instantiation here.
  7632. if (!(key in vm)) {
  7633. defineComputed(vm, key, userDef);
  7634. } else if (true) {
  7635. if (key in vm.$data) {
  7636. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7637. } else if (vm.$options.props && key in vm.$options.props) {
  7638. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7639. }
  7640. }
  7641. }
  7642. }
  7643. function defineComputed (
  7644. target,
  7645. key,
  7646. userDef
  7647. ) {
  7648. var shouldCache = !isServerRendering();
  7649. if (typeof userDef === 'function') {
  7650. sharedPropertyDefinition.get = shouldCache
  7651. ? createComputedGetter(key)
  7652. : createGetterInvoker(userDef);
  7653. sharedPropertyDefinition.set = noop;
  7654. } else {
  7655. sharedPropertyDefinition.get = userDef.get
  7656. ? shouldCache && userDef.cache !== false
  7657. ? createComputedGetter(key)
  7658. : createGetterInvoker(userDef.get)
  7659. : noop;
  7660. sharedPropertyDefinition.set = userDef.set || noop;
  7661. }
  7662. if ( true &&
  7663. sharedPropertyDefinition.set === noop) {
  7664. sharedPropertyDefinition.set = function () {
  7665. warn(
  7666. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7667. this
  7668. );
  7669. };
  7670. }
  7671. Object.defineProperty(target, key, sharedPropertyDefinition);
  7672. }
  7673. function createComputedGetter (key) {
  7674. return function computedGetter () {
  7675. var watcher = this._computedWatchers && this._computedWatchers[key];
  7676. if (watcher) {
  7677. if (watcher.dirty) {
  7678. watcher.evaluate();
  7679. }
  7680. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7681. watcher.depend();
  7682. }
  7683. return watcher.value
  7684. }
  7685. }
  7686. }
  7687. function createGetterInvoker(fn) {
  7688. return function computedGetter () {
  7689. return fn.call(this, this)
  7690. }
  7691. }
  7692. function initMethods (vm, methods) {
  7693. var props = vm.$options.props;
  7694. for (var key in methods) {
  7695. if (true) {
  7696. if (typeof methods[key] !== 'function') {
  7697. warn(
  7698. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7699. "Did you reference the function correctly?",
  7700. vm
  7701. );
  7702. }
  7703. if (props && hasOwn(props, key)) {
  7704. warn(
  7705. ("Method \"" + key + "\" has already been defined as a prop."),
  7706. vm
  7707. );
  7708. }
  7709. if ((key in vm) && isReserved(key)) {
  7710. warn(
  7711. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7712. "Avoid defining component methods that start with _ or $."
  7713. );
  7714. }
  7715. }
  7716. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7717. }
  7718. }
  7719. function initWatch (vm, watch) {
  7720. for (var key in watch) {
  7721. var handler = watch[key];
  7722. if (Array.isArray(handler)) {
  7723. for (var i = 0; i < handler.length; i++) {
  7724. createWatcher(vm, key, handler[i]);
  7725. }
  7726. } else {
  7727. createWatcher(vm, key, handler);
  7728. }
  7729. }
  7730. }
  7731. function createWatcher (
  7732. vm,
  7733. expOrFn,
  7734. handler,
  7735. options
  7736. ) {
  7737. if (isPlainObject(handler)) {
  7738. options = handler;
  7739. handler = handler.handler;
  7740. }
  7741. if (typeof handler === 'string') {
  7742. handler = vm[handler];
  7743. }
  7744. return vm.$watch(expOrFn, handler, options)
  7745. }
  7746. function stateMixin (Vue) {
  7747. // flow somehow has problems with directly declared definition object
  7748. // when using Object.defineProperty, so we have to procedurally build up
  7749. // the object here.
  7750. var dataDef = {};
  7751. dataDef.get = function () { return this._data };
  7752. var propsDef = {};
  7753. propsDef.get = function () { return this._props };
  7754. if (true) {
  7755. dataDef.set = function () {
  7756. warn(
  7757. 'Avoid replacing instance root $data. ' +
  7758. 'Use nested data properties instead.',
  7759. this
  7760. );
  7761. };
  7762. propsDef.set = function () {
  7763. warn("$props is readonly.", this);
  7764. };
  7765. }
  7766. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7767. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7768. Vue.prototype.$set = set;
  7769. Vue.prototype.$delete = del;
  7770. Vue.prototype.$watch = function (
  7771. expOrFn,
  7772. cb,
  7773. options
  7774. ) {
  7775. var vm = this;
  7776. if (isPlainObject(cb)) {
  7777. return createWatcher(vm, expOrFn, cb, options)
  7778. }
  7779. options = options || {};
  7780. options.user = true;
  7781. var watcher = new Watcher(vm, expOrFn, cb, options);
  7782. if (options.immediate) {
  7783. try {
  7784. cb.call(vm, watcher.value);
  7785. } catch (error) {
  7786. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7787. }
  7788. }
  7789. return function unwatchFn () {
  7790. watcher.teardown();
  7791. }
  7792. };
  7793. }
  7794. /* */
  7795. var uid$3 = 0;
  7796. function initMixin (Vue) {
  7797. Vue.prototype._init = function (options) {
  7798. var vm = this;
  7799. // a uid
  7800. vm._uid = uid$3++;
  7801. var startTag, endTag;
  7802. /* istanbul ignore if */
  7803. if ( true && config.performance && mark) {
  7804. startTag = "vue-perf-start:" + (vm._uid);
  7805. endTag = "vue-perf-end:" + (vm._uid);
  7806. mark(startTag);
  7807. }
  7808. // a flag to avoid this being observed
  7809. vm._isVue = true;
  7810. // merge options
  7811. if (options && options._isComponent) {
  7812. // optimize internal component instantiation
  7813. // since dynamic options merging is pretty slow, and none of the
  7814. // internal component options needs special treatment.
  7815. initInternalComponent(vm, options);
  7816. } else {
  7817. vm.$options = mergeOptions(
  7818. resolveConstructorOptions(vm.constructor),
  7819. options || {},
  7820. vm
  7821. );
  7822. }
  7823. /* istanbul ignore else */
  7824. if (true) {
  7825. initProxy(vm);
  7826. } else {}
  7827. // expose real self
  7828. vm._self = vm;
  7829. initLifecycle(vm);
  7830. initEvents(vm);
  7831. initRender(vm);
  7832. callHook(vm, 'beforeCreate');
  7833. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7834. initState(vm);
  7835. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7836. !vm._$fallback && callHook(vm, 'created');
  7837. /* istanbul ignore if */
  7838. if ( true && config.performance && mark) {
  7839. vm._name = formatComponentName(vm, false);
  7840. mark(endTag);
  7841. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7842. }
  7843. if (vm.$options.el) {
  7844. vm.$mount(vm.$options.el);
  7845. }
  7846. };
  7847. }
  7848. function initInternalComponent (vm, options) {
  7849. var opts = vm.$options = Object.create(vm.constructor.options);
  7850. // doing this because it's faster than dynamic enumeration.
  7851. var parentVnode = options._parentVnode;
  7852. opts.parent = options.parent;
  7853. opts._parentVnode = parentVnode;
  7854. var vnodeComponentOptions = parentVnode.componentOptions;
  7855. opts.propsData = vnodeComponentOptions.propsData;
  7856. opts._parentListeners = vnodeComponentOptions.listeners;
  7857. opts._renderChildren = vnodeComponentOptions.children;
  7858. opts._componentTag = vnodeComponentOptions.tag;
  7859. if (options.render) {
  7860. opts.render = options.render;
  7861. opts.staticRenderFns = options.staticRenderFns;
  7862. }
  7863. }
  7864. function resolveConstructorOptions (Ctor) {
  7865. var options = Ctor.options;
  7866. if (Ctor.super) {
  7867. var superOptions = resolveConstructorOptions(Ctor.super);
  7868. var cachedSuperOptions = Ctor.superOptions;
  7869. if (superOptions !== cachedSuperOptions) {
  7870. // super option changed,
  7871. // need to resolve new options.
  7872. Ctor.superOptions = superOptions;
  7873. // check if there are any late-modified/attached options (#4976)
  7874. var modifiedOptions = resolveModifiedOptions(Ctor);
  7875. // update base extend options
  7876. if (modifiedOptions) {
  7877. extend(Ctor.extendOptions, modifiedOptions);
  7878. }
  7879. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7880. if (options.name) {
  7881. options.components[options.name] = Ctor;
  7882. }
  7883. }
  7884. }
  7885. return options
  7886. }
  7887. function resolveModifiedOptions (Ctor) {
  7888. var modified;
  7889. var latest = Ctor.options;
  7890. var sealed = Ctor.sealedOptions;
  7891. for (var key in latest) {
  7892. if (latest[key] !== sealed[key]) {
  7893. if (!modified) { modified = {}; }
  7894. modified[key] = latest[key];
  7895. }
  7896. }
  7897. return modified
  7898. }
  7899. function Vue (options) {
  7900. if ( true &&
  7901. !(this instanceof Vue)
  7902. ) {
  7903. warn('Vue is a constructor and should be called with the `new` keyword');
  7904. }
  7905. this._init(options);
  7906. }
  7907. initMixin(Vue);
  7908. stateMixin(Vue);
  7909. eventsMixin(Vue);
  7910. lifecycleMixin(Vue);
  7911. renderMixin(Vue);
  7912. /* */
  7913. function initUse (Vue) {
  7914. Vue.use = function (plugin) {
  7915. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7916. if (installedPlugins.indexOf(plugin) > -1) {
  7917. return this
  7918. }
  7919. // additional parameters
  7920. var args = toArray(arguments, 1);
  7921. args.unshift(this);
  7922. if (typeof plugin.install === 'function') {
  7923. plugin.install.apply(plugin, args);
  7924. } else if (typeof plugin === 'function') {
  7925. plugin.apply(null, args);
  7926. }
  7927. installedPlugins.push(plugin);
  7928. return this
  7929. };
  7930. }
  7931. /* */
  7932. function initMixin$1 (Vue) {
  7933. Vue.mixin = function (mixin) {
  7934. this.options = mergeOptions(this.options, mixin);
  7935. return this
  7936. };
  7937. }
  7938. /* */
  7939. function initExtend (Vue) {
  7940. /**
  7941. * Each instance constructor, including Vue, has a unique
  7942. * cid. This enables us to create wrapped "child
  7943. * constructors" for prototypal inheritance and cache them.
  7944. */
  7945. Vue.cid = 0;
  7946. var cid = 1;
  7947. /**
  7948. * Class inheritance
  7949. */
  7950. Vue.extend = function (extendOptions) {
  7951. extendOptions = extendOptions || {};
  7952. var Super = this;
  7953. var SuperId = Super.cid;
  7954. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7955. if (cachedCtors[SuperId]) {
  7956. return cachedCtors[SuperId]
  7957. }
  7958. var name = extendOptions.name || Super.options.name;
  7959. if ( true && name) {
  7960. validateComponentName(name);
  7961. }
  7962. var Sub = function VueComponent (options) {
  7963. this._init(options);
  7964. };
  7965. Sub.prototype = Object.create(Super.prototype);
  7966. Sub.prototype.constructor = Sub;
  7967. Sub.cid = cid++;
  7968. Sub.options = mergeOptions(
  7969. Super.options,
  7970. extendOptions
  7971. );
  7972. Sub['super'] = Super;
  7973. // For props and computed properties, we define the proxy getters on
  7974. // the Vue instances at extension time, on the extended prototype. This
  7975. // avoids Object.defineProperty calls for each instance created.
  7976. if (Sub.options.props) {
  7977. initProps$1(Sub);
  7978. }
  7979. if (Sub.options.computed) {
  7980. initComputed$1(Sub);
  7981. }
  7982. // allow further extension/mixin/plugin usage
  7983. Sub.extend = Super.extend;
  7984. Sub.mixin = Super.mixin;
  7985. Sub.use = Super.use;
  7986. // create asset registers, so extended classes
  7987. // can have their private assets too.
  7988. ASSET_TYPES.forEach(function (type) {
  7989. Sub[type] = Super[type];
  7990. });
  7991. // enable recursive self-lookup
  7992. if (name) {
  7993. Sub.options.components[name] = Sub;
  7994. }
  7995. // keep a reference to the super options at extension time.
  7996. // later at instantiation we can check if Super's options have
  7997. // been updated.
  7998. Sub.superOptions = Super.options;
  7999. Sub.extendOptions = extendOptions;
  8000. Sub.sealedOptions = extend({}, Sub.options);
  8001. // cache constructor
  8002. cachedCtors[SuperId] = Sub;
  8003. return Sub
  8004. };
  8005. }
  8006. function initProps$1 (Comp) {
  8007. var props = Comp.options.props;
  8008. for (var key in props) {
  8009. proxy(Comp.prototype, "_props", key);
  8010. }
  8011. }
  8012. function initComputed$1 (Comp) {
  8013. var computed = Comp.options.computed;
  8014. for (var key in computed) {
  8015. defineComputed(Comp.prototype, key, computed[key]);
  8016. }
  8017. }
  8018. /* */
  8019. function initAssetRegisters (Vue) {
  8020. /**
  8021. * Create asset registration methods.
  8022. */
  8023. ASSET_TYPES.forEach(function (type) {
  8024. Vue[type] = function (
  8025. id,
  8026. definition
  8027. ) {
  8028. if (!definition) {
  8029. return this.options[type + 's'][id]
  8030. } else {
  8031. /* istanbul ignore if */
  8032. if ( true && type === 'component') {
  8033. validateComponentName(id);
  8034. }
  8035. if (type === 'component' && isPlainObject(definition)) {
  8036. definition.name = definition.name || id;
  8037. definition = this.options._base.extend(definition);
  8038. }
  8039. if (type === 'directive' && typeof definition === 'function') {
  8040. definition = { bind: definition, update: definition };
  8041. }
  8042. this.options[type + 's'][id] = definition;
  8043. return definition
  8044. }
  8045. };
  8046. });
  8047. }
  8048. /* */
  8049. function getComponentName (opts) {
  8050. return opts && (opts.Ctor.options.name || opts.tag)
  8051. }
  8052. function matches (pattern, name) {
  8053. if (Array.isArray(pattern)) {
  8054. return pattern.indexOf(name) > -1
  8055. } else if (typeof pattern === 'string') {
  8056. return pattern.split(',').indexOf(name) > -1
  8057. } else if (isRegExp(pattern)) {
  8058. return pattern.test(name)
  8059. }
  8060. /* istanbul ignore next */
  8061. return false
  8062. }
  8063. function pruneCache (keepAliveInstance, filter) {
  8064. var cache = keepAliveInstance.cache;
  8065. var keys = keepAliveInstance.keys;
  8066. var _vnode = keepAliveInstance._vnode;
  8067. for (var key in cache) {
  8068. var cachedNode = cache[key];
  8069. if (cachedNode) {
  8070. var name = getComponentName(cachedNode.componentOptions);
  8071. if (name && !filter(name)) {
  8072. pruneCacheEntry(cache, key, keys, _vnode);
  8073. }
  8074. }
  8075. }
  8076. }
  8077. function pruneCacheEntry (
  8078. cache,
  8079. key,
  8080. keys,
  8081. current
  8082. ) {
  8083. var cached$$1 = cache[key];
  8084. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8085. cached$$1.componentInstance.$destroy();
  8086. }
  8087. cache[key] = null;
  8088. remove(keys, key);
  8089. }
  8090. var patternTypes = [String, RegExp, Array];
  8091. var KeepAlive = {
  8092. name: 'keep-alive',
  8093. abstract: true,
  8094. props: {
  8095. include: patternTypes,
  8096. exclude: patternTypes,
  8097. max: [String, Number]
  8098. },
  8099. created: function created () {
  8100. this.cache = Object.create(null);
  8101. this.keys = [];
  8102. },
  8103. destroyed: function destroyed () {
  8104. for (var key in this.cache) {
  8105. pruneCacheEntry(this.cache, key, this.keys);
  8106. }
  8107. },
  8108. mounted: function mounted () {
  8109. var this$1 = this;
  8110. this.$watch('include', function (val) {
  8111. pruneCache(this$1, function (name) { return matches(val, name); });
  8112. });
  8113. this.$watch('exclude', function (val) {
  8114. pruneCache(this$1, function (name) { return !matches(val, name); });
  8115. });
  8116. },
  8117. render: function render () {
  8118. var slot = this.$slots.default;
  8119. var vnode = getFirstComponentChild(slot);
  8120. var componentOptions = vnode && vnode.componentOptions;
  8121. if (componentOptions) {
  8122. // check pattern
  8123. var name = getComponentName(componentOptions);
  8124. var ref = this;
  8125. var include = ref.include;
  8126. var exclude = ref.exclude;
  8127. if (
  8128. // not included
  8129. (include && (!name || !matches(include, name))) ||
  8130. // excluded
  8131. (exclude && name && matches(exclude, name))
  8132. ) {
  8133. return vnode
  8134. }
  8135. var ref$1 = this;
  8136. var cache = ref$1.cache;
  8137. var keys = ref$1.keys;
  8138. var key = vnode.key == null
  8139. // same constructor may get registered as different local components
  8140. // so cid alone is not enough (#3269)
  8141. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8142. : vnode.key;
  8143. if (cache[key]) {
  8144. vnode.componentInstance = cache[key].componentInstance;
  8145. // make current key freshest
  8146. remove(keys, key);
  8147. keys.push(key);
  8148. } else {
  8149. cache[key] = vnode;
  8150. keys.push(key);
  8151. // prune oldest entry
  8152. if (this.max && keys.length > parseInt(this.max)) {
  8153. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8154. }
  8155. }
  8156. vnode.data.keepAlive = true;
  8157. }
  8158. return vnode || (slot && slot[0])
  8159. }
  8160. };
  8161. var builtInComponents = {
  8162. KeepAlive: KeepAlive
  8163. };
  8164. /* */
  8165. function initGlobalAPI (Vue) {
  8166. // config
  8167. var configDef = {};
  8168. configDef.get = function () { return config; };
  8169. if (true) {
  8170. configDef.set = function () {
  8171. warn(
  8172. 'Do not replace the Vue.config object, set individual fields instead.'
  8173. );
  8174. };
  8175. }
  8176. Object.defineProperty(Vue, 'config', configDef);
  8177. // exposed util methods.
  8178. // NOTE: these are not considered part of the public API - avoid relying on
  8179. // them unless you are aware of the risk.
  8180. Vue.util = {
  8181. warn: warn,
  8182. extend: extend,
  8183. mergeOptions: mergeOptions,
  8184. defineReactive: defineReactive$$1
  8185. };
  8186. Vue.set = set;
  8187. Vue.delete = del;
  8188. Vue.nextTick = nextTick;
  8189. // 2.6 explicit observable API
  8190. Vue.observable = function (obj) {
  8191. observe(obj);
  8192. return obj
  8193. };
  8194. Vue.options = Object.create(null);
  8195. ASSET_TYPES.forEach(function (type) {
  8196. Vue.options[type + 's'] = Object.create(null);
  8197. });
  8198. // this is used to identify the "base" constructor to extend all plain-object
  8199. // components with in Weex's multi-instance scenarios.
  8200. Vue.options._base = Vue;
  8201. extend(Vue.options.components, builtInComponents);
  8202. initUse(Vue);
  8203. initMixin$1(Vue);
  8204. initExtend(Vue);
  8205. initAssetRegisters(Vue);
  8206. }
  8207. initGlobalAPI(Vue);
  8208. Object.defineProperty(Vue.prototype, '$isServer', {
  8209. get: isServerRendering
  8210. });
  8211. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8212. get: function get () {
  8213. /* istanbul ignore next */
  8214. return this.$vnode && this.$vnode.ssrContext
  8215. }
  8216. });
  8217. // expose FunctionalRenderContext for ssr runtime helper installation
  8218. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8219. value: FunctionalRenderContext
  8220. });
  8221. Vue.version = '2.6.11';
  8222. /**
  8223. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8224. */
  8225. var ARRAYTYPE = '[object Array]';
  8226. var OBJECTTYPE = '[object Object]';
  8227. var NULLTYPE = '[object Null]';
  8228. var UNDEFINEDTYPE = '[object Undefined]';
  8229. // const FUNCTIONTYPE = '[object Function]'
  8230. function diff(current, pre) {
  8231. var result = {};
  8232. syncKeys(current, pre);
  8233. _diff(current, pre, '', result);
  8234. return result
  8235. }
  8236. function syncKeys(current, pre) {
  8237. if (current === pre) { return }
  8238. var rootCurrentType = type(current);
  8239. var rootPreType = type(pre);
  8240. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8241. if(Object.keys(current).length >= Object.keys(pre).length){
  8242. for (var key in pre) {
  8243. var currentValue = current[key];
  8244. if (currentValue === undefined) {
  8245. current[key] = null;
  8246. } else {
  8247. syncKeys(currentValue, pre[key]);
  8248. }
  8249. }
  8250. }
  8251. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8252. if (current.length >= pre.length) {
  8253. pre.forEach(function (item, index) {
  8254. syncKeys(current[index], item);
  8255. });
  8256. }
  8257. }
  8258. }
  8259. function nullOrUndefined(currentType, preType) {
  8260. if(
  8261. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8262. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8263. ) {
  8264. return false
  8265. }
  8266. return true
  8267. }
  8268. function _diff(current, pre, path, result) {
  8269. if (current === pre) { return }
  8270. var rootCurrentType = type(current);
  8271. var rootPreType = type(pre);
  8272. if (rootCurrentType == OBJECTTYPE) {
  8273. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8274. setResult(result, path, current);
  8275. } else {
  8276. var loop = function ( key ) {
  8277. var currentValue = current[key];
  8278. var preValue = pre[key];
  8279. var currentType = type(currentValue);
  8280. var preType = type(preValue);
  8281. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8282. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8283. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8284. }
  8285. } else if (currentType == ARRAYTYPE) {
  8286. if (preType != ARRAYTYPE) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. if (currentValue.length < preValue.length) {
  8290. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8291. } else {
  8292. currentValue.forEach(function (item, index) {
  8293. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8294. });
  8295. }
  8296. }
  8297. } else if (currentType == OBJECTTYPE) {
  8298. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8299. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8300. } else {
  8301. for (var subKey in currentValue) {
  8302. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8303. }
  8304. }
  8305. }
  8306. };
  8307. for (var key in current) loop( key );
  8308. }
  8309. } else if (rootCurrentType == ARRAYTYPE) {
  8310. if (rootPreType != ARRAYTYPE) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. if (current.length < pre.length) {
  8314. setResult(result, path, current);
  8315. } else {
  8316. current.forEach(function (item, index) {
  8317. _diff(item, pre[index], path + '[' + index + ']', result);
  8318. });
  8319. }
  8320. }
  8321. } else {
  8322. setResult(result, path, current);
  8323. }
  8324. }
  8325. function setResult(result, k, v) {
  8326. // if (type(v) != FUNCTIONTYPE) {
  8327. result[k] = v;
  8328. // }
  8329. }
  8330. function type(obj) {
  8331. return Object.prototype.toString.call(obj)
  8332. }
  8333. /* */
  8334. function flushCallbacks$1(vm) {
  8335. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8336. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-figure-platter","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8337. var mpInstance = vm.$scope;
  8338. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8339. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8340. }
  8341. var copies = vm.__next_tick_callbacks.slice(0);
  8342. vm.__next_tick_callbacks.length = 0;
  8343. for (var i = 0; i < copies.length; i++) {
  8344. copies[i]();
  8345. }
  8346. }
  8347. }
  8348. function hasRenderWatcher(vm) {
  8349. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8350. }
  8351. function nextTick$1(vm, cb) {
  8352. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8353. //2.nextTick 之前存在 render watcher
  8354. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8355. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-figure-platter","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8356. var mpInstance = vm.$scope;
  8357. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8358. ']:nextVueTick');
  8359. }
  8360. return nextTick(cb, vm)
  8361. }else{
  8362. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-figure-platter","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8363. var mpInstance$1 = vm.$scope;
  8364. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8365. ']:nextMPTick');
  8366. }
  8367. }
  8368. var _resolve;
  8369. if (!vm.__next_tick_callbacks) {
  8370. vm.__next_tick_callbacks = [];
  8371. }
  8372. vm.__next_tick_callbacks.push(function () {
  8373. if (cb) {
  8374. try {
  8375. cb.call(vm);
  8376. } catch (e) {
  8377. handleError(e, vm, 'nextTick');
  8378. }
  8379. } else if (_resolve) {
  8380. _resolve(vm);
  8381. }
  8382. });
  8383. // $flow-disable-line
  8384. if (!cb && typeof Promise !== 'undefined') {
  8385. return new Promise(function (resolve) {
  8386. _resolve = resolve;
  8387. })
  8388. }
  8389. }
  8390. /* */
  8391. function clearInstance(key, value) {
  8392. // 简易去除 Vue 和小程序组件实例
  8393. if (value) {
  8394. if (value._isVue || value.__v_isMPComponent) {
  8395. return {}
  8396. }
  8397. }
  8398. return value
  8399. }
  8400. function cloneWithData(vm) {
  8401. // 确保当前 vm 所有数据被同步
  8402. var ret = Object.create(null);
  8403. var dataKeys = [].concat(
  8404. Object.keys(vm._data || {}),
  8405. Object.keys(vm._computedWatchers || {}));
  8406. dataKeys.reduce(function(ret, key) {
  8407. ret[key] = vm[key];
  8408. return ret
  8409. }, ret);
  8410. // vue-composition-api
  8411. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8412. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8413. if (rawBindings) {
  8414. Object.keys(rawBindings).forEach(function (key) {
  8415. ret[key] = vm[key];
  8416. });
  8417. }
  8418. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8419. Object.assign(ret, vm.$mp.data || {});
  8420. if (
  8421. Array.isArray(vm.$options.behaviors) &&
  8422. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8423. ) { //form-field
  8424. ret['name'] = vm.name;
  8425. ret['value'] = vm.value;
  8426. }
  8427. return JSON.parse(JSON.stringify(ret, clearInstance))
  8428. }
  8429. var patch = function(oldVnode, vnode) {
  8430. var this$1 = this;
  8431. if (vnode === null) { //destroy
  8432. return
  8433. }
  8434. if (this.mpType === 'page' || this.mpType === 'component') {
  8435. var mpInstance = this.$scope;
  8436. var data = Object.create(null);
  8437. try {
  8438. data = cloneWithData(this);
  8439. } catch (err) {
  8440. console.error(err);
  8441. }
  8442. data.__webviewId__ = mpInstance.data.__webviewId__;
  8443. var mpData = Object.create(null);
  8444. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8445. mpData[key] = mpInstance.data[key];
  8446. });
  8447. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8448. if (Object.keys(diffData).length) {
  8449. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-figure-platter","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8450. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8451. ']差量更新',
  8452. JSON.stringify(diffData));
  8453. }
  8454. this.__next_tick_pending = true;
  8455. mpInstance.setData(diffData, function () {
  8456. this$1.__next_tick_pending = false;
  8457. flushCallbacks$1(this$1);
  8458. });
  8459. } else {
  8460. flushCallbacks$1(this);
  8461. }
  8462. }
  8463. };
  8464. /* */
  8465. function createEmptyRender() {
  8466. }
  8467. function mountComponent$1(
  8468. vm,
  8469. el,
  8470. hydrating
  8471. ) {
  8472. if (!vm.mpType) {//main.js 中的 new Vue
  8473. return vm
  8474. }
  8475. if (vm.mpType === 'app') {
  8476. vm.$options.render = createEmptyRender;
  8477. }
  8478. if (!vm.$options.render) {
  8479. vm.$options.render = createEmptyRender;
  8480. if (true) {
  8481. /* istanbul ignore if */
  8482. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8483. vm.$options.el || el) {
  8484. warn(
  8485. 'You are using the runtime-only build of Vue where the template ' +
  8486. 'compiler is not available. Either pre-compile the templates into ' +
  8487. 'render functions, or use the compiler-included build.',
  8488. vm
  8489. );
  8490. } else {
  8491. warn(
  8492. 'Failed to mount component: template or render function not defined.',
  8493. vm
  8494. );
  8495. }
  8496. }
  8497. }
  8498. !vm._$fallback && callHook(vm, 'beforeMount');
  8499. var updateComponent = function () {
  8500. vm._update(vm._render(), hydrating);
  8501. };
  8502. // we set this to vm._watcher inside the watcher's constructor
  8503. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8504. // component's mounted hook), which relies on vm._watcher being already defined
  8505. new Watcher(vm, updateComponent, noop, {
  8506. before: function before() {
  8507. if (vm._isMounted && !vm._isDestroyed) {
  8508. callHook(vm, 'beforeUpdate');
  8509. }
  8510. }
  8511. }, true /* isRenderWatcher */);
  8512. hydrating = false;
  8513. return vm
  8514. }
  8515. /* */
  8516. function renderClass (
  8517. staticClass,
  8518. dynamicClass
  8519. ) {
  8520. if (isDef(staticClass) || isDef(dynamicClass)) {
  8521. return concat(staticClass, stringifyClass(dynamicClass))
  8522. }
  8523. /* istanbul ignore next */
  8524. return ''
  8525. }
  8526. function concat (a, b) {
  8527. return a ? b ? (a + ' ' + b) : a : (b || '')
  8528. }
  8529. function stringifyClass (value) {
  8530. if (Array.isArray(value)) {
  8531. return stringifyArray(value)
  8532. }
  8533. if (isObject(value)) {
  8534. return stringifyObject(value)
  8535. }
  8536. if (typeof value === 'string') {
  8537. return value
  8538. }
  8539. /* istanbul ignore next */
  8540. return ''
  8541. }
  8542. function stringifyArray (value) {
  8543. var res = '';
  8544. var stringified;
  8545. for (var i = 0, l = value.length; i < l; i++) {
  8546. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8547. if (res) { res += ' '; }
  8548. res += stringified;
  8549. }
  8550. }
  8551. return res
  8552. }
  8553. function stringifyObject (value) {
  8554. var res = '';
  8555. for (var key in value) {
  8556. if (value[key]) {
  8557. if (res) { res += ' '; }
  8558. res += key;
  8559. }
  8560. }
  8561. return res
  8562. }
  8563. /* */
  8564. var parseStyleText = cached(function (cssText) {
  8565. var res = {};
  8566. var listDelimiter = /;(?![^(]*\))/g;
  8567. var propertyDelimiter = /:(.+)/;
  8568. cssText.split(listDelimiter).forEach(function (item) {
  8569. if (item) {
  8570. var tmp = item.split(propertyDelimiter);
  8571. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8572. }
  8573. });
  8574. return res
  8575. });
  8576. // normalize possible array / string values into Object
  8577. function normalizeStyleBinding (bindingStyle) {
  8578. if (Array.isArray(bindingStyle)) {
  8579. return toObject(bindingStyle)
  8580. }
  8581. if (typeof bindingStyle === 'string') {
  8582. return parseStyleText(bindingStyle)
  8583. }
  8584. return bindingStyle
  8585. }
  8586. /* */
  8587. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8588. function getTarget(obj, path) {
  8589. var parts = path.split('.');
  8590. var key = parts[0];
  8591. if (key.indexOf('__$n') === 0) { //number index
  8592. key = parseInt(key.replace('__$n', ''));
  8593. }
  8594. if (parts.length === 1) {
  8595. return obj[key]
  8596. }
  8597. return getTarget(obj[key], parts.slice(1).join('.'))
  8598. }
  8599. function internalMixin(Vue) {
  8600. Vue.config.errorHandler = function(err, vm, info) {
  8601. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8602. console.error(err);
  8603. /* eslint-disable no-undef */
  8604. var app = typeof getApp === 'function' && getApp();
  8605. if (app && app.onError) {
  8606. app.onError(err);
  8607. }
  8608. };
  8609. var oldEmit = Vue.prototype.$emit;
  8610. Vue.prototype.$emit = function(event) {
  8611. if (this.$scope && event) {
  8612. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8613. if (triggerEvent) {
  8614. try {
  8615. triggerEvent.call(this.$scope, event, {
  8616. __args__: toArray(arguments, 1)
  8617. });
  8618. } catch (error) {
  8619. }
  8620. }
  8621. }
  8622. return oldEmit.apply(this, arguments)
  8623. };
  8624. Vue.prototype.$nextTick = function(fn) {
  8625. return nextTick$1(this, fn)
  8626. };
  8627. MP_METHODS.forEach(function (method) {
  8628. Vue.prototype[method] = function(args) {
  8629. if (this.$scope && this.$scope[method]) {
  8630. return this.$scope[method](args)
  8631. }
  8632. // mp-alipay
  8633. if (typeof my === 'undefined') {
  8634. return
  8635. }
  8636. if (method === 'createSelectorQuery') {
  8637. /* eslint-disable no-undef */
  8638. return my.createSelectorQuery(args)
  8639. } else if (method === 'createIntersectionObserver') {
  8640. /* eslint-disable no-undef */
  8641. return my.createIntersectionObserver(args)
  8642. }
  8643. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8644. };
  8645. });
  8646. Vue.prototype.__init_provide = initProvide;
  8647. Vue.prototype.__init_injections = initInjections;
  8648. Vue.prototype.__call_hook = function(hook, args) {
  8649. var vm = this;
  8650. // #7573 disable dep collection when invoking lifecycle hooks
  8651. pushTarget();
  8652. var handlers = vm.$options[hook];
  8653. var info = hook + " hook";
  8654. var ret;
  8655. if (handlers) {
  8656. for (var i = 0, j = handlers.length; i < j; i++) {
  8657. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8658. }
  8659. }
  8660. if (vm._hasHookEvent) {
  8661. vm.$emit('hook:' + hook, args);
  8662. }
  8663. popTarget();
  8664. return ret
  8665. };
  8666. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8667. if (Array.isArray(modifiers)) {
  8668. if (modifiers.indexOf('trim') !== -1) {
  8669. value = value.trim();
  8670. }
  8671. if (modifiers.indexOf('number') !== -1) {
  8672. value = this._n(value);
  8673. }
  8674. }
  8675. if (!target) {
  8676. target = this;
  8677. }
  8678. // 解决动态属性添加
  8679. Vue.set(target, key, value);
  8680. };
  8681. Vue.prototype.__set_sync = function(target, key, value) {
  8682. if (!target) {
  8683. target = this;
  8684. }
  8685. // 解决动态属性添加
  8686. Vue.set(target, key, value);
  8687. };
  8688. Vue.prototype.__get_orig = function(item) {
  8689. if (isPlainObject(item)) {
  8690. return item['$orig'] || item
  8691. }
  8692. return item
  8693. };
  8694. Vue.prototype.__get_value = function(dataPath, target) {
  8695. return getTarget(target || this, dataPath)
  8696. };
  8697. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8698. return renderClass(staticClass, dynamicClass)
  8699. };
  8700. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8701. if (!dynamicStyle && !staticStyle) {
  8702. return ''
  8703. }
  8704. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8705. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8706. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8707. };
  8708. Vue.prototype.__map = function(val, iteratee) {
  8709. //TODO 暂不考虑 string
  8710. var ret, i, l, keys, key;
  8711. if (Array.isArray(val)) {
  8712. ret = new Array(val.length);
  8713. for (i = 0, l = val.length; i < l; i++) {
  8714. ret[i] = iteratee(val[i], i);
  8715. }
  8716. return ret
  8717. } else if (isObject(val)) {
  8718. keys = Object.keys(val);
  8719. ret = Object.create(null);
  8720. for (i = 0, l = keys.length; i < l; i++) {
  8721. key = keys[i];
  8722. ret[key] = iteratee(val[key], key, i);
  8723. }
  8724. return ret
  8725. } else if (typeof val === 'number') {
  8726. ret = new Array(val);
  8727. for (i = 0, l = val; i < l; i++) {
  8728. // 第一个参数暂时仍和小程序一致
  8729. ret[i] = iteratee(i, i);
  8730. }
  8731. return ret
  8732. }
  8733. return []
  8734. };
  8735. }
  8736. /* */
  8737. var LIFECYCLE_HOOKS$1 = [
  8738. //App
  8739. 'onLaunch',
  8740. 'onShow',
  8741. 'onHide',
  8742. 'onUniNViewMessage',
  8743. 'onPageNotFound',
  8744. 'onThemeChange',
  8745. 'onError',
  8746. 'onUnhandledRejection',
  8747. //Page
  8748. 'onInit',
  8749. 'onLoad',
  8750. // 'onShow',
  8751. 'onReady',
  8752. // 'onHide',
  8753. 'onUnload',
  8754. 'onPullDownRefresh',
  8755. 'onReachBottom',
  8756. 'onTabItemTap',
  8757. 'onAddToFavorites',
  8758. 'onShareTimeline',
  8759. 'onShareAppMessage',
  8760. 'onResize',
  8761. 'onPageScroll',
  8762. 'onNavigationBarButtonTap',
  8763. 'onBackPress',
  8764. 'onNavigationBarSearchInputChanged',
  8765. 'onNavigationBarSearchInputConfirmed',
  8766. 'onNavigationBarSearchInputClicked',
  8767. 'onUploadDouyinVideo',
  8768. 'onNFCReadMessage',
  8769. //Component
  8770. // 'onReady', // 兼容旧版本,应该移除该事件
  8771. 'onPageShow',
  8772. 'onPageHide',
  8773. 'onPageResize'
  8774. ];
  8775. function lifecycleMixin$1(Vue) {
  8776. //fixed vue-class-component
  8777. var oldExtend = Vue.extend;
  8778. Vue.extend = function(extendOptions) {
  8779. extendOptions = extendOptions || {};
  8780. var methods = extendOptions.methods;
  8781. if (methods) {
  8782. Object.keys(methods).forEach(function (methodName) {
  8783. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8784. extendOptions[methodName] = methods[methodName];
  8785. delete methods[methodName];
  8786. }
  8787. });
  8788. }
  8789. return oldExtend.call(this, extendOptions)
  8790. };
  8791. var strategies = Vue.config.optionMergeStrategies;
  8792. var mergeHook = strategies.created;
  8793. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8794. strategies[hook] = mergeHook;
  8795. });
  8796. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8797. }
  8798. /* */
  8799. // install platform patch function
  8800. Vue.prototype.__patch__ = patch;
  8801. // public mount method
  8802. Vue.prototype.$mount = function(
  8803. el ,
  8804. hydrating
  8805. ) {
  8806. return mountComponent$1(this, el, hydrating)
  8807. };
  8808. lifecycleMixin$1(Vue);
  8809. internalMixin(Vue);
  8810. /* */
  8811. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8812. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8813. /***/ }),
  8814. /* 26 */
  8815. /*!******************************************************!*\
  8816. !*** D:/baozhida/baozhida-figure-platter/pages.json ***!
  8817. \******************************************************/
  8818. /*! no static exports found */
  8819. /***/ (function(module, exports) {
  8820. /***/ }),
  8821. /* 27 */,
  8822. /* 28 */,
  8823. /* 29 */,
  8824. /* 30 */,
  8825. /* 31 */,
  8826. /* 32 */
  8827. /*!**********************************************************************************************************!*\
  8828. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8829. \**********************************************************************************************************/
  8830. /*! exports provided: default */
  8831. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8832. "use strict";
  8833. __webpack_require__.r(__webpack_exports__);
  8834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8835. /* globals __VUE_SSR_CONTEXT__ */
  8836. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8837. // This module is a runtime utility for cleaner component module output and will
  8838. // be included in the final webpack user bundle.
  8839. function normalizeComponent (
  8840. scriptExports,
  8841. render,
  8842. staticRenderFns,
  8843. functionalTemplate,
  8844. injectStyles,
  8845. scopeId,
  8846. moduleIdentifier, /* server only */
  8847. shadowMode, /* vue-cli only */
  8848. components, // fixed by xxxxxx auto components
  8849. renderjs // fixed by xxxxxx renderjs
  8850. ) {
  8851. // Vue.extend constructor export interop
  8852. var options = typeof scriptExports === 'function'
  8853. ? scriptExports.options
  8854. : scriptExports
  8855. // fixed by xxxxxx auto components
  8856. if (components) {
  8857. if (!options.components) {
  8858. options.components = {}
  8859. }
  8860. var hasOwn = Object.prototype.hasOwnProperty
  8861. for (var name in components) {
  8862. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8863. options.components[name] = components[name]
  8864. }
  8865. }
  8866. }
  8867. // fixed by xxxxxx renderjs
  8868. if (renderjs) {
  8869. if(typeof renderjs.beforeCreate === 'function'){
  8870. renderjs.beforeCreate = [renderjs.beforeCreate]
  8871. }
  8872. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8873. this[renderjs.__module] = this
  8874. });
  8875. (options.mixins || (options.mixins = [])).push(renderjs)
  8876. }
  8877. // render functions
  8878. if (render) {
  8879. options.render = render
  8880. options.staticRenderFns = staticRenderFns
  8881. options._compiled = true
  8882. }
  8883. // functional template
  8884. if (functionalTemplate) {
  8885. options.functional = true
  8886. }
  8887. // scopedId
  8888. if (scopeId) {
  8889. options._scopeId = 'data-v-' + scopeId
  8890. }
  8891. var hook
  8892. if (moduleIdentifier) { // server build
  8893. hook = function (context) {
  8894. // 2.3 injection
  8895. context =
  8896. context || // cached call
  8897. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8898. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8899. // 2.2 with runInNewContext: true
  8900. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8901. context = __VUE_SSR_CONTEXT__
  8902. }
  8903. // inject component styles
  8904. if (injectStyles) {
  8905. injectStyles.call(this, context)
  8906. }
  8907. // register component module identifier for async chunk inferrence
  8908. if (context && context._registeredComponents) {
  8909. context._registeredComponents.add(moduleIdentifier)
  8910. }
  8911. }
  8912. // used by ssr in case component is cached and beforeCreate
  8913. // never gets called
  8914. options._ssrRegister = hook
  8915. } else if (injectStyles) {
  8916. hook = shadowMode
  8917. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8918. : injectStyles
  8919. }
  8920. if (hook) {
  8921. if (options.functional) {
  8922. // for template-only hot-reload because in that case the render fn doesn't
  8923. // go through the normalizer
  8924. options._injectStyles = hook
  8925. // register for functioal component in vue file
  8926. var originalRender = options.render
  8927. options.render = function renderWithStyleInjection (h, context) {
  8928. hook.call(context)
  8929. return originalRender(h, context)
  8930. }
  8931. } else {
  8932. // inject component registration as beforeCreate hook
  8933. var existing = options.beforeCreate
  8934. options.beforeCreate = existing
  8935. ? [].concat(existing, hook)
  8936. : [hook]
  8937. }
  8938. }
  8939. return {
  8940. exports: scriptExports,
  8941. options: options
  8942. }
  8943. }
  8944. /***/ }),
  8945. /* 33 */
  8946. /*!*************************************************************************!*\
  8947. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/index.js ***!
  8948. \*************************************************************************/
  8949. /*! no static exports found */
  8950. /***/ (function(module, exports, __webpack_require__) {
  8951. "use strict";
  8952. /* WEBPACK VAR INJECTION */(function(uni) {
  8953. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8954. Object.defineProperty(exports, "__esModule", {
  8955. value: true
  8956. });
  8957. exports.default = void 0;
  8958. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8959. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  8960. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  8961. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  8962. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  8963. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  8964. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  8965. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  8966. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  8967. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  8968. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 65));
  8969. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 66));
  8970. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 156));
  8971. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 114));
  8972. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 157));
  8973. 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; }
  8974. 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; }
  8975. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8976. var pleaseSetTranspileDependencies = {},
  8977. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  8978. // 引入全局mixin
  8979. var $u = _objectSpread(_objectSpread({
  8980. route: _route.default,
  8981. date: _index.default.timeFormat,
  8982. // 另名date
  8983. colorGradient: _colorGradient.default.colorGradient,
  8984. hexToRgb: _colorGradient.default.hexToRgb,
  8985. rgbToHex: _colorGradient.default.rgbToHex,
  8986. colorToRgba: _colorGradient.default.colorToRgba,
  8987. test: _test.default,
  8988. type: ['primary', 'success', 'error', 'warning', 'info'],
  8989. http: new _luchRequest.default(),
  8990. config: _config.default,
  8991. // uView配置信息相关,比如版本号
  8992. zIndex: _zIndex.default,
  8993. debounce: _debounce.default,
  8994. throttle: _throttle.default,
  8995. mixin: _mixin.default,
  8996. mpMixin: _mpMixin.default,
  8997. props: _props.default
  8998. }, _index.default), {}, {
  8999. color: _color.default,
  9000. platform: _platform.default
  9001. });
  9002. // $u挂载到uni对象上
  9003. uni.$u = $u;
  9004. var install = function install(Vue) {
  9005. // 时间格式化,同时两个名称,date和timeFormat
  9006. Vue.filter('timeFormat', function (timestamp, format) {
  9007. return uni.$u.timeFormat(timestamp, format);
  9008. });
  9009. Vue.filter('date', function (timestamp, format) {
  9010. return uni.$u.timeFormat(timestamp, format);
  9011. });
  9012. // 将多久以前的方法,注入到全局过滤器
  9013. Vue.filter('timeFrom', function (timestamp, format) {
  9014. return uni.$u.timeFrom(timestamp, format);
  9015. });
  9016. // 同时挂载到uni和Vue.prototype中
  9017. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9018. Vue.prototype.$u = $u;
  9019. Vue.mixin(_mixin.default);
  9020. };
  9021. var _default = {
  9022. install: install
  9023. };
  9024. exports.default = _default;
  9025. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9026. /***/ }),
  9027. /* 34 */
  9028. /*!************************************************************************************!*\
  9029. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9030. \************************************************************************************/
  9031. /*! no static exports found */
  9032. /***/ (function(module, exports, __webpack_require__) {
  9033. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9034. // 定义每个组件都可能需要用到的外部样式以及类名
  9035. props: {
  9036. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9037. customStyle: {
  9038. type: [Object, String],
  9039. default: function _default() {
  9040. return {};
  9041. }
  9042. },
  9043. customClass: {
  9044. type: String,
  9045. default: ''
  9046. },
  9047. // 跳转的页面路径
  9048. url: {
  9049. type: String,
  9050. default: ''
  9051. },
  9052. // 页面跳转的类型
  9053. linkType: {
  9054. type: String,
  9055. default: 'navigateTo'
  9056. }
  9057. },
  9058. data: function data() {
  9059. return {};
  9060. },
  9061. onLoad: function onLoad() {
  9062. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9063. this.$u.getRect = this.$uGetRect;
  9064. },
  9065. created: function created() {
  9066. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9067. this.$u.getRect = this.$uGetRect;
  9068. },
  9069. computed: {
  9070. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9071. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9072. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9073. $u: function $u() {
  9074. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9075. return uni.$u.deepMerge(uni.$u, {
  9076. props: undefined,
  9077. http: undefined,
  9078. mixin: undefined
  9079. });
  9080. },
  9081. /**
  9082. * 生成bem规则类名
  9083. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9084. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9085. * @param {String} name 组件名称
  9086. * @param {Array} fixed 一直会存在的类名
  9087. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9088. * @returns {Array|string}
  9089. */
  9090. bem: function bem() {
  9091. return function (name, fixed, change) {
  9092. var _this = this;
  9093. // 类名前缀
  9094. var prefix = "u-".concat(name, "--");
  9095. var classes = {};
  9096. if (fixed) {
  9097. fixed.map(function (item) {
  9098. // 这里的类名,会一直存在
  9099. classes[prefix + _this[item]] = true;
  9100. });
  9101. }
  9102. if (change) {
  9103. change.map(function (item) {
  9104. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9105. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9106. });
  9107. }
  9108. return Object.keys(classes);
  9109. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9110. };
  9111. }
  9112. },
  9113. methods: {
  9114. // 跳转某一个页面
  9115. openPage: function openPage() {
  9116. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9117. var url = this[urlKey];
  9118. if (url) {
  9119. // 执行类似uni.navigateTo的方法
  9120. uni[this.linkType]({
  9121. url: url
  9122. });
  9123. }
  9124. },
  9125. // 查询节点信息
  9126. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9127. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9128. $uGetRect: function $uGetRect(selector, all) {
  9129. var _this2 = this;
  9130. return new Promise(function (resolve) {
  9131. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9132. if (all && Array.isArray(rect) && rect.length) {
  9133. resolve(rect);
  9134. }
  9135. if (!all && rect) {
  9136. resolve(rect);
  9137. }
  9138. }).exec();
  9139. });
  9140. },
  9141. getParentData: function getParentData() {
  9142. var _this3 = this;
  9143. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9144. // 避免在created中去定义parent变量
  9145. if (!this.parent) this.parent = {};
  9146. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9147. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9148. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9149. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9150. this.parent = uni.$u.$parent.call(this, parentName);
  9151. if (this.parent.children) {
  9152. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9153. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9154. }
  9155. if (this.parent && this.parentData) {
  9156. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9157. Object.keys(this.parentData).map(function (key) {
  9158. _this3.parentData[key] = _this3.parent[key];
  9159. });
  9160. }
  9161. },
  9162. // 阻止事件冒泡
  9163. preventEvent: function preventEvent(e) {
  9164. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9165. },
  9166. // 空操作
  9167. noop: function noop(e) {
  9168. this.preventEvent(e);
  9169. }
  9170. },
  9171. onReachBottom: function onReachBottom() {
  9172. uni.$emit('uOnReachBottom');
  9173. },
  9174. beforeDestroy: function beforeDestroy() {
  9175. var _this4 = this;
  9176. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9177. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9178. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9179. // 组件销毁时,移除父组件中的children数组中对应的实例
  9180. var childrenList = this.parent.children;
  9181. childrenList.map(function (child, index) {
  9182. // 如果相等,则移除
  9183. if (child === _this4) {
  9184. childrenList.splice(index, 1);
  9185. }
  9186. });
  9187. }
  9188. }
  9189. };
  9190. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9191. /***/ }),
  9192. /* 35 */
  9193. /*!**************************************************************************************!*\
  9194. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9195. \**************************************************************************************/
  9196. /*! no static exports found */
  9197. /***/ (function(module, exports, __webpack_require__) {
  9198. "use strict";
  9199. Object.defineProperty(exports, "__esModule", {
  9200. value: true
  9201. });
  9202. exports.default = void 0;
  9203. var _default = {
  9204. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9205. options: {
  9206. virtualHost: true
  9207. }
  9208. };
  9209. exports.default = _default;
  9210. /***/ }),
  9211. /* 36 */
  9212. /*!*******************************************************************************************!*\
  9213. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9214. \*******************************************************************************************/
  9215. /*! no static exports found */
  9216. /***/ (function(module, exports, __webpack_require__) {
  9217. "use strict";
  9218. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9219. Object.defineProperty(exports, "__esModule", {
  9220. value: true
  9221. });
  9222. exports.default = void 0;
  9223. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));
  9224. var _default = _Request.default;
  9225. exports.default = _default;
  9226. /***/ }),
  9227. /* 37 */
  9228. /*!**************************************************************************************************!*\
  9229. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9230. \**************************************************************************************************/
  9231. /*! no static exports found */
  9232. /***/ (function(module, exports, __webpack_require__) {
  9233. "use strict";
  9234. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9235. Object.defineProperty(exports, "__esModule", {
  9236. value: true
  9237. });
  9238. exports.default = void 0;
  9239. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9240. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9241. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9242. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  9243. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  9244. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  9245. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  9246. var _utils = __webpack_require__(/*! ../utils */ 41);
  9247. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));
  9248. 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; }
  9249. 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; }
  9250. var Request = /*#__PURE__*/function () {
  9251. /**
  9252. * @param {Object} arg - 全局配置
  9253. * @param {String} arg.baseURL - 全局根路径
  9254. * @param {Object} arg.header - 全局header
  9255. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9256. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9257. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9258. * @param {Object} arg.custom - 全局默认的自定义参数
  9259. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9260. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9261. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9262. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9263. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9264. */
  9265. function Request() {
  9266. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9267. (0, _classCallCheck2.default)(this, Request);
  9268. if (!(0, _utils.isPlainObject)(arg)) {
  9269. arg = {};
  9270. console.warn('设置全局参数必须接收一个Object');
  9271. }
  9272. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9273. this.interceptors = {
  9274. request: new _InterceptorManager.default(),
  9275. response: new _InterceptorManager.default()
  9276. };
  9277. }
  9278. /**
  9279. * @Function
  9280. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9281. */
  9282. (0, _createClass2.default)(Request, [{
  9283. key: "setConfig",
  9284. value: function setConfig(f) {
  9285. this.config = f(this.config);
  9286. }
  9287. }, {
  9288. key: "middleware",
  9289. value: function middleware(config) {
  9290. config = (0, _mergeConfig.default)(this.config, config);
  9291. var chain = [_dispatchRequest.default, undefined];
  9292. var promise = Promise.resolve(config);
  9293. this.interceptors.request.forEach(function (interceptor) {
  9294. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9295. });
  9296. this.interceptors.response.forEach(function (interceptor) {
  9297. chain.push(interceptor.fulfilled, interceptor.rejected);
  9298. });
  9299. while (chain.length) {
  9300. promise = promise.then(chain.shift(), chain.shift());
  9301. }
  9302. return promise;
  9303. }
  9304. /**
  9305. * @Function
  9306. * @param {Object} config - 请求配置项
  9307. * @prop {String} options.url - 请求路径
  9308. * @prop {Object} options.data - 请求参数
  9309. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9310. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9311. * @prop {Object} [options.header = config.header] - 请求header
  9312. * @prop {Object} [options.method = config.method] - 请求方法
  9313. * @returns {Promise<unknown>}
  9314. */
  9315. }, {
  9316. key: "request",
  9317. value: function request() {
  9318. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9319. return this.middleware(config);
  9320. }
  9321. }, {
  9322. key: "get",
  9323. value: function get(url) {
  9324. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9325. return this.middleware(_objectSpread({
  9326. url: url,
  9327. method: 'GET'
  9328. }, options));
  9329. }
  9330. }, {
  9331. key: "post",
  9332. value: function post(url, data) {
  9333. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9334. return this.middleware(_objectSpread({
  9335. url: url,
  9336. data: data,
  9337. method: 'POST'
  9338. }, options));
  9339. }
  9340. }, {
  9341. key: "put",
  9342. value: function put(url, data) {
  9343. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9344. return this.middleware(_objectSpread({
  9345. url: url,
  9346. data: data,
  9347. method: 'PUT'
  9348. }, options));
  9349. }
  9350. }, {
  9351. key: "delete",
  9352. value: function _delete(url, data) {
  9353. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9354. return this.middleware(_objectSpread({
  9355. url: url,
  9356. data: data,
  9357. method: 'DELETE'
  9358. }, options));
  9359. }
  9360. }, {
  9361. key: "connect",
  9362. value: function connect(url, data) {
  9363. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9364. return this.middleware(_objectSpread({
  9365. url: url,
  9366. data: data,
  9367. method: 'CONNECT'
  9368. }, options));
  9369. }
  9370. }, {
  9371. key: "head",
  9372. value: function head(url, data) {
  9373. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9374. return this.middleware(_objectSpread({
  9375. url: url,
  9376. data: data,
  9377. method: 'HEAD'
  9378. }, options));
  9379. }
  9380. }, {
  9381. key: "options",
  9382. value: function options(url, data) {
  9383. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9384. return this.middleware(_objectSpread({
  9385. url: url,
  9386. data: data,
  9387. method: 'OPTIONS'
  9388. }, _options));
  9389. }
  9390. }, {
  9391. key: "trace",
  9392. value: function trace(url, data) {
  9393. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9394. return this.middleware(_objectSpread({
  9395. url: url,
  9396. data: data,
  9397. method: 'TRACE'
  9398. }, options));
  9399. }
  9400. }, {
  9401. key: "upload",
  9402. value: function upload(url) {
  9403. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9404. config.url = url;
  9405. config.method = 'UPLOAD';
  9406. return this.middleware(config);
  9407. }
  9408. }, {
  9409. key: "download",
  9410. value: function download(url) {
  9411. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9412. config.url = url;
  9413. config.method = 'DOWNLOAD';
  9414. return this.middleware(config);
  9415. }
  9416. }]);
  9417. return Request;
  9418. }();
  9419. /**
  9420. * setConfig回调
  9421. * @return {Object} - 返回操作后的config
  9422. * @callback Request~setConfigCallback
  9423. * @param {Object} config - 全局默认config
  9424. */
  9425. exports.default = Request;
  9426. /***/ }),
  9427. /* 38 */
  9428. /*!**********************************************************************************************************!*\
  9429. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9430. \**********************************************************************************************************/
  9431. /*! no static exports found */
  9432. /***/ (function(module, exports, __webpack_require__) {
  9433. "use strict";
  9434. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9435. Object.defineProperty(exports, "__esModule", {
  9436. value: true
  9437. });
  9438. exports.default = void 0;
  9439. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));
  9440. var _default = function _default(config) {
  9441. return (0, _index.default)(config);
  9442. };
  9443. exports.default = _default;
  9444. /***/ }),
  9445. /* 39 */
  9446. /*!****************************************************************************************************!*\
  9447. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9448. \****************************************************************************************************/
  9449. /*! no static exports found */
  9450. /***/ (function(module, exports, __webpack_require__) {
  9451. "use strict";
  9452. /* WEBPACK VAR INJECTION */(function(uni) {
  9453. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9454. Object.defineProperty(exports, "__esModule", {
  9455. value: true
  9456. });
  9457. exports.default = void 0;
  9458. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9459. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  9460. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  9461. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  9462. var _utils = __webpack_require__(/*! ../utils */ 41);
  9463. 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; }
  9464. 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; }
  9465. /**
  9466. * 返回可选值存在的配置
  9467. * @param {Array} keys - 可选值数组
  9468. * @param {Object} config2 - 配置
  9469. * @return {{}} - 存在的配置项
  9470. */
  9471. var mergeKeys = function mergeKeys(keys, config2) {
  9472. var config = {};
  9473. keys.forEach(function (prop) {
  9474. if (!(0, _utils.isUndefined)(config2[prop])) {
  9475. config[prop] = config2[prop];
  9476. }
  9477. });
  9478. return config;
  9479. };
  9480. var _default = function _default(config) {
  9481. return new Promise(function (resolve, reject) {
  9482. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9483. var _config = {
  9484. url: fullPath,
  9485. header: config.header,
  9486. complete: function complete(response) {
  9487. config.fullPath = fullPath;
  9488. response.config = config;
  9489. try {
  9490. // 对可能字符串不是json 的情况容错
  9491. if (typeof response.data === 'string') {
  9492. response.data = JSON.parse(response.data);
  9493. }
  9494. // eslint-disable-next-line no-empty
  9495. } catch (e) {}
  9496. (0, _settle.default)(resolve, reject, response);
  9497. }
  9498. };
  9499. var requestTask;
  9500. if (config.method === 'UPLOAD') {
  9501. delete _config.header['content-type'];
  9502. delete _config.header['Content-Type'];
  9503. var otherConfig = {
  9504. filePath: config.filePath,
  9505. name: config.name
  9506. };
  9507. var optionalKeys = ['formData'];
  9508. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9509. } else if (config.method === 'DOWNLOAD') {
  9510. requestTask = uni.downloadFile(_config);
  9511. } else {
  9512. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9513. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9514. }
  9515. if (config.getTask) {
  9516. config.getTask(requestTask, config);
  9517. }
  9518. });
  9519. };
  9520. exports.default = _default;
  9521. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9522. /***/ }),
  9523. /* 40 */
  9524. /*!******************************************************************************************************!*\
  9525. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9526. \******************************************************************************************************/
  9527. /*! no static exports found */
  9528. /***/ (function(module, exports, __webpack_require__) {
  9529. "use strict";
  9530. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9531. Object.defineProperty(exports, "__esModule", {
  9532. value: true
  9533. });
  9534. exports.default = buildURL;
  9535. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));
  9536. 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); }
  9537. 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; }
  9538. function encode(val) {
  9539. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9540. }
  9541. /**
  9542. * Build a URL by appending params to the end
  9543. *
  9544. * @param {string} url The base of the url (e.g., http://www.google.com)
  9545. * @param {object} [params] The params to be appended
  9546. * @returns {string} The formatted url
  9547. */
  9548. function buildURL(url, params) {
  9549. /* eslint no-param-reassign:0 */
  9550. if (!params) {
  9551. return url;
  9552. }
  9553. var serializedParams;
  9554. if (utils.isURLSearchParams(params)) {
  9555. serializedParams = params.toString();
  9556. } else {
  9557. var parts = [];
  9558. utils.forEach(params, function (val, key) {
  9559. if (val === null || typeof val === 'undefined') {
  9560. return;
  9561. }
  9562. if (utils.isArray(val)) {
  9563. key = "".concat(key, "[]");
  9564. } else {
  9565. val = [val];
  9566. }
  9567. utils.forEach(val, function (v) {
  9568. if (utils.isDate(v)) {
  9569. v = v.toISOString();
  9570. } else if (utils.isObject(v)) {
  9571. v = JSON.stringify(v);
  9572. }
  9573. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9574. });
  9575. });
  9576. serializedParams = parts.join('&');
  9577. }
  9578. if (serializedParams) {
  9579. var hashmarkIndex = url.indexOf('#');
  9580. if (hashmarkIndex !== -1) {
  9581. url = url.slice(0, hashmarkIndex);
  9582. }
  9583. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9584. }
  9585. return url;
  9586. }
  9587. /***/ }),
  9588. /* 41 */
  9589. /*!*******************************************************************************************!*\
  9590. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  9591. \*******************************************************************************************/
  9592. /*! no static exports found */
  9593. /***/ (function(module, exports, __webpack_require__) {
  9594. "use strict";
  9595. // utils is a library of generic helper functions non-specific to axios
  9596. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9597. Object.defineProperty(exports, "__esModule", {
  9598. value: true
  9599. });
  9600. exports.deepMerge = deepMerge;
  9601. exports.forEach = forEach;
  9602. exports.isArray = isArray;
  9603. exports.isBoolean = isBoolean;
  9604. exports.isDate = isDate;
  9605. exports.isObject = isObject;
  9606. exports.isPlainObject = isPlainObject;
  9607. exports.isURLSearchParams = isURLSearchParams;
  9608. exports.isUndefined = isUndefined;
  9609. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9610. var toString = Object.prototype.toString;
  9611. /**
  9612. * Determine if a value is an Array
  9613. *
  9614. * @param {Object} val The value to test
  9615. * @returns {boolean} True if value is an Array, otherwise false
  9616. */
  9617. function isArray(val) {
  9618. return toString.call(val) === '[object Array]';
  9619. }
  9620. /**
  9621. * Determine if a value is an Object
  9622. *
  9623. * @param {Object} val The value to test
  9624. * @returns {boolean} True if value is an Object, otherwise false
  9625. */
  9626. function isObject(val) {
  9627. return val !== null && (0, _typeof2.default)(val) === 'object';
  9628. }
  9629. /**
  9630. * Determine if a value is a Date
  9631. *
  9632. * @param {Object} val The value to test
  9633. * @returns {boolean} True if value is a Date, otherwise false
  9634. */
  9635. function isDate(val) {
  9636. return toString.call(val) === '[object Date]';
  9637. }
  9638. /**
  9639. * Determine if a value is a URLSearchParams object
  9640. *
  9641. * @param {Object} val The value to test
  9642. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9643. */
  9644. function isURLSearchParams(val) {
  9645. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9646. }
  9647. /**
  9648. * Iterate over an Array or an Object invoking a function for each item.
  9649. *
  9650. * If `obj` is an Array callback will be called passing
  9651. * the value, index, and complete array for each item.
  9652. *
  9653. * If 'obj' is an Object callback will be called passing
  9654. * the value, key, and complete object for each property.
  9655. *
  9656. * @param {Object|Array} obj The object to iterate
  9657. * @param {Function} fn The callback to invoke for each item
  9658. */
  9659. function forEach(obj, fn) {
  9660. // Don't bother if no value provided
  9661. if (obj === null || typeof obj === 'undefined') {
  9662. return;
  9663. }
  9664. // Force an array if not already something iterable
  9665. if ((0, _typeof2.default)(obj) !== 'object') {
  9666. /* eslint no-param-reassign:0 */
  9667. obj = [obj];
  9668. }
  9669. if (isArray(obj)) {
  9670. // Iterate over array values
  9671. for (var i = 0, l = obj.length; i < l; i++) {
  9672. fn.call(null, obj[i], i, obj);
  9673. }
  9674. } else {
  9675. // Iterate over object keys
  9676. for (var key in obj) {
  9677. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9678. fn.call(null, obj[key], key, obj);
  9679. }
  9680. }
  9681. }
  9682. }
  9683. /**
  9684. * 是否为boolean 值
  9685. * @param val
  9686. * @returns {boolean}
  9687. */
  9688. function isBoolean(val) {
  9689. return typeof val === 'boolean';
  9690. }
  9691. /**
  9692. * 是否为真正的对象{} new Object
  9693. * @param {any} obj - 检测的对象
  9694. * @returns {boolean}
  9695. */
  9696. function isPlainObject(obj) {
  9697. return Object.prototype.toString.call(obj) === '[object Object]';
  9698. }
  9699. /**
  9700. * Function equal to merge with the difference being that no reference
  9701. * to original objects is kept.
  9702. *
  9703. * @see merge
  9704. * @param {Object} obj1 Object to merge
  9705. * @returns {Object} Result of all merge properties
  9706. */
  9707. function deepMerge( /* obj1, obj2, obj3, ... */
  9708. ) {
  9709. var result = {};
  9710. function assignValue(val, key) {
  9711. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9712. result[key] = deepMerge(result[key], val);
  9713. } else if ((0, _typeof2.default)(val) === 'object') {
  9714. result[key] = deepMerge({}, val);
  9715. } else {
  9716. result[key] = val;
  9717. }
  9718. }
  9719. for (var i = 0, l = arguments.length; i < l; i++) {
  9720. forEach(arguments[i], assignValue);
  9721. }
  9722. return result;
  9723. }
  9724. function isUndefined(val) {
  9725. return typeof val === 'undefined';
  9726. }
  9727. /***/ }),
  9728. /* 42 */
  9729. /*!********************************************************************************************************!*\
  9730. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9731. \********************************************************************************************************/
  9732. /*! no static exports found */
  9733. /***/ (function(module, exports, __webpack_require__) {
  9734. "use strict";
  9735. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9736. Object.defineProperty(exports, "__esModule", {
  9737. value: true
  9738. });
  9739. exports.default = buildFullPath;
  9740. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  9741. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));
  9742. /**
  9743. * Creates a new URL by combining the baseURL with the requestedURL,
  9744. * only when the requestedURL is not already an absolute URL.
  9745. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9746. *
  9747. * @param {string} baseURL The base URL
  9748. * @param {string} requestedURL Absolute or relative URL to combine
  9749. * @returns {string} The combined full path
  9750. */
  9751. function buildFullPath(baseURL, requestedURL) {
  9752. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9753. return (0, _combineURLs.default)(baseURL, requestedURL);
  9754. }
  9755. return requestedURL;
  9756. }
  9757. /***/ }),
  9758. /* 43 */
  9759. /*!***********************************************************************************************************!*\
  9760. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9761. \***********************************************************************************************************/
  9762. /*! no static exports found */
  9763. /***/ (function(module, exports, __webpack_require__) {
  9764. "use strict";
  9765. /**
  9766. * Determines whether the specified URL is absolute
  9767. *
  9768. * @param {string} url The URL to test
  9769. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9770. */
  9771. Object.defineProperty(exports, "__esModule", {
  9772. value: true
  9773. });
  9774. exports.default = isAbsoluteURL;
  9775. function isAbsoluteURL(url) {
  9776. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9777. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9778. // by any combination of letters, digits, plus, period, or hyphen.
  9779. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9780. }
  9781. /***/ }),
  9782. /* 44 */
  9783. /*!*********************************************************************************************************!*\
  9784. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9785. \*********************************************************************************************************/
  9786. /*! no static exports found */
  9787. /***/ (function(module, exports, __webpack_require__) {
  9788. "use strict";
  9789. /**
  9790. * Creates a new URL by combining the specified URLs
  9791. *
  9792. * @param {string} baseURL The base URL
  9793. * @param {string} relativeURL The relative URL
  9794. * @returns {string} The combined URL
  9795. */
  9796. Object.defineProperty(exports, "__esModule", {
  9797. value: true
  9798. });
  9799. exports.default = combineURLs;
  9800. function combineURLs(baseURL, relativeURL) {
  9801. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9802. }
  9803. /***/ }),
  9804. /* 45 */
  9805. /*!*************************************************************************************************!*\
  9806. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9807. \*************************************************************************************************/
  9808. /*! no static exports found */
  9809. /***/ (function(module, exports, __webpack_require__) {
  9810. "use strict";
  9811. Object.defineProperty(exports, "__esModule", {
  9812. value: true
  9813. });
  9814. exports.default = settle;
  9815. /**
  9816. * Resolve or reject a Promise based on response status.
  9817. *
  9818. * @param {Function} resolve A function that resolves the promise.
  9819. * @param {Function} reject A function that rejects the promise.
  9820. * @param {object} response The response.
  9821. */
  9822. function settle(resolve, reject, response) {
  9823. var validateStatus = response.config.validateStatus;
  9824. var status = response.statusCode;
  9825. if (status && (!validateStatus || validateStatus(status))) {
  9826. resolve(response);
  9827. } else {
  9828. reject(response);
  9829. }
  9830. }
  9831. /***/ }),
  9832. /* 46 */
  9833. /*!*************************************************************************************************************!*\
  9834. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9835. \*************************************************************************************************************/
  9836. /*! no static exports found */
  9837. /***/ (function(module, exports, __webpack_require__) {
  9838. "use strict";
  9839. Object.defineProperty(exports, "__esModule", {
  9840. value: true
  9841. });
  9842. exports.default = void 0;
  9843. function InterceptorManager() {
  9844. this.handlers = [];
  9845. }
  9846. /**
  9847. * Add a new interceptor to the stack
  9848. *
  9849. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9850. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9851. *
  9852. * @return {Number} An ID used to remove interceptor later
  9853. */
  9854. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9855. this.handlers.push({
  9856. fulfilled: fulfilled,
  9857. rejected: rejected
  9858. });
  9859. return this.handlers.length - 1;
  9860. };
  9861. /**
  9862. * Remove an interceptor from the stack
  9863. *
  9864. * @param {Number} id The ID that was returned by `use`
  9865. */
  9866. InterceptorManager.prototype.eject = function eject(id) {
  9867. if (this.handlers[id]) {
  9868. this.handlers[id] = null;
  9869. }
  9870. };
  9871. /**
  9872. * Iterate over all the registered interceptors
  9873. *
  9874. * This method is particularly useful for skipping over any
  9875. * interceptors that may have become `null` calling `eject`.
  9876. *
  9877. * @param {Function} fn The function to call for each interceptor
  9878. */
  9879. InterceptorManager.prototype.forEach = function forEach(fn) {
  9880. this.handlers.forEach(function (h) {
  9881. if (h !== null) {
  9882. fn(h);
  9883. }
  9884. });
  9885. };
  9886. var _default = InterceptorManager;
  9887. exports.default = _default;
  9888. /***/ }),
  9889. /* 47 */
  9890. /*!******************************************************************************************************!*\
  9891. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9892. \******************************************************************************************************/
  9893. /*! no static exports found */
  9894. /***/ (function(module, exports, __webpack_require__) {
  9895. "use strict";
  9896. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9897. Object.defineProperty(exports, "__esModule", {
  9898. value: true
  9899. });
  9900. exports.default = void 0;
  9901. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9902. var _utils = __webpack_require__(/*! ../utils */ 41);
  9903. 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; }
  9904. 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; }
  9905. /**
  9906. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9907. * @param {Array} keys - 配置项
  9908. * @param {Object} globalsConfig - 当前的全局配置
  9909. * @param {Object} config2 - 局部配置
  9910. * @return {{}}
  9911. */
  9912. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9913. var config = {};
  9914. keys.forEach(function (prop) {
  9915. if (!(0, _utils.isUndefined)(config2[prop])) {
  9916. config[prop] = config2[prop];
  9917. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9918. config[prop] = globalsConfig[prop];
  9919. }
  9920. });
  9921. return config;
  9922. };
  9923. /**
  9924. *
  9925. * @param globalsConfig - 当前实例的全局配置
  9926. * @param config2 - 当前的局部配置
  9927. * @return - 合并后的配置
  9928. */
  9929. var _default = function _default(globalsConfig) {
  9930. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9931. var method = config2.method || globalsConfig.method || 'GET';
  9932. var config = {
  9933. baseURL: globalsConfig.baseURL || '',
  9934. method: method,
  9935. url: config2.url || '',
  9936. params: config2.params || {},
  9937. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9938. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  9939. };
  9940. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9941. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9942. // eslint-disable-next-line no-empty
  9943. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  9944. delete config.header['content-type'];
  9945. delete config.header['Content-Type'];
  9946. var uploadKeys = ['filePath', 'name', 'formData'];
  9947. uploadKeys.forEach(function (prop) {
  9948. if (!(0, _utils.isUndefined)(config2[prop])) {
  9949. config[prop] = config2[prop];
  9950. }
  9951. });
  9952. } else {
  9953. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  9954. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9955. }
  9956. return config;
  9957. };
  9958. exports.default = _default;
  9959. /***/ }),
  9960. /* 48 */
  9961. /*!***************************************************************************************************!*\
  9962. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  9963. \***************************************************************************************************/
  9964. /*! no static exports found */
  9965. /***/ (function(module, exports, __webpack_require__) {
  9966. "use strict";
  9967. Object.defineProperty(exports, "__esModule", {
  9968. value: true
  9969. });
  9970. exports.default = void 0;
  9971. /**
  9972. * 默认的全局配置
  9973. */
  9974. var _default = {
  9975. baseURL: '',
  9976. header: {},
  9977. method: 'GET',
  9978. dataType: 'json',
  9979. responseType: 'text',
  9980. custom: {},
  9981. timeout: 60000,
  9982. validateStatus: function validateStatus(status) {
  9983. return status >= 200 && status < 300;
  9984. }
  9985. };
  9986. exports.default = _default;
  9987. /***/ }),
  9988. /* 49 */
  9989. /*!*************************************************************************************************!*\
  9990. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  9991. \*************************************************************************************************/
  9992. /*! no static exports found */
  9993. /***/ (function(module, exports, __webpack_require__) {
  9994. "use strict";
  9995. /* WEBPACK VAR INJECTION */(function(Buffer) {
  9996. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9997. Object.defineProperty(exports, "__esModule", {
  9998. value: true
  9999. });
  10000. exports.default = void 0;
  10001. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10002. /* eslint-disable */
  10003. var clone = function () {
  10004. 'use strict';
  10005. function _instanceof(obj, type) {
  10006. return type != null && obj instanceof type;
  10007. }
  10008. var nativeMap;
  10009. try {
  10010. nativeMap = Map;
  10011. } catch (_) {
  10012. // maybe a reference error because no `Map`. Give it a dummy value that no
  10013. // value will ever be an instanceof.
  10014. nativeMap = function nativeMap() {};
  10015. }
  10016. var nativeSet;
  10017. try {
  10018. nativeSet = Set;
  10019. } catch (_) {
  10020. nativeSet = function nativeSet() {};
  10021. }
  10022. var nativePromise;
  10023. try {
  10024. nativePromise = Promise;
  10025. } catch (_) {
  10026. nativePromise = function nativePromise() {};
  10027. }
  10028. /**
  10029. * Clones (copies) an Object using deep copying.
  10030. *
  10031. * This function supports circular references by default, but if you are certain
  10032. * there are no circular references in your object, you can save some CPU time
  10033. * by calling clone(obj, false).
  10034. *
  10035. * Caution: if `circular` is false and `parent` contains circular references,
  10036. * your program may enter an infinite loop and crash.
  10037. *
  10038. * @param `parent` - the object to be cloned
  10039. * @param `circular` - set to true if the object to be cloned may contain
  10040. * circular references. (optional - true by default)
  10041. * @param `depth` - set to a number if the object is only to be cloned to
  10042. * a particular depth. (optional - defaults to Infinity)
  10043. * @param `prototype` - sets the prototype to be used when cloning an object.
  10044. * (optional - defaults to parent prototype).
  10045. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10046. * should be cloned as well. Non-enumerable properties on the prototype
  10047. * chain will be ignored. (optional - false by default)
  10048. */
  10049. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10050. if ((0, _typeof2.default)(circular) === 'object') {
  10051. depth = circular.depth;
  10052. prototype = circular.prototype;
  10053. includeNonEnumerable = circular.includeNonEnumerable;
  10054. circular = circular.circular;
  10055. }
  10056. // maintain two arrays for circular references, where corresponding parents
  10057. // and children have the same index
  10058. var allParents = [];
  10059. var allChildren = [];
  10060. var useBuffer = typeof Buffer != 'undefined';
  10061. if (typeof circular == 'undefined') circular = true;
  10062. if (typeof depth == 'undefined') depth = Infinity;
  10063. // recurse this function so we don't reset allParents and allChildren
  10064. function _clone(parent, depth) {
  10065. // cloning null always returns null
  10066. if (parent === null) return null;
  10067. if (depth === 0) return parent;
  10068. var child;
  10069. var proto;
  10070. if ((0, _typeof2.default)(parent) != 'object') {
  10071. return parent;
  10072. }
  10073. if (_instanceof(parent, nativeMap)) {
  10074. child = new nativeMap();
  10075. } else if (_instanceof(parent, nativeSet)) {
  10076. child = new nativeSet();
  10077. } else if (_instanceof(parent, nativePromise)) {
  10078. child = new nativePromise(function (resolve, reject) {
  10079. parent.then(function (value) {
  10080. resolve(_clone(value, depth - 1));
  10081. }, function (err) {
  10082. reject(_clone(err, depth - 1));
  10083. });
  10084. });
  10085. } else if (clone.__isArray(parent)) {
  10086. child = [];
  10087. } else if (clone.__isRegExp(parent)) {
  10088. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10089. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10090. } else if (clone.__isDate(parent)) {
  10091. child = new Date(parent.getTime());
  10092. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10093. if (Buffer.from) {
  10094. // Node.js >= 5.10.0
  10095. child = Buffer.from(parent);
  10096. } else {
  10097. // Older Node.js versions
  10098. child = new Buffer(parent.length);
  10099. parent.copy(child);
  10100. }
  10101. return child;
  10102. } else if (_instanceof(parent, Error)) {
  10103. child = Object.create(parent);
  10104. } else {
  10105. if (typeof prototype == 'undefined') {
  10106. proto = Object.getPrototypeOf(parent);
  10107. child = Object.create(proto);
  10108. } else {
  10109. child = Object.create(prototype);
  10110. proto = prototype;
  10111. }
  10112. }
  10113. if (circular) {
  10114. var index = allParents.indexOf(parent);
  10115. if (index != -1) {
  10116. return allChildren[index];
  10117. }
  10118. allParents.push(parent);
  10119. allChildren.push(child);
  10120. }
  10121. if (_instanceof(parent, nativeMap)) {
  10122. parent.forEach(function (value, key) {
  10123. var keyChild = _clone(key, depth - 1);
  10124. var valueChild = _clone(value, depth - 1);
  10125. child.set(keyChild, valueChild);
  10126. });
  10127. }
  10128. if (_instanceof(parent, nativeSet)) {
  10129. parent.forEach(function (value) {
  10130. var entryChild = _clone(value, depth - 1);
  10131. child.add(entryChild);
  10132. });
  10133. }
  10134. for (var i in parent) {
  10135. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10136. if (attrs) {
  10137. child[i] = _clone(parent[i], depth - 1);
  10138. }
  10139. try {
  10140. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10141. if (objProperty.set === 'undefined') {
  10142. // no setter defined. Skip cloning this property
  10143. continue;
  10144. }
  10145. child[i] = _clone(parent[i], depth - 1);
  10146. } catch (e) {
  10147. if (e instanceof TypeError) {
  10148. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10149. // we can't do anything about this, other than inform the user that this property cannot be set.
  10150. continue;
  10151. } else if (e instanceof ReferenceError) {
  10152. //this may happen in non strict mode
  10153. continue;
  10154. }
  10155. }
  10156. }
  10157. if (Object.getOwnPropertySymbols) {
  10158. var symbols = Object.getOwnPropertySymbols(parent);
  10159. for (var i = 0; i < symbols.length; i++) {
  10160. // Don't need to worry about cloning a symbol because it is a primitive,
  10161. // like a number or string.
  10162. var symbol = symbols[i];
  10163. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10164. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10165. continue;
  10166. }
  10167. child[symbol] = _clone(parent[symbol], depth - 1);
  10168. Object.defineProperty(child, symbol, descriptor);
  10169. }
  10170. }
  10171. if (includeNonEnumerable) {
  10172. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10173. for (var i = 0; i < allPropertyNames.length; i++) {
  10174. var propertyName = allPropertyNames[i];
  10175. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10176. if (descriptor && descriptor.enumerable) {
  10177. continue;
  10178. }
  10179. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10180. Object.defineProperty(child, propertyName, descriptor);
  10181. }
  10182. }
  10183. return child;
  10184. }
  10185. return _clone(parent, depth);
  10186. }
  10187. /**
  10188. * Simple flat clone using prototype, accepts only objects, usefull for property
  10189. * override on FLAT configuration object (no nested props).
  10190. *
  10191. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10192. * works.
  10193. */
  10194. clone.clonePrototype = function clonePrototype(parent) {
  10195. if (parent === null) return null;
  10196. var c = function c() {};
  10197. c.prototype = parent;
  10198. return new c();
  10199. };
  10200. // private utility functions
  10201. function __objToStr(o) {
  10202. return Object.prototype.toString.call(o);
  10203. }
  10204. clone.__objToStr = __objToStr;
  10205. function __isDate(o) {
  10206. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10207. }
  10208. clone.__isDate = __isDate;
  10209. function __isArray(o) {
  10210. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10211. }
  10212. clone.__isArray = __isArray;
  10213. function __isRegExp(o) {
  10214. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10215. }
  10216. clone.__isRegExp = __isRegExp;
  10217. function __getRegExpFlags(re) {
  10218. var flags = '';
  10219. if (re.global) flags += 'g';
  10220. if (re.ignoreCase) flags += 'i';
  10221. if (re.multiline) flags += 'm';
  10222. return flags;
  10223. }
  10224. clone.__getRegExpFlags = __getRegExpFlags;
  10225. return clone;
  10226. }();
  10227. var _default = clone;
  10228. exports.default = _default;
  10229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 50).Buffer))
  10230. /***/ }),
  10231. /* 50 */
  10232. /*!**************************************!*\
  10233. !*** ./node_modules/buffer/index.js ***!
  10234. \**************************************/
  10235. /*! no static exports found */
  10236. /***/ (function(module, exports, __webpack_require__) {
  10237. "use strict";
  10238. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10239. * The buffer module from node.js, for the browser.
  10240. *
  10241. * @author Feross Aboukhadijeh <http://feross.org>
  10242. * @license MIT
  10243. */
  10244. /* eslint-disable no-proto */
  10245. var base64 = __webpack_require__(/*! base64-js */ 51)
  10246. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  10247. var isArray = __webpack_require__(/*! isarray */ 53)
  10248. exports.Buffer = Buffer
  10249. exports.SlowBuffer = SlowBuffer
  10250. exports.INSPECT_MAX_BYTES = 50
  10251. /**
  10252. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10253. * === true Use Uint8Array implementation (fastest)
  10254. * === false Use Object implementation (most compatible, even IE6)
  10255. *
  10256. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10257. * Opera 11.6+, iOS 4.2+.
  10258. *
  10259. * Due to various browser bugs, sometimes the Object implementation will be used even
  10260. * when the browser supports typed arrays.
  10261. *
  10262. * Note:
  10263. *
  10264. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10265. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10266. *
  10267. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10268. *
  10269. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10270. * incorrect length in some situations.
  10271. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10272. * get the Object implementation, which is slower but behaves correctly.
  10273. */
  10274. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10275. ? global.TYPED_ARRAY_SUPPORT
  10276. : typedArraySupport()
  10277. /*
  10278. * Export kMaxLength after typed array support is determined.
  10279. */
  10280. exports.kMaxLength = kMaxLength()
  10281. function typedArraySupport () {
  10282. try {
  10283. var arr = new Uint8Array(1)
  10284. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10285. return arr.foo() === 42 && // typed array instances can be augmented
  10286. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10287. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10288. } catch (e) {
  10289. return false
  10290. }
  10291. }
  10292. function kMaxLength () {
  10293. return Buffer.TYPED_ARRAY_SUPPORT
  10294. ? 0x7fffffff
  10295. : 0x3fffffff
  10296. }
  10297. function createBuffer (that, length) {
  10298. if (kMaxLength() < length) {
  10299. throw new RangeError('Invalid typed array length')
  10300. }
  10301. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10302. // Return an augmented `Uint8Array` instance, for best performance
  10303. that = new Uint8Array(length)
  10304. that.__proto__ = Buffer.prototype
  10305. } else {
  10306. // Fallback: Return an object instance of the Buffer class
  10307. if (that === null) {
  10308. that = new Buffer(length)
  10309. }
  10310. that.length = length
  10311. }
  10312. return that
  10313. }
  10314. /**
  10315. * The Buffer constructor returns instances of `Uint8Array` that have their
  10316. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10317. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10318. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10319. * returns a single octet.
  10320. *
  10321. * The `Uint8Array` prototype remains unmodified.
  10322. */
  10323. function Buffer (arg, encodingOrOffset, length) {
  10324. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10325. return new Buffer(arg, encodingOrOffset, length)
  10326. }
  10327. // Common case.
  10328. if (typeof arg === 'number') {
  10329. if (typeof encodingOrOffset === 'string') {
  10330. throw new Error(
  10331. 'If encoding is specified then the first argument must be a string'
  10332. )
  10333. }
  10334. return allocUnsafe(this, arg)
  10335. }
  10336. return from(this, arg, encodingOrOffset, length)
  10337. }
  10338. Buffer.poolSize = 8192 // not used by this implementation
  10339. // TODO: Legacy, not needed anymore. Remove in next major version.
  10340. Buffer._augment = function (arr) {
  10341. arr.__proto__ = Buffer.prototype
  10342. return arr
  10343. }
  10344. function from (that, value, encodingOrOffset, length) {
  10345. if (typeof value === 'number') {
  10346. throw new TypeError('"value" argument must not be a number')
  10347. }
  10348. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10349. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10350. }
  10351. if (typeof value === 'string') {
  10352. return fromString(that, value, encodingOrOffset)
  10353. }
  10354. return fromObject(that, value)
  10355. }
  10356. /**
  10357. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10358. * if value is a number.
  10359. * Buffer.from(str[, encoding])
  10360. * Buffer.from(array)
  10361. * Buffer.from(buffer)
  10362. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10363. **/
  10364. Buffer.from = function (value, encodingOrOffset, length) {
  10365. return from(null, value, encodingOrOffset, length)
  10366. }
  10367. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10368. Buffer.prototype.__proto__ = Uint8Array.prototype
  10369. Buffer.__proto__ = Uint8Array
  10370. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10371. Buffer[Symbol.species] === Buffer) {
  10372. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10373. Object.defineProperty(Buffer, Symbol.species, {
  10374. value: null,
  10375. configurable: true
  10376. })
  10377. }
  10378. }
  10379. function assertSize (size) {
  10380. if (typeof size !== 'number') {
  10381. throw new TypeError('"size" argument must be a number')
  10382. } else if (size < 0) {
  10383. throw new RangeError('"size" argument must not be negative')
  10384. }
  10385. }
  10386. function alloc (that, size, fill, encoding) {
  10387. assertSize(size)
  10388. if (size <= 0) {
  10389. return createBuffer(that, size)
  10390. }
  10391. if (fill !== undefined) {
  10392. // Only pay attention to encoding if it's a string. This
  10393. // prevents accidentally sending in a number that would
  10394. // be interpretted as a start offset.
  10395. return typeof encoding === 'string'
  10396. ? createBuffer(that, size).fill(fill, encoding)
  10397. : createBuffer(that, size).fill(fill)
  10398. }
  10399. return createBuffer(that, size)
  10400. }
  10401. /**
  10402. * Creates a new filled Buffer instance.
  10403. * alloc(size[, fill[, encoding]])
  10404. **/
  10405. Buffer.alloc = function (size, fill, encoding) {
  10406. return alloc(null, size, fill, encoding)
  10407. }
  10408. function allocUnsafe (that, size) {
  10409. assertSize(size)
  10410. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10411. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10412. for (var i = 0; i < size; ++i) {
  10413. that[i] = 0
  10414. }
  10415. }
  10416. return that
  10417. }
  10418. /**
  10419. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10420. * */
  10421. Buffer.allocUnsafe = function (size) {
  10422. return allocUnsafe(null, size)
  10423. }
  10424. /**
  10425. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10426. */
  10427. Buffer.allocUnsafeSlow = function (size) {
  10428. return allocUnsafe(null, size)
  10429. }
  10430. function fromString (that, string, encoding) {
  10431. if (typeof encoding !== 'string' || encoding === '') {
  10432. encoding = 'utf8'
  10433. }
  10434. if (!Buffer.isEncoding(encoding)) {
  10435. throw new TypeError('"encoding" must be a valid string encoding')
  10436. }
  10437. var length = byteLength(string, encoding) | 0
  10438. that = createBuffer(that, length)
  10439. var actual = that.write(string, encoding)
  10440. if (actual !== length) {
  10441. // Writing a hex string, for example, that contains invalid characters will
  10442. // cause everything after the first invalid character to be ignored. (e.g.
  10443. // 'abxxcd' will be treated as 'ab')
  10444. that = that.slice(0, actual)
  10445. }
  10446. return that
  10447. }
  10448. function fromArrayLike (that, array) {
  10449. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10450. that = createBuffer(that, length)
  10451. for (var i = 0; i < length; i += 1) {
  10452. that[i] = array[i] & 255
  10453. }
  10454. return that
  10455. }
  10456. function fromArrayBuffer (that, array, byteOffset, length) {
  10457. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10458. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10459. throw new RangeError('\'offset\' is out of bounds')
  10460. }
  10461. if (array.byteLength < byteOffset + (length || 0)) {
  10462. throw new RangeError('\'length\' is out of bounds')
  10463. }
  10464. if (byteOffset === undefined && length === undefined) {
  10465. array = new Uint8Array(array)
  10466. } else if (length === undefined) {
  10467. array = new Uint8Array(array, byteOffset)
  10468. } else {
  10469. array = new Uint8Array(array, byteOffset, length)
  10470. }
  10471. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10472. // Return an augmented `Uint8Array` instance, for best performance
  10473. that = array
  10474. that.__proto__ = Buffer.prototype
  10475. } else {
  10476. // Fallback: Return an object instance of the Buffer class
  10477. that = fromArrayLike(that, array)
  10478. }
  10479. return that
  10480. }
  10481. function fromObject (that, obj) {
  10482. if (Buffer.isBuffer(obj)) {
  10483. var len = checked(obj.length) | 0
  10484. that = createBuffer(that, len)
  10485. if (that.length === 0) {
  10486. return that
  10487. }
  10488. obj.copy(that, 0, 0, len)
  10489. return that
  10490. }
  10491. if (obj) {
  10492. if ((typeof ArrayBuffer !== 'undefined' &&
  10493. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10494. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10495. return createBuffer(that, 0)
  10496. }
  10497. return fromArrayLike(that, obj)
  10498. }
  10499. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10500. return fromArrayLike(that, obj.data)
  10501. }
  10502. }
  10503. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10504. }
  10505. function checked (length) {
  10506. // Note: cannot use `length < kMaxLength()` here because that fails when
  10507. // length is NaN (which is otherwise coerced to zero.)
  10508. if (length >= kMaxLength()) {
  10509. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10510. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10511. }
  10512. return length | 0
  10513. }
  10514. function SlowBuffer (length) {
  10515. if (+length != length) { // eslint-disable-line eqeqeq
  10516. length = 0
  10517. }
  10518. return Buffer.alloc(+length)
  10519. }
  10520. Buffer.isBuffer = function isBuffer (b) {
  10521. return !!(b != null && b._isBuffer)
  10522. }
  10523. Buffer.compare = function compare (a, b) {
  10524. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10525. throw new TypeError('Arguments must be Buffers')
  10526. }
  10527. if (a === b) return 0
  10528. var x = a.length
  10529. var y = b.length
  10530. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10531. if (a[i] !== b[i]) {
  10532. x = a[i]
  10533. y = b[i]
  10534. break
  10535. }
  10536. }
  10537. if (x < y) return -1
  10538. if (y < x) return 1
  10539. return 0
  10540. }
  10541. Buffer.isEncoding = function isEncoding (encoding) {
  10542. switch (String(encoding).toLowerCase()) {
  10543. case 'hex':
  10544. case 'utf8':
  10545. case 'utf-8':
  10546. case 'ascii':
  10547. case 'latin1':
  10548. case 'binary':
  10549. case 'base64':
  10550. case 'ucs2':
  10551. case 'ucs-2':
  10552. case 'utf16le':
  10553. case 'utf-16le':
  10554. return true
  10555. default:
  10556. return false
  10557. }
  10558. }
  10559. Buffer.concat = function concat (list, length) {
  10560. if (!isArray(list)) {
  10561. throw new TypeError('"list" argument must be an Array of Buffers')
  10562. }
  10563. if (list.length === 0) {
  10564. return Buffer.alloc(0)
  10565. }
  10566. var i
  10567. if (length === undefined) {
  10568. length = 0
  10569. for (i = 0; i < list.length; ++i) {
  10570. length += list[i].length
  10571. }
  10572. }
  10573. var buffer = Buffer.allocUnsafe(length)
  10574. var pos = 0
  10575. for (i = 0; i < list.length; ++i) {
  10576. var buf = list[i]
  10577. if (!Buffer.isBuffer(buf)) {
  10578. throw new TypeError('"list" argument must be an Array of Buffers')
  10579. }
  10580. buf.copy(buffer, pos)
  10581. pos += buf.length
  10582. }
  10583. return buffer
  10584. }
  10585. function byteLength (string, encoding) {
  10586. if (Buffer.isBuffer(string)) {
  10587. return string.length
  10588. }
  10589. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10590. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10591. return string.byteLength
  10592. }
  10593. if (typeof string !== 'string') {
  10594. string = '' + string
  10595. }
  10596. var len = string.length
  10597. if (len === 0) return 0
  10598. // Use a for loop to avoid recursion
  10599. var loweredCase = false
  10600. for (;;) {
  10601. switch (encoding) {
  10602. case 'ascii':
  10603. case 'latin1':
  10604. case 'binary':
  10605. return len
  10606. case 'utf8':
  10607. case 'utf-8':
  10608. case undefined:
  10609. return utf8ToBytes(string).length
  10610. case 'ucs2':
  10611. case 'ucs-2':
  10612. case 'utf16le':
  10613. case 'utf-16le':
  10614. return len * 2
  10615. case 'hex':
  10616. return len >>> 1
  10617. case 'base64':
  10618. return base64ToBytes(string).length
  10619. default:
  10620. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10621. encoding = ('' + encoding).toLowerCase()
  10622. loweredCase = true
  10623. }
  10624. }
  10625. }
  10626. Buffer.byteLength = byteLength
  10627. function slowToString (encoding, start, end) {
  10628. var loweredCase = false
  10629. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10630. // property of a typed array.
  10631. // This behaves neither like String nor Uint8Array in that we set start/end
  10632. // to their upper/lower bounds if the value passed is out of range.
  10633. // undefined is handled specially as per ECMA-262 6th Edition,
  10634. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10635. if (start === undefined || start < 0) {
  10636. start = 0
  10637. }
  10638. // Return early if start > this.length. Done here to prevent potential uint32
  10639. // coercion fail below.
  10640. if (start > this.length) {
  10641. return ''
  10642. }
  10643. if (end === undefined || end > this.length) {
  10644. end = this.length
  10645. }
  10646. if (end <= 0) {
  10647. return ''
  10648. }
  10649. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10650. end >>>= 0
  10651. start >>>= 0
  10652. if (end <= start) {
  10653. return ''
  10654. }
  10655. if (!encoding) encoding = 'utf8'
  10656. while (true) {
  10657. switch (encoding) {
  10658. case 'hex':
  10659. return hexSlice(this, start, end)
  10660. case 'utf8':
  10661. case 'utf-8':
  10662. return utf8Slice(this, start, end)
  10663. case 'ascii':
  10664. return asciiSlice(this, start, end)
  10665. case 'latin1':
  10666. case 'binary':
  10667. return latin1Slice(this, start, end)
  10668. case 'base64':
  10669. return base64Slice(this, start, end)
  10670. case 'ucs2':
  10671. case 'ucs-2':
  10672. case 'utf16le':
  10673. case 'utf-16le':
  10674. return utf16leSlice(this, start, end)
  10675. default:
  10676. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10677. encoding = (encoding + '').toLowerCase()
  10678. loweredCase = true
  10679. }
  10680. }
  10681. }
  10682. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10683. // Buffer instances.
  10684. Buffer.prototype._isBuffer = true
  10685. function swap (b, n, m) {
  10686. var i = b[n]
  10687. b[n] = b[m]
  10688. b[m] = i
  10689. }
  10690. Buffer.prototype.swap16 = function swap16 () {
  10691. var len = this.length
  10692. if (len % 2 !== 0) {
  10693. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10694. }
  10695. for (var i = 0; i < len; i += 2) {
  10696. swap(this, i, i + 1)
  10697. }
  10698. return this
  10699. }
  10700. Buffer.prototype.swap32 = function swap32 () {
  10701. var len = this.length
  10702. if (len % 4 !== 0) {
  10703. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10704. }
  10705. for (var i = 0; i < len; i += 4) {
  10706. swap(this, i, i + 3)
  10707. swap(this, i + 1, i + 2)
  10708. }
  10709. return this
  10710. }
  10711. Buffer.prototype.swap64 = function swap64 () {
  10712. var len = this.length
  10713. if (len % 8 !== 0) {
  10714. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10715. }
  10716. for (var i = 0; i < len; i += 8) {
  10717. swap(this, i, i + 7)
  10718. swap(this, i + 1, i + 6)
  10719. swap(this, i + 2, i + 5)
  10720. swap(this, i + 3, i + 4)
  10721. }
  10722. return this
  10723. }
  10724. Buffer.prototype.toString = function toString () {
  10725. var length = this.length | 0
  10726. if (length === 0) return ''
  10727. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10728. return slowToString.apply(this, arguments)
  10729. }
  10730. Buffer.prototype.equals = function equals (b) {
  10731. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10732. if (this === b) return true
  10733. return Buffer.compare(this, b) === 0
  10734. }
  10735. Buffer.prototype.inspect = function inspect () {
  10736. var str = ''
  10737. var max = exports.INSPECT_MAX_BYTES
  10738. if (this.length > 0) {
  10739. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10740. if (this.length > max) str += ' ... '
  10741. }
  10742. return '<Buffer ' + str + '>'
  10743. }
  10744. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10745. if (!Buffer.isBuffer(target)) {
  10746. throw new TypeError('Argument must be a Buffer')
  10747. }
  10748. if (start === undefined) {
  10749. start = 0
  10750. }
  10751. if (end === undefined) {
  10752. end = target ? target.length : 0
  10753. }
  10754. if (thisStart === undefined) {
  10755. thisStart = 0
  10756. }
  10757. if (thisEnd === undefined) {
  10758. thisEnd = this.length
  10759. }
  10760. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10761. throw new RangeError('out of range index')
  10762. }
  10763. if (thisStart >= thisEnd && start >= end) {
  10764. return 0
  10765. }
  10766. if (thisStart >= thisEnd) {
  10767. return -1
  10768. }
  10769. if (start >= end) {
  10770. return 1
  10771. }
  10772. start >>>= 0
  10773. end >>>= 0
  10774. thisStart >>>= 0
  10775. thisEnd >>>= 0
  10776. if (this === target) return 0
  10777. var x = thisEnd - thisStart
  10778. var y = end - start
  10779. var len = Math.min(x, y)
  10780. var thisCopy = this.slice(thisStart, thisEnd)
  10781. var targetCopy = target.slice(start, end)
  10782. for (var i = 0; i < len; ++i) {
  10783. if (thisCopy[i] !== targetCopy[i]) {
  10784. x = thisCopy[i]
  10785. y = targetCopy[i]
  10786. break
  10787. }
  10788. }
  10789. if (x < y) return -1
  10790. if (y < x) return 1
  10791. return 0
  10792. }
  10793. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10794. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10795. //
  10796. // Arguments:
  10797. // - buffer - a Buffer to search
  10798. // - val - a string, Buffer, or number
  10799. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10800. // - encoding - an optional encoding, relevant is val is a string
  10801. // - dir - true for indexOf, false for lastIndexOf
  10802. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10803. // Empty buffer means no match
  10804. if (buffer.length === 0) return -1
  10805. // Normalize byteOffset
  10806. if (typeof byteOffset === 'string') {
  10807. encoding = byteOffset
  10808. byteOffset = 0
  10809. } else if (byteOffset > 0x7fffffff) {
  10810. byteOffset = 0x7fffffff
  10811. } else if (byteOffset < -0x80000000) {
  10812. byteOffset = -0x80000000
  10813. }
  10814. byteOffset = +byteOffset // Coerce to Number.
  10815. if (isNaN(byteOffset)) {
  10816. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10817. byteOffset = dir ? 0 : (buffer.length - 1)
  10818. }
  10819. // Normalize byteOffset: negative offsets start from the end of the buffer
  10820. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10821. if (byteOffset >= buffer.length) {
  10822. if (dir) return -1
  10823. else byteOffset = buffer.length - 1
  10824. } else if (byteOffset < 0) {
  10825. if (dir) byteOffset = 0
  10826. else return -1
  10827. }
  10828. // Normalize val
  10829. if (typeof val === 'string') {
  10830. val = Buffer.from(val, encoding)
  10831. }
  10832. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10833. if (Buffer.isBuffer(val)) {
  10834. // Special case: looking for empty string/buffer always fails
  10835. if (val.length === 0) {
  10836. return -1
  10837. }
  10838. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10839. } else if (typeof val === 'number') {
  10840. val = val & 0xFF // Search for a byte value [0-255]
  10841. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10842. typeof Uint8Array.prototype.indexOf === 'function') {
  10843. if (dir) {
  10844. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10845. } else {
  10846. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10847. }
  10848. }
  10849. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10850. }
  10851. throw new TypeError('val must be string, number or Buffer')
  10852. }
  10853. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10854. var indexSize = 1
  10855. var arrLength = arr.length
  10856. var valLength = val.length
  10857. if (encoding !== undefined) {
  10858. encoding = String(encoding).toLowerCase()
  10859. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10860. encoding === 'utf16le' || encoding === 'utf-16le') {
  10861. if (arr.length < 2 || val.length < 2) {
  10862. return -1
  10863. }
  10864. indexSize = 2
  10865. arrLength /= 2
  10866. valLength /= 2
  10867. byteOffset /= 2
  10868. }
  10869. }
  10870. function read (buf, i) {
  10871. if (indexSize === 1) {
  10872. return buf[i]
  10873. } else {
  10874. return buf.readUInt16BE(i * indexSize)
  10875. }
  10876. }
  10877. var i
  10878. if (dir) {
  10879. var foundIndex = -1
  10880. for (i = byteOffset; i < arrLength; i++) {
  10881. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10882. if (foundIndex === -1) foundIndex = i
  10883. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10884. } else {
  10885. if (foundIndex !== -1) i -= i - foundIndex
  10886. foundIndex = -1
  10887. }
  10888. }
  10889. } else {
  10890. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10891. for (i = byteOffset; i >= 0; i--) {
  10892. var found = true
  10893. for (var j = 0; j < valLength; j++) {
  10894. if (read(arr, i + j) !== read(val, j)) {
  10895. found = false
  10896. break
  10897. }
  10898. }
  10899. if (found) return i
  10900. }
  10901. }
  10902. return -1
  10903. }
  10904. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10905. return this.indexOf(val, byteOffset, encoding) !== -1
  10906. }
  10907. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10908. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10909. }
  10910. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10911. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10912. }
  10913. function hexWrite (buf, string, offset, length) {
  10914. offset = Number(offset) || 0
  10915. var remaining = buf.length - offset
  10916. if (!length) {
  10917. length = remaining
  10918. } else {
  10919. length = Number(length)
  10920. if (length > remaining) {
  10921. length = remaining
  10922. }
  10923. }
  10924. // must be an even number of digits
  10925. var strLen = string.length
  10926. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10927. if (length > strLen / 2) {
  10928. length = strLen / 2
  10929. }
  10930. for (var i = 0; i < length; ++i) {
  10931. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10932. if (isNaN(parsed)) return i
  10933. buf[offset + i] = parsed
  10934. }
  10935. return i
  10936. }
  10937. function utf8Write (buf, string, offset, length) {
  10938. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10939. }
  10940. function asciiWrite (buf, string, offset, length) {
  10941. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10942. }
  10943. function latin1Write (buf, string, offset, length) {
  10944. return asciiWrite(buf, string, offset, length)
  10945. }
  10946. function base64Write (buf, string, offset, length) {
  10947. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10948. }
  10949. function ucs2Write (buf, string, offset, length) {
  10950. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10951. }
  10952. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10953. // Buffer#write(string)
  10954. if (offset === undefined) {
  10955. encoding = 'utf8'
  10956. length = this.length
  10957. offset = 0
  10958. // Buffer#write(string, encoding)
  10959. } else if (length === undefined && typeof offset === 'string') {
  10960. encoding = offset
  10961. length = this.length
  10962. offset = 0
  10963. // Buffer#write(string, offset[, length][, encoding])
  10964. } else if (isFinite(offset)) {
  10965. offset = offset | 0
  10966. if (isFinite(length)) {
  10967. length = length | 0
  10968. if (encoding === undefined) encoding = 'utf8'
  10969. } else {
  10970. encoding = length
  10971. length = undefined
  10972. }
  10973. // legacy write(string, encoding, offset, length) - remove in v0.13
  10974. } else {
  10975. throw new Error(
  10976. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10977. )
  10978. }
  10979. var remaining = this.length - offset
  10980. if (length === undefined || length > remaining) length = remaining
  10981. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10982. throw new RangeError('Attempt to write outside buffer bounds')
  10983. }
  10984. if (!encoding) encoding = 'utf8'
  10985. var loweredCase = false
  10986. for (;;) {
  10987. switch (encoding) {
  10988. case 'hex':
  10989. return hexWrite(this, string, offset, length)
  10990. case 'utf8':
  10991. case 'utf-8':
  10992. return utf8Write(this, string, offset, length)
  10993. case 'ascii':
  10994. return asciiWrite(this, string, offset, length)
  10995. case 'latin1':
  10996. case 'binary':
  10997. return latin1Write(this, string, offset, length)
  10998. case 'base64':
  10999. // Warning: maxLength not taken into account in base64Write
  11000. return base64Write(this, string, offset, length)
  11001. case 'ucs2':
  11002. case 'ucs-2':
  11003. case 'utf16le':
  11004. case 'utf-16le':
  11005. return ucs2Write(this, string, offset, length)
  11006. default:
  11007. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11008. encoding = ('' + encoding).toLowerCase()
  11009. loweredCase = true
  11010. }
  11011. }
  11012. }
  11013. Buffer.prototype.toJSON = function toJSON () {
  11014. return {
  11015. type: 'Buffer',
  11016. data: Array.prototype.slice.call(this._arr || this, 0)
  11017. }
  11018. }
  11019. function base64Slice (buf, start, end) {
  11020. if (start === 0 && end === buf.length) {
  11021. return base64.fromByteArray(buf)
  11022. } else {
  11023. return base64.fromByteArray(buf.slice(start, end))
  11024. }
  11025. }
  11026. function utf8Slice (buf, start, end) {
  11027. end = Math.min(buf.length, end)
  11028. var res = []
  11029. var i = start
  11030. while (i < end) {
  11031. var firstByte = buf[i]
  11032. var codePoint = null
  11033. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11034. : (firstByte > 0xDF) ? 3
  11035. : (firstByte > 0xBF) ? 2
  11036. : 1
  11037. if (i + bytesPerSequence <= end) {
  11038. var secondByte, thirdByte, fourthByte, tempCodePoint
  11039. switch (bytesPerSequence) {
  11040. case 1:
  11041. if (firstByte < 0x80) {
  11042. codePoint = firstByte
  11043. }
  11044. break
  11045. case 2:
  11046. secondByte = buf[i + 1]
  11047. if ((secondByte & 0xC0) === 0x80) {
  11048. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11049. if (tempCodePoint > 0x7F) {
  11050. codePoint = tempCodePoint
  11051. }
  11052. }
  11053. break
  11054. case 3:
  11055. secondByte = buf[i + 1]
  11056. thirdByte = buf[i + 2]
  11057. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11058. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11059. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11060. codePoint = tempCodePoint
  11061. }
  11062. }
  11063. break
  11064. case 4:
  11065. secondByte = buf[i + 1]
  11066. thirdByte = buf[i + 2]
  11067. fourthByte = buf[i + 3]
  11068. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11069. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11070. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11071. codePoint = tempCodePoint
  11072. }
  11073. }
  11074. }
  11075. }
  11076. if (codePoint === null) {
  11077. // we did not generate a valid codePoint so insert a
  11078. // replacement char (U+FFFD) and advance only 1 byte
  11079. codePoint = 0xFFFD
  11080. bytesPerSequence = 1
  11081. } else if (codePoint > 0xFFFF) {
  11082. // encode to utf16 (surrogate pair dance)
  11083. codePoint -= 0x10000
  11084. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11085. codePoint = 0xDC00 | codePoint & 0x3FF
  11086. }
  11087. res.push(codePoint)
  11088. i += bytesPerSequence
  11089. }
  11090. return decodeCodePointsArray(res)
  11091. }
  11092. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11093. // the lowest limit is Chrome, with 0x10000 args.
  11094. // We go 1 magnitude less, for safety
  11095. var MAX_ARGUMENTS_LENGTH = 0x1000
  11096. function decodeCodePointsArray (codePoints) {
  11097. var len = codePoints.length
  11098. if (len <= MAX_ARGUMENTS_LENGTH) {
  11099. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11100. }
  11101. // Decode in chunks to avoid "call stack size exceeded".
  11102. var res = ''
  11103. var i = 0
  11104. while (i < len) {
  11105. res += String.fromCharCode.apply(
  11106. String,
  11107. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11108. )
  11109. }
  11110. return res
  11111. }
  11112. function asciiSlice (buf, start, end) {
  11113. var ret = ''
  11114. end = Math.min(buf.length, end)
  11115. for (var i = start; i < end; ++i) {
  11116. ret += String.fromCharCode(buf[i] & 0x7F)
  11117. }
  11118. return ret
  11119. }
  11120. function latin1Slice (buf, start, end) {
  11121. var ret = ''
  11122. end = Math.min(buf.length, end)
  11123. for (var i = start; i < end; ++i) {
  11124. ret += String.fromCharCode(buf[i])
  11125. }
  11126. return ret
  11127. }
  11128. function hexSlice (buf, start, end) {
  11129. var len = buf.length
  11130. if (!start || start < 0) start = 0
  11131. if (!end || end < 0 || end > len) end = len
  11132. var out = ''
  11133. for (var i = start; i < end; ++i) {
  11134. out += toHex(buf[i])
  11135. }
  11136. return out
  11137. }
  11138. function utf16leSlice (buf, start, end) {
  11139. var bytes = buf.slice(start, end)
  11140. var res = ''
  11141. for (var i = 0; i < bytes.length; i += 2) {
  11142. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11143. }
  11144. return res
  11145. }
  11146. Buffer.prototype.slice = function slice (start, end) {
  11147. var len = this.length
  11148. start = ~~start
  11149. end = end === undefined ? len : ~~end
  11150. if (start < 0) {
  11151. start += len
  11152. if (start < 0) start = 0
  11153. } else if (start > len) {
  11154. start = len
  11155. }
  11156. if (end < 0) {
  11157. end += len
  11158. if (end < 0) end = 0
  11159. } else if (end > len) {
  11160. end = len
  11161. }
  11162. if (end < start) end = start
  11163. var newBuf
  11164. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11165. newBuf = this.subarray(start, end)
  11166. newBuf.__proto__ = Buffer.prototype
  11167. } else {
  11168. var sliceLen = end - start
  11169. newBuf = new Buffer(sliceLen, undefined)
  11170. for (var i = 0; i < sliceLen; ++i) {
  11171. newBuf[i] = this[i + start]
  11172. }
  11173. }
  11174. return newBuf
  11175. }
  11176. /*
  11177. * Need to make sure that buffer isn't trying to write out of bounds.
  11178. */
  11179. function checkOffset (offset, ext, length) {
  11180. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11181. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11182. }
  11183. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11184. offset = offset | 0
  11185. byteLength = byteLength | 0
  11186. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11187. var val = this[offset]
  11188. var mul = 1
  11189. var i = 0
  11190. while (++i < byteLength && (mul *= 0x100)) {
  11191. val += this[offset + i] * mul
  11192. }
  11193. return val
  11194. }
  11195. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11196. offset = offset | 0
  11197. byteLength = byteLength | 0
  11198. if (!noAssert) {
  11199. checkOffset(offset, byteLength, this.length)
  11200. }
  11201. var val = this[offset + --byteLength]
  11202. var mul = 1
  11203. while (byteLength > 0 && (mul *= 0x100)) {
  11204. val += this[offset + --byteLength] * mul
  11205. }
  11206. return val
  11207. }
  11208. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11209. if (!noAssert) checkOffset(offset, 1, this.length)
  11210. return this[offset]
  11211. }
  11212. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11213. if (!noAssert) checkOffset(offset, 2, this.length)
  11214. return this[offset] | (this[offset + 1] << 8)
  11215. }
  11216. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11217. if (!noAssert) checkOffset(offset, 2, this.length)
  11218. return (this[offset] << 8) | this[offset + 1]
  11219. }
  11220. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11221. if (!noAssert) checkOffset(offset, 4, this.length)
  11222. return ((this[offset]) |
  11223. (this[offset + 1] << 8) |
  11224. (this[offset + 2] << 16)) +
  11225. (this[offset + 3] * 0x1000000)
  11226. }
  11227. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11228. if (!noAssert) checkOffset(offset, 4, this.length)
  11229. return (this[offset] * 0x1000000) +
  11230. ((this[offset + 1] << 16) |
  11231. (this[offset + 2] << 8) |
  11232. this[offset + 3])
  11233. }
  11234. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11235. offset = offset | 0
  11236. byteLength = byteLength | 0
  11237. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11238. var val = this[offset]
  11239. var mul = 1
  11240. var i = 0
  11241. while (++i < byteLength && (mul *= 0x100)) {
  11242. val += this[offset + i] * mul
  11243. }
  11244. mul *= 0x80
  11245. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11246. return val
  11247. }
  11248. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11249. offset = offset | 0
  11250. byteLength = byteLength | 0
  11251. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11252. var i = byteLength
  11253. var mul = 1
  11254. var val = this[offset + --i]
  11255. while (i > 0 && (mul *= 0x100)) {
  11256. val += this[offset + --i] * mul
  11257. }
  11258. mul *= 0x80
  11259. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11260. return val
  11261. }
  11262. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11263. if (!noAssert) checkOffset(offset, 1, this.length)
  11264. if (!(this[offset] & 0x80)) return (this[offset])
  11265. return ((0xff - this[offset] + 1) * -1)
  11266. }
  11267. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11268. if (!noAssert) checkOffset(offset, 2, this.length)
  11269. var val = this[offset] | (this[offset + 1] << 8)
  11270. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11271. }
  11272. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11273. if (!noAssert) checkOffset(offset, 2, this.length)
  11274. var val = this[offset + 1] | (this[offset] << 8)
  11275. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11276. }
  11277. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11278. if (!noAssert) checkOffset(offset, 4, this.length)
  11279. return (this[offset]) |
  11280. (this[offset + 1] << 8) |
  11281. (this[offset + 2] << 16) |
  11282. (this[offset + 3] << 24)
  11283. }
  11284. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11285. if (!noAssert) checkOffset(offset, 4, this.length)
  11286. return (this[offset] << 24) |
  11287. (this[offset + 1] << 16) |
  11288. (this[offset + 2] << 8) |
  11289. (this[offset + 3])
  11290. }
  11291. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11292. if (!noAssert) checkOffset(offset, 4, this.length)
  11293. return ieee754.read(this, offset, true, 23, 4)
  11294. }
  11295. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11296. if (!noAssert) checkOffset(offset, 4, this.length)
  11297. return ieee754.read(this, offset, false, 23, 4)
  11298. }
  11299. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11300. if (!noAssert) checkOffset(offset, 8, this.length)
  11301. return ieee754.read(this, offset, true, 52, 8)
  11302. }
  11303. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11304. if (!noAssert) checkOffset(offset, 8, this.length)
  11305. return ieee754.read(this, offset, false, 52, 8)
  11306. }
  11307. function checkInt (buf, value, offset, ext, max, min) {
  11308. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11309. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11310. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11311. }
  11312. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11313. value = +value
  11314. offset = offset | 0
  11315. byteLength = byteLength | 0
  11316. if (!noAssert) {
  11317. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11318. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11319. }
  11320. var mul = 1
  11321. var i = 0
  11322. this[offset] = value & 0xFF
  11323. while (++i < byteLength && (mul *= 0x100)) {
  11324. this[offset + i] = (value / mul) & 0xFF
  11325. }
  11326. return offset + byteLength
  11327. }
  11328. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11329. value = +value
  11330. offset = offset | 0
  11331. byteLength = byteLength | 0
  11332. if (!noAssert) {
  11333. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11334. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11335. }
  11336. var i = byteLength - 1
  11337. var mul = 1
  11338. this[offset + i] = value & 0xFF
  11339. while (--i >= 0 && (mul *= 0x100)) {
  11340. this[offset + i] = (value / mul) & 0xFF
  11341. }
  11342. return offset + byteLength
  11343. }
  11344. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11345. value = +value
  11346. offset = offset | 0
  11347. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11348. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11349. this[offset] = (value & 0xff)
  11350. return offset + 1
  11351. }
  11352. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11353. if (value < 0) value = 0xffff + value + 1
  11354. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11355. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11356. (littleEndian ? i : 1 - i) * 8
  11357. }
  11358. }
  11359. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11360. value = +value
  11361. offset = offset | 0
  11362. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11363. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11364. this[offset] = (value & 0xff)
  11365. this[offset + 1] = (value >>> 8)
  11366. } else {
  11367. objectWriteUInt16(this, value, offset, true)
  11368. }
  11369. return offset + 2
  11370. }
  11371. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11372. value = +value
  11373. offset = offset | 0
  11374. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11375. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11376. this[offset] = (value >>> 8)
  11377. this[offset + 1] = (value & 0xff)
  11378. } else {
  11379. objectWriteUInt16(this, value, offset, false)
  11380. }
  11381. return offset + 2
  11382. }
  11383. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11384. if (value < 0) value = 0xffffffff + value + 1
  11385. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11386. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11387. }
  11388. }
  11389. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11390. value = +value
  11391. offset = offset | 0
  11392. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11393. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11394. this[offset + 3] = (value >>> 24)
  11395. this[offset + 2] = (value >>> 16)
  11396. this[offset + 1] = (value >>> 8)
  11397. this[offset] = (value & 0xff)
  11398. } else {
  11399. objectWriteUInt32(this, value, offset, true)
  11400. }
  11401. return offset + 4
  11402. }
  11403. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11404. value = +value
  11405. offset = offset | 0
  11406. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11407. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11408. this[offset] = (value >>> 24)
  11409. this[offset + 1] = (value >>> 16)
  11410. this[offset + 2] = (value >>> 8)
  11411. this[offset + 3] = (value & 0xff)
  11412. } else {
  11413. objectWriteUInt32(this, value, offset, false)
  11414. }
  11415. return offset + 4
  11416. }
  11417. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11418. value = +value
  11419. offset = offset | 0
  11420. if (!noAssert) {
  11421. var limit = Math.pow(2, 8 * byteLength - 1)
  11422. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11423. }
  11424. var i = 0
  11425. var mul = 1
  11426. var sub = 0
  11427. this[offset] = value & 0xFF
  11428. while (++i < byteLength && (mul *= 0x100)) {
  11429. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11430. sub = 1
  11431. }
  11432. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11433. }
  11434. return offset + byteLength
  11435. }
  11436. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11437. value = +value
  11438. offset = offset | 0
  11439. if (!noAssert) {
  11440. var limit = Math.pow(2, 8 * byteLength - 1)
  11441. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11442. }
  11443. var i = byteLength - 1
  11444. var mul = 1
  11445. var sub = 0
  11446. this[offset + i] = value & 0xFF
  11447. while (--i >= 0 && (mul *= 0x100)) {
  11448. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11449. sub = 1
  11450. }
  11451. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11452. }
  11453. return offset + byteLength
  11454. }
  11455. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11456. value = +value
  11457. offset = offset | 0
  11458. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11459. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11460. if (value < 0) value = 0xff + value + 1
  11461. this[offset] = (value & 0xff)
  11462. return offset + 1
  11463. }
  11464. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11465. value = +value
  11466. offset = offset | 0
  11467. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11468. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11469. this[offset] = (value & 0xff)
  11470. this[offset + 1] = (value >>> 8)
  11471. } else {
  11472. objectWriteUInt16(this, value, offset, true)
  11473. }
  11474. return offset + 2
  11475. }
  11476. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11477. value = +value
  11478. offset = offset | 0
  11479. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11480. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11481. this[offset] = (value >>> 8)
  11482. this[offset + 1] = (value & 0xff)
  11483. } else {
  11484. objectWriteUInt16(this, value, offset, false)
  11485. }
  11486. return offset + 2
  11487. }
  11488. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11489. value = +value
  11490. offset = offset | 0
  11491. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11492. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11493. this[offset] = (value & 0xff)
  11494. this[offset + 1] = (value >>> 8)
  11495. this[offset + 2] = (value >>> 16)
  11496. this[offset + 3] = (value >>> 24)
  11497. } else {
  11498. objectWriteUInt32(this, value, offset, true)
  11499. }
  11500. return offset + 4
  11501. }
  11502. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11503. value = +value
  11504. offset = offset | 0
  11505. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11506. if (value < 0) value = 0xffffffff + value + 1
  11507. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11508. this[offset] = (value >>> 24)
  11509. this[offset + 1] = (value >>> 16)
  11510. this[offset + 2] = (value >>> 8)
  11511. this[offset + 3] = (value & 0xff)
  11512. } else {
  11513. objectWriteUInt32(this, value, offset, false)
  11514. }
  11515. return offset + 4
  11516. }
  11517. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11518. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11519. if (offset < 0) throw new RangeError('Index out of range')
  11520. }
  11521. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11522. if (!noAssert) {
  11523. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11524. }
  11525. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11526. return offset + 4
  11527. }
  11528. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11529. return writeFloat(this, value, offset, true, noAssert)
  11530. }
  11531. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11532. return writeFloat(this, value, offset, false, noAssert)
  11533. }
  11534. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11535. if (!noAssert) {
  11536. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11537. }
  11538. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11539. return offset + 8
  11540. }
  11541. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11542. return writeDouble(this, value, offset, true, noAssert)
  11543. }
  11544. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11545. return writeDouble(this, value, offset, false, noAssert)
  11546. }
  11547. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11548. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11549. if (!start) start = 0
  11550. if (!end && end !== 0) end = this.length
  11551. if (targetStart >= target.length) targetStart = target.length
  11552. if (!targetStart) targetStart = 0
  11553. if (end > 0 && end < start) end = start
  11554. // Copy 0 bytes; we're done
  11555. if (end === start) return 0
  11556. if (target.length === 0 || this.length === 0) return 0
  11557. // Fatal error conditions
  11558. if (targetStart < 0) {
  11559. throw new RangeError('targetStart out of bounds')
  11560. }
  11561. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11562. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11563. // Are we oob?
  11564. if (end > this.length) end = this.length
  11565. if (target.length - targetStart < end - start) {
  11566. end = target.length - targetStart + start
  11567. }
  11568. var len = end - start
  11569. var i
  11570. if (this === target && start < targetStart && targetStart < end) {
  11571. // descending copy from end
  11572. for (i = len - 1; i >= 0; --i) {
  11573. target[i + targetStart] = this[i + start]
  11574. }
  11575. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11576. // ascending copy from start
  11577. for (i = 0; i < len; ++i) {
  11578. target[i + targetStart] = this[i + start]
  11579. }
  11580. } else {
  11581. Uint8Array.prototype.set.call(
  11582. target,
  11583. this.subarray(start, start + len),
  11584. targetStart
  11585. )
  11586. }
  11587. return len
  11588. }
  11589. // Usage:
  11590. // buffer.fill(number[, offset[, end]])
  11591. // buffer.fill(buffer[, offset[, end]])
  11592. // buffer.fill(string[, offset[, end]][, encoding])
  11593. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11594. // Handle string cases:
  11595. if (typeof val === 'string') {
  11596. if (typeof start === 'string') {
  11597. encoding = start
  11598. start = 0
  11599. end = this.length
  11600. } else if (typeof end === 'string') {
  11601. encoding = end
  11602. end = this.length
  11603. }
  11604. if (val.length === 1) {
  11605. var code = val.charCodeAt(0)
  11606. if (code < 256) {
  11607. val = code
  11608. }
  11609. }
  11610. if (encoding !== undefined && typeof encoding !== 'string') {
  11611. throw new TypeError('encoding must be a string')
  11612. }
  11613. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11614. throw new TypeError('Unknown encoding: ' + encoding)
  11615. }
  11616. } else if (typeof val === 'number') {
  11617. val = val & 255
  11618. }
  11619. // Invalid ranges are not set to a default, so can range check early.
  11620. if (start < 0 || this.length < start || this.length < end) {
  11621. throw new RangeError('Out of range index')
  11622. }
  11623. if (end <= start) {
  11624. return this
  11625. }
  11626. start = start >>> 0
  11627. end = end === undefined ? this.length : end >>> 0
  11628. if (!val) val = 0
  11629. var i
  11630. if (typeof val === 'number') {
  11631. for (i = start; i < end; ++i) {
  11632. this[i] = val
  11633. }
  11634. } else {
  11635. var bytes = Buffer.isBuffer(val)
  11636. ? val
  11637. : utf8ToBytes(new Buffer(val, encoding).toString())
  11638. var len = bytes.length
  11639. for (i = 0; i < end - start; ++i) {
  11640. this[i + start] = bytes[i % len]
  11641. }
  11642. }
  11643. return this
  11644. }
  11645. // HELPER FUNCTIONS
  11646. // ================
  11647. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11648. function base64clean (str) {
  11649. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11650. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11651. // Node converts strings with length < 2 to ''
  11652. if (str.length < 2) return ''
  11653. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11654. while (str.length % 4 !== 0) {
  11655. str = str + '='
  11656. }
  11657. return str
  11658. }
  11659. function stringtrim (str) {
  11660. if (str.trim) return str.trim()
  11661. return str.replace(/^\s+|\s+$/g, '')
  11662. }
  11663. function toHex (n) {
  11664. if (n < 16) return '0' + n.toString(16)
  11665. return n.toString(16)
  11666. }
  11667. function utf8ToBytes (string, units) {
  11668. units = units || Infinity
  11669. var codePoint
  11670. var length = string.length
  11671. var leadSurrogate = null
  11672. var bytes = []
  11673. for (var i = 0; i < length; ++i) {
  11674. codePoint = string.charCodeAt(i)
  11675. // is surrogate component
  11676. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11677. // last char was a lead
  11678. if (!leadSurrogate) {
  11679. // no lead yet
  11680. if (codePoint > 0xDBFF) {
  11681. // unexpected trail
  11682. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11683. continue
  11684. } else if (i + 1 === length) {
  11685. // unpaired lead
  11686. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11687. continue
  11688. }
  11689. // valid lead
  11690. leadSurrogate = codePoint
  11691. continue
  11692. }
  11693. // 2 leads in a row
  11694. if (codePoint < 0xDC00) {
  11695. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11696. leadSurrogate = codePoint
  11697. continue
  11698. }
  11699. // valid surrogate pair
  11700. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11701. } else if (leadSurrogate) {
  11702. // valid bmp char, but last char was a lead
  11703. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11704. }
  11705. leadSurrogate = null
  11706. // encode utf8
  11707. if (codePoint < 0x80) {
  11708. if ((units -= 1) < 0) break
  11709. bytes.push(codePoint)
  11710. } else if (codePoint < 0x800) {
  11711. if ((units -= 2) < 0) break
  11712. bytes.push(
  11713. codePoint >> 0x6 | 0xC0,
  11714. codePoint & 0x3F | 0x80
  11715. )
  11716. } else if (codePoint < 0x10000) {
  11717. if ((units -= 3) < 0) break
  11718. bytes.push(
  11719. codePoint >> 0xC | 0xE0,
  11720. codePoint >> 0x6 & 0x3F | 0x80,
  11721. codePoint & 0x3F | 0x80
  11722. )
  11723. } else if (codePoint < 0x110000) {
  11724. if ((units -= 4) < 0) break
  11725. bytes.push(
  11726. codePoint >> 0x12 | 0xF0,
  11727. codePoint >> 0xC & 0x3F | 0x80,
  11728. codePoint >> 0x6 & 0x3F | 0x80,
  11729. codePoint & 0x3F | 0x80
  11730. )
  11731. } else {
  11732. throw new Error('Invalid code point')
  11733. }
  11734. }
  11735. return bytes
  11736. }
  11737. function asciiToBytes (str) {
  11738. var byteArray = []
  11739. for (var i = 0; i < str.length; ++i) {
  11740. // Node's code seems to be doing this and not & 0x7F..
  11741. byteArray.push(str.charCodeAt(i) & 0xFF)
  11742. }
  11743. return byteArray
  11744. }
  11745. function utf16leToBytes (str, units) {
  11746. var c, hi, lo
  11747. var byteArray = []
  11748. for (var i = 0; i < str.length; ++i) {
  11749. if ((units -= 2) < 0) break
  11750. c = str.charCodeAt(i)
  11751. hi = c >> 8
  11752. lo = c % 256
  11753. byteArray.push(lo)
  11754. byteArray.push(hi)
  11755. }
  11756. return byteArray
  11757. }
  11758. function base64ToBytes (str) {
  11759. return base64.toByteArray(base64clean(str))
  11760. }
  11761. function blitBuffer (src, dst, offset, length) {
  11762. for (var i = 0; i < length; ++i) {
  11763. if ((i + offset >= dst.length) || (i >= src.length)) break
  11764. dst[i + offset] = src[i]
  11765. }
  11766. return i
  11767. }
  11768. function isnan (val) {
  11769. return val !== val // eslint-disable-line no-self-compare
  11770. }
  11771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11772. /***/ }),
  11773. /* 51 */
  11774. /*!*****************************************!*\
  11775. !*** ./node_modules/base64-js/index.js ***!
  11776. \*****************************************/
  11777. /*! no static exports found */
  11778. /***/ (function(module, exports, __webpack_require__) {
  11779. "use strict";
  11780. exports.byteLength = byteLength
  11781. exports.toByteArray = toByteArray
  11782. exports.fromByteArray = fromByteArray
  11783. var lookup = []
  11784. var revLookup = []
  11785. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11786. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11787. for (var i = 0, len = code.length; i < len; ++i) {
  11788. lookup[i] = code[i]
  11789. revLookup[code.charCodeAt(i)] = i
  11790. }
  11791. // Support decoding URL-safe base64 strings, as Node.js does.
  11792. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11793. revLookup['-'.charCodeAt(0)] = 62
  11794. revLookup['_'.charCodeAt(0)] = 63
  11795. function getLens (b64) {
  11796. var len = b64.length
  11797. if (len % 4 > 0) {
  11798. throw new Error('Invalid string. Length must be a multiple of 4')
  11799. }
  11800. // Trim off extra bytes after placeholder bytes are found
  11801. // See: https://github.com/beatgammit/base64-js/issues/42
  11802. var validLen = b64.indexOf('=')
  11803. if (validLen === -1) validLen = len
  11804. var placeHoldersLen = validLen === len
  11805. ? 0
  11806. : 4 - (validLen % 4)
  11807. return [validLen, placeHoldersLen]
  11808. }
  11809. // base64 is 4/3 + up to two characters of the original data
  11810. function byteLength (b64) {
  11811. var lens = getLens(b64)
  11812. var validLen = lens[0]
  11813. var placeHoldersLen = lens[1]
  11814. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11815. }
  11816. function _byteLength (b64, validLen, placeHoldersLen) {
  11817. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11818. }
  11819. function toByteArray (b64) {
  11820. var tmp
  11821. var lens = getLens(b64)
  11822. var validLen = lens[0]
  11823. var placeHoldersLen = lens[1]
  11824. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11825. var curByte = 0
  11826. // if there are placeholders, only get up to the last complete 4 chars
  11827. var len = placeHoldersLen > 0
  11828. ? validLen - 4
  11829. : validLen
  11830. var i
  11831. for (i = 0; i < len; i += 4) {
  11832. tmp =
  11833. (revLookup[b64.charCodeAt(i)] << 18) |
  11834. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11835. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11836. revLookup[b64.charCodeAt(i + 3)]
  11837. arr[curByte++] = (tmp >> 16) & 0xFF
  11838. arr[curByte++] = (tmp >> 8) & 0xFF
  11839. arr[curByte++] = tmp & 0xFF
  11840. }
  11841. if (placeHoldersLen === 2) {
  11842. tmp =
  11843. (revLookup[b64.charCodeAt(i)] << 2) |
  11844. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11845. arr[curByte++] = tmp & 0xFF
  11846. }
  11847. if (placeHoldersLen === 1) {
  11848. tmp =
  11849. (revLookup[b64.charCodeAt(i)] << 10) |
  11850. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11851. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11852. arr[curByte++] = (tmp >> 8) & 0xFF
  11853. arr[curByte++] = tmp & 0xFF
  11854. }
  11855. return arr
  11856. }
  11857. function tripletToBase64 (num) {
  11858. return lookup[num >> 18 & 0x3F] +
  11859. lookup[num >> 12 & 0x3F] +
  11860. lookup[num >> 6 & 0x3F] +
  11861. lookup[num & 0x3F]
  11862. }
  11863. function encodeChunk (uint8, start, end) {
  11864. var tmp
  11865. var output = []
  11866. for (var i = start; i < end; i += 3) {
  11867. tmp =
  11868. ((uint8[i] << 16) & 0xFF0000) +
  11869. ((uint8[i + 1] << 8) & 0xFF00) +
  11870. (uint8[i + 2] & 0xFF)
  11871. output.push(tripletToBase64(tmp))
  11872. }
  11873. return output.join('')
  11874. }
  11875. function fromByteArray (uint8) {
  11876. var tmp
  11877. var len = uint8.length
  11878. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11879. var parts = []
  11880. var maxChunkLength = 16383 // must be multiple of 3
  11881. // go through the array every three bytes, we'll deal with trailing stuff later
  11882. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11883. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11884. }
  11885. // pad the end with zeros, but make sure to not forget the extra bytes
  11886. if (extraBytes === 1) {
  11887. tmp = uint8[len - 1]
  11888. parts.push(
  11889. lookup[tmp >> 2] +
  11890. lookup[(tmp << 4) & 0x3F] +
  11891. '=='
  11892. )
  11893. } else if (extraBytes === 2) {
  11894. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11895. parts.push(
  11896. lookup[tmp >> 10] +
  11897. lookup[(tmp >> 4) & 0x3F] +
  11898. lookup[(tmp << 2) & 0x3F] +
  11899. '='
  11900. )
  11901. }
  11902. return parts.join('')
  11903. }
  11904. /***/ }),
  11905. /* 52 */
  11906. /*!***************************************!*\
  11907. !*** ./node_modules/ieee754/index.js ***!
  11908. \***************************************/
  11909. /*! no static exports found */
  11910. /***/ (function(module, exports) {
  11911. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11912. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11913. var e, m
  11914. var eLen = (nBytes * 8) - mLen - 1
  11915. var eMax = (1 << eLen) - 1
  11916. var eBias = eMax >> 1
  11917. var nBits = -7
  11918. var i = isLE ? (nBytes - 1) : 0
  11919. var d = isLE ? -1 : 1
  11920. var s = buffer[offset + i]
  11921. i += d
  11922. e = s & ((1 << (-nBits)) - 1)
  11923. s >>= (-nBits)
  11924. nBits += eLen
  11925. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11926. m = e & ((1 << (-nBits)) - 1)
  11927. e >>= (-nBits)
  11928. nBits += mLen
  11929. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11930. if (e === 0) {
  11931. e = 1 - eBias
  11932. } else if (e === eMax) {
  11933. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11934. } else {
  11935. m = m + Math.pow(2, mLen)
  11936. e = e - eBias
  11937. }
  11938. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11939. }
  11940. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11941. var e, m, c
  11942. var eLen = (nBytes * 8) - mLen - 1
  11943. var eMax = (1 << eLen) - 1
  11944. var eBias = eMax >> 1
  11945. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11946. var i = isLE ? 0 : (nBytes - 1)
  11947. var d = isLE ? 1 : -1
  11948. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11949. value = Math.abs(value)
  11950. if (isNaN(value) || value === Infinity) {
  11951. m = isNaN(value) ? 1 : 0
  11952. e = eMax
  11953. } else {
  11954. e = Math.floor(Math.log(value) / Math.LN2)
  11955. if (value * (c = Math.pow(2, -e)) < 1) {
  11956. e--
  11957. c *= 2
  11958. }
  11959. if (e + eBias >= 1) {
  11960. value += rt / c
  11961. } else {
  11962. value += rt * Math.pow(2, 1 - eBias)
  11963. }
  11964. if (value * c >= 2) {
  11965. e++
  11966. c /= 2
  11967. }
  11968. if (e + eBias >= eMax) {
  11969. m = 0
  11970. e = eMax
  11971. } else if (e + eBias >= 1) {
  11972. m = ((value * c) - 1) * Math.pow(2, mLen)
  11973. e = e + eBias
  11974. } else {
  11975. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11976. e = 0
  11977. }
  11978. }
  11979. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11980. e = (e << mLen) | m
  11981. eLen += mLen
  11982. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11983. buffer[offset + i - d] |= s * 128
  11984. }
  11985. /***/ }),
  11986. /* 53 */
  11987. /*!***************************************!*\
  11988. !*** ./node_modules/isarray/index.js ***!
  11989. \***************************************/
  11990. /*! no static exports found */
  11991. /***/ (function(module, exports) {
  11992. var toString = {}.toString;
  11993. module.exports = Array.isArray || function (arr) {
  11994. return toString.call(arr) == '[object Array]';
  11995. };
  11996. /***/ }),
  11997. /* 54 */
  11998. /*!***********************************************************************************!*\
  11999. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/util/route.js ***!
  12000. \***********************************************************************************/
  12001. /*! no static exports found */
  12002. /***/ (function(module, exports, __webpack_require__) {
  12003. "use strict";
  12004. /* WEBPACK VAR INJECTION */(function(uni) {
  12005. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12006. Object.defineProperty(exports, "__esModule", {
  12007. value: true
  12008. });
  12009. exports.default = void 0;
  12010. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  12011. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  12012. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12013. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12014. /**
  12015. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12016. * 并且带有路由拦截功能
  12017. */
  12018. var Router = /*#__PURE__*/function () {
  12019. function Router() {
  12020. (0, _classCallCheck2.default)(this, Router);
  12021. // 原始属性定义
  12022. this.config = {
  12023. type: 'navigateTo',
  12024. url: '',
  12025. delta: 1,
  12026. // navigateBack页面后退时,回退的层数
  12027. params: {},
  12028. // 传递的参数
  12029. animationType: 'pop-in',
  12030. // 窗口动画,只在APP有效
  12031. animationDuration: 300,
  12032. // 窗口动画持续时间,单位毫秒,只在APP有效
  12033. intercept: false // 是否需要拦截
  12034. };
  12035. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12036. // 这里在构造函数中进行this绑定
  12037. this.route = this.route.bind(this);
  12038. }
  12039. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12040. (0, _createClass2.default)(Router, [{
  12041. key: "addRootPath",
  12042. value: function addRootPath(url) {
  12043. return url[0] === '/' ? url : "/".concat(url);
  12044. }
  12045. // 整合路由参数
  12046. }, {
  12047. key: "mixinParam",
  12048. value: function mixinParam(url, params) {
  12049. url = url && this.addRootPath(url);
  12050. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12051. // 如果有url中有get参数,转换后无需带上"?"
  12052. var query = '';
  12053. if (/.*\/.*\?.*=.*/.test(url)) {
  12054. // object对象转为get类型的参数
  12055. query = uni.$u.queryParams(params, false);
  12056. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12057. return url += "&".concat(query);
  12058. }
  12059. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12060. query = uni.$u.queryParams(params);
  12061. return url += query;
  12062. }
  12063. // 对外的方法名称
  12064. }, {
  12065. key: "route",
  12066. value: function () {
  12067. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12068. var options,
  12069. params,
  12070. mergeConfig,
  12071. isNext,
  12072. _args = arguments;
  12073. return _regenerator.default.wrap(function _callee$(_context) {
  12074. while (1) {
  12075. switch (_context.prev = _context.next) {
  12076. case 0:
  12077. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12078. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12079. // 合并用户的配置和内部的默认配置
  12080. mergeConfig = {};
  12081. if (typeof options === 'string') {
  12082. // 如果options为字符串,则为route(url, params)的形式
  12083. mergeConfig.url = this.mixinParam(options, params);
  12084. mergeConfig.type = 'navigateTo';
  12085. } else {
  12086. mergeConfig = uni.$u.deepMerge(this.config, options);
  12087. // 否则正常使用mergeConfig中的url和params进行拼接
  12088. mergeConfig.url = this.mixinParam(options.url, options.params);
  12089. }
  12090. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12091. if (!(mergeConfig.url === uni.$u.page())) {
  12092. _context.next = 6;
  12093. break;
  12094. }
  12095. return _context.abrupt("return");
  12096. case 6:
  12097. if (params.intercept) {
  12098. this.config.intercept = params.intercept;
  12099. }
  12100. // params参数也带给拦截器
  12101. mergeConfig.params = params;
  12102. // 合并内外部参数
  12103. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12104. // 判断用户是否定义了拦截器
  12105. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12106. _context.next = 16;
  12107. break;
  12108. }
  12109. _context.next = 12;
  12110. return new Promise(function (resolve, reject) {
  12111. uni.$u.routeIntercept(mergeConfig, resolve);
  12112. });
  12113. case 12:
  12114. isNext = _context.sent;
  12115. // 如果isNext为true,则执行路由跳转
  12116. isNext && this.openPage(mergeConfig);
  12117. _context.next = 17;
  12118. break;
  12119. case 16:
  12120. this.openPage(mergeConfig);
  12121. case 17:
  12122. case "end":
  12123. return _context.stop();
  12124. }
  12125. }
  12126. }, _callee, this);
  12127. }));
  12128. function route() {
  12129. return _route.apply(this, arguments);
  12130. }
  12131. return route;
  12132. }() // 执行路由跳转
  12133. }, {
  12134. key: "openPage",
  12135. value: function openPage(config) {
  12136. // 解构参数
  12137. var url = config.url,
  12138. type = config.type,
  12139. delta = config.delta,
  12140. animationType = config.animationType,
  12141. animationDuration = config.animationDuration;
  12142. if (config.type == 'navigateTo' || config.type == 'to') {
  12143. uni.navigateTo({
  12144. url: url,
  12145. animationType: animationType,
  12146. animationDuration: animationDuration
  12147. });
  12148. }
  12149. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12150. uni.redirectTo({
  12151. url: url
  12152. });
  12153. }
  12154. if (config.type == 'switchTab' || config.type == 'tab') {
  12155. uni.switchTab({
  12156. url: url
  12157. });
  12158. }
  12159. if (config.type == 'reLaunch' || config.type == 'launch') {
  12160. uni.reLaunch({
  12161. url: url
  12162. });
  12163. }
  12164. if (config.type == 'navigateBack' || config.type == 'back') {
  12165. uni.navigateBack({
  12166. delta: delta
  12167. });
  12168. }
  12169. }
  12170. }]);
  12171. return Router;
  12172. }();
  12173. var _default = new Router().route;
  12174. exports.default = _default;
  12175. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12176. /***/ }),
  12177. /* 55 */
  12178. /*!************************************************************************************************!*\
  12179. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12180. \************************************************************************************************/
  12181. /*! no static exports found */
  12182. /***/ (function(module, exports, __webpack_require__) {
  12183. // TODO(Babel 8): Remove this file.
  12184. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 56)();
  12185. module.exports = runtime;
  12186. /***/ }),
  12187. /* 56 */
  12188. /*!*******************************************************************!*\
  12189. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12190. \*******************************************************************/
  12191. /*! no static exports found */
  12192. /***/ (function(module, exports, __webpack_require__) {
  12193. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12194. function _regeneratorRuntime() {
  12195. "use strict";
  12196. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12197. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12198. return e;
  12199. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12200. var t,
  12201. e = {},
  12202. r = Object.prototype,
  12203. n = r.hasOwnProperty,
  12204. o = Object.defineProperty || function (t, e, r) {
  12205. t[e] = r.value;
  12206. },
  12207. i = "function" == typeof Symbol ? Symbol : {},
  12208. a = i.iterator || "@@iterator",
  12209. c = i.asyncIterator || "@@asyncIterator",
  12210. u = i.toStringTag || "@@toStringTag";
  12211. function define(t, e, r) {
  12212. return Object.defineProperty(t, e, {
  12213. value: r,
  12214. enumerable: !0,
  12215. configurable: !0,
  12216. writable: !0
  12217. }), t[e];
  12218. }
  12219. try {
  12220. define({}, "");
  12221. } catch (t) {
  12222. define = function define(t, e, r) {
  12223. return t[e] = r;
  12224. };
  12225. }
  12226. function wrap(t, e, r, n) {
  12227. var i = e && e.prototype instanceof Generator ? e : Generator,
  12228. a = Object.create(i.prototype),
  12229. c = new Context(n || []);
  12230. return o(a, "_invoke", {
  12231. value: makeInvokeMethod(t, r, c)
  12232. }), a;
  12233. }
  12234. function tryCatch(t, e, r) {
  12235. try {
  12236. return {
  12237. type: "normal",
  12238. arg: t.call(e, r)
  12239. };
  12240. } catch (t) {
  12241. return {
  12242. type: "throw",
  12243. arg: t
  12244. };
  12245. }
  12246. }
  12247. e.wrap = wrap;
  12248. var h = "suspendedStart",
  12249. l = "suspendedYield",
  12250. f = "executing",
  12251. s = "completed",
  12252. y = {};
  12253. function Generator() {}
  12254. function GeneratorFunction() {}
  12255. function GeneratorFunctionPrototype() {}
  12256. var p = {};
  12257. define(p, a, function () {
  12258. return this;
  12259. });
  12260. var d = Object.getPrototypeOf,
  12261. v = d && d(d(values([])));
  12262. v && v !== r && n.call(v, a) && (p = v);
  12263. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12264. function defineIteratorMethods(t) {
  12265. ["next", "throw", "return"].forEach(function (e) {
  12266. define(t, e, function (t) {
  12267. return this._invoke(e, t);
  12268. });
  12269. });
  12270. }
  12271. function AsyncIterator(t, e) {
  12272. function invoke(r, o, i, a) {
  12273. var c = tryCatch(t[r], t, o);
  12274. if ("throw" !== c.type) {
  12275. var u = c.arg,
  12276. h = u.value;
  12277. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12278. invoke("next", t, i, a);
  12279. }, function (t) {
  12280. invoke("throw", t, i, a);
  12281. }) : e.resolve(h).then(function (t) {
  12282. u.value = t, i(u);
  12283. }, function (t) {
  12284. return invoke("throw", t, i, a);
  12285. });
  12286. }
  12287. a(c.arg);
  12288. }
  12289. var r;
  12290. o(this, "_invoke", {
  12291. value: function value(t, n) {
  12292. function callInvokeWithMethodAndArg() {
  12293. return new e(function (e, r) {
  12294. invoke(t, n, e, r);
  12295. });
  12296. }
  12297. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12298. }
  12299. });
  12300. }
  12301. function makeInvokeMethod(e, r, n) {
  12302. var o = h;
  12303. return function (i, a) {
  12304. if (o === f) throw Error("Generator is already running");
  12305. if (o === s) {
  12306. if ("throw" === i) throw a;
  12307. return {
  12308. value: t,
  12309. done: !0
  12310. };
  12311. }
  12312. for (n.method = i, n.arg = a;;) {
  12313. var c = n.delegate;
  12314. if (c) {
  12315. var u = maybeInvokeDelegate(c, n);
  12316. if (u) {
  12317. if (u === y) continue;
  12318. return u;
  12319. }
  12320. }
  12321. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12322. if (o === h) throw o = s, n.arg;
  12323. n.dispatchException(n.arg);
  12324. } else "return" === n.method && n.abrupt("return", n.arg);
  12325. o = f;
  12326. var p = tryCatch(e, r, n);
  12327. if ("normal" === p.type) {
  12328. if (o = n.done ? s : l, p.arg === y) continue;
  12329. return {
  12330. value: p.arg,
  12331. done: n.done
  12332. };
  12333. }
  12334. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12335. }
  12336. };
  12337. }
  12338. function maybeInvokeDelegate(e, r) {
  12339. var n = r.method,
  12340. o = e.iterator[n];
  12341. 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;
  12342. var i = tryCatch(o, e.iterator, r.arg);
  12343. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12344. var a = i.arg;
  12345. 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);
  12346. }
  12347. function pushTryEntry(t) {
  12348. var e = {
  12349. tryLoc: t[0]
  12350. };
  12351. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12352. }
  12353. function resetTryEntry(t) {
  12354. var e = t.completion || {};
  12355. e.type = "normal", delete e.arg, t.completion = e;
  12356. }
  12357. function Context(t) {
  12358. this.tryEntries = [{
  12359. tryLoc: "root"
  12360. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12361. }
  12362. function values(e) {
  12363. if (e || "" === e) {
  12364. var r = e[a];
  12365. if (r) return r.call(e);
  12366. if ("function" == typeof e.next) return e;
  12367. if (!isNaN(e.length)) {
  12368. var o = -1,
  12369. i = function next() {
  12370. for (; ++o < e.length;) {
  12371. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12372. }
  12373. return next.value = t, next.done = !0, next;
  12374. };
  12375. return i.next = i;
  12376. }
  12377. }
  12378. throw new TypeError(_typeof(e) + " is not iterable");
  12379. }
  12380. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12381. value: GeneratorFunctionPrototype,
  12382. configurable: !0
  12383. }), o(GeneratorFunctionPrototype, "constructor", {
  12384. value: GeneratorFunction,
  12385. configurable: !0
  12386. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12387. var e = "function" == typeof t && t.constructor;
  12388. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12389. }, e.mark = function (t) {
  12390. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12391. }, e.awrap = function (t) {
  12392. return {
  12393. __await: t
  12394. };
  12395. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12396. return this;
  12397. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12398. void 0 === i && (i = Promise);
  12399. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12400. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12401. return t.done ? t.value : a.next();
  12402. });
  12403. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12404. return this;
  12405. }), define(g, "toString", function () {
  12406. return "[object Generator]";
  12407. }), e.keys = function (t) {
  12408. var e = Object(t),
  12409. r = [];
  12410. for (var n in e) {
  12411. r.push(n);
  12412. }
  12413. return r.reverse(), function next() {
  12414. for (; r.length;) {
  12415. var t = r.pop();
  12416. if (t in e) return next.value = t, next.done = !1, next;
  12417. }
  12418. return next.done = !0, next;
  12419. };
  12420. }, e.values = values, Context.prototype = {
  12421. constructor: Context,
  12422. reset: function reset(e) {
  12423. 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) {
  12424. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12425. }
  12426. },
  12427. stop: function stop() {
  12428. this.done = !0;
  12429. var t = this.tryEntries[0].completion;
  12430. if ("throw" === t.type) throw t.arg;
  12431. return this.rval;
  12432. },
  12433. dispatchException: function dispatchException(e) {
  12434. if (this.done) throw e;
  12435. var r = this;
  12436. function handle(n, o) {
  12437. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12438. }
  12439. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12440. var i = this.tryEntries[o],
  12441. a = i.completion;
  12442. if ("root" === i.tryLoc) return handle("end");
  12443. if (i.tryLoc <= this.prev) {
  12444. var c = n.call(i, "catchLoc"),
  12445. u = n.call(i, "finallyLoc");
  12446. if (c && u) {
  12447. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12448. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12449. } else if (c) {
  12450. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12451. } else {
  12452. if (!u) throw Error("try statement without catch or finally");
  12453. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12454. }
  12455. }
  12456. }
  12457. },
  12458. abrupt: function abrupt(t, e) {
  12459. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12460. var o = this.tryEntries[r];
  12461. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12462. var i = o;
  12463. break;
  12464. }
  12465. }
  12466. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12467. var a = i ? i.completion : {};
  12468. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12469. },
  12470. complete: function complete(t, e) {
  12471. if ("throw" === t.type) throw t.arg;
  12472. 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;
  12473. },
  12474. finish: function finish(t) {
  12475. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12476. var r = this.tryEntries[e];
  12477. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12478. }
  12479. },
  12480. "catch": function _catch(t) {
  12481. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12482. var r = this.tryEntries[e];
  12483. if (r.tryLoc === t) {
  12484. var n = r.completion;
  12485. if ("throw" === n.type) {
  12486. var o = n.arg;
  12487. resetTryEntry(r);
  12488. }
  12489. return o;
  12490. }
  12491. }
  12492. throw Error("illegal catch attempt");
  12493. },
  12494. delegateYield: function delegateYield(e, r, n) {
  12495. return this.delegate = {
  12496. iterator: values(e),
  12497. resultName: r,
  12498. nextLoc: n
  12499. }, "next" === this.method && (this.arg = t), y;
  12500. }
  12501. }, e;
  12502. }
  12503. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12504. /***/ }),
  12505. /* 57 */
  12506. /*!*****************************************************************!*\
  12507. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12508. \*****************************************************************/
  12509. /*! no static exports found */
  12510. /***/ (function(module, exports) {
  12511. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12512. try {
  12513. var info = gen[key](arg);
  12514. var value = info.value;
  12515. } catch (error) {
  12516. reject(error);
  12517. return;
  12518. }
  12519. if (info.done) {
  12520. resolve(value);
  12521. } else {
  12522. Promise.resolve(value).then(_next, _throw);
  12523. }
  12524. }
  12525. function _asyncToGenerator(fn) {
  12526. return function () {
  12527. var self = this,
  12528. args = arguments;
  12529. return new Promise(function (resolve, reject) {
  12530. var gen = fn.apply(self, args);
  12531. function _next(value) {
  12532. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12533. }
  12534. function _throw(err) {
  12535. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12536. }
  12537. _next(undefined);
  12538. });
  12539. };
  12540. }
  12541. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12542. /***/ }),
  12543. /* 58 */
  12544. /*!***********************************************************************************************!*\
  12545. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12546. \***********************************************************************************************/
  12547. /*! no static exports found */
  12548. /***/ (function(module, exports, __webpack_require__) {
  12549. "use strict";
  12550. Object.defineProperty(exports, "__esModule", {
  12551. value: true
  12552. });
  12553. exports.default = void 0;
  12554. /**
  12555. * 求两个颜色之间的渐变值
  12556. * @param {string} startColor 开始的颜色
  12557. * @param {string} endColor 结束的颜色
  12558. * @param {number} step 颜色等分的份额
  12559. * */
  12560. function colorGradient() {
  12561. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12562. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12563. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12564. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12565. var startR = startRGB[0];
  12566. var startG = startRGB[1];
  12567. var startB = startRGB[2];
  12568. var endRGB = hexToRgb(endColor, false);
  12569. var endR = endRGB[0];
  12570. var endG = endRGB[1];
  12571. var endB = endRGB[2];
  12572. var sR = (endR - startR) / step; // 总差值
  12573. var sG = (endG - startG) / step;
  12574. var sB = (endB - startB) / step;
  12575. var colorArr = [];
  12576. for (var i = 0; i < step; i++) {
  12577. // 计算每一步的hex值
  12578. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12579. // 确保第一个颜色值为startColor的值
  12580. if (i === 0) hex = rgbToHex(startColor);
  12581. // 确保最后一个颜色值为endColor的值
  12582. if (i === step - 1) hex = rgbToHex(endColor);
  12583. colorArr.push(hex);
  12584. }
  12585. return colorArr;
  12586. }
  12587. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12588. function hexToRgb(sColor) {
  12589. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12590. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12591. sColor = String(sColor).toLowerCase();
  12592. if (sColor && reg.test(sColor)) {
  12593. if (sColor.length === 4) {
  12594. var sColorNew = '#';
  12595. for (var i = 1; i < 4; i += 1) {
  12596. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12597. }
  12598. sColor = sColorNew;
  12599. }
  12600. // 处理六位的颜色值
  12601. var sColorChange = [];
  12602. for (var _i = 1; _i < 7; _i += 2) {
  12603. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12604. }
  12605. if (!str) {
  12606. return sColorChange;
  12607. }
  12608. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12609. }
  12610. if (/^(rgb|RGB)/.test(sColor)) {
  12611. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12612. return arr.map(function (val) {
  12613. return Number(val);
  12614. });
  12615. }
  12616. return sColor;
  12617. }
  12618. // 将rgb表示方式转换为hex表示方式
  12619. function rgbToHex(rgb) {
  12620. var _this = rgb;
  12621. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12622. if (/^(rgb|RGB)/.test(_this)) {
  12623. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12624. var strHex = '#';
  12625. for (var i = 0; i < aColor.length; i++) {
  12626. var hex = Number(aColor[i]).toString(16);
  12627. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12628. if (hex === '0') {
  12629. hex += hex;
  12630. }
  12631. strHex += hex;
  12632. }
  12633. if (strHex.length !== 7) {
  12634. strHex = _this;
  12635. }
  12636. return strHex;
  12637. }
  12638. if (reg.test(_this)) {
  12639. var aNum = _this.replace(/#/, '').split('');
  12640. if (aNum.length === 6) {
  12641. return _this;
  12642. }
  12643. if (aNum.length === 3) {
  12644. var numHex = '#';
  12645. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12646. numHex += aNum[_i2] + aNum[_i2];
  12647. }
  12648. return numHex;
  12649. }
  12650. } else {
  12651. return _this;
  12652. }
  12653. }
  12654. /**
  12655. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12656. * sHex为传入的十六进制的色值
  12657. * alpha为rgba的透明度
  12658. */
  12659. function colorToRgba(color, alpha) {
  12660. color = rgbToHex(color);
  12661. // 十六进制颜色值的正则表达式
  12662. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12663. /* 16进制颜色转为RGB格式 */
  12664. var sColor = String(color).toLowerCase();
  12665. if (sColor && reg.test(sColor)) {
  12666. if (sColor.length === 4) {
  12667. var sColorNew = '#';
  12668. for (var i = 1; i < 4; i += 1) {
  12669. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12670. }
  12671. sColor = sColorNew;
  12672. }
  12673. // 处理六位的颜色值
  12674. var sColorChange = [];
  12675. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12676. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12677. }
  12678. // return sColorChange.join(',')
  12679. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12680. }
  12681. return sColor;
  12682. }
  12683. var _default = {
  12684. colorGradient: colorGradient,
  12685. hexToRgb: hexToRgb,
  12686. rgbToHex: rgbToHex,
  12687. colorToRgba: colorToRgba
  12688. };
  12689. exports.default = _default;
  12690. /***/ }),
  12691. /* 59 */
  12692. /*!**************************************************************************************!*\
  12693. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/function/test.js ***!
  12694. \**************************************************************************************/
  12695. /*! no static exports found */
  12696. /***/ (function(module, exports, __webpack_require__) {
  12697. "use strict";
  12698. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12699. Object.defineProperty(exports, "__esModule", {
  12700. value: true
  12701. });
  12702. exports.default = void 0;
  12703. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12704. /**
  12705. * 验证电子邮箱格式
  12706. */
  12707. function email(value) {
  12708. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12709. }
  12710. /**
  12711. * 验证手机格式
  12712. */
  12713. function mobile(value) {
  12714. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12715. }
  12716. /**
  12717. * 验证URL格式
  12718. */
  12719. function url(value) {
  12720. 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);
  12721. }
  12722. /**
  12723. * 验证日期格式
  12724. */
  12725. function date(value) {
  12726. if (!value) return false;
  12727. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12728. if (number(value)) value = +value;
  12729. return !/Invalid|NaN/.test(new Date(value).toString());
  12730. }
  12731. /**
  12732. * 验证ISO类型的日期格式
  12733. */
  12734. function dateISO(value) {
  12735. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12736. }
  12737. /**
  12738. * 验证十进制数字
  12739. */
  12740. function number(value) {
  12741. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12742. }
  12743. /**
  12744. * 验证字符串
  12745. */
  12746. function string(value) {
  12747. return typeof value === 'string';
  12748. }
  12749. /**
  12750. * 验证整数
  12751. */
  12752. function digits(value) {
  12753. return /^\d+$/.test(value);
  12754. }
  12755. /**
  12756. * 验证身份证号码
  12757. */
  12758. function idCard(value) {
  12759. 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);
  12760. }
  12761. /**
  12762. * 是否车牌号
  12763. */
  12764. function carNo(value) {
  12765. // 新能源车牌
  12766. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12767. // 旧车牌
  12768. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12769. if (value.length === 7) {
  12770. return creg.test(value);
  12771. }
  12772. if (value.length === 8) {
  12773. return xreg.test(value);
  12774. }
  12775. return false;
  12776. }
  12777. /**
  12778. * 金额,只允许2位小数
  12779. */
  12780. function amount(value) {
  12781. // 金额,只允许保留两位小数
  12782. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12783. }
  12784. /**
  12785. * 中文
  12786. */
  12787. function chinese(value) {
  12788. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12789. return reg.test(value);
  12790. }
  12791. /**
  12792. * 只能输入字母
  12793. */
  12794. function letter(value) {
  12795. return /^[a-zA-Z]*$/.test(value);
  12796. }
  12797. /**
  12798. * 只能是字母或者数字
  12799. */
  12800. function enOrNum(value) {
  12801. // 英文或者数字
  12802. var reg = /^[0-9a-zA-Z]*$/g;
  12803. return reg.test(value);
  12804. }
  12805. /**
  12806. * 验证是否包含某个值
  12807. */
  12808. function contains(value, param) {
  12809. return value.indexOf(param) >= 0;
  12810. }
  12811. /**
  12812. * 验证一个值范围[min, max]
  12813. */
  12814. function range(value, param) {
  12815. return value >= param[0] && value <= param[1];
  12816. }
  12817. /**
  12818. * 验证一个长度范围[min, max]
  12819. */
  12820. function rangeLength(value, param) {
  12821. return value.length >= param[0] && value.length <= param[1];
  12822. }
  12823. /**
  12824. * 是否固定电话
  12825. */
  12826. function landline(value) {
  12827. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12828. return reg.test(value);
  12829. }
  12830. /**
  12831. * 判断是否为空
  12832. */
  12833. function empty(value) {
  12834. switch ((0, _typeof2.default)(value)) {
  12835. case 'undefined':
  12836. return true;
  12837. case 'string':
  12838. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12839. break;
  12840. case 'boolean':
  12841. if (!value) return true;
  12842. break;
  12843. case 'number':
  12844. if (value === 0 || isNaN(value)) return true;
  12845. break;
  12846. case 'object':
  12847. if (value === null || value.length === 0) return true;
  12848. for (var i in value) {
  12849. return false;
  12850. }
  12851. return true;
  12852. }
  12853. return false;
  12854. }
  12855. /**
  12856. * 是否json字符串
  12857. */
  12858. function jsonString(value) {
  12859. if (typeof value === 'string') {
  12860. try {
  12861. var obj = JSON.parse(value);
  12862. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12863. return true;
  12864. }
  12865. return false;
  12866. } catch (e) {
  12867. return false;
  12868. }
  12869. }
  12870. return false;
  12871. }
  12872. /**
  12873. * 是否数组
  12874. */
  12875. function array(value) {
  12876. if (typeof Array.isArray === 'function') {
  12877. return Array.isArray(value);
  12878. }
  12879. return Object.prototype.toString.call(value) === '[object Array]';
  12880. }
  12881. /**
  12882. * 是否对象
  12883. */
  12884. function object(value) {
  12885. return Object.prototype.toString.call(value) === '[object Object]';
  12886. }
  12887. /**
  12888. * 是否短信验证码
  12889. */
  12890. function code(value) {
  12891. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12892. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12893. }
  12894. /**
  12895. * 是否函数方法
  12896. * @param {Object} value
  12897. */
  12898. function func(value) {
  12899. return typeof value === 'function';
  12900. }
  12901. /**
  12902. * 是否promise对象
  12903. * @param {Object} value
  12904. */
  12905. function promise(value) {
  12906. return object(value) && func(value.then) && func(value.catch);
  12907. }
  12908. /** 是否图片格式
  12909. * @param {Object} value
  12910. */
  12911. function image(value) {
  12912. var newValue = value.split('?')[0];
  12913. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12914. return IMAGE_REGEXP.test(newValue);
  12915. }
  12916. /**
  12917. * 是否视频格式
  12918. * @param {Object} value
  12919. */
  12920. function video(value) {
  12921. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12922. return VIDEO_REGEXP.test(value);
  12923. }
  12924. /**
  12925. * 是否为正则对象
  12926. * @param {Object}
  12927. * @return {Boolean}
  12928. */
  12929. function regExp(o) {
  12930. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12931. }
  12932. var _default = {
  12933. email: email,
  12934. mobile: mobile,
  12935. url: url,
  12936. date: date,
  12937. dateISO: dateISO,
  12938. number: number,
  12939. digits: digits,
  12940. idCard: idCard,
  12941. carNo: carNo,
  12942. amount: amount,
  12943. chinese: chinese,
  12944. letter: letter,
  12945. enOrNum: enOrNum,
  12946. contains: contains,
  12947. range: range,
  12948. rangeLength: rangeLength,
  12949. empty: empty,
  12950. isEmpty: empty,
  12951. jsonString: jsonString,
  12952. landline: landline,
  12953. object: object,
  12954. array: array,
  12955. code: code,
  12956. func: func,
  12957. promise: promise,
  12958. video: video,
  12959. image: image,
  12960. regExp: regExp,
  12961. string: string
  12962. };
  12963. exports.default = _default;
  12964. /***/ }),
  12965. /* 60 */
  12966. /*!******************************************************************************************!*\
  12967. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/function/debounce.js ***!
  12968. \******************************************************************************************/
  12969. /*! no static exports found */
  12970. /***/ (function(module, exports, __webpack_require__) {
  12971. "use strict";
  12972. Object.defineProperty(exports, "__esModule", {
  12973. value: true
  12974. });
  12975. exports.default = void 0;
  12976. var timeout = null;
  12977. /**
  12978. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12979. *
  12980. * @param {Function} func 要执行的回调函数
  12981. * @param {Number} wait 延时的时间
  12982. * @param {Boolean} immediate 是否立即执行
  12983. * @return null
  12984. */
  12985. function debounce(func) {
  12986. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  12987. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12988. // 清除定时器
  12989. if (timeout !== null) clearTimeout(timeout);
  12990. // 立即执行,此类情况一般用不到
  12991. if (immediate) {
  12992. var callNow = !timeout;
  12993. timeout = setTimeout(function () {
  12994. timeout = null;
  12995. }, wait);
  12996. if (callNow) typeof func === 'function' && func();
  12997. } else {
  12998. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12999. timeout = setTimeout(function () {
  13000. typeof func === 'function' && func();
  13001. }, wait);
  13002. }
  13003. }
  13004. var _default = debounce;
  13005. exports.default = _default;
  13006. /***/ }),
  13007. /* 61 */
  13008. /*!******************************************************************************************!*\
  13009. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/function/throttle.js ***!
  13010. \******************************************************************************************/
  13011. /*! no static exports found */
  13012. /***/ (function(module, exports, __webpack_require__) {
  13013. "use strict";
  13014. Object.defineProperty(exports, "__esModule", {
  13015. value: true
  13016. });
  13017. exports.default = void 0;
  13018. var timer;
  13019. var flag;
  13020. /**
  13021. * 节流原理:在一定时间内,只能触发一次
  13022. *
  13023. * @param {Function} func 要执行的回调函数
  13024. * @param {Number} wait 延时的时间
  13025. * @param {Boolean} immediate 是否立即执行
  13026. * @return null
  13027. */
  13028. function throttle(func) {
  13029. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13030. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13031. if (immediate) {
  13032. if (!flag) {
  13033. flag = true;
  13034. // 如果是立即执行,则在wait毫秒内开始时执行
  13035. typeof func === 'function' && func();
  13036. timer = setTimeout(function () {
  13037. flag = false;
  13038. }, wait);
  13039. }
  13040. } else if (!flag) {
  13041. flag = true;
  13042. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13043. timer = setTimeout(function () {
  13044. flag = false;
  13045. typeof func === 'function' && func();
  13046. }, wait);
  13047. }
  13048. }
  13049. var _default = throttle;
  13050. exports.default = _default;
  13051. /***/ }),
  13052. /* 62 */
  13053. /*!***************************************************************************************!*\
  13054. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/function/index.js ***!
  13055. \***************************************************************************************/
  13056. /*! no static exports found */
  13057. /***/ (function(module, exports, __webpack_require__) {
  13058. "use strict";
  13059. /* WEBPACK VAR INJECTION */(function(uni) {
  13060. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13061. Object.defineProperty(exports, "__esModule", {
  13062. value: true
  13063. });
  13064. exports.default = void 0;
  13065. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13066. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13067. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  13068. var _digit = __webpack_require__(/*! ./digit.js */ 63);
  13069. /**
  13070. * @description 如果value小于min,取min;如果value大于max,取max
  13071. * @param {number} min
  13072. * @param {number} max
  13073. * @param {number} value
  13074. */
  13075. function range() {
  13076. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13077. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13078. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13079. return Math.max(min, Math.min(max, Number(value)));
  13080. }
  13081. /**
  13082. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13083. * @param {number|string} value 用户传递值的px值
  13084. * @param {boolean} unit
  13085. * @returns {number|string}
  13086. */
  13087. function getPx(value) {
  13088. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13089. if (_test.default.number(value)) {
  13090. return unit ? "".concat(value, "px") : Number(value);
  13091. }
  13092. // 如果带有rpx,先取出其数值部分,再转为px值
  13093. if (/(rpx|upx)$/.test(value)) {
  13094. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13095. }
  13096. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13097. }
  13098. /**
  13099. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13100. * @param {number} value 堵塞时间 单位ms 毫秒
  13101. * @returns {Promise} 返回promise
  13102. */
  13103. function sleep() {
  13104. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13105. return new Promise(function (resolve) {
  13106. setTimeout(function () {
  13107. resolve();
  13108. }, value);
  13109. });
  13110. }
  13111. /**
  13112. * @description 运行期判断平台
  13113. * @returns {string} 返回所在平台(小写)
  13114. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13115. */
  13116. function os() {
  13117. return uni.getSystemInfoSync().platform.toLowerCase();
  13118. }
  13119. /**
  13120. * @description 获取系统信息同步接口
  13121. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13122. */
  13123. function sys() {
  13124. return uni.getSystemInfoSync();
  13125. }
  13126. /**
  13127. * @description 取一个区间数
  13128. * @param {Number} min 最小值
  13129. * @param {Number} max 最大值
  13130. */
  13131. function random(min, max) {
  13132. if (min >= 0 && max > 0 && max >= min) {
  13133. var gab = max - min + 1;
  13134. return Math.floor(Math.random() * gab + min);
  13135. }
  13136. return 0;
  13137. }
  13138. /**
  13139. * @param {Number} len uuid的长度
  13140. * @param {Boolean} firstU 将返回的首字母置为"u"
  13141. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13142. */
  13143. function guid() {
  13144. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13145. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13146. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13147. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13148. var uuid = [];
  13149. radix = radix || chars.length;
  13150. if (len) {
  13151. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13152. for (var i = 0; i < len; i++) {
  13153. uuid[i] = chars[0 | Math.random() * radix];
  13154. }
  13155. } else {
  13156. var r;
  13157. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13158. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13159. uuid[14] = '4';
  13160. for (var _i = 0; _i < 36; _i++) {
  13161. if (!uuid[_i]) {
  13162. r = 0 | Math.random() * 16;
  13163. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13164. }
  13165. }
  13166. }
  13167. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13168. if (firstU) {
  13169. uuid.shift();
  13170. return "u".concat(uuid.join(''));
  13171. }
  13172. return uuid.join('');
  13173. }
  13174. /**
  13175. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13176. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13177. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13178. 值(默认为undefined),就是查找最顶层的$parent
  13179. * @param {string|undefined} name 父组件的参数名
  13180. */
  13181. function $parent() {
  13182. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13183. var parent = this.$parent;
  13184. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13185. while (parent) {
  13186. // 父组件
  13187. if (parent.$options && parent.$options.name !== name) {
  13188. // 如果组件的name不相等,继续上一级寻找
  13189. parent = parent.$parent;
  13190. } else {
  13191. return parent;
  13192. }
  13193. }
  13194. return false;
  13195. }
  13196. /**
  13197. * @description 样式转换
  13198. * 对象转字符串,或者字符串转对象
  13199. * @param {object | string} customStyle 需要转换的目标
  13200. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13201. * @returns {object|string}
  13202. */
  13203. function addStyle(customStyle) {
  13204. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13205. // 字符串转字符串,对象转对象情形,直接返回
  13206. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13207. return customStyle;
  13208. }
  13209. // 字符串转对象
  13210. if (target === 'object') {
  13211. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13212. customStyle = trim(customStyle);
  13213. // 根据";"将字符串转为数组形式
  13214. var styleArray = customStyle.split(';');
  13215. var style = {};
  13216. // 历遍数组,拼接成对象
  13217. for (var i = 0; i < styleArray.length; i++) {
  13218. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13219. if (styleArray[i]) {
  13220. var item = styleArray[i].split(':');
  13221. style[trim(item[0])] = trim(item[1]);
  13222. }
  13223. }
  13224. return style;
  13225. }
  13226. // 这里为对象转字符串形式
  13227. var string = '';
  13228. for (var _i2 in customStyle) {
  13229. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13230. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13231. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13232. }
  13233. // 去除两端空格
  13234. return trim(string);
  13235. }
  13236. /**
  13237. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13238. * @param {string|number} value 需要添加单位的值
  13239. * @param {string} unit 添加的单位名 比如px
  13240. */
  13241. function addUnit() {
  13242. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13243. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13244. 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';
  13245. value = String(value);
  13246. // 用uView内置验证规则中的number判断是否为数值
  13247. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13248. }
  13249. /**
  13250. * @description 深度克隆
  13251. * @param {object} obj 需要深度克隆的对象
  13252. * @param cache 缓存
  13253. * @returns {*} 克隆后的对象或者原值(不是对象)
  13254. */
  13255. function deepClone(obj) {
  13256. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13257. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13258. if (cache.has(obj)) return cache.get(obj);
  13259. var clone;
  13260. if (obj instanceof Date) {
  13261. clone = new Date(obj.getTime());
  13262. } else if (obj instanceof RegExp) {
  13263. clone = new RegExp(obj);
  13264. } else if (obj instanceof Map) {
  13265. clone = new Map(Array.from(obj, function (_ref) {
  13266. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13267. key = _ref2[0],
  13268. value = _ref2[1];
  13269. return [key, deepClone(value, cache)];
  13270. }));
  13271. } else if (obj instanceof Set) {
  13272. clone = new Set(Array.from(obj, function (value) {
  13273. return deepClone(value, cache);
  13274. }));
  13275. } else if (Array.isArray(obj)) {
  13276. clone = obj.map(function (value) {
  13277. return deepClone(value, cache);
  13278. });
  13279. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13280. clone = Object.create(Object.getPrototypeOf(obj));
  13281. cache.set(obj, clone);
  13282. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13283. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13284. key = _Object$entries$_i[0],
  13285. value = _Object$entries$_i[1];
  13286. clone[key] = deepClone(value, cache);
  13287. }
  13288. } else {
  13289. clone = Object.assign({}, obj);
  13290. }
  13291. cache.set(obj, clone);
  13292. return clone;
  13293. }
  13294. /**
  13295. * @description JS对象深度合并
  13296. * @param {object} target 需要拷贝的对象
  13297. * @param {object} source 拷贝的来源对象
  13298. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13299. */
  13300. function deepMerge() {
  13301. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13302. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13303. target = deepClone(target);
  13304. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13305. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13306. for (var prop in source) {
  13307. if (!source.hasOwnProperty(prop)) continue;
  13308. var sourceValue = source[prop];
  13309. var targetValue = merged[prop];
  13310. if (sourceValue instanceof Date) {
  13311. merged[prop] = new Date(sourceValue);
  13312. } else if (sourceValue instanceof RegExp) {
  13313. merged[prop] = new RegExp(sourceValue);
  13314. } else if (sourceValue instanceof Map) {
  13315. merged[prop] = new Map(sourceValue);
  13316. } else if (sourceValue instanceof Set) {
  13317. merged[prop] = new Set(sourceValue);
  13318. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13319. merged[prop] = deepMerge(targetValue, sourceValue);
  13320. } else {
  13321. merged[prop] = sourceValue;
  13322. }
  13323. }
  13324. return merged;
  13325. }
  13326. /**
  13327. * @description error提示
  13328. * @param {*} err 错误内容
  13329. */
  13330. function error(err) {
  13331. // 开发环境才提示,生产环境不会提示
  13332. if (true) {
  13333. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13334. }
  13335. }
  13336. /**
  13337. * @description 打乱数组
  13338. * @param {array} array 需要打乱的数组
  13339. * @returns {array} 打乱后的数组
  13340. */
  13341. function randomArray() {
  13342. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13343. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13344. return array.sort(function () {
  13345. return Math.random() - 0.5;
  13346. });
  13347. }
  13348. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13349. // 所以这里做一个兼容polyfill的兼容处理
  13350. if (!String.prototype.padStart) {
  13351. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13352. String.prototype.padStart = function (maxLength) {
  13353. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13354. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13355. throw new TypeError('fillString must be String');
  13356. }
  13357. var str = this;
  13358. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13359. if (str.length >= maxLength) return String(str);
  13360. var fillLength = maxLength - str.length;
  13361. var times = Math.ceil(fillLength / fillString.length);
  13362. while (times >>= 1) {
  13363. fillString += fillString;
  13364. if (times === 1) {
  13365. fillString += fillString;
  13366. }
  13367. }
  13368. return fillString.slice(0, fillLength) + str;
  13369. };
  13370. }
  13371. /**
  13372. * @description 格式化时间
  13373. * @param {String|Number} dateTime 需要格式化的时间戳
  13374. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13375. * @returns {string} 返回格式化后的字符串
  13376. */
  13377. function timeFormat() {
  13378. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13379. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13380. var date;
  13381. // 若传入时间为假值,则取当前时间
  13382. if (!dateTime) {
  13383. date = new Date();
  13384. }
  13385. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13386. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13387. date = new Date(dateTime * 1000);
  13388. }
  13389. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13390. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13391. date = new Date(Number(dateTime));
  13392. }
  13393. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13394. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13395. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13396. date = new Date(dateTime.replace(/-/g, '/'));
  13397. }
  13398. // 其他都认为符合 RFC 2822 规范
  13399. else {
  13400. date = new Date(dateTime);
  13401. }
  13402. var timeSource = {
  13403. 'y': date.getFullYear().toString(),
  13404. // 年
  13405. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13406. // 月
  13407. 'd': date.getDate().toString().padStart(2, '0'),
  13408. // 日
  13409. 'h': date.getHours().toString().padStart(2, '0'),
  13410. // 时
  13411. 'M': date.getMinutes().toString().padStart(2, '0'),
  13412. // 分
  13413. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13414. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13415. };
  13416. for (var key in timeSource) {
  13417. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13418. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13419. ret = _ref4[0];
  13420. if (ret) {
  13421. // 年可能只需展示两位
  13422. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13423. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13424. }
  13425. }
  13426. return formatStr;
  13427. }
  13428. /**
  13429. * @description 时间戳转为多久之前
  13430. * @param {String|Number} timestamp 时间戳
  13431. * @param {String|Boolean} format
  13432. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13433. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13434. * @returns {string} 转化后的内容
  13435. */
  13436. function timeFrom() {
  13437. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13438. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13439. if (timestamp == null) timestamp = Number(new Date());
  13440. timestamp = parseInt(timestamp);
  13441. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13442. if (timestamp.toString().length == 10) timestamp *= 1000;
  13443. var timer = new Date().getTime() - timestamp;
  13444. timer = parseInt(timer / 1000);
  13445. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13446. var tips = '';
  13447. switch (true) {
  13448. case timer < 300:
  13449. tips = '刚刚';
  13450. break;
  13451. case timer >= 300 && timer < 3600:
  13452. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13453. break;
  13454. case timer >= 3600 && timer < 86400:
  13455. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13456. break;
  13457. case timer >= 86400 && timer < 2592000:
  13458. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13459. break;
  13460. default:
  13461. // 如果format为false,则无论什么时间戳,都显示xx之前
  13462. if (format === false) {
  13463. if (timer >= 2592000 && timer < 365 * 86400) {
  13464. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13465. } else {
  13466. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13467. }
  13468. } else {
  13469. tips = timeFormat(timestamp, format);
  13470. }
  13471. }
  13472. return tips;
  13473. }
  13474. /**
  13475. * @description 去除空格
  13476. * @param String str 需要去除空格的字符串
  13477. * @param String pos both(左右)|left|right|all 默认both
  13478. */
  13479. function trim(str) {
  13480. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13481. str = String(str);
  13482. if (pos == 'both') {
  13483. return str.replace(/^\s+|\s+$/g, '');
  13484. }
  13485. if (pos == 'left') {
  13486. return str.replace(/^\s*/, '');
  13487. }
  13488. if (pos == 'right') {
  13489. return str.replace(/(\s*$)/g, '');
  13490. }
  13491. if (pos == 'all') {
  13492. return str.replace(/\s+/g, '');
  13493. }
  13494. return str;
  13495. }
  13496. /**
  13497. * @description 对象转url参数
  13498. * @param {object} data,对象
  13499. * @param {Boolean} isPrefix,是否自动加上"?"
  13500. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13501. */
  13502. function queryParams() {
  13503. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13504. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13505. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13506. var prefix = isPrefix ? '?' : '';
  13507. var _result = [];
  13508. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13509. var _loop = function _loop(key) {
  13510. var value = data[key];
  13511. // 去掉为空的参数
  13512. if (['', undefined, null].indexOf(value) >= 0) {
  13513. return "continue";
  13514. }
  13515. // 如果值为数组,另行处理
  13516. if (value.constructor === Array) {
  13517. // e.g. {ids: [1, 2, 3]}
  13518. switch (arrayFormat) {
  13519. case 'indices':
  13520. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13521. for (var i = 0; i < value.length; i++) {
  13522. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13523. }
  13524. break;
  13525. case 'brackets':
  13526. // 结果: ids[]=1&ids[]=2&ids[]=3
  13527. value.forEach(function (_value) {
  13528. _result.push("".concat(key, "[]=").concat(_value));
  13529. });
  13530. break;
  13531. case 'repeat':
  13532. // 结果: ids=1&ids=2&ids=3
  13533. value.forEach(function (_value) {
  13534. _result.push("".concat(key, "=").concat(_value));
  13535. });
  13536. break;
  13537. case 'comma':
  13538. // 结果: ids=1,2,3
  13539. var commaStr = '';
  13540. value.forEach(function (_value) {
  13541. commaStr += (commaStr ? ',' : '') + _value;
  13542. });
  13543. _result.push("".concat(key, "=").concat(commaStr));
  13544. break;
  13545. default:
  13546. value.forEach(function (_value) {
  13547. _result.push("".concat(key, "[]=").concat(_value));
  13548. });
  13549. }
  13550. } else {
  13551. _result.push("".concat(key, "=").concat(value));
  13552. }
  13553. };
  13554. for (var key in data) {
  13555. var _ret = _loop(key);
  13556. if (_ret === "continue") continue;
  13557. }
  13558. return _result.length ? prefix + _result.join('&') : '';
  13559. }
  13560. /**
  13561. * 显示消息提示框
  13562. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13563. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13564. */
  13565. function toast(title) {
  13566. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13567. uni.showToast({
  13568. title: String(title),
  13569. icon: 'none',
  13570. duration: duration
  13571. });
  13572. }
  13573. /**
  13574. * @description 根据主题type值,获取对应的图标
  13575. * @param {String} type 主题名称,primary|info|error|warning|success
  13576. * @param {boolean} fill 是否使用fill填充实体的图标
  13577. */
  13578. function type2icon() {
  13579. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13580. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13581. // 如果非预置值,默认为success
  13582. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13583. var iconName = '';
  13584. // 目前(2019-12-12),info和primary使用同一个图标
  13585. switch (type) {
  13586. case 'primary':
  13587. iconName = 'info-circle';
  13588. break;
  13589. case 'info':
  13590. iconName = 'info-circle';
  13591. break;
  13592. case 'error':
  13593. iconName = 'close-circle';
  13594. break;
  13595. case 'warning':
  13596. iconName = 'error-circle';
  13597. break;
  13598. case 'success':
  13599. iconName = 'checkmark-circle';
  13600. break;
  13601. default:
  13602. iconName = 'checkmark-circle';
  13603. }
  13604. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13605. if (fill) iconName += '-fill';
  13606. return iconName;
  13607. }
  13608. /**
  13609. * @description 数字格式化
  13610. * @param {number|string} number 要格式化的数字
  13611. * @param {number} decimals 保留几位小数
  13612. * @param {string} decimalPoint 小数点符号
  13613. * @param {string} thousandsSeparator 千分位符号
  13614. * @returns {string} 格式化后的数字
  13615. */
  13616. function priceFormat(number) {
  13617. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13618. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13619. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13620. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13621. var n = !isFinite(+number) ? 0 : +number;
  13622. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13623. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13624. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13625. var s = '';
  13626. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13627. var re = /(-?\d+)(\d{3})/;
  13628. while (re.test(s[0])) {
  13629. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13630. }
  13631. if ((s[1] || '').length < prec) {
  13632. s[1] = s[1] || '';
  13633. s[1] += new Array(prec - s[1].length + 1).join('0');
  13634. }
  13635. return s.join(dec);
  13636. }
  13637. /**
  13638. * @description 获取duration值
  13639. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13640. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13641. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13642. * @param {boolean} unit 提示: 如果是false 默认返回number
  13643. * @return {string|number}
  13644. */
  13645. function getDuration(value) {
  13646. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13647. var valueNum = parseInt(value);
  13648. if (unit) {
  13649. if (/s$/.test(value)) return value;
  13650. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13651. }
  13652. if (/ms$/.test(value)) return valueNum;
  13653. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13654. return valueNum;
  13655. }
  13656. /**
  13657. * @description 日期的月或日补零操作
  13658. * @param {String} value 需要补零的值
  13659. */
  13660. function padZero(value) {
  13661. return "00".concat(value).slice(-2);
  13662. }
  13663. /**
  13664. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13665. * @param {*} instance
  13666. * @param {*} event
  13667. */
  13668. function formValidate(instance, event) {
  13669. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13670. var form = uni.$u.$parent.call(instance, 'u-form');
  13671. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13672. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13673. if (formItem && form) {
  13674. form.validateField(formItem.prop, function () {}, event);
  13675. }
  13676. }
  13677. /**
  13678. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13679. * @param {object} obj 对象
  13680. * @param {string} key 需要获取的属性字段
  13681. * @returns {*}
  13682. */
  13683. function getProperty(obj, key) {
  13684. if (!obj) {
  13685. return;
  13686. }
  13687. if (typeof key !== 'string' || key === '') {
  13688. return '';
  13689. }
  13690. if (key.indexOf('.') !== -1) {
  13691. var keys = key.split('.');
  13692. var firstObj = obj[keys[0]] || {};
  13693. for (var i = 1; i < keys.length; i++) {
  13694. if (firstObj) {
  13695. firstObj = firstObj[keys[i]];
  13696. }
  13697. }
  13698. return firstObj;
  13699. }
  13700. return obj[key];
  13701. }
  13702. /**
  13703. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13704. * @param {object} obj 对象
  13705. * @param {string} key 需要设置的属性
  13706. * @param {string} value 设置的值
  13707. */
  13708. function setProperty(obj, key, value) {
  13709. if (!obj) {
  13710. return;
  13711. }
  13712. // 递归赋值
  13713. var inFn = function inFn(_obj, keys, v) {
  13714. // 最后一个属性key
  13715. if (keys.length === 1) {
  13716. _obj[keys[0]] = v;
  13717. return;
  13718. }
  13719. // 0~length-1个key
  13720. while (keys.length > 1) {
  13721. var k = keys[0];
  13722. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13723. _obj[k] = {};
  13724. }
  13725. var _key = keys.shift();
  13726. // 自调用判断是否存在属性,不存在则自动创建对象
  13727. inFn(_obj[k], keys, v);
  13728. }
  13729. };
  13730. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13731. // 支持多层级赋值操作
  13732. var keys = key.split('.');
  13733. inFn(obj, keys, value);
  13734. } else {
  13735. obj[key] = value;
  13736. }
  13737. }
  13738. /**
  13739. * @description 获取当前页面路径
  13740. */
  13741. function page() {
  13742. var _pages$route, _pages;
  13743. var pages = getCurrentPages();
  13744. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13745. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13746. }
  13747. /**
  13748. * @description 获取当前路由栈实例数组
  13749. */
  13750. function pages() {
  13751. var pages = getCurrentPages();
  13752. return pages;
  13753. }
  13754. /**
  13755. * 获取页面历史栈指定层实例
  13756. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13757. */
  13758. function getHistoryPage() {
  13759. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13760. var pages = getCurrentPages();
  13761. var len = pages.length;
  13762. return pages[len - 1 + back];
  13763. }
  13764. /**
  13765. * @description 修改uView内置属性值
  13766. * @param {object} props 修改内置props属性
  13767. * @param {object} config 修改内置config属性
  13768. * @param {object} color 修改内置color属性
  13769. * @param {object} zIndex 修改内置zIndex属性
  13770. */
  13771. function setConfig(_ref5) {
  13772. var _ref5$props = _ref5.props,
  13773. props = _ref5$props === void 0 ? {} : _ref5$props,
  13774. _ref5$config = _ref5.config,
  13775. config = _ref5$config === void 0 ? {} : _ref5$config,
  13776. _ref5$color = _ref5.color,
  13777. color = _ref5$color === void 0 ? {} : _ref5$color,
  13778. _ref5$zIndex = _ref5.zIndex,
  13779. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13780. var deepMerge = uni.$u.deepMerge;
  13781. uni.$u.config = deepMerge(uni.$u.config, config);
  13782. uni.$u.props = deepMerge(uni.$u.props, props);
  13783. uni.$u.color = deepMerge(uni.$u.color, color);
  13784. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13785. }
  13786. var _default = {
  13787. range: range,
  13788. getPx: getPx,
  13789. sleep: sleep,
  13790. os: os,
  13791. sys: sys,
  13792. random: random,
  13793. guid: guid,
  13794. $parent: $parent,
  13795. addStyle: addStyle,
  13796. addUnit: addUnit,
  13797. deepClone: deepClone,
  13798. deepMerge: deepMerge,
  13799. error: error,
  13800. randomArray: randomArray,
  13801. timeFormat: timeFormat,
  13802. timeFrom: timeFrom,
  13803. trim: trim,
  13804. queryParams: queryParams,
  13805. toast: toast,
  13806. type2icon: type2icon,
  13807. priceFormat: priceFormat,
  13808. getDuration: getDuration,
  13809. padZero: padZero,
  13810. formValidate: formValidate,
  13811. getProperty: getProperty,
  13812. setProperty: setProperty,
  13813. page: page,
  13814. pages: pages,
  13815. getHistoryPage: getHistoryPage,
  13816. setConfig: setConfig
  13817. };
  13818. exports.default = _default;
  13819. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13820. /***/ }),
  13821. /* 63 */
  13822. /*!***************************************************************************************!*\
  13823. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/function/digit.js ***!
  13824. \***************************************************************************************/
  13825. /*! no static exports found */
  13826. /***/ (function(module, exports, __webpack_require__) {
  13827. "use strict";
  13828. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13829. Object.defineProperty(exports, "__esModule", {
  13830. value: true
  13831. });
  13832. exports.default = void 0;
  13833. exports.divide = divide;
  13834. exports.enableBoundaryChecking = enableBoundaryChecking;
  13835. exports.minus = minus;
  13836. exports.plus = plus;
  13837. exports.round = round;
  13838. exports.times = times;
  13839. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  13840. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13841. /**
  13842. * 把错误的数据转正
  13843. * @private
  13844. * @example strip(0.09999999999999998)=0.1
  13845. */
  13846. function strip(num) {
  13847. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13848. return +parseFloat(Number(num).toPrecision(precision));
  13849. }
  13850. /**
  13851. * Return digits length of a number
  13852. * @private
  13853. * @param {*number} num Input number
  13854. */
  13855. function digitLength(num) {
  13856. // Get digit length of e
  13857. var eSplit = num.toString().split(/[eE]/);
  13858. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13859. return len > 0 ? len : 0;
  13860. }
  13861. /**
  13862. * 把小数转成整数,如果是小数则放大成整数
  13863. * @private
  13864. * @param {*number} num 输入数
  13865. */
  13866. function float2Fixed(num) {
  13867. if (num.toString().indexOf('e') === -1) {
  13868. return Number(num.toString().replace('.', ''));
  13869. }
  13870. var dLen = digitLength(num);
  13871. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13872. }
  13873. /**
  13874. * 检测数字是否越界,如果越界给出提示
  13875. * @private
  13876. * @param {*number} num 输入数
  13877. */
  13878. function checkBoundary(num) {
  13879. if (_boundaryCheckingState) {
  13880. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13881. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13882. }
  13883. }
  13884. }
  13885. /**
  13886. * 把递归操作扁平迭代化
  13887. * @param {number[]} arr 要操作的数字数组
  13888. * @param {function} operation 迭代操作
  13889. * @private
  13890. */
  13891. function iteratorOperation(arr, operation) {
  13892. var _arr = (0, _toArray2.default)(arr),
  13893. num1 = _arr[0],
  13894. num2 = _arr[1],
  13895. others = _arr.slice(2);
  13896. var res = operation(num1, num2);
  13897. others.forEach(function (num) {
  13898. res = operation(res, num);
  13899. });
  13900. return res;
  13901. }
  13902. /**
  13903. * 高精度乘法
  13904. * @export
  13905. */
  13906. function times() {
  13907. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13908. nums[_key] = arguments[_key];
  13909. }
  13910. if (nums.length > 2) {
  13911. return iteratorOperation(nums, times);
  13912. }
  13913. var num1 = nums[0],
  13914. num2 = nums[1];
  13915. var num1Changed = float2Fixed(num1);
  13916. var num2Changed = float2Fixed(num2);
  13917. var baseNum = digitLength(num1) + digitLength(num2);
  13918. var leftValue = num1Changed * num2Changed;
  13919. checkBoundary(leftValue);
  13920. return leftValue / Math.pow(10, baseNum);
  13921. }
  13922. /**
  13923. * 高精度加法
  13924. * @export
  13925. */
  13926. function plus() {
  13927. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  13928. nums[_key2] = arguments[_key2];
  13929. }
  13930. if (nums.length > 2) {
  13931. return iteratorOperation(nums, plus);
  13932. }
  13933. var num1 = nums[0],
  13934. num2 = nums[1];
  13935. // 取最大的小数位
  13936. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13937. // 把小数都转为整数然后再计算
  13938. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13939. }
  13940. /**
  13941. * 高精度减法
  13942. * @export
  13943. */
  13944. function minus() {
  13945. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  13946. nums[_key3] = arguments[_key3];
  13947. }
  13948. if (nums.length > 2) {
  13949. return iteratorOperation(nums, minus);
  13950. }
  13951. var num1 = nums[0],
  13952. num2 = nums[1];
  13953. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13954. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13955. }
  13956. /**
  13957. * 高精度除法
  13958. * @export
  13959. */
  13960. function divide() {
  13961. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  13962. nums[_key4] = arguments[_key4];
  13963. }
  13964. if (nums.length > 2) {
  13965. return iteratorOperation(nums, divide);
  13966. }
  13967. var num1 = nums[0],
  13968. num2 = nums[1];
  13969. var num1Changed = float2Fixed(num1);
  13970. var num2Changed = float2Fixed(num2);
  13971. checkBoundary(num1Changed);
  13972. checkBoundary(num2Changed);
  13973. // 重要,这里必须用strip进行修正
  13974. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13975. }
  13976. /**
  13977. * 四舍五入
  13978. * @export
  13979. */
  13980. function round(num, ratio) {
  13981. var base = Math.pow(10, ratio);
  13982. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13983. if (num < 0 && result !== 0) {
  13984. result = times(result, -1);
  13985. }
  13986. // 位数不足则补0
  13987. return result;
  13988. }
  13989. /**
  13990. * 是否进行边界检查,默认开启
  13991. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13992. * @export
  13993. */
  13994. function enableBoundaryChecking() {
  13995. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  13996. _boundaryCheckingState = flag;
  13997. }
  13998. var _default = {
  13999. times: times,
  14000. plus: plus,
  14001. minus: minus,
  14002. divide: divide,
  14003. round: round,
  14004. enableBoundaryChecking: enableBoundaryChecking
  14005. };
  14006. exports.default = _default;
  14007. /***/ }),
  14008. /* 64 */
  14009. /*!********************************************************!*\
  14010. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14011. \********************************************************/
  14012. /*! no static exports found */
  14013. /***/ (function(module, exports, __webpack_require__) {
  14014. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14015. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14016. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14017. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14018. function _toArray(arr) {
  14019. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14020. }
  14021. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14022. /***/ }),
  14023. /* 65 */
  14024. /*!**************************************************************************************!*\
  14025. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/config.js ***!
  14026. \**************************************************************************************/
  14027. /*! no static exports found */
  14028. /***/ (function(module, exports, __webpack_require__) {
  14029. "use strict";
  14030. Object.defineProperty(exports, "__esModule", {
  14031. value: true
  14032. });
  14033. exports.default = void 0;
  14034. // 此版本发布于2024-03-17
  14035. var version = '2.0.37';
  14036. // 开发环境才提示,生产环境不会提示
  14037. if (true) {
  14038. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14039. }
  14040. var _default = {
  14041. v: version,
  14042. version: version,
  14043. // 主题名称
  14044. type: ['primary', 'success', 'info', 'error', 'warning'],
  14045. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14046. color: {
  14047. 'u-primary': '#2979ff',
  14048. 'u-warning': '#ff9900',
  14049. 'u-success': '#19be6b',
  14050. 'u-error': '#fa3534',
  14051. 'u-info': '#909399',
  14052. 'u-main-color': '#303133',
  14053. 'u-content-color': '#606266',
  14054. 'u-tips-color': '#909399',
  14055. 'u-light-color': '#c0c4cc'
  14056. },
  14057. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14058. unit: 'px'
  14059. };
  14060. exports.default = _default;
  14061. /***/ }),
  14062. /* 66 */
  14063. /*!*************************************************************************************!*\
  14064. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props.js ***!
  14065. \*************************************************************************************/
  14066. /*! no static exports found */
  14067. /***/ (function(module, exports, __webpack_require__) {
  14068. "use strict";
  14069. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14070. Object.defineProperty(exports, "__esModule", {
  14071. value: true
  14072. });
  14073. exports.default = void 0;
  14074. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14075. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 65));
  14076. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 67));
  14077. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 68));
  14078. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 69));
  14079. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 70));
  14080. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 71));
  14081. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 72));
  14082. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 73));
  14083. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 74));
  14084. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 75));
  14085. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 76));
  14086. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 77));
  14087. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 78));
  14088. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 79));
  14089. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 80));
  14090. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 81));
  14091. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 82));
  14092. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 83));
  14093. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 84));
  14094. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 85));
  14095. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 86));
  14096. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 87));
  14097. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 88));
  14098. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 89));
  14099. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 90));
  14100. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 91));
  14101. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 92));
  14102. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 93));
  14103. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 94));
  14104. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 95));
  14105. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 96));
  14106. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 97));
  14107. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 98));
  14108. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 99));
  14109. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 100));
  14110. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 101));
  14111. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 102));
  14112. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 103));
  14113. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 104));
  14114. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 105));
  14115. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 106));
  14116. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 107));
  14117. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 108));
  14118. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 109));
  14119. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 110));
  14120. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 111));
  14121. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 112));
  14122. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 113));
  14123. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 115));
  14124. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 116));
  14125. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 117));
  14126. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 118));
  14127. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 119));
  14128. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 120));
  14129. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 121));
  14130. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 122));
  14131. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 123));
  14132. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 124));
  14133. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 125));
  14134. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 126));
  14135. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 127));
  14136. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 128));
  14137. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 129));
  14138. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 130));
  14139. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 131));
  14140. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 132));
  14141. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 133));
  14142. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 134));
  14143. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 135));
  14144. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 136));
  14145. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 137));
  14146. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 138));
  14147. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 139));
  14148. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 140));
  14149. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 141));
  14150. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 142));
  14151. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 143));
  14152. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 144));
  14153. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 145));
  14154. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 146));
  14155. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 147));
  14156. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 148));
  14157. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 149));
  14158. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 150));
  14159. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 151));
  14160. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 152));
  14161. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 153));
  14162. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 154));
  14163. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 155));
  14164. 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; }
  14165. 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; }
  14166. var color = _config.default.color;
  14167. 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);
  14168. exports.default = _default;
  14169. /***/ }),
  14170. /* 67 */
  14171. /*!*************************************************************************************************!*\
  14172. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14173. \*************************************************************************************************/
  14174. /*! no static exports found */
  14175. /***/ (function(module, exports, __webpack_require__) {
  14176. "use strict";
  14177. Object.defineProperty(exports, "__esModule", {
  14178. value: true
  14179. });
  14180. exports.default = void 0;
  14181. /*
  14182. * @Author : LQ
  14183. * @Description :
  14184. * @version : 1.0
  14185. * @Date : 2021-08-20 16:44:21
  14186. * @LastAuthor : LQ
  14187. * @lastTime : 2021-08-20 16:44:35
  14188. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14189. */
  14190. var _default = {
  14191. // action-sheet组件
  14192. actionSheet: {
  14193. show: false,
  14194. title: '',
  14195. description: '',
  14196. actions: function actions() {
  14197. return [];
  14198. },
  14199. index: '',
  14200. cancelText: '',
  14201. closeOnClickAction: true,
  14202. safeAreaInsetBottom: true,
  14203. openType: '',
  14204. closeOnClickOverlay: true,
  14205. round: 0
  14206. }
  14207. };
  14208. exports.default = _default;
  14209. /***/ }),
  14210. /* 68 */
  14211. /*!*******************************************************************************************!*\
  14212. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/album.js ***!
  14213. \*******************************************************************************************/
  14214. /*! no static exports found */
  14215. /***/ (function(module, exports, __webpack_require__) {
  14216. "use strict";
  14217. Object.defineProperty(exports, "__esModule", {
  14218. value: true
  14219. });
  14220. exports.default = void 0;
  14221. /*
  14222. * @Author : LQ
  14223. * @Description :
  14224. * @version : 1.0
  14225. * @Date : 2021-08-20 16:44:21
  14226. * @LastAuthor : LQ
  14227. * @lastTime : 2021-08-20 16:47:24
  14228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14229. */
  14230. var _default = {
  14231. // album 组件
  14232. album: {
  14233. urls: function urls() {
  14234. return [];
  14235. },
  14236. keyName: '',
  14237. singleSize: 180,
  14238. multipleSize: 70,
  14239. space: 6,
  14240. singleMode: 'scaleToFill',
  14241. multipleMode: 'aspectFill',
  14242. maxCount: 9,
  14243. previewFullImage: true,
  14244. rowCount: 3,
  14245. showMore: true
  14246. }
  14247. };
  14248. exports.default = _default;
  14249. /***/ }),
  14250. /* 69 */
  14251. /*!*******************************************************************************************!*\
  14252. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14253. \*******************************************************************************************/
  14254. /*! no static exports found */
  14255. /***/ (function(module, exports, __webpack_require__) {
  14256. "use strict";
  14257. Object.defineProperty(exports, "__esModule", {
  14258. value: true
  14259. });
  14260. exports.default = void 0;
  14261. /*
  14262. * @Author : LQ
  14263. * @Description :
  14264. * @version : 1.0
  14265. * @Date : 2021-08-20 16:44:21
  14266. * @LastAuthor : LQ
  14267. * @lastTime : 2021-08-20 16:48:53
  14268. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14269. */
  14270. var _default = {
  14271. // alert警告组件
  14272. alert: {
  14273. title: '',
  14274. type: 'warning',
  14275. description: '',
  14276. closable: false,
  14277. showIcon: false,
  14278. effect: 'light',
  14279. center: false,
  14280. fontSize: 14
  14281. }
  14282. };
  14283. exports.default = _default;
  14284. /***/ }),
  14285. /* 70 */
  14286. /*!********************************************************************************************!*\
  14287. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14288. \********************************************************************************************/
  14289. /*! no static exports found */
  14290. /***/ (function(module, exports, __webpack_require__) {
  14291. "use strict";
  14292. Object.defineProperty(exports, "__esModule", {
  14293. value: true
  14294. });
  14295. exports.default = void 0;
  14296. /*
  14297. * @Author : LQ
  14298. * @Description :
  14299. * @version : 1.0
  14300. * @Date : 2021-08-20 16:44:21
  14301. * @LastAuthor : LQ
  14302. * @lastTime : 2021-08-20 16:49:22
  14303. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14304. */
  14305. var _default = {
  14306. // avatar 组件
  14307. avatar: {
  14308. src: '',
  14309. shape: 'circle',
  14310. size: 40,
  14311. mode: 'scaleToFill',
  14312. text: '',
  14313. bgColor: '#c0c4cc',
  14314. color: '#ffffff',
  14315. fontSize: 18,
  14316. icon: '',
  14317. mpAvatar: false,
  14318. randomBgColor: false,
  14319. defaultUrl: '',
  14320. colorIndex: '',
  14321. name: ''
  14322. }
  14323. };
  14324. exports.default = _default;
  14325. /***/ }),
  14326. /* 71 */
  14327. /*!*************************************************************************************************!*\
  14328. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14329. \*************************************************************************************************/
  14330. /*! no static exports found */
  14331. /***/ (function(module, exports, __webpack_require__) {
  14332. "use strict";
  14333. Object.defineProperty(exports, "__esModule", {
  14334. value: true
  14335. });
  14336. exports.default = void 0;
  14337. /*
  14338. * @Author : LQ
  14339. * @Description :
  14340. * @version : 1.0
  14341. * @Date : 2021-08-20 16:44:21
  14342. * @LastAuthor : LQ
  14343. * @lastTime : 2021-08-20 16:49:55
  14344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14345. */
  14346. var _default = {
  14347. // avatarGroup 组件
  14348. avatarGroup: {
  14349. urls: function urls() {
  14350. return [];
  14351. },
  14352. maxCount: 5,
  14353. shape: 'circle',
  14354. mode: 'scaleToFill',
  14355. showMore: true,
  14356. size: 40,
  14357. keyName: '',
  14358. gap: 0.5,
  14359. extraValue: 0
  14360. }
  14361. };
  14362. exports.default = _default;
  14363. /***/ }),
  14364. /* 72 */
  14365. /*!*********************************************************************************************!*\
  14366. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/backtop.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:50:18
  14382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14383. */
  14384. var _default = {
  14385. // backtop组件
  14386. backtop: {
  14387. mode: 'circle',
  14388. icon: 'arrow-upward',
  14389. text: '',
  14390. duration: 100,
  14391. scrollTop: 0,
  14392. top: 400,
  14393. bottom: 100,
  14394. right: 20,
  14395. zIndex: 9,
  14396. iconStyle: function iconStyle() {
  14397. return {
  14398. color: '#909399',
  14399. fontSize: '19px'
  14400. };
  14401. }
  14402. }
  14403. };
  14404. exports.default = _default;
  14405. /***/ }),
  14406. /* 73 */
  14407. /*!*******************************************************************************************!*\
  14408. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/badge.js ***!
  14409. \*******************************************************************************************/
  14410. /*! no static exports found */
  14411. /***/ (function(module, exports, __webpack_require__) {
  14412. "use strict";
  14413. Object.defineProperty(exports, "__esModule", {
  14414. value: true
  14415. });
  14416. exports.default = void 0;
  14417. /*
  14418. * @Author : LQ
  14419. * @Description :
  14420. * @version : 1.0
  14421. * @Date : 2021-08-20 16:44:21
  14422. * @LastAuthor : LQ
  14423. * @lastTime : 2021-08-23 19:51:50
  14424. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14425. */
  14426. var _default = {
  14427. // 徽标数组件
  14428. badge: {
  14429. isDot: false,
  14430. value: '',
  14431. show: true,
  14432. max: 999,
  14433. type: 'error',
  14434. showZero: false,
  14435. bgColor: null,
  14436. color: null,
  14437. shape: 'circle',
  14438. numberType: 'overflow',
  14439. offset: function offset() {
  14440. return [];
  14441. },
  14442. inverted: false,
  14443. absolute: false
  14444. }
  14445. };
  14446. exports.default = _default;
  14447. /***/ }),
  14448. /* 74 */
  14449. /*!********************************************************************************************!*\
  14450. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/button.js ***!
  14451. \********************************************************************************************/
  14452. /*! no static exports found */
  14453. /***/ (function(module, exports, __webpack_require__) {
  14454. "use strict";
  14455. Object.defineProperty(exports, "__esModule", {
  14456. value: true
  14457. });
  14458. exports.default = void 0;
  14459. /*
  14460. * @Author : LQ
  14461. * @Description :
  14462. * @version : 1.0
  14463. * @Date : 2021-08-20 16:44:21
  14464. * @LastAuthor : LQ
  14465. * @lastTime : 2021-08-20 16:51:27
  14466. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14467. */
  14468. var _default = {
  14469. // button组件
  14470. button: {
  14471. hairline: false,
  14472. type: 'info',
  14473. size: 'normal',
  14474. shape: 'square',
  14475. plain: false,
  14476. disabled: false,
  14477. loading: false,
  14478. loadingText: '',
  14479. loadingMode: 'spinner',
  14480. loadingSize: 15,
  14481. openType: '',
  14482. formType: '',
  14483. appParameter: '',
  14484. hoverStopPropagation: true,
  14485. lang: 'en',
  14486. sessionFrom: '',
  14487. sendMessageTitle: '',
  14488. sendMessagePath: '',
  14489. sendMessageImg: '',
  14490. showMessageCard: false,
  14491. dataName: '',
  14492. throttleTime: 0,
  14493. hoverStartTime: 0,
  14494. hoverStayTime: 200,
  14495. text: '',
  14496. icon: '',
  14497. iconColor: '',
  14498. color: ''
  14499. }
  14500. };
  14501. exports.default = _default;
  14502. /***/ }),
  14503. /* 75 */
  14504. /*!**********************************************************************************************!*\
  14505. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  14506. \**********************************************************************************************/
  14507. /*! no static exports found */
  14508. /***/ (function(module, exports, __webpack_require__) {
  14509. "use strict";
  14510. Object.defineProperty(exports, "__esModule", {
  14511. value: true
  14512. });
  14513. exports.default = void 0;
  14514. /*
  14515. * @Author : LQ
  14516. * @Description :
  14517. * @version : 1.0
  14518. * @Date : 2021-08-20 16:44:21
  14519. * @LastAuthor : LQ
  14520. * @lastTime : 2021-08-20 16:52:43
  14521. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14522. */
  14523. var _default = {
  14524. // calendar 组件
  14525. calendar: {
  14526. title: '日期选择',
  14527. showTitle: true,
  14528. showSubtitle: true,
  14529. mode: 'single',
  14530. startText: '开始',
  14531. endText: '结束',
  14532. customList: function customList() {
  14533. return [];
  14534. },
  14535. color: '#3c9cff',
  14536. minDate: 0,
  14537. maxDate: 0,
  14538. defaultDate: null,
  14539. maxCount: Number.MAX_SAFE_INTEGER,
  14540. // Infinity
  14541. rowHeight: 56,
  14542. formatter: null,
  14543. showLunar: false,
  14544. showMark: true,
  14545. confirmText: '确定',
  14546. confirmDisabledText: '确定',
  14547. show: false,
  14548. closeOnClickOverlay: false,
  14549. readonly: false,
  14550. showConfirm: true,
  14551. maxRange: Number.MAX_SAFE_INTEGER,
  14552. // Infinity
  14553. rangePrompt: '',
  14554. showRangePrompt: true,
  14555. allowSameDay: false,
  14556. round: 0,
  14557. monthNum: 3
  14558. }
  14559. };
  14560. exports.default = _default;
  14561. /***/ }),
  14562. /* 76 */
  14563. /*!*************************************************************************************************!*\
  14564. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14565. \*************************************************************************************************/
  14566. /*! no static exports found */
  14567. /***/ (function(module, exports, __webpack_require__) {
  14568. "use strict";
  14569. Object.defineProperty(exports, "__esModule", {
  14570. value: true
  14571. });
  14572. exports.default = void 0;
  14573. /*
  14574. * @Author : LQ
  14575. * @Description :
  14576. * @version : 1.0
  14577. * @Date : 2021-08-20 16:44:21
  14578. * @LastAuthor : LQ
  14579. * @lastTime : 2021-08-20 16:53:20
  14580. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14581. */
  14582. var _default = {
  14583. // 车牌号键盘
  14584. carKeyboard: {
  14585. random: false
  14586. }
  14587. };
  14588. exports.default = _default;
  14589. /***/ }),
  14590. /* 77 */
  14591. /*!******************************************************************************************!*\
  14592. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14593. \******************************************************************************************/
  14594. /*! no static exports found */
  14595. /***/ (function(module, exports, __webpack_require__) {
  14596. "use strict";
  14597. Object.defineProperty(exports, "__esModule", {
  14598. value: true
  14599. });
  14600. exports.default = void 0;
  14601. /*
  14602. * @Author : LQ
  14603. * @Description :
  14604. * @version : 1.0
  14605. * @Date : 2021-08-20 16:44:21
  14606. * @LastAuthor : LQ
  14607. * @lastTime : 2021-08-23 20:53:09
  14608. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14609. */
  14610. var _default = {
  14611. // cell组件的props
  14612. cell: {
  14613. customClass: '',
  14614. title: '',
  14615. label: '',
  14616. value: '',
  14617. icon: '',
  14618. disabled: false,
  14619. border: true,
  14620. center: false,
  14621. url: '',
  14622. linkType: 'navigateTo',
  14623. clickable: false,
  14624. isLink: false,
  14625. required: false,
  14626. arrowDirection: '',
  14627. iconStyle: {},
  14628. rightIconStyle: {},
  14629. rightIcon: 'arrow-right',
  14630. titleStyle: {},
  14631. size: '',
  14632. stop: true,
  14633. name: ''
  14634. }
  14635. };
  14636. exports.default = _default;
  14637. /***/ }),
  14638. /* 78 */
  14639. /*!***********************************************************************************************!*\
  14640. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14641. \***********************************************************************************************/
  14642. /*! no static exports found */
  14643. /***/ (function(module, exports, __webpack_require__) {
  14644. "use strict";
  14645. Object.defineProperty(exports, "__esModule", {
  14646. value: true
  14647. });
  14648. exports.default = void 0;
  14649. /*
  14650. * @Author : LQ
  14651. * @Description :
  14652. * @version : 1.0
  14653. * @Date : 2021-08-20 16:44:21
  14654. * @LastAuthor : LQ
  14655. * @lastTime : 2021-08-20 16:54:16
  14656. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14657. */
  14658. var _default = {
  14659. // cell-group组件的props
  14660. cellGroup: {
  14661. title: '',
  14662. border: true,
  14663. customStyle: {}
  14664. }
  14665. };
  14666. exports.default = _default;
  14667. /***/ }),
  14668. /* 79 */
  14669. /*!**********************************************************************************************!*\
  14670. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  14671. \**********************************************************************************************/
  14672. /*! no static exports found */
  14673. /***/ (function(module, exports, __webpack_require__) {
  14674. "use strict";
  14675. Object.defineProperty(exports, "__esModule", {
  14676. value: true
  14677. });
  14678. exports.default = void 0;
  14679. /*
  14680. * @Author : LQ
  14681. * @Description :
  14682. * @version : 1.0
  14683. * @Date : 2021-08-20 16:44:21
  14684. * @LastAuthor : LQ
  14685. * @lastTime : 2021-08-23 21:06:59
  14686. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14687. */
  14688. var _default = {
  14689. // checkbox组件
  14690. checkbox: {
  14691. name: '',
  14692. shape: '',
  14693. size: '',
  14694. checkbox: false,
  14695. disabled: '',
  14696. activeColor: '',
  14697. inactiveColor: '',
  14698. iconSize: '',
  14699. iconColor: '',
  14700. label: '',
  14701. labelSize: '',
  14702. labelColor: '',
  14703. labelDisabled: ''
  14704. }
  14705. };
  14706. exports.default = _default;
  14707. /***/ }),
  14708. /* 80 */
  14709. /*!***************************************************************************************************!*\
  14710. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14711. \***************************************************************************************************/
  14712. /*! no static exports found */
  14713. /***/ (function(module, exports, __webpack_require__) {
  14714. "use strict";
  14715. Object.defineProperty(exports, "__esModule", {
  14716. value: true
  14717. });
  14718. exports.default = void 0;
  14719. /*
  14720. * @Author : LQ
  14721. * @Description :
  14722. * @version : 1.0
  14723. * @Date : 2021-08-20 16:44:21
  14724. * @LastAuthor : LQ
  14725. * @lastTime : 2021-08-20 16:54:47
  14726. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14727. */
  14728. var _default = {
  14729. // checkbox-group组件
  14730. checkboxGroup: {
  14731. name: '',
  14732. value: function value() {
  14733. return [];
  14734. },
  14735. shape: 'square',
  14736. disabled: false,
  14737. activeColor: '#2979ff',
  14738. inactiveColor: '#c8c9cc',
  14739. size: 18,
  14740. placement: 'row',
  14741. labelSize: 14,
  14742. labelColor: '#303133',
  14743. labelDisabled: false,
  14744. iconColor: '#ffffff',
  14745. iconSize: 12,
  14746. iconPlacement: 'left',
  14747. borderBottom: false
  14748. }
  14749. };
  14750. exports.default = _default;
  14751. /***/ }),
  14752. /* 81 */
  14753. /*!****************************************************************************************************!*\
  14754. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14755. \****************************************************************************************************/
  14756. /*! no static exports found */
  14757. /***/ (function(module, exports, __webpack_require__) {
  14758. "use strict";
  14759. Object.defineProperty(exports, "__esModule", {
  14760. value: true
  14761. });
  14762. exports.default = void 0;
  14763. /*
  14764. * @Author : LQ
  14765. * @Description :
  14766. * @version : 1.0
  14767. * @Date : 2021-08-20 16:44:21
  14768. * @LastAuthor : LQ
  14769. * @lastTime : 2021-08-20 16:55:02
  14770. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14771. */
  14772. var _default = {
  14773. // circleProgress 组件
  14774. circleProgress: {
  14775. percentage: 30
  14776. }
  14777. };
  14778. exports.default = _default;
  14779. /***/ }),
  14780. /* 82 */
  14781. /*!******************************************************************************************!*\
  14782. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/code.js ***!
  14783. \******************************************************************************************/
  14784. /*! no static exports found */
  14785. /***/ (function(module, exports, __webpack_require__) {
  14786. "use strict";
  14787. Object.defineProperty(exports, "__esModule", {
  14788. value: true
  14789. });
  14790. exports.default = void 0;
  14791. /*
  14792. * @Author : LQ
  14793. * @Description :
  14794. * @version : 1.0
  14795. * @Date : 2021-08-20 16:44:21
  14796. * @LastAuthor : LQ
  14797. * @lastTime : 2021-08-20 16:55:27
  14798. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14799. */
  14800. var _default = {
  14801. // code 组件
  14802. code: {
  14803. seconds: 60,
  14804. startText: '获取验证码',
  14805. changeText: 'X秒重新获取',
  14806. endText: '重新获取',
  14807. keepRunning: false,
  14808. uniqueKey: ''
  14809. }
  14810. };
  14811. exports.default = _default;
  14812. /***/ }),
  14813. /* 83 */
  14814. /*!***********************************************************************************************!*\
  14815. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  14816. \***********************************************************************************************/
  14817. /*! no static exports found */
  14818. /***/ (function(module, exports, __webpack_require__) {
  14819. "use strict";
  14820. Object.defineProperty(exports, "__esModule", {
  14821. value: true
  14822. });
  14823. exports.default = void 0;
  14824. /*
  14825. * @Author : LQ
  14826. * @Description :
  14827. * @version : 1.0
  14828. * @Date : 2021-08-20 16:44:21
  14829. * @LastAuthor : LQ
  14830. * @lastTime : 2021-08-20 16:55:58
  14831. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14832. */
  14833. var _default = {
  14834. // codeInput 组件
  14835. codeInput: {
  14836. adjustPosition: true,
  14837. maxlength: 6,
  14838. dot: false,
  14839. mode: 'box',
  14840. hairline: false,
  14841. space: 10,
  14842. value: '',
  14843. focus: false,
  14844. bold: false,
  14845. color: '#606266',
  14846. fontSize: 18,
  14847. size: 35,
  14848. disabledKeyboard: false,
  14849. borderColor: '#c9cacc',
  14850. disabledDot: true
  14851. }
  14852. };
  14853. exports.default = _default;
  14854. /***/ }),
  14855. /* 84 */
  14856. /*!*****************************************************************************************!*\
  14857. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/col.js ***!
  14858. \*****************************************************************************************/
  14859. /*! no static exports found */
  14860. /***/ (function(module, exports, __webpack_require__) {
  14861. "use strict";
  14862. Object.defineProperty(exports, "__esModule", {
  14863. value: true
  14864. });
  14865. exports.default = void 0;
  14866. /*
  14867. * @Author : LQ
  14868. * @Description :
  14869. * @version : 1.0
  14870. * @Date : 2021-08-20 16:44:21
  14871. * @LastAuthor : LQ
  14872. * @lastTime : 2021-08-20 16:56:12
  14873. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14874. */
  14875. var _default = {
  14876. // col 组件
  14877. col: {
  14878. span: 12,
  14879. offset: 0,
  14880. justify: 'start',
  14881. align: 'stretch',
  14882. textAlign: 'left'
  14883. }
  14884. };
  14885. exports.default = _default;
  14886. /***/ }),
  14887. /* 85 */
  14888. /*!**********************************************************************************************!*\
  14889. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  14890. \**********************************************************************************************/
  14891. /*! no static exports found */
  14892. /***/ (function(module, exports, __webpack_require__) {
  14893. "use strict";
  14894. Object.defineProperty(exports, "__esModule", {
  14895. value: true
  14896. });
  14897. exports.default = void 0;
  14898. /*
  14899. * @Author : LQ
  14900. * @Description :
  14901. * @version : 1.0
  14902. * @Date : 2021-08-20 16:44:21
  14903. * @LastAuthor : LQ
  14904. * @lastTime : 2021-08-20 16:56:30
  14905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14906. */
  14907. var _default = {
  14908. // collapse 组件
  14909. collapse: {
  14910. value: null,
  14911. accordion: false,
  14912. border: true
  14913. }
  14914. };
  14915. exports.default = _default;
  14916. /***/ }),
  14917. /* 86 */
  14918. /*!**************************************************************************************************!*\
  14919. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  14920. \**************************************************************************************************/
  14921. /*! no static exports found */
  14922. /***/ (function(module, exports, __webpack_require__) {
  14923. "use strict";
  14924. Object.defineProperty(exports, "__esModule", {
  14925. value: true
  14926. });
  14927. exports.default = void 0;
  14928. /*
  14929. * @Author : LQ
  14930. * @Description :
  14931. * @version : 1.0
  14932. * @Date : 2021-08-20 16:44:21
  14933. * @LastAuthor : LQ
  14934. * @lastTime : 2021-08-20 16:56:42
  14935. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  14936. */
  14937. var _default = {
  14938. // collapseItem 组件
  14939. collapseItem: {
  14940. title: '',
  14941. value: '',
  14942. label: '',
  14943. disabled: false,
  14944. isLink: true,
  14945. clickable: true,
  14946. border: true,
  14947. align: 'left',
  14948. name: '',
  14949. icon: '',
  14950. duration: 300
  14951. }
  14952. };
  14953. exports.default = _default;
  14954. /***/ }),
  14955. /* 87 */
  14956. /*!**************************************************************************************************!*\
  14957. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  14958. \**************************************************************************************************/
  14959. /*! no static exports found */
  14960. /***/ (function(module, exports, __webpack_require__) {
  14961. "use strict";
  14962. Object.defineProperty(exports, "__esModule", {
  14963. value: true
  14964. });
  14965. exports.default = void 0;
  14966. /*
  14967. * @Author : LQ
  14968. * @Description :
  14969. * @version : 1.0
  14970. * @Date : 2021-08-20 16:44:21
  14971. * @LastAuthor : LQ
  14972. * @lastTime : 2021-08-20 16:57:16
  14973. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14974. */
  14975. var _default = {
  14976. // columnNotice 组件
  14977. columnNotice: {
  14978. text: '',
  14979. icon: 'volume',
  14980. mode: '',
  14981. color: '#f9ae3d',
  14982. bgColor: '#fdf6ec',
  14983. fontSize: 14,
  14984. speed: 80,
  14985. step: false,
  14986. duration: 1500,
  14987. disableTouch: true
  14988. }
  14989. };
  14990. exports.default = _default;
  14991. /***/ }),
  14992. /* 88 */
  14993. /*!***********************************************************************************************!*\
  14994. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  14995. \***********************************************************************************************/
  14996. /*! no static exports found */
  14997. /***/ (function(module, exports, __webpack_require__) {
  14998. "use strict";
  14999. Object.defineProperty(exports, "__esModule", {
  15000. value: true
  15001. });
  15002. exports.default = void 0;
  15003. /*
  15004. * @Author : LQ
  15005. * @Description :
  15006. * @version : 1.0
  15007. * @Date : 2021-08-20 16:44:21
  15008. * @LastAuthor : LQ
  15009. * @lastTime : 2021-08-20 17:11:29
  15010. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15011. */
  15012. var _default = {
  15013. // u-count-down 计时器组件
  15014. countDown: {
  15015. time: 0,
  15016. format: 'HH:mm:ss',
  15017. autoStart: true,
  15018. millisecond: false
  15019. }
  15020. };
  15021. exports.default = _default;
  15022. /***/ }),
  15023. /* 89 */
  15024. /*!*********************************************************************************************!*\
  15025. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15026. \*********************************************************************************************/
  15027. /*! no static exports found */
  15028. /***/ (function(module, exports, __webpack_require__) {
  15029. "use strict";
  15030. Object.defineProperty(exports, "__esModule", {
  15031. value: true
  15032. });
  15033. exports.default = void 0;
  15034. /*
  15035. * @Author : LQ
  15036. * @Description :
  15037. * @version : 1.0
  15038. * @Date : 2021-08-20 16:44:21
  15039. * @LastAuthor : LQ
  15040. * @lastTime : 2021-08-20 16:57:32
  15041. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15042. */
  15043. var _default = {
  15044. // countTo 组件
  15045. countTo: {
  15046. startVal: 0,
  15047. endVal: 0,
  15048. duration: 2000,
  15049. autoplay: true,
  15050. decimals: 0,
  15051. useEasing: true,
  15052. decimal: '.',
  15053. color: '#606266',
  15054. fontSize: 22,
  15055. bold: false,
  15056. separator: ''
  15057. }
  15058. };
  15059. exports.default = _default;
  15060. /***/ }),
  15061. /* 90 */
  15062. /*!****************************************************************************************************!*\
  15063. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15064. \****************************************************************************************************/
  15065. /*! no static exports found */
  15066. /***/ (function(module, exports, __webpack_require__) {
  15067. "use strict";
  15068. Object.defineProperty(exports, "__esModule", {
  15069. value: true
  15070. });
  15071. exports.default = void 0;
  15072. /*
  15073. * @Author : LQ
  15074. * @Description :
  15075. * @version : 1.0
  15076. * @Date : 2021-08-20 16:44:21
  15077. * @LastAuthor : LQ
  15078. * @lastTime : 2021-08-20 16:57:48
  15079. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15080. */
  15081. var _default = {
  15082. // datetimePicker 组件
  15083. datetimePicker: {
  15084. show: false,
  15085. showToolbar: true,
  15086. value: '',
  15087. title: '',
  15088. mode: 'datetime',
  15089. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15090. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15091. minHour: 0,
  15092. maxHour: 23,
  15093. minMinute: 0,
  15094. maxMinute: 59,
  15095. filter: null,
  15096. formatter: null,
  15097. loading: false,
  15098. itemHeight: 44,
  15099. cancelText: '取消',
  15100. confirmText: '确认',
  15101. cancelColor: '#909193',
  15102. confirmColor: '#3c9cff',
  15103. visibleItemCount: 5,
  15104. closeOnClickOverlay: false,
  15105. defaultIndex: function defaultIndex() {
  15106. return [];
  15107. }
  15108. }
  15109. };
  15110. exports.default = _default;
  15111. /***/ }),
  15112. /* 91 */
  15113. /*!*********************************************************************************************!*\
  15114. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15115. \*********************************************************************************************/
  15116. /*! no static exports found */
  15117. /***/ (function(module, exports, __webpack_require__) {
  15118. "use strict";
  15119. Object.defineProperty(exports, "__esModule", {
  15120. value: true
  15121. });
  15122. exports.default = void 0;
  15123. /*
  15124. * @Author : LQ
  15125. * @Description :
  15126. * @version : 1.0
  15127. * @Date : 2021-08-20 16:44:21
  15128. * @LastAuthor : LQ
  15129. * @lastTime : 2021-08-20 16:58:03
  15130. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15131. */
  15132. var _default = {
  15133. // divider组件
  15134. divider: {
  15135. dashed: false,
  15136. hairline: true,
  15137. dot: false,
  15138. textPosition: 'center',
  15139. text: '',
  15140. textSize: 14,
  15141. textColor: '#909399',
  15142. lineColor: '#dcdfe6'
  15143. }
  15144. };
  15145. exports.default = _default;
  15146. /***/ }),
  15147. /* 92 */
  15148. /*!*******************************************************************************************!*\
  15149. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15150. \*******************************************************************************************/
  15151. /*! no static exports found */
  15152. /***/ (function(module, exports, __webpack_require__) {
  15153. "use strict";
  15154. Object.defineProperty(exports, "__esModule", {
  15155. value: true
  15156. });
  15157. exports.default = void 0;
  15158. /*
  15159. * @Author : LQ
  15160. * @Description :
  15161. * @version : 1.0
  15162. * @Date : 2021-08-20 16:44:21
  15163. * @LastAuthor : LQ
  15164. * @lastTime : 2021-08-20 17:03:27
  15165. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15166. */
  15167. var _default = {
  15168. // empty组件
  15169. empty: {
  15170. icon: '',
  15171. text: '',
  15172. textColor: '#c0c4cc',
  15173. textSize: 14,
  15174. iconColor: '#c0c4cc',
  15175. iconSize: 90,
  15176. mode: 'data',
  15177. width: 160,
  15178. height: 160,
  15179. show: true,
  15180. marginTop: 0
  15181. }
  15182. };
  15183. exports.default = _default;
  15184. /***/ }),
  15185. /* 93 */
  15186. /*!******************************************************************************************!*\
  15187. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/form.js ***!
  15188. \******************************************************************************************/
  15189. /*! no static exports found */
  15190. /***/ (function(module, exports, __webpack_require__) {
  15191. "use strict";
  15192. Object.defineProperty(exports, "__esModule", {
  15193. value: true
  15194. });
  15195. exports.default = void 0;
  15196. /*
  15197. * @Author : LQ
  15198. * @Description :
  15199. * @version : 1.0
  15200. * @Date : 2021-08-20 16:44:21
  15201. * @LastAuthor : LQ
  15202. * @lastTime : 2021-08-20 17:03:49
  15203. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15204. */
  15205. var _default = {
  15206. // form 组件
  15207. form: {
  15208. model: function model() {
  15209. return {};
  15210. },
  15211. rules: function rules() {
  15212. return {};
  15213. },
  15214. errorType: 'message',
  15215. borderBottom: true,
  15216. labelPosition: 'left',
  15217. labelWidth: 45,
  15218. labelAlign: 'left',
  15219. labelStyle: function labelStyle() {
  15220. return {};
  15221. }
  15222. }
  15223. };
  15224. exports.default = _default;
  15225. /***/ }),
  15226. /* 94 */
  15227. /*!**********************************************************************************************!*\
  15228. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/formItem.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:04:32
  15244. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15245. */
  15246. var _default = {
  15247. // formItem 组件
  15248. formItem: {
  15249. label: '',
  15250. prop: '',
  15251. borderBottom: '',
  15252. labelPosition: '',
  15253. labelWidth: '',
  15254. rightIcon: '',
  15255. leftIcon: '',
  15256. required: false,
  15257. leftIconStyle: ''
  15258. }
  15259. };
  15260. exports.default = _default;
  15261. /***/ }),
  15262. /* 95 */
  15263. /*!*****************************************************************************************!*\
  15264. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15265. \*****************************************************************************************/
  15266. /*! no static exports found */
  15267. /***/ (function(module, exports, __webpack_require__) {
  15268. "use strict";
  15269. Object.defineProperty(exports, "__esModule", {
  15270. value: true
  15271. });
  15272. exports.default = void 0;
  15273. /*
  15274. * @Author : LQ
  15275. * @Description :
  15276. * @version : 1.0
  15277. * @Date : 2021-08-20 16:44:21
  15278. * @LastAuthor : LQ
  15279. * @lastTime : 2021-08-20 17:05:25
  15280. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15281. */
  15282. var _default = {
  15283. // gap组件
  15284. gap: {
  15285. bgColor: 'transparent',
  15286. height: 20,
  15287. marginTop: 0,
  15288. marginBottom: 0,
  15289. customStyle: {}
  15290. }
  15291. };
  15292. exports.default = _default;
  15293. /***/ }),
  15294. /* 96 */
  15295. /*!******************************************************************************************!*\
  15296. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15297. \******************************************************************************************/
  15298. /*! no static exports found */
  15299. /***/ (function(module, exports, __webpack_require__) {
  15300. "use strict";
  15301. Object.defineProperty(exports, "__esModule", {
  15302. value: true
  15303. });
  15304. exports.default = void 0;
  15305. /*
  15306. * @Author : LQ
  15307. * @Description :
  15308. * @version : 1.0
  15309. * @Date : 2021-08-20 16:44:21
  15310. * @LastAuthor : LQ
  15311. * @lastTime : 2021-08-20 17:05:57
  15312. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15313. */
  15314. var _default = {
  15315. // grid组件
  15316. grid: {
  15317. col: 3,
  15318. border: false,
  15319. align: 'left'
  15320. }
  15321. };
  15322. exports.default = _default;
  15323. /***/ }),
  15324. /* 97 */
  15325. /*!**********************************************************************************************!*\
  15326. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15327. \**********************************************************************************************/
  15328. /*! no static exports found */
  15329. /***/ (function(module, exports, __webpack_require__) {
  15330. "use strict";
  15331. Object.defineProperty(exports, "__esModule", {
  15332. value: true
  15333. });
  15334. exports.default = void 0;
  15335. /*
  15336. * @Author : LQ
  15337. * @Description :
  15338. * @version : 1.0
  15339. * @Date : 2021-08-20 16:44:21
  15340. * @LastAuthor : LQ
  15341. * @lastTime : 2021-08-20 17:06:13
  15342. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15343. */
  15344. var _default = {
  15345. // grid-item组件
  15346. gridItem: {
  15347. name: null,
  15348. bgColor: 'transparent'
  15349. }
  15350. };
  15351. exports.default = _default;
  15352. /***/ }),
  15353. /* 98 */
  15354. /*!******************************************************************************************!*\
  15355. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15356. \******************************************************************************************/
  15357. /*! no static exports found */
  15358. /***/ (function(module, exports, __webpack_require__) {
  15359. "use strict";
  15360. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15361. Object.defineProperty(exports, "__esModule", {
  15362. value: true
  15363. });
  15364. exports.default = void 0;
  15365. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15366. /*
  15367. * @Author : LQ
  15368. * @Description :
  15369. * @version : 1.0
  15370. * @Date : 2021-08-20 16:44:21
  15371. * @LastAuthor : LQ
  15372. * @lastTime : 2021-08-20 18:00:14
  15373. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15374. */
  15375. var color = _config.default.color;
  15376. var _default = {
  15377. // icon组件
  15378. icon: {
  15379. name: '',
  15380. color: color['u-content-color'],
  15381. size: '16px',
  15382. bold: false,
  15383. index: '',
  15384. hoverClass: '',
  15385. customPrefix: 'uicon',
  15386. label: '',
  15387. labelPos: 'right',
  15388. labelSize: '15px',
  15389. labelColor: color['u-content-color'],
  15390. space: '3px',
  15391. imgMode: '',
  15392. width: '',
  15393. height: '',
  15394. top: 0,
  15395. stop: false
  15396. }
  15397. };
  15398. exports.default = _default;
  15399. /***/ }),
  15400. /* 99 */
  15401. /*!*******************************************************************************************!*\
  15402. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/image.js ***!
  15403. \*******************************************************************************************/
  15404. /*! no static exports found */
  15405. /***/ (function(module, exports, __webpack_require__) {
  15406. "use strict";
  15407. Object.defineProperty(exports, "__esModule", {
  15408. value: true
  15409. });
  15410. exports.default = void 0;
  15411. /*
  15412. * @Author : LQ
  15413. * @Description :
  15414. * @version : 1.0
  15415. * @Date : 2021-08-20 16:44:21
  15416. * @LastAuthor : LQ
  15417. * @lastTime : 2021-08-20 17:01:51
  15418. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15419. */
  15420. var _default = {
  15421. // image组件
  15422. image: {
  15423. src: '',
  15424. mode: 'aspectFill',
  15425. width: '300',
  15426. height: '225',
  15427. shape: 'square',
  15428. radius: 0,
  15429. lazyLoad: true,
  15430. showMenuByLongpress: true,
  15431. loadingIcon: 'photo',
  15432. errorIcon: 'error-circle',
  15433. showLoading: true,
  15434. showError: true,
  15435. fade: true,
  15436. webp: false,
  15437. duration: 500,
  15438. bgColor: '#f3f4f6'
  15439. }
  15440. };
  15441. exports.default = _default;
  15442. /***/ }),
  15443. /* 100 */
  15444. /*!*************************************************************************************************!*\
  15445. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15446. \*************************************************************************************************/
  15447. /*! no static exports found */
  15448. /***/ (function(module, exports, __webpack_require__) {
  15449. "use strict";
  15450. Object.defineProperty(exports, "__esModule", {
  15451. value: true
  15452. });
  15453. exports.default = void 0;
  15454. /*
  15455. * @Author : LQ
  15456. * @Description :
  15457. * @version : 1.0
  15458. * @Date : 2021-08-20 16:44:21
  15459. * @LastAuthor : LQ
  15460. * @lastTime : 2021-08-20 17:13:15
  15461. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15462. */
  15463. var _default = {
  15464. // indexAnchor 组件
  15465. indexAnchor: {
  15466. text: '',
  15467. color: '#606266',
  15468. size: 14,
  15469. bgColor: '#dedede',
  15470. height: 32
  15471. }
  15472. };
  15473. exports.default = _default;
  15474. /***/ }),
  15475. /* 101 */
  15476. /*!***********************************************************************************************!*\
  15477. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15478. \***********************************************************************************************/
  15479. /*! no static exports found */
  15480. /***/ (function(module, exports, __webpack_require__) {
  15481. "use strict";
  15482. Object.defineProperty(exports, "__esModule", {
  15483. value: true
  15484. });
  15485. exports.default = void 0;
  15486. /*
  15487. * @Author : LQ
  15488. * @Description :
  15489. * @version : 1.0
  15490. * @Date : 2021-08-20 16:44:21
  15491. * @LastAuthor : LQ
  15492. * @lastTime : 2021-08-20 17:13:35
  15493. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15494. */
  15495. var _default = {
  15496. // indexList 组件
  15497. indexList: {
  15498. inactiveColor: '#606266',
  15499. activeColor: '#5677fc',
  15500. indexList: function indexList() {
  15501. return [];
  15502. },
  15503. sticky: true,
  15504. customNavHeight: 0
  15505. }
  15506. };
  15507. exports.default = _default;
  15508. /***/ }),
  15509. /* 102 */
  15510. /*!*******************************************************************************************!*\
  15511. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/input.js ***!
  15512. \*******************************************************************************************/
  15513. /*! no static exports found */
  15514. /***/ (function(module, exports, __webpack_require__) {
  15515. "use strict";
  15516. Object.defineProperty(exports, "__esModule", {
  15517. value: true
  15518. });
  15519. exports.default = void 0;
  15520. /*
  15521. * @Author : LQ
  15522. * @Description :
  15523. * @version : 1.0
  15524. * @Date : 2021-08-20 16:44:21
  15525. * @LastAuthor : LQ
  15526. * @lastTime : 2021-08-20 17:13:55
  15527. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15528. */
  15529. var _default = {
  15530. // index 组件
  15531. input: {
  15532. value: '',
  15533. type: 'text',
  15534. fixed: false,
  15535. disabled: false,
  15536. disabledColor: '#f5f7fa',
  15537. clearable: false,
  15538. password: false,
  15539. maxlength: -1,
  15540. placeholder: null,
  15541. placeholderClass: 'input-placeholder',
  15542. placeholderStyle: 'color: #c0c4cc',
  15543. showWordLimit: false,
  15544. confirmType: 'done',
  15545. confirmHold: false,
  15546. holdKeyboard: false,
  15547. focus: false,
  15548. autoBlur: false,
  15549. disableDefaultPadding: false,
  15550. cursor: -1,
  15551. cursorSpacing: 30,
  15552. selectionStart: -1,
  15553. selectionEnd: -1,
  15554. adjustPosition: true,
  15555. inputAlign: 'left',
  15556. fontSize: '15px',
  15557. color: '#303133',
  15558. prefixIcon: '',
  15559. prefixIconStyle: '',
  15560. suffixIcon: '',
  15561. suffixIconStyle: '',
  15562. border: 'surround',
  15563. readonly: false,
  15564. shape: 'square',
  15565. formatter: null
  15566. }
  15567. };
  15568. exports.default = _default;
  15569. /***/ }),
  15570. /* 103 */
  15571. /*!**********************************************************************************************!*\
  15572. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15573. \**********************************************************************************************/
  15574. /*! no static exports found */
  15575. /***/ (function(module, exports, __webpack_require__) {
  15576. "use strict";
  15577. Object.defineProperty(exports, "__esModule", {
  15578. value: true
  15579. });
  15580. exports.default = void 0;
  15581. /*
  15582. * @Author : LQ
  15583. * @Description :
  15584. * @version : 1.0
  15585. * @Date : 2021-08-20 16:44:21
  15586. * @LastAuthor : LQ
  15587. * @lastTime : 2021-08-20 17:07:49
  15588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15589. */
  15590. var _default = {
  15591. // 键盘组件
  15592. keyboard: {
  15593. mode: 'number',
  15594. dotDisabled: false,
  15595. tooltip: true,
  15596. showTips: true,
  15597. tips: '',
  15598. showCancel: true,
  15599. showConfirm: true,
  15600. random: false,
  15601. safeAreaInsetBottom: true,
  15602. closeOnClickOverlay: true,
  15603. show: false,
  15604. overlay: true,
  15605. zIndex: 10075,
  15606. cancelText: '取消',
  15607. confirmText: '确定',
  15608. autoChange: false
  15609. }
  15610. };
  15611. exports.default = _default;
  15612. /***/ }),
  15613. /* 104 */
  15614. /*!******************************************************************************************!*\
  15615. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/line.js ***!
  15616. \******************************************************************************************/
  15617. /*! no static exports found */
  15618. /***/ (function(module, exports, __webpack_require__) {
  15619. "use strict";
  15620. Object.defineProperty(exports, "__esModule", {
  15621. value: true
  15622. });
  15623. exports.default = void 0;
  15624. /*
  15625. * @Author : LQ
  15626. * @Description :
  15627. * @version : 1.0
  15628. * @Date : 2021-08-20 16:44:21
  15629. * @LastAuthor : LQ
  15630. * @lastTime : 2021-08-20 17:04:49
  15631. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15632. */
  15633. var _default = {
  15634. // line组件
  15635. line: {
  15636. color: '#d6d7d9',
  15637. length: '100%',
  15638. direction: 'row',
  15639. hairline: true,
  15640. margin: 0,
  15641. dashed: false
  15642. }
  15643. };
  15644. exports.default = _default;
  15645. /***/ }),
  15646. /* 105 */
  15647. /*!**************************************************************************************************!*\
  15648. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15649. \**************************************************************************************************/
  15650. /*! no static exports found */
  15651. /***/ (function(module, exports, __webpack_require__) {
  15652. "use strict";
  15653. Object.defineProperty(exports, "__esModule", {
  15654. value: true
  15655. });
  15656. exports.default = void 0;
  15657. /*
  15658. * @Author : LQ
  15659. * @Description :
  15660. * @version : 1.0
  15661. * @Date : 2021-08-20 16:44:21
  15662. * @LastAuthor : LQ
  15663. * @lastTime : 2021-08-20 17:14:11
  15664. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15665. */
  15666. var _default = {
  15667. // lineProgress 组件
  15668. lineProgress: {
  15669. activeColor: '#19be6b',
  15670. inactiveColor: '#ececec',
  15671. percentage: 0,
  15672. showText: true,
  15673. height: 12
  15674. }
  15675. };
  15676. exports.default = _default;
  15677. /***/ }),
  15678. /* 106 */
  15679. /*!******************************************************************************************!*\
  15680. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/link.js ***!
  15681. \******************************************************************************************/
  15682. /*! no static exports found */
  15683. /***/ (function(module, exports, __webpack_require__) {
  15684. "use strict";
  15685. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15686. Object.defineProperty(exports, "__esModule", {
  15687. value: true
  15688. });
  15689. exports.default = void 0;
  15690. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15691. /*
  15692. * @Author : LQ
  15693. * @Description :
  15694. * @version : 1.0
  15695. * @Date : 2021-08-20 16:44:21
  15696. * @LastAuthor : LQ
  15697. * @lastTime : 2021-08-20 17:45:36
  15698. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15699. */
  15700. var color = _config.default.color;
  15701. var _default = {
  15702. // link超链接组件props参数
  15703. link: {
  15704. color: color['u-primary'],
  15705. fontSize: 15,
  15706. underLine: false,
  15707. href: '',
  15708. mpTips: '链接已复制,请在浏览器打开',
  15709. lineColor: '',
  15710. text: ''
  15711. }
  15712. };
  15713. exports.default = _default;
  15714. /***/ }),
  15715. /* 107 */
  15716. /*!******************************************************************************************!*\
  15717. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/list.js ***!
  15718. \******************************************************************************************/
  15719. /*! no static exports found */
  15720. /***/ (function(module, exports, __webpack_require__) {
  15721. "use strict";
  15722. Object.defineProperty(exports, "__esModule", {
  15723. value: true
  15724. });
  15725. exports.default = void 0;
  15726. /*
  15727. * @Author : LQ
  15728. * @Description :
  15729. * @version : 1.0
  15730. * @Date : 2021-08-20 16:44:21
  15731. * @LastAuthor : LQ
  15732. * @lastTime : 2021-08-20 17:14:53
  15733. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15734. */
  15735. var _default = {
  15736. // list 组件
  15737. list: {
  15738. showScrollbar: false,
  15739. lowerThreshold: 50,
  15740. upperThreshold: 0,
  15741. scrollTop: 0,
  15742. offsetAccuracy: 10,
  15743. enableFlex: false,
  15744. pagingEnabled: false,
  15745. scrollable: true,
  15746. scrollIntoView: '',
  15747. scrollWithAnimation: false,
  15748. enableBackToTop: false,
  15749. height: 0,
  15750. width: 0,
  15751. preLoadScreen: 1
  15752. }
  15753. };
  15754. exports.default = _default;
  15755. /***/ }),
  15756. /* 108 */
  15757. /*!**********************************************************************************************!*\
  15758. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  15759. \**********************************************************************************************/
  15760. /*! no static exports found */
  15761. /***/ (function(module, exports, __webpack_require__) {
  15762. "use strict";
  15763. Object.defineProperty(exports, "__esModule", {
  15764. value: true
  15765. });
  15766. exports.default = void 0;
  15767. /*
  15768. * @Author : LQ
  15769. * @Description :
  15770. * @version : 1.0
  15771. * @Date : 2021-08-20 16:44:21
  15772. * @LastAuthor : LQ
  15773. * @lastTime : 2021-08-20 17:15:40
  15774. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15775. */
  15776. var _default = {
  15777. // listItem 组件
  15778. listItem: {
  15779. anchor: ''
  15780. }
  15781. };
  15782. exports.default = _default;
  15783. /***/ }),
  15784. /* 109 */
  15785. /*!*************************************************************************************************!*\
  15786. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15787. \*************************************************************************************************/
  15788. /*! no static exports found */
  15789. /***/ (function(module, exports, __webpack_require__) {
  15790. "use strict";
  15791. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15792. Object.defineProperty(exports, "__esModule", {
  15793. value: true
  15794. });
  15795. exports.default = void 0;
  15796. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15797. /*
  15798. * @Author : LQ
  15799. * @Description :
  15800. * @version : 1.0
  15801. * @Date : 2021-08-20 16:44:21
  15802. * @LastAuthor : LQ
  15803. * @lastTime : 2021-08-20 17:45:47
  15804. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15805. */
  15806. var color = _config.default.color;
  15807. var _default = {
  15808. // loading-icon加载中图标组件
  15809. loadingIcon: {
  15810. show: true,
  15811. color: color['u-tips-color'],
  15812. textColor: color['u-tips-color'],
  15813. vertical: false,
  15814. mode: 'spinner',
  15815. size: 24,
  15816. textSize: 15,
  15817. text: '',
  15818. timingFunction: 'ease-in-out',
  15819. duration: 1200,
  15820. inactiveColor: ''
  15821. }
  15822. };
  15823. exports.default = _default;
  15824. /***/ }),
  15825. /* 110 */
  15826. /*!*************************************************************************************************!*\
  15827. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15828. \*************************************************************************************************/
  15829. /*! no static exports found */
  15830. /***/ (function(module, exports, __webpack_require__) {
  15831. "use strict";
  15832. Object.defineProperty(exports, "__esModule", {
  15833. value: true
  15834. });
  15835. exports.default = void 0;
  15836. /*
  15837. * @Author : LQ
  15838. * @Description :
  15839. * @version : 1.0
  15840. * @Date : 2021-08-20 16:44:21
  15841. * @LastAuthor : LQ
  15842. * @lastTime : 2021-08-20 17:00:23
  15843. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15844. */
  15845. var _default = {
  15846. // loading-page组件
  15847. loadingPage: {
  15848. loadingText: '正在加载',
  15849. image: '',
  15850. loadingMode: 'circle',
  15851. loading: false,
  15852. bgColor: '#ffffff',
  15853. color: '#C8C8C8',
  15854. fontSize: 19,
  15855. iconSize: 28,
  15856. loadingColor: '#C8C8C8'
  15857. }
  15858. };
  15859. exports.default = _default;
  15860. /***/ }),
  15861. /* 111 */
  15862. /*!**********************************************************************************************!*\
  15863. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  15864. \**********************************************************************************************/
  15865. /*! no static exports found */
  15866. /***/ (function(module, exports, __webpack_require__) {
  15867. "use strict";
  15868. Object.defineProperty(exports, "__esModule", {
  15869. value: true
  15870. });
  15871. exports.default = void 0;
  15872. /*
  15873. * @Author : LQ
  15874. * @Description :
  15875. * @version : 1.0
  15876. * @Date : 2021-08-20 16:44:21
  15877. * @LastAuthor : LQ
  15878. * @lastTime : 2021-08-20 17:15:26
  15879. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15880. */
  15881. var _default = {
  15882. // loadmore 组件
  15883. loadmore: {
  15884. status: 'loadmore',
  15885. bgColor: 'transparent',
  15886. icon: true,
  15887. fontSize: 14,
  15888. iconSize: 17,
  15889. color: '#606266',
  15890. loadingIcon: 'spinner',
  15891. loadmoreText: '加载更多',
  15892. loadingText: '正在加载...',
  15893. nomoreText: '没有更多了',
  15894. isDot: false,
  15895. iconColor: '#b7b7b7',
  15896. marginTop: 10,
  15897. marginBottom: 10,
  15898. height: 'auto',
  15899. line: false,
  15900. lineColor: '#E6E8EB',
  15901. dashed: false
  15902. }
  15903. };
  15904. exports.default = _default;
  15905. /***/ }),
  15906. /* 112 */
  15907. /*!*******************************************************************************************!*\
  15908. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/modal.js ***!
  15909. \*******************************************************************************************/
  15910. /*! no static exports found */
  15911. /***/ (function(module, exports, __webpack_require__) {
  15912. "use strict";
  15913. Object.defineProperty(exports, "__esModule", {
  15914. value: true
  15915. });
  15916. exports.default = void 0;
  15917. /*
  15918. * @Author : LQ
  15919. * @Description :
  15920. * @version : 1.0
  15921. * @Date : 2021-08-20 16:44:21
  15922. * @LastAuthor : LQ
  15923. * @lastTime : 2021-08-20 17:15:59
  15924. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15925. */
  15926. var _default = {
  15927. // modal 组件
  15928. modal: {
  15929. show: false,
  15930. title: '',
  15931. content: '',
  15932. confirmText: '确认',
  15933. cancelText: '取消',
  15934. showConfirmButton: true,
  15935. showCancelButton: false,
  15936. confirmColor: '#2979ff',
  15937. cancelColor: '#606266',
  15938. buttonReverse: false,
  15939. zoom: true,
  15940. asyncClose: false,
  15941. closeOnClickOverlay: false,
  15942. negativeTop: 0,
  15943. width: '650rpx',
  15944. confirmButtonShape: '',
  15945. duration: 400
  15946. }
  15947. };
  15948. exports.default = _default;
  15949. /***/ }),
  15950. /* 113 */
  15951. /*!********************************************************************************************!*\
  15952. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  15953. \********************************************************************************************/
  15954. /*! no static exports found */
  15955. /***/ (function(module, exports, __webpack_require__) {
  15956. "use strict";
  15957. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15958. Object.defineProperty(exports, "__esModule", {
  15959. value: true
  15960. });
  15961. exports.default = void 0;
  15962. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 114));
  15963. /*
  15964. * @Author : LQ
  15965. * @Description :
  15966. * @version : 1.0
  15967. * @Date : 2021-08-20 16:44:21
  15968. * @LastAuthor : LQ
  15969. * @lastTime : 2021-08-20 17:16:18
  15970. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  15971. */
  15972. var _default = {
  15973. // navbar 组件
  15974. navbar: {
  15975. safeAreaInsetTop: true,
  15976. placeholder: false,
  15977. fixed: true,
  15978. border: false,
  15979. leftIcon: 'arrow-left',
  15980. leftText: '',
  15981. rightText: '',
  15982. rightIcon: '',
  15983. title: '',
  15984. bgColor: '#ffffff',
  15985. titleWidth: '400rpx',
  15986. height: '44px',
  15987. leftIconSize: 20,
  15988. leftIconColor: _color.default.mainColor,
  15989. autoBack: false,
  15990. titleStyle: ''
  15991. }
  15992. };
  15993. exports.default = _default;
  15994. /***/ }),
  15995. /* 114 */
  15996. /*!*************************************************************************************!*\
  15997. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/color.js ***!
  15998. \*************************************************************************************/
  15999. /*! no static exports found */
  16000. /***/ (function(module, exports, __webpack_require__) {
  16001. "use strict";
  16002. Object.defineProperty(exports, "__esModule", {
  16003. value: true
  16004. });
  16005. exports.default = void 0;
  16006. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16007. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16008. var color = {
  16009. primary: '#3c9cff',
  16010. info: '#909399',
  16011. default: '#909399',
  16012. warning: '#f9ae3d',
  16013. error: '#f56c6c',
  16014. success: '#5ac725',
  16015. mainColor: '#303133',
  16016. contentColor: '#606266',
  16017. tipsColor: '#909399',
  16018. lightColor: '#c0c4cc',
  16019. borderColor: '#e4e7ed'
  16020. };
  16021. var _default = color;
  16022. exports.default = _default;
  16023. /***/ }),
  16024. /* 115 */
  16025. /*!***********************************************************************************************!*\
  16026. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16027. \***********************************************************************************************/
  16028. /*! no static exports found */
  16029. /***/ (function(module, exports, __webpack_require__) {
  16030. "use strict";
  16031. Object.defineProperty(exports, "__esModule", {
  16032. value: true
  16033. });
  16034. exports.default = void 0;
  16035. /*
  16036. * @Author : LQ
  16037. * @Description :
  16038. * @version : 1.0
  16039. * @Date : 2021-08-20 16:44:21
  16040. * @LastAuthor : LQ
  16041. * @lastTime : 2021-08-20 17:16:39
  16042. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16043. */
  16044. var _default = {
  16045. // noNetwork
  16046. noNetwork: {
  16047. tips: '哎呀,网络信号丢失',
  16048. zIndex: '',
  16049. 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'
  16050. }
  16051. };
  16052. exports.default = _default;
  16053. /***/ }),
  16054. /* 116 */
  16055. /*!***********************************************************************************************!*\
  16056. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16057. \***********************************************************************************************/
  16058. /*! no static exports found */
  16059. /***/ (function(module, exports, __webpack_require__) {
  16060. "use strict";
  16061. Object.defineProperty(exports, "__esModule", {
  16062. value: true
  16063. });
  16064. exports.default = void 0;
  16065. /*
  16066. * @Author : LQ
  16067. * @Description :
  16068. * @version : 1.0
  16069. * @Date : 2021-08-20 16:44:21
  16070. * @LastAuthor : LQ
  16071. * @lastTime : 2021-08-20 17:17:13
  16072. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16073. */
  16074. var _default = {
  16075. // noticeBar
  16076. noticeBar: {
  16077. text: function text() {
  16078. return [];
  16079. },
  16080. direction: 'row',
  16081. step: false,
  16082. icon: 'volume',
  16083. mode: '',
  16084. color: '#f9ae3d',
  16085. bgColor: '#fdf6ec',
  16086. speed: 80,
  16087. fontSize: 14,
  16088. duration: 2000,
  16089. disableTouch: true,
  16090. url: '',
  16091. linkType: 'navigateTo'
  16092. }
  16093. };
  16094. exports.default = _default;
  16095. /***/ }),
  16096. /* 117 */
  16097. /*!********************************************************************************************!*\
  16098. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16099. \********************************************************************************************/
  16100. /*! no static exports found */
  16101. /***/ (function(module, exports, __webpack_require__) {
  16102. "use strict";
  16103. Object.defineProperty(exports, "__esModule", {
  16104. value: true
  16105. });
  16106. exports.default = void 0;
  16107. /*
  16108. * @Author : LQ
  16109. * @Description :
  16110. * @version : 1.0
  16111. * @Date : 2021-08-20 16:44:21
  16112. * @LastAuthor : LQ
  16113. * @lastTime : 2021-08-20 17:10:21
  16114. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16115. */
  16116. var _default = {
  16117. // notify组件
  16118. notify: {
  16119. top: 0,
  16120. type: 'primary',
  16121. color: '#ffffff',
  16122. bgColor: '',
  16123. message: '',
  16124. duration: 3000,
  16125. fontSize: 15,
  16126. safeAreaInsetTop: false
  16127. }
  16128. };
  16129. exports.default = _default;
  16130. /***/ }),
  16131. /* 118 */
  16132. /*!***********************************************************************************************!*\
  16133. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16134. \***********************************************************************************************/
  16135. /*! no static exports found */
  16136. /***/ (function(module, exports, __webpack_require__) {
  16137. "use strict";
  16138. Object.defineProperty(exports, "__esModule", {
  16139. value: true
  16140. });
  16141. exports.default = void 0;
  16142. /*
  16143. * @Author : LQ
  16144. * @Description :
  16145. * @version : 1.0
  16146. * @Date : 2021-08-20 16:44:21
  16147. * @LastAuthor : LQ
  16148. * @lastTime : 2021-08-20 17:11:46
  16149. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16150. */
  16151. var _default = {
  16152. // 步进器组件
  16153. numberBox: {
  16154. name: '',
  16155. value: 0,
  16156. min: 1,
  16157. max: Number.MAX_SAFE_INTEGER,
  16158. step: 1,
  16159. integer: false,
  16160. disabled: false,
  16161. disabledInput: false,
  16162. asyncChange: false,
  16163. inputWidth: 35,
  16164. showMinus: true,
  16165. showPlus: true,
  16166. decimalLength: null,
  16167. longPress: true,
  16168. color: '#323233',
  16169. buttonSize: 30,
  16170. bgColor: '#EBECEE',
  16171. cursorSpacing: 100,
  16172. disableMinus: false,
  16173. disablePlus: false,
  16174. iconStyle: ''
  16175. }
  16176. };
  16177. exports.default = _default;
  16178. /***/ }),
  16179. /* 119 */
  16180. /*!****************************************************************************************************!*\
  16181. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16182. \****************************************************************************************************/
  16183. /*! no static exports found */
  16184. /***/ (function(module, exports, __webpack_require__) {
  16185. "use strict";
  16186. Object.defineProperty(exports, "__esModule", {
  16187. value: true
  16188. });
  16189. exports.default = void 0;
  16190. /*
  16191. * @Author : LQ
  16192. * @Description :
  16193. * @version : 1.0
  16194. * @Date : 2021-08-20 16:44:21
  16195. * @LastAuthor : LQ
  16196. * @lastTime : 2021-08-20 17:08:05
  16197. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16198. */
  16199. var _default = {
  16200. // 数字键盘
  16201. numberKeyboard: {
  16202. mode: 'number',
  16203. dotDisabled: false,
  16204. random: false
  16205. }
  16206. };
  16207. exports.default = _default;
  16208. /***/ }),
  16209. /* 120 */
  16210. /*!*********************************************************************************************!*\
  16211. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16212. \*********************************************************************************************/
  16213. /*! no static exports found */
  16214. /***/ (function(module, exports, __webpack_require__) {
  16215. "use strict";
  16216. Object.defineProperty(exports, "__esModule", {
  16217. value: true
  16218. });
  16219. exports.default = void 0;
  16220. /*
  16221. * @Author : LQ
  16222. * @Description :
  16223. * @version : 1.0
  16224. * @Date : 2021-08-20 16:44:21
  16225. * @LastAuthor : LQ
  16226. * @lastTime : 2021-08-20 17:06:50
  16227. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16228. */
  16229. var _default = {
  16230. // overlay组件
  16231. overlay: {
  16232. show: false,
  16233. zIndex: 10070,
  16234. duration: 300,
  16235. opacity: 0.5
  16236. }
  16237. };
  16238. exports.default = _default;
  16239. /***/ }),
  16240. /* 121 */
  16241. /*!*******************************************************************************************!*\
  16242. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16243. \*******************************************************************************************/
  16244. /*! no static exports found */
  16245. /***/ (function(module, exports, __webpack_require__) {
  16246. "use strict";
  16247. Object.defineProperty(exports, "__esModule", {
  16248. value: true
  16249. });
  16250. exports.default = void 0;
  16251. /*
  16252. * @Author : LQ
  16253. * @Description :
  16254. * @version : 1.0
  16255. * @Date : 2021-08-20 16:44:21
  16256. * @LastAuthor : LQ
  16257. * @lastTime : 2021-08-20 17:17:33
  16258. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16259. */
  16260. var _default = {
  16261. // parse
  16262. parse: {
  16263. copyLink: true,
  16264. errorImg: '',
  16265. lazyLoad: false,
  16266. loadingImg: '',
  16267. pauseVideo: true,
  16268. previewImg: true,
  16269. setTitle: true,
  16270. showImgMenu: true
  16271. }
  16272. };
  16273. exports.default = _default;
  16274. /***/ }),
  16275. /* 122 */
  16276. /*!********************************************************************************************!*\
  16277. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16278. \********************************************************************************************/
  16279. /*! no static exports found */
  16280. /***/ (function(module, exports, __webpack_require__) {
  16281. "use strict";
  16282. Object.defineProperty(exports, "__esModule", {
  16283. value: true
  16284. });
  16285. exports.default = void 0;
  16286. /*
  16287. * @Author : LQ
  16288. * @Description :
  16289. * @version : 1.0
  16290. * @Date : 2021-08-20 16:44:21
  16291. * @LastAuthor : LQ
  16292. * @lastTime : 2021-08-20 17:18:20
  16293. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16294. */
  16295. var _default = {
  16296. // picker
  16297. picker: {
  16298. show: false,
  16299. showToolbar: true,
  16300. title: '',
  16301. columns: function columns() {
  16302. return [];
  16303. },
  16304. loading: false,
  16305. itemHeight: 44,
  16306. cancelText: '取消',
  16307. confirmText: '确定',
  16308. cancelColor: '#909193',
  16309. confirmColor: '#3c9cff',
  16310. visibleItemCount: 5,
  16311. keyName: 'text',
  16312. closeOnClickOverlay: false,
  16313. defaultIndex: function defaultIndex() {
  16314. return [];
  16315. },
  16316. immediateChange: false
  16317. }
  16318. };
  16319. exports.default = _default;
  16320. /***/ }),
  16321. /* 123 */
  16322. /*!*******************************************************************************************!*\
  16323. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16324. \*******************************************************************************************/
  16325. /*! no static exports found */
  16326. /***/ (function(module, exports, __webpack_require__) {
  16327. "use strict";
  16328. Object.defineProperty(exports, "__esModule", {
  16329. value: true
  16330. });
  16331. exports.default = void 0;
  16332. /*
  16333. * @Author : LQ
  16334. * @Description :
  16335. * @version : 1.0
  16336. * @Date : 2021-08-20 16:44:21
  16337. * @LastAuthor : LQ
  16338. * @lastTime : 2021-08-20 17:06:33
  16339. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16340. */
  16341. var _default = {
  16342. // popup组件
  16343. popup: {
  16344. show: false,
  16345. overlay: true,
  16346. mode: 'bottom',
  16347. duration: 300,
  16348. closeable: false,
  16349. overlayStyle: function overlayStyle() {},
  16350. closeOnClickOverlay: true,
  16351. zIndex: 10075,
  16352. safeAreaInsetBottom: true,
  16353. safeAreaInsetTop: false,
  16354. closeIconPos: 'top-right',
  16355. round: 0,
  16356. zoom: true,
  16357. bgColor: '',
  16358. overlayOpacity: 0.5
  16359. }
  16360. };
  16361. exports.default = _default;
  16362. /***/ }),
  16363. /* 124 */
  16364. /*!*******************************************************************************************!*\
  16365. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16366. \*******************************************************************************************/
  16367. /*! no static exports found */
  16368. /***/ (function(module, exports, __webpack_require__) {
  16369. "use strict";
  16370. Object.defineProperty(exports, "__esModule", {
  16371. value: true
  16372. });
  16373. exports.default = void 0;
  16374. /*
  16375. * @Author : LQ
  16376. * @Description :
  16377. * @version : 1.0
  16378. * @Date : 2021-08-20 16:44:21
  16379. * @LastAuthor : LQ
  16380. * @lastTime : 2021-08-20 17:02:34
  16381. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16382. */
  16383. var _default = {
  16384. // radio组件
  16385. radio: {
  16386. name: '',
  16387. shape: '',
  16388. disabled: '',
  16389. labelDisabled: '',
  16390. activeColor: '',
  16391. inactiveColor: '',
  16392. iconSize: '',
  16393. labelSize: '',
  16394. label: '',
  16395. labelColor: '',
  16396. size: '',
  16397. iconColor: '',
  16398. placement: ''
  16399. }
  16400. };
  16401. exports.default = _default;
  16402. /***/ }),
  16403. /* 125 */
  16404. /*!************************************************************************************************!*\
  16405. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16406. \************************************************************************************************/
  16407. /*! no static exports found */
  16408. /***/ (function(module, exports, __webpack_require__) {
  16409. "use strict";
  16410. Object.defineProperty(exports, "__esModule", {
  16411. value: true
  16412. });
  16413. exports.default = void 0;
  16414. /*
  16415. * @Author : LQ
  16416. * @Description :
  16417. * @version : 1.0
  16418. * @Date : 2021-08-20 16:44:21
  16419. * @LastAuthor : LQ
  16420. * @lastTime : 2021-08-20 17:03:12
  16421. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16422. */
  16423. var _default = {
  16424. // radio-group组件
  16425. radioGroup: {
  16426. value: '',
  16427. disabled: false,
  16428. shape: 'circle',
  16429. activeColor: '#2979ff',
  16430. inactiveColor: '#c8c9cc',
  16431. name: '',
  16432. size: 18,
  16433. placement: 'row',
  16434. label: '',
  16435. labelColor: '#303133',
  16436. labelSize: 14,
  16437. labelDisabled: false,
  16438. iconColor: '#ffffff',
  16439. iconSize: 12,
  16440. borderBottom: false,
  16441. iconPlacement: 'left'
  16442. }
  16443. };
  16444. exports.default = _default;
  16445. /***/ }),
  16446. /* 126 */
  16447. /*!******************************************************************************************!*\
  16448. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16449. \******************************************************************************************/
  16450. /*! no static exports found */
  16451. /***/ (function(module, exports, __webpack_require__) {
  16452. "use strict";
  16453. Object.defineProperty(exports, "__esModule", {
  16454. value: true
  16455. });
  16456. exports.default = void 0;
  16457. /*
  16458. * @Author : LQ
  16459. * @Description :
  16460. * @version : 1.0
  16461. * @Date : 2021-08-20 16:44:21
  16462. * @LastAuthor : LQ
  16463. * @lastTime : 2021-08-20 17:05:09
  16464. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16465. */
  16466. var _default = {
  16467. // rate组件
  16468. rate: {
  16469. value: 1,
  16470. count: 5,
  16471. disabled: false,
  16472. size: 18,
  16473. inactiveColor: '#b2b2b2',
  16474. activeColor: '#FA3534',
  16475. gutter: 4,
  16476. minCount: 1,
  16477. allowHalf: false,
  16478. activeIcon: 'star-fill',
  16479. inactiveIcon: 'star',
  16480. touchable: true
  16481. }
  16482. };
  16483. exports.default = _default;
  16484. /***/ }),
  16485. /* 127 */
  16486. /*!**********************************************************************************************!*\
  16487. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16488. \**********************************************************************************************/
  16489. /*! no static exports found */
  16490. /***/ (function(module, exports, __webpack_require__) {
  16491. "use strict";
  16492. Object.defineProperty(exports, "__esModule", {
  16493. value: true
  16494. });
  16495. exports.default = void 0;
  16496. /*
  16497. * @Author : LQ
  16498. * @Description :
  16499. * @version : 1.0
  16500. * @Date : 2021-08-20 16:44:21
  16501. * @LastAuthor : LQ
  16502. * @lastTime : 2021-08-20 17:18:41
  16503. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16504. */
  16505. var _default = {
  16506. // readMore
  16507. readMore: {
  16508. showHeight: 400,
  16509. toggle: false,
  16510. closeText: '展开阅读全文',
  16511. openText: '收起',
  16512. color: '#2979ff',
  16513. fontSize: 14,
  16514. textIndent: '2em',
  16515. name: ''
  16516. }
  16517. };
  16518. exports.default = _default;
  16519. /***/ }),
  16520. /* 128 */
  16521. /*!*****************************************************************************************!*\
  16522. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/row.js ***!
  16523. \*****************************************************************************************/
  16524. /*! no static exports found */
  16525. /***/ (function(module, exports, __webpack_require__) {
  16526. "use strict";
  16527. Object.defineProperty(exports, "__esModule", {
  16528. value: true
  16529. });
  16530. exports.default = void 0;
  16531. /*
  16532. * @Author : LQ
  16533. * @Description :
  16534. * @version : 1.0
  16535. * @Date : 2021-08-20 16:44:21
  16536. * @LastAuthor : LQ
  16537. * @lastTime : 2021-08-20 17:18:58
  16538. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16539. */
  16540. var _default = {
  16541. // row
  16542. row: {
  16543. gutter: 0,
  16544. justify: 'start',
  16545. align: 'center'
  16546. }
  16547. };
  16548. exports.default = _default;
  16549. /***/ }),
  16550. /* 129 */
  16551. /*!***********************************************************************************************!*\
  16552. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16553. \***********************************************************************************************/
  16554. /*! no static exports found */
  16555. /***/ (function(module, exports, __webpack_require__) {
  16556. "use strict";
  16557. Object.defineProperty(exports, "__esModule", {
  16558. value: true
  16559. });
  16560. exports.default = void 0;
  16561. /*
  16562. * @Author : LQ
  16563. * @Description :
  16564. * @version : 1.0
  16565. * @Date : 2021-08-20 16:44:21
  16566. * @LastAuthor : LQ
  16567. * @lastTime : 2021-08-20 17:19:13
  16568. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16569. */
  16570. var _default = {
  16571. // rowNotice
  16572. rowNotice: {
  16573. text: '',
  16574. icon: 'volume',
  16575. mode: '',
  16576. color: '#f9ae3d',
  16577. bgColor: '#fdf6ec',
  16578. fontSize: 14,
  16579. speed: 80
  16580. }
  16581. };
  16582. exports.default = _default;
  16583. /***/ }),
  16584. /* 130 */
  16585. /*!************************************************************************************************!*\
  16586. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16587. \************************************************************************************************/
  16588. /*! no static exports found */
  16589. /***/ (function(module, exports, __webpack_require__) {
  16590. "use strict";
  16591. Object.defineProperty(exports, "__esModule", {
  16592. value: true
  16593. });
  16594. exports.default = void 0;
  16595. /*
  16596. * @Author : LQ
  16597. * @Description :
  16598. * @version : 1.0
  16599. * @Date : 2021-08-20 16:44:21
  16600. * @LastAuthor : LQ
  16601. * @lastTime : 2021-08-20 17:19:28
  16602. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16603. */
  16604. var _default = {
  16605. // scrollList
  16606. scrollList: {
  16607. indicatorWidth: 50,
  16608. indicatorBarWidth: 20,
  16609. indicator: true,
  16610. indicatorColor: '#f2f2f2',
  16611. indicatorActiveColor: '#3c9cff',
  16612. indicatorStyle: ''
  16613. }
  16614. };
  16615. exports.default = _default;
  16616. /***/ }),
  16617. /* 131 */
  16618. /*!********************************************************************************************!*\
  16619. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/search.js ***!
  16620. \********************************************************************************************/
  16621. /*! no static exports found */
  16622. /***/ (function(module, exports, __webpack_require__) {
  16623. "use strict";
  16624. Object.defineProperty(exports, "__esModule", {
  16625. value: true
  16626. });
  16627. exports.default = void 0;
  16628. /*
  16629. * @Author : LQ
  16630. * @Description :
  16631. * @version : 1.0
  16632. * @Date : 2021-08-20 16:44:21
  16633. * @LastAuthor : LQ
  16634. * @lastTime : 2021-08-20 17:19:45
  16635. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16636. */
  16637. var _default = {
  16638. // search
  16639. search: {
  16640. shape: 'round',
  16641. bgColor: '#f2f2f2',
  16642. placeholder: '请输入关键字',
  16643. clearabled: true,
  16644. focus: false,
  16645. showAction: true,
  16646. actionStyle: function actionStyle() {
  16647. return {};
  16648. },
  16649. actionText: '搜索',
  16650. inputAlign: 'left',
  16651. inputStyle: function inputStyle() {
  16652. return {};
  16653. },
  16654. disabled: false,
  16655. borderColor: 'transparent',
  16656. searchIconColor: '#909399',
  16657. searchIconSize: 22,
  16658. color: '#606266',
  16659. placeholderColor: '#909399',
  16660. searchIcon: 'search',
  16661. margin: '0',
  16662. animation: false,
  16663. value: '',
  16664. maxlength: '-1',
  16665. height: 32,
  16666. label: null
  16667. }
  16668. };
  16669. exports.default = _default;
  16670. /***/ }),
  16671. /* 132 */
  16672. /*!*********************************************************************************************!*\
  16673. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/section.js ***!
  16674. \*********************************************************************************************/
  16675. /*! no static exports found */
  16676. /***/ (function(module, exports, __webpack_require__) {
  16677. "use strict";
  16678. Object.defineProperty(exports, "__esModule", {
  16679. value: true
  16680. });
  16681. exports.default = void 0;
  16682. /*
  16683. * @Author : LQ
  16684. * @Description :
  16685. * @version : 1.0
  16686. * @Date : 2021-08-20 16:44:21
  16687. * @LastAuthor : LQ
  16688. * @lastTime : 2021-08-20 17:07:33
  16689. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16690. */
  16691. var _default = {
  16692. // u-section组件
  16693. section: {
  16694. title: '',
  16695. subTitle: '更多',
  16696. right: true,
  16697. fontSize: 15,
  16698. bold: true,
  16699. color: '#303133',
  16700. subColor: '#909399',
  16701. showLine: true,
  16702. lineColor: '',
  16703. arrow: true
  16704. }
  16705. };
  16706. exports.default = _default;
  16707. /***/ }),
  16708. /* 133 */
  16709. /*!**********************************************************************************************!*\
  16710. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  16711. \**********************************************************************************************/
  16712. /*! no static exports found */
  16713. /***/ (function(module, exports, __webpack_require__) {
  16714. "use strict";
  16715. Object.defineProperty(exports, "__esModule", {
  16716. value: true
  16717. });
  16718. exports.default = void 0;
  16719. /*
  16720. * @Author : LQ
  16721. * @Description :
  16722. * @version : 1.0
  16723. * @Date : 2021-08-20 16:44:21
  16724. * @LastAuthor : LQ
  16725. * @lastTime : 2021-08-20 17:20:14
  16726. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16727. */
  16728. var _default = {
  16729. // skeleton
  16730. skeleton: {
  16731. loading: true,
  16732. animate: true,
  16733. rows: 0,
  16734. rowsWidth: '100%',
  16735. rowsHeight: 18,
  16736. title: true,
  16737. titleWidth: '50%',
  16738. titleHeight: 18,
  16739. avatar: false,
  16740. avatarSize: 32,
  16741. avatarShape: 'circle'
  16742. }
  16743. };
  16744. exports.default = _default;
  16745. /***/ }),
  16746. /* 134 */
  16747. /*!********************************************************************************************!*\
  16748. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/slider.js ***!
  16749. \********************************************************************************************/
  16750. /*! no static exports found */
  16751. /***/ (function(module, exports, __webpack_require__) {
  16752. "use strict";
  16753. Object.defineProperty(exports, "__esModule", {
  16754. value: true
  16755. });
  16756. exports.default = void 0;
  16757. /*
  16758. * @Author : LQ
  16759. * @Description :
  16760. * @version : 1.0
  16761. * @Date : 2021-08-20 16:44:21
  16762. * @LastAuthor : LQ
  16763. * @lastTime : 2021-08-20 17:08:25
  16764. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16765. */
  16766. var _default = {
  16767. // slider组件
  16768. slider: {
  16769. value: 0,
  16770. blockSize: 18,
  16771. min: 0,
  16772. max: 100,
  16773. step: 1,
  16774. activeColor: '#2979ff',
  16775. inactiveColor: '#c0c4cc',
  16776. blockColor: '#ffffff',
  16777. showValue: false,
  16778. disabled: false,
  16779. blockStyle: function blockStyle() {}
  16780. }
  16781. };
  16782. exports.default = _default;
  16783. /***/ }),
  16784. /* 135 */
  16785. /*!***********************************************************************************************!*\
  16786. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  16787. \***********************************************************************************************/
  16788. /*! no static exports found */
  16789. /***/ (function(module, exports, __webpack_require__) {
  16790. "use strict";
  16791. Object.defineProperty(exports, "__esModule", {
  16792. value: true
  16793. });
  16794. exports.default = void 0;
  16795. /*
  16796. * @Author : LQ
  16797. * @Description :
  16798. * @version : 1.0
  16799. * @Date : 2021-08-20 16:44:21
  16800. * @LastAuthor : LQ
  16801. * @lastTime : 2021-08-20 17:20:39
  16802. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16803. */
  16804. var _default = {
  16805. // statusBar
  16806. statusBar: {
  16807. bgColor: 'transparent'
  16808. }
  16809. };
  16810. exports.default = _default;
  16811. /***/ }),
  16812. /* 136 */
  16813. /*!*******************************************************************************************!*\
  16814. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/steps.js ***!
  16815. \*******************************************************************************************/
  16816. /*! no static exports found */
  16817. /***/ (function(module, exports, __webpack_require__) {
  16818. "use strict";
  16819. Object.defineProperty(exports, "__esModule", {
  16820. value: true
  16821. });
  16822. exports.default = void 0;
  16823. /*
  16824. * @Author : LQ
  16825. * @Description :
  16826. * @version : 1.0
  16827. * @Date : 2021-08-20 16:44:21
  16828. * @LastAuthor : LQ
  16829. * @lastTime : 2021-08-20 17:12:37
  16830. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16831. */
  16832. var _default = {
  16833. // steps组件
  16834. steps: {
  16835. direction: 'row',
  16836. current: 0,
  16837. activeColor: '#3c9cff',
  16838. inactiveColor: '#969799',
  16839. activeIcon: '',
  16840. inactiveIcon: '',
  16841. dot: false
  16842. }
  16843. };
  16844. exports.default = _default;
  16845. /***/ }),
  16846. /* 137 */
  16847. /*!***********************************************************************************************!*\
  16848. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16849. \***********************************************************************************************/
  16850. /*! no static exports found */
  16851. /***/ (function(module, exports, __webpack_require__) {
  16852. "use strict";
  16853. Object.defineProperty(exports, "__esModule", {
  16854. value: true
  16855. });
  16856. exports.default = void 0;
  16857. /*
  16858. * @Author : LQ
  16859. * @Description :
  16860. * @version : 1.0
  16861. * @Date : 2021-08-20 16:44:21
  16862. * @LastAuthor : LQ
  16863. * @lastTime : 2021-08-20 17:12:55
  16864. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16865. */
  16866. var _default = {
  16867. // steps-item组件
  16868. stepsItem: {
  16869. title: '',
  16870. desc: '',
  16871. iconSize: 17,
  16872. error: false
  16873. }
  16874. };
  16875. exports.default = _default;
  16876. /***/ }),
  16877. /* 138 */
  16878. /*!********************************************************************************************!*\
  16879. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  16880. \********************************************************************************************/
  16881. /*! no static exports found */
  16882. /***/ (function(module, exports, __webpack_require__) {
  16883. "use strict";
  16884. Object.defineProperty(exports, "__esModule", {
  16885. value: true
  16886. });
  16887. exports.default = void 0;
  16888. /*
  16889. * @Author : LQ
  16890. * @Description :
  16891. * @version : 1.0
  16892. * @Date : 2021-08-20 16:44:21
  16893. * @LastAuthor : LQ
  16894. * @lastTime : 2021-08-20 17:01:30
  16895. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16896. */
  16897. var _default = {
  16898. // sticky组件
  16899. sticky: {
  16900. offsetTop: 0,
  16901. customNavHeight: 0,
  16902. disabled: false,
  16903. bgColor: 'transparent',
  16904. zIndex: '',
  16905. index: ''
  16906. }
  16907. };
  16908. exports.default = _default;
  16909. /***/ }),
  16910. /* 139 */
  16911. /*!************************************************************************************************!*\
  16912. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  16913. \************************************************************************************************/
  16914. /*! no static exports found */
  16915. /***/ (function(module, exports, __webpack_require__) {
  16916. "use strict";
  16917. Object.defineProperty(exports, "__esModule", {
  16918. value: true
  16919. });
  16920. exports.default = void 0;
  16921. /*
  16922. * @Author : LQ
  16923. * @Description :
  16924. * @version : 1.0
  16925. * @Date : 2021-08-20 16:44:21
  16926. * @LastAuthor : LQ
  16927. * @lastTime : 2021-08-20 17:12:20
  16928. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16929. */
  16930. var _default = {
  16931. // subsection组件
  16932. subsection: {
  16933. list: [],
  16934. current: 0,
  16935. activeColor: '#3c9cff',
  16936. inactiveColor: '#303133',
  16937. mode: 'button',
  16938. fontSize: 12,
  16939. bold: true,
  16940. bgColor: '#eeeeef',
  16941. keyName: 'name'
  16942. }
  16943. };
  16944. exports.default = _default;
  16945. /***/ }),
  16946. /* 140 */
  16947. /*!*************************************************************************************************!*\
  16948. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  16949. \*************************************************************************************************/
  16950. /*! no static exports found */
  16951. /***/ (function(module, exports, __webpack_require__) {
  16952. "use strict";
  16953. Object.defineProperty(exports, "__esModule", {
  16954. value: true
  16955. });
  16956. exports.default = void 0;
  16957. /*
  16958. * @Author : LQ
  16959. * @Description :
  16960. * @version : 1.0
  16961. * @Date : 2021-08-20 16:44:21
  16962. * @LastAuthor : LQ
  16963. * @lastTime : 2021-08-20 17:00:42
  16964. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16965. */
  16966. var _default = {
  16967. // swipe-action组件
  16968. swipeAction: {
  16969. autoClose: true
  16970. }
  16971. };
  16972. exports.default = _default;
  16973. /***/ }),
  16974. /* 141 */
  16975. /*!*****************************************************************************************************!*\
  16976. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  16977. \*****************************************************************************************************/
  16978. /*! no static exports found */
  16979. /***/ (function(module, exports, __webpack_require__) {
  16980. "use strict";
  16981. Object.defineProperty(exports, "__esModule", {
  16982. value: true
  16983. });
  16984. exports.default = void 0;
  16985. /*
  16986. * @Author : LQ
  16987. * @Description :
  16988. * @version : 1.0
  16989. * @Date : 2021-08-20 16:44:21
  16990. * @LastAuthor : LQ
  16991. * @lastTime : 2021-08-20 17:01:13
  16992. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16993. */
  16994. var _default = {
  16995. // swipeActionItem 组件
  16996. swipeActionItem: {
  16997. show: false,
  16998. name: '',
  16999. disabled: false,
  17000. threshold: 20,
  17001. autoClose: true,
  17002. options: [],
  17003. duration: 300
  17004. }
  17005. };
  17006. exports.default = _default;
  17007. /***/ }),
  17008. /* 142 */
  17009. /*!********************************************************************************************!*\
  17010. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  17011. \********************************************************************************************/
  17012. /*! no static exports found */
  17013. /***/ (function(module, exports, __webpack_require__) {
  17014. "use strict";
  17015. Object.defineProperty(exports, "__esModule", {
  17016. value: true
  17017. });
  17018. exports.default = void 0;
  17019. /*
  17020. * @Author : LQ
  17021. * @Description :
  17022. * @version : 1.0
  17023. * @Date : 2021-08-20 16:44:21
  17024. * @LastAuthor : LQ
  17025. * @lastTime : 2021-08-20 17:21:38
  17026. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17027. */
  17028. var _default = {
  17029. // swiper 组件
  17030. swiper: {
  17031. list: function list() {
  17032. return [];
  17033. },
  17034. indicator: false,
  17035. indicatorActiveColor: '#FFFFFF',
  17036. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17037. indicatorStyle: '',
  17038. indicatorMode: 'line',
  17039. autoplay: true,
  17040. current: 0,
  17041. currentItemId: '',
  17042. interval: 3000,
  17043. duration: 300,
  17044. circular: false,
  17045. previousMargin: 0,
  17046. nextMargin: 0,
  17047. acceleration: false,
  17048. displayMultipleItems: 1,
  17049. easingFunction: 'default',
  17050. keyName: 'url',
  17051. imgMode: 'aspectFill',
  17052. height: 130,
  17053. bgColor: '#f3f4f6',
  17054. radius: 4,
  17055. loading: false,
  17056. showTitle: false
  17057. }
  17058. };
  17059. exports.default = _default;
  17060. /***/ }),
  17061. /* 143 */
  17062. /*!******************************************************************************************************!*\
  17063. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17064. \******************************************************************************************************/
  17065. /*! no static exports found */
  17066. /***/ (function(module, exports, __webpack_require__) {
  17067. "use strict";
  17068. Object.defineProperty(exports, "__esModule", {
  17069. value: true
  17070. });
  17071. exports.default = void 0;
  17072. /*
  17073. * @Author : LQ
  17074. * @Description :
  17075. * @version : 1.0
  17076. * @Date : 2021-08-20 16:44:21
  17077. * @LastAuthor : LQ
  17078. * @lastTime : 2021-08-20 17:22:07
  17079. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17080. */
  17081. var _default = {
  17082. // swiperIndicator 组件
  17083. swiperIndicator: {
  17084. length: 0,
  17085. current: 0,
  17086. indicatorActiveColor: '',
  17087. indicatorInactiveColor: '',
  17088. indicatorMode: 'line'
  17089. }
  17090. };
  17091. exports.default = _default;
  17092. /***/ }),
  17093. /* 144 */
  17094. /*!********************************************************************************************!*\
  17095. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17096. \********************************************************************************************/
  17097. /*! no static exports found */
  17098. /***/ (function(module, exports, __webpack_require__) {
  17099. "use strict";
  17100. Object.defineProperty(exports, "__esModule", {
  17101. value: true
  17102. });
  17103. exports.default = void 0;
  17104. /*
  17105. * @Author : LQ
  17106. * @Description :
  17107. * @version : 1.0
  17108. * @Date : 2021-08-20 16:44:21
  17109. * @LastAuthor : LQ
  17110. * @lastTime : 2021-08-20 17:22:24
  17111. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17112. */
  17113. var _default = {
  17114. // switch
  17115. switch: {
  17116. loading: false,
  17117. disabled: false,
  17118. size: 25,
  17119. activeColor: '#2979ff',
  17120. inactiveColor: '#ffffff',
  17121. value: false,
  17122. activeValue: true,
  17123. inactiveValue: false,
  17124. asyncChange: false,
  17125. space: 0
  17126. }
  17127. };
  17128. exports.default = _default;
  17129. /***/ }),
  17130. /* 145 */
  17131. /*!********************************************************************************************!*\
  17132. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17133. \********************************************************************************************/
  17134. /*! no static exports found */
  17135. /***/ (function(module, exports, __webpack_require__) {
  17136. "use strict";
  17137. Object.defineProperty(exports, "__esModule", {
  17138. value: true
  17139. });
  17140. exports.default = void 0;
  17141. /*
  17142. * @Author : LQ
  17143. * @Description :
  17144. * @version : 1.0
  17145. * @Date : 2021-08-20 16:44:21
  17146. * @LastAuthor : LQ
  17147. * @lastTime : 2021-08-20 17:22:40
  17148. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17149. */
  17150. var _default = {
  17151. // tabbar
  17152. tabbar: {
  17153. value: null,
  17154. safeAreaInsetBottom: true,
  17155. border: true,
  17156. zIndex: 1,
  17157. activeColor: '#1989fa',
  17158. inactiveColor: '#7d7e80',
  17159. fixed: true,
  17160. placeholder: true
  17161. }
  17162. };
  17163. exports.default = _default;
  17164. /***/ }),
  17165. /* 146 */
  17166. /*!************************************************************************************************!*\
  17167. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17168. \************************************************************************************************/
  17169. /*! no static exports found */
  17170. /***/ (function(module, exports, __webpack_require__) {
  17171. "use strict";
  17172. Object.defineProperty(exports, "__esModule", {
  17173. value: true
  17174. });
  17175. exports.default = void 0;
  17176. /*
  17177. * @Author : LQ
  17178. * @Description :
  17179. * @version : 1.0
  17180. * @Date : 2021-08-20 16:44:21
  17181. * @LastAuthor : LQ
  17182. * @lastTime : 2021-08-20 17:22:55
  17183. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17184. */
  17185. var _default = {
  17186. //
  17187. tabbarItem: {
  17188. name: null,
  17189. icon: '',
  17190. badge: null,
  17191. dot: false,
  17192. text: '',
  17193. badgeStyle: 'top: 6px;right:2px;'
  17194. }
  17195. };
  17196. exports.default = _default;
  17197. /***/ }),
  17198. /* 147 */
  17199. /*!******************************************************************************************!*\
  17200. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17201. \******************************************************************************************/
  17202. /*! no static exports found */
  17203. /***/ (function(module, exports, __webpack_require__) {
  17204. "use strict";
  17205. Object.defineProperty(exports, "__esModule", {
  17206. value: true
  17207. });
  17208. exports.default = void 0;
  17209. /*
  17210. * @Author : LQ
  17211. * @Description :
  17212. * @version : 1.0
  17213. * @Date : 2021-08-20 16:44:21
  17214. * @LastAuthor : LQ
  17215. * @lastTime : 2021-08-20 17:23:14
  17216. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17217. */
  17218. var _default = {
  17219. //
  17220. tabs: {
  17221. duration: 300,
  17222. list: function list() {
  17223. return [];
  17224. },
  17225. lineColor: '#3c9cff',
  17226. activeStyle: function activeStyle() {
  17227. return {
  17228. color: '#303133'
  17229. };
  17230. },
  17231. inactiveStyle: function inactiveStyle() {
  17232. return {
  17233. color: '#606266'
  17234. };
  17235. },
  17236. lineWidth: 20,
  17237. lineHeight: 3,
  17238. lineBgSize: 'cover',
  17239. itemStyle: function itemStyle() {
  17240. return {
  17241. height: '44px'
  17242. };
  17243. },
  17244. scrollable: true,
  17245. current: 0,
  17246. keyName: 'name'
  17247. }
  17248. };
  17249. exports.default = _default;
  17250. /***/ }),
  17251. /* 148 */
  17252. /*!*****************************************************************************************!*\
  17253. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17254. \*****************************************************************************************/
  17255. /*! no static exports found */
  17256. /***/ (function(module, exports, __webpack_require__) {
  17257. "use strict";
  17258. Object.defineProperty(exports, "__esModule", {
  17259. value: true
  17260. });
  17261. exports.default = void 0;
  17262. /*
  17263. * @Author : LQ
  17264. * @Description :
  17265. * @version : 1.0
  17266. * @Date : 2021-08-20 16:44:21
  17267. * @LastAuthor : LQ
  17268. * @lastTime : 2021-08-20 17:23:37
  17269. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17270. */
  17271. var _default = {
  17272. // tag 组件
  17273. tag: {
  17274. type: 'primary',
  17275. disabled: false,
  17276. size: 'medium',
  17277. shape: 'square',
  17278. text: '',
  17279. bgColor: '',
  17280. color: '',
  17281. borderColor: '',
  17282. closeColor: '#C6C7CB',
  17283. name: '',
  17284. plainFill: false,
  17285. plain: false,
  17286. closable: false,
  17287. show: true,
  17288. icon: ''
  17289. }
  17290. };
  17291. exports.default = _default;
  17292. /***/ }),
  17293. /* 149 */
  17294. /*!******************************************************************************************!*\
  17295. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/text.js ***!
  17296. \******************************************************************************************/
  17297. /*! no static exports found */
  17298. /***/ (function(module, exports, __webpack_require__) {
  17299. "use strict";
  17300. Object.defineProperty(exports, "__esModule", {
  17301. value: true
  17302. });
  17303. exports.default = void 0;
  17304. /*
  17305. * @Author : LQ
  17306. * @Description :
  17307. * @version : 1.0
  17308. * @Date : 2021-08-20 16:44:21
  17309. * @LastAuthor : LQ
  17310. * @lastTime : 2021-08-20 17:23:58
  17311. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17312. */
  17313. var _default = {
  17314. // text 组件
  17315. text: {
  17316. type: '',
  17317. show: true,
  17318. text: '',
  17319. prefixIcon: '',
  17320. suffixIcon: '',
  17321. mode: '',
  17322. href: '',
  17323. format: '',
  17324. call: false,
  17325. openType: '',
  17326. bold: false,
  17327. block: false,
  17328. lines: '',
  17329. color: '#303133',
  17330. size: 15,
  17331. iconStyle: function iconStyle() {
  17332. return {
  17333. fontSize: '15px'
  17334. };
  17335. },
  17336. decoration: 'none',
  17337. margin: 0,
  17338. lineHeight: '',
  17339. align: 'left',
  17340. wordWrap: 'normal'
  17341. }
  17342. };
  17343. exports.default = _default;
  17344. /***/ }),
  17345. /* 150 */
  17346. /*!**********************************************************************************************!*\
  17347. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17348. \**********************************************************************************************/
  17349. /*! no static exports found */
  17350. /***/ (function(module, exports, __webpack_require__) {
  17351. "use strict";
  17352. Object.defineProperty(exports, "__esModule", {
  17353. value: true
  17354. });
  17355. exports.default = void 0;
  17356. /*
  17357. * @Author : LQ
  17358. * @Description :
  17359. * @version : 1.0
  17360. * @Date : 2021-08-20 16:44:21
  17361. * @LastAuthor : LQ
  17362. * @lastTime : 2021-08-20 17:24:32
  17363. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17364. */
  17365. var _default = {
  17366. // textarea 组件
  17367. textarea: {
  17368. value: '',
  17369. placeholder: '',
  17370. placeholderClass: 'textarea-placeholder',
  17371. placeholderStyle: 'color: #c0c4cc',
  17372. height: 70,
  17373. confirmType: 'done',
  17374. disabled: false,
  17375. count: false,
  17376. focus: false,
  17377. autoHeight: false,
  17378. fixed: false,
  17379. cursorSpacing: 0,
  17380. cursor: '',
  17381. showConfirmBar: true,
  17382. selectionStart: -1,
  17383. selectionEnd: -1,
  17384. adjustPosition: true,
  17385. disableDefaultPadding: false,
  17386. holdKeyboard: false,
  17387. maxlength: 140,
  17388. border: 'surround',
  17389. formatter: null
  17390. }
  17391. };
  17392. exports.default = _default;
  17393. /***/ }),
  17394. /* 151 */
  17395. /*!*******************************************************************************************!*\
  17396. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17397. \*******************************************************************************************/
  17398. /*! no static exports found */
  17399. /***/ (function(module, exports, __webpack_require__) {
  17400. "use strict";
  17401. Object.defineProperty(exports, "__esModule", {
  17402. value: true
  17403. });
  17404. exports.default = void 0;
  17405. /*
  17406. * @Author : LQ
  17407. * @Description :
  17408. * @version : 1.0
  17409. * @Date : 2021-08-20 16:44:21
  17410. * @LastAuthor : LQ
  17411. * @lastTime : 2021-08-20 17:07:07
  17412. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17413. */
  17414. var _default = {
  17415. // toast组件
  17416. toast: {
  17417. zIndex: 10090,
  17418. loading: false,
  17419. text: '',
  17420. icon: '',
  17421. type: '',
  17422. loadingMode: '',
  17423. show: '',
  17424. overlay: false,
  17425. position: 'center',
  17426. params: function params() {},
  17427. duration: 2000,
  17428. isTab: false,
  17429. url: '',
  17430. callback: null,
  17431. back: false
  17432. }
  17433. };
  17434. exports.default = _default;
  17435. /***/ }),
  17436. /* 152 */
  17437. /*!*********************************************************************************************!*\
  17438. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17439. \*********************************************************************************************/
  17440. /*! no static exports found */
  17441. /***/ (function(module, exports, __webpack_require__) {
  17442. "use strict";
  17443. Object.defineProperty(exports, "__esModule", {
  17444. value: true
  17445. });
  17446. exports.default = void 0;
  17447. /*
  17448. * @Author : LQ
  17449. * @Description :
  17450. * @version : 1.0
  17451. * @Date : 2021-08-20 16:44:21
  17452. * @LastAuthor : LQ
  17453. * @lastTime : 2021-08-20 17:24:55
  17454. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17455. */
  17456. var _default = {
  17457. // toolbar 组件
  17458. toolbar: {
  17459. show: true,
  17460. cancelText: '取消',
  17461. confirmText: '确认',
  17462. cancelColor: '#909193',
  17463. confirmColor: '#3c9cff',
  17464. title: ''
  17465. }
  17466. };
  17467. exports.default = _default;
  17468. /***/ }),
  17469. /* 153 */
  17470. /*!*********************************************************************************************!*\
  17471. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17472. \*********************************************************************************************/
  17473. /*! no static exports found */
  17474. /***/ (function(module, exports, __webpack_require__) {
  17475. "use strict";
  17476. Object.defineProperty(exports, "__esModule", {
  17477. value: true
  17478. });
  17479. exports.default = void 0;
  17480. /*
  17481. * @Author : LQ
  17482. * @Description :
  17483. * @version : 1.0
  17484. * @Date : 2021-08-20 16:44:21
  17485. * @LastAuthor : LQ
  17486. * @lastTime : 2021-08-20 17:25:14
  17487. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17488. */
  17489. var _default = {
  17490. // tooltip 组件
  17491. tooltip: {
  17492. text: '',
  17493. copyText: '',
  17494. size: 14,
  17495. color: '#606266',
  17496. bgColor: 'transparent',
  17497. direction: 'top',
  17498. zIndex: 10071,
  17499. showCopy: true,
  17500. buttons: function buttons() {
  17501. return [];
  17502. },
  17503. overlay: true,
  17504. showToast: true
  17505. }
  17506. };
  17507. exports.default = _default;
  17508. /***/ }),
  17509. /* 154 */
  17510. /*!************************************************************************************************!*\
  17511. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17512. \************************************************************************************************/
  17513. /*! no static exports found */
  17514. /***/ (function(module, exports, __webpack_require__) {
  17515. "use strict";
  17516. Object.defineProperty(exports, "__esModule", {
  17517. value: true
  17518. });
  17519. exports.default = void 0;
  17520. /*
  17521. * @Author : LQ
  17522. * @Description :
  17523. * @version : 1.0
  17524. * @Date : 2021-08-20 16:44:21
  17525. * @LastAuthor : LQ
  17526. * @lastTime : 2021-08-20 16:59:00
  17527. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17528. */
  17529. var _default = {
  17530. // transition动画组件的props
  17531. transition: {
  17532. show: false,
  17533. mode: 'fade',
  17534. duration: '300',
  17535. timingFunction: 'ease-out'
  17536. }
  17537. };
  17538. exports.default = _default;
  17539. /***/ }),
  17540. /* 155 */
  17541. /*!********************************************************************************************!*\
  17542. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17543. \********************************************************************************************/
  17544. /*! no static exports found */
  17545. /***/ (function(module, exports, __webpack_require__) {
  17546. "use strict";
  17547. Object.defineProperty(exports, "__esModule", {
  17548. value: true
  17549. });
  17550. exports.default = void 0;
  17551. /*
  17552. * @Author : LQ
  17553. * @Description :
  17554. * @version : 1.0
  17555. * @Date : 2021-08-20 16:44:21
  17556. * @LastAuthor : LQ
  17557. * @lastTime : 2021-08-20 17:09:50
  17558. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17559. */
  17560. var _default = {
  17561. // upload组件
  17562. upload: {
  17563. accept: 'image',
  17564. capture: function capture() {
  17565. return ['album', 'camera'];
  17566. },
  17567. compressed: true,
  17568. camera: 'back',
  17569. maxDuration: 60,
  17570. uploadIcon: 'camera-fill',
  17571. uploadIconColor: '#D3D4D6',
  17572. useBeforeRead: false,
  17573. previewFullImage: true,
  17574. maxCount: 52,
  17575. disabled: false,
  17576. imageMode: 'aspectFill',
  17577. name: '',
  17578. sizeType: function sizeType() {
  17579. return ['original', 'compressed'];
  17580. },
  17581. multiple: false,
  17582. deletable: true,
  17583. maxSize: Number.MAX_VALUE,
  17584. fileList: function fileList() {
  17585. return [];
  17586. },
  17587. uploadText: '',
  17588. width: 80,
  17589. height: 80,
  17590. previewImage: true
  17591. }
  17592. };
  17593. exports.default = _default;
  17594. /***/ }),
  17595. /* 156 */
  17596. /*!**************************************************************************************!*\
  17597. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17598. \**************************************************************************************/
  17599. /*! no static exports found */
  17600. /***/ (function(module, exports, __webpack_require__) {
  17601. "use strict";
  17602. Object.defineProperty(exports, "__esModule", {
  17603. value: true
  17604. });
  17605. exports.default = void 0;
  17606. // uniapp在H5中各API的z-index值如下:
  17607. /**
  17608. * actionsheet: 999
  17609. * modal: 999
  17610. * navigate: 998
  17611. * tabbar: 998
  17612. * toast: 999
  17613. */
  17614. var _default = {
  17615. toast: 10090,
  17616. noNetwork: 10080,
  17617. // popup包含popup,actionsheet,keyboard,picker的值
  17618. popup: 10075,
  17619. mask: 10070,
  17620. navbar: 980,
  17621. topTips: 975,
  17622. sticky: 970,
  17623. indexListSticky: 965
  17624. };
  17625. exports.default = _default;
  17626. /***/ }),
  17627. /* 157 */
  17628. /*!******************************************************************************************!*\
  17629. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/libs/function/platform.js ***!
  17630. \******************************************************************************************/
  17631. /*! no static exports found */
  17632. /***/ (function(module, exports, __webpack_require__) {
  17633. "use strict";
  17634. Object.defineProperty(exports, "__esModule", {
  17635. value: true
  17636. });
  17637. exports.default = void 0;
  17638. /**
  17639. * 注意:
  17640. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17641. * module.exports = {
  17642. * transpileDependencies: ['uview-v2']
  17643. * }
  17644. */
  17645. var platform = 'none';
  17646. platform = 'vue2';
  17647. platform = 'weixin';
  17648. platform = 'mp';
  17649. var _default = platform;
  17650. exports.default = _default;
  17651. /***/ }),
  17652. /* 158 */
  17653. /*!********************************************************************!*\
  17654. !*** D:/baozhida/baozhida-figure-platter/uni.promisify.adaptor.js ***!
  17655. \********************************************************************/
  17656. /*! no static exports found */
  17657. /***/ (function(module, exports, __webpack_require__) {
  17658. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17659. uni.addInterceptor({
  17660. returnValue: function returnValue(res) {
  17661. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  17662. return res;
  17663. }
  17664. return new Promise(function (resolve, reject) {
  17665. res.then(function (res) {
  17666. if (!res) return resolve(res);
  17667. return res[0] ? reject(res[0]) : resolve(res[1]);
  17668. });
  17669. });
  17670. }
  17671. });
  17672. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17673. /***/ }),
  17674. /* 159 */,
  17675. /* 160 */,
  17676. /* 161 */,
  17677. /* 162 */,
  17678. /* 163 */,
  17679. /* 164 */,
  17680. /* 165 */,
  17681. /* 166 */,
  17682. /* 167 */,
  17683. /* 168 */,
  17684. /* 169 */,
  17685. /* 170 */,
  17686. /* 171 */,
  17687. /* 172 */,
  17688. /* 173 */,
  17689. /* 174 */,
  17690. /* 175 */,
  17691. /* 176 */,
  17692. /* 177 */,
  17693. /* 178 */,
  17694. /* 179 */,
  17695. /* 180 */,
  17696. /* 181 */,
  17697. /* 182 */,
  17698. /* 183 */,
  17699. /* 184 */,
  17700. /* 185 */,
  17701. /* 186 */,
  17702. /* 187 */,
  17703. /* 188 */,
  17704. /* 189 */,
  17705. /* 190 */,
  17706. /* 191 */,
  17707. /* 192 */,
  17708. /* 193 */,
  17709. /* 194 */,
  17710. /* 195 */,
  17711. /* 196 */,
  17712. /* 197 */,
  17713. /* 198 */,
  17714. /* 199 */,
  17715. /* 200 */,
  17716. /* 201 */,
  17717. /* 202 */,
  17718. /* 203 */,
  17719. /* 204 */,
  17720. /* 205 */,
  17721. /* 206 */,
  17722. /* 207 */,
  17723. /* 208 */,
  17724. /* 209 */,
  17725. /* 210 */,
  17726. /* 211 */,
  17727. /* 212 */,
  17728. /* 213 */,
  17729. /* 214 */
  17730. /*!*************************************************************************************************!*\
  17731. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-notice-bar/props.js ***!
  17732. \*************************************************************************************************/
  17733. /*! no static exports found */
  17734. /***/ (function(module, exports, __webpack_require__) {
  17735. "use strict";
  17736. /* WEBPACK VAR INJECTION */(function(uni) {
  17737. Object.defineProperty(exports, "__esModule", {
  17738. value: true
  17739. });
  17740. exports.default = void 0;
  17741. var _default = {
  17742. props: {
  17743. // 显示的内容,数组
  17744. text: {
  17745. type: [Array, String],
  17746. default: uni.$u.props.noticeBar.text
  17747. },
  17748. // 通告滚动模式,row-横向滚动,column-竖向滚动
  17749. direction: {
  17750. type: String,
  17751. default: uni.$u.props.noticeBar.direction
  17752. },
  17753. // direction = row时,是否使用步进形式滚动
  17754. step: {
  17755. type: Boolean,
  17756. default: uni.$u.props.noticeBar.step
  17757. },
  17758. // 是否显示左侧的音量图标
  17759. icon: {
  17760. type: String,
  17761. default: uni.$u.props.noticeBar.icon
  17762. },
  17763. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  17764. mode: {
  17765. type: String,
  17766. default: uni.$u.props.noticeBar.mode
  17767. },
  17768. // 文字颜色,各图标也会使用文字颜色
  17769. color: {
  17770. type: String,
  17771. default: uni.$u.props.noticeBar.color
  17772. },
  17773. // 背景颜色
  17774. bgColor: {
  17775. type: String,
  17776. default: uni.$u.props.noticeBar.bgColor
  17777. },
  17778. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  17779. speed: {
  17780. type: [String, Number],
  17781. default: uni.$u.props.noticeBar.speed
  17782. },
  17783. // 字体大小
  17784. fontSize: {
  17785. type: [String, Number],
  17786. default: uni.$u.props.noticeBar.fontSize
  17787. },
  17788. // 滚动一个周期的时间长,单位ms
  17789. duration: {
  17790. type: [String, Number],
  17791. default: uni.$u.props.noticeBar.duration
  17792. },
  17793. // 是否禁止用手滑动切换
  17794. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  17795. disableTouch: {
  17796. type: Boolean,
  17797. default: uni.$u.props.noticeBar.disableTouch
  17798. },
  17799. // 跳转的页面路径
  17800. url: {
  17801. type: String,
  17802. default: uni.$u.props.noticeBar.url
  17803. },
  17804. // 页面跳转的类型
  17805. linkType: {
  17806. type: String,
  17807. default: uni.$u.props.noticeBar.linkType
  17808. }
  17809. }
  17810. };
  17811. exports.default = _default;
  17812. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17813. /***/ }),
  17814. /* 215 */,
  17815. /* 216 */,
  17816. /* 217 */,
  17817. /* 218 */,
  17818. /* 219 */,
  17819. /* 220 */,
  17820. /* 221 */,
  17821. /* 222 */,
  17822. /* 223 */,
  17823. /* 224 */,
  17824. /* 225 */,
  17825. /* 226 */,
  17826. /* 227 */,
  17827. /* 228 */,
  17828. /* 229 */
  17829. /*!*********************************************************************************************!*\
  17830. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-switch/props.js ***!
  17831. \*********************************************************************************************/
  17832. /*! no static exports found */
  17833. /***/ (function(module, exports, __webpack_require__) {
  17834. "use strict";
  17835. /* WEBPACK VAR INJECTION */(function(uni) {
  17836. Object.defineProperty(exports, "__esModule", {
  17837. value: true
  17838. });
  17839. exports.default = void 0;
  17840. var _default = {
  17841. props: {
  17842. // 是否为加载中状态
  17843. loading: {
  17844. type: Boolean,
  17845. default: uni.$u.props.switch.loading
  17846. },
  17847. // 是否为禁用装填
  17848. disabled: {
  17849. type: Boolean,
  17850. default: uni.$u.props.switch.disabled
  17851. },
  17852. // 开关尺寸,单位px
  17853. size: {
  17854. type: [String, Number],
  17855. default: uni.$u.props.switch.size
  17856. },
  17857. // 打开时的背景颜色
  17858. activeColor: {
  17859. type: String,
  17860. default: uni.$u.props.switch.activeColor
  17861. },
  17862. // 关闭时的背景颜色
  17863. inactiveColor: {
  17864. type: String,
  17865. default: uni.$u.props.switch.inactiveColor
  17866. },
  17867. // 通过v-model双向绑定的值
  17868. value: {
  17869. type: [Boolean, String, Number],
  17870. default: uni.$u.props.switch.value
  17871. },
  17872. // switch打开时的值
  17873. activeValue: {
  17874. type: [String, Number, Boolean],
  17875. default: uni.$u.props.switch.activeValue
  17876. },
  17877. // switch关闭时的值
  17878. inactiveValue: {
  17879. type: [String, Number, Boolean],
  17880. default: uni.$u.props.switch.inactiveValue
  17881. },
  17882. // 是否开启异步变更,开启后需要手动控制输入值
  17883. asyncChange: {
  17884. type: Boolean,
  17885. default: uni.$u.props.switch.asyncChange
  17886. },
  17887. // 圆点与外边框的距离
  17888. space: {
  17889. type: [String, Number],
  17890. default: uni.$u.props.switch.space
  17891. }
  17892. }
  17893. };
  17894. exports.default = _default;
  17895. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17896. /***/ }),
  17897. /* 230 */,
  17898. /* 231 */,
  17899. /* 232 */,
  17900. /* 233 */,
  17901. /* 234 */,
  17902. /* 235 */,
  17903. /* 236 */,
  17904. /* 237 */,
  17905. /* 238 */,
  17906. /* 239 */,
  17907. /* 240 */,
  17908. /* 241 */,
  17909. /* 242 */,
  17910. /* 243 */,
  17911. /* 244 */
  17912. /*!********************************************************************************************!*\
  17913. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-popup/props.js ***!
  17914. \********************************************************************************************/
  17915. /*! no static exports found */
  17916. /***/ (function(module, exports, __webpack_require__) {
  17917. "use strict";
  17918. /* WEBPACK VAR INJECTION */(function(uni) {
  17919. Object.defineProperty(exports, "__esModule", {
  17920. value: true
  17921. });
  17922. exports.default = void 0;
  17923. var _default = {
  17924. props: {
  17925. // 是否展示弹窗
  17926. show: {
  17927. type: Boolean,
  17928. default: uni.$u.props.popup.show
  17929. },
  17930. // 是否显示遮罩
  17931. overlay: {
  17932. type: Boolean,
  17933. default: uni.$u.props.popup.overlay
  17934. },
  17935. // 弹出的方向,可选值为 top bottom right left center
  17936. mode: {
  17937. type: String,
  17938. default: uni.$u.props.popup.mode
  17939. },
  17940. // 动画时长,单位ms
  17941. duration: {
  17942. type: [String, Number],
  17943. default: uni.$u.props.popup.duration
  17944. },
  17945. // 是否显示关闭图标
  17946. closeable: {
  17947. type: Boolean,
  17948. default: uni.$u.props.popup.closeable
  17949. },
  17950. // 自定义遮罩的样式
  17951. overlayStyle: {
  17952. type: [Object, String],
  17953. default: uni.$u.props.popup.overlayStyle
  17954. },
  17955. // 点击遮罩是否关闭弹窗
  17956. closeOnClickOverlay: {
  17957. type: Boolean,
  17958. default: uni.$u.props.popup.closeOnClickOverlay
  17959. },
  17960. // 层级
  17961. zIndex: {
  17962. type: [String, Number],
  17963. default: uni.$u.props.popup.zIndex
  17964. },
  17965. // 是否为iPhoneX留出底部安全距离
  17966. safeAreaInsetBottom: {
  17967. type: Boolean,
  17968. default: uni.$u.props.popup.safeAreaInsetBottom
  17969. },
  17970. // 是否留出顶部安全距离(状态栏高度)
  17971. safeAreaInsetTop: {
  17972. type: Boolean,
  17973. default: uni.$u.props.popup.safeAreaInsetTop
  17974. },
  17975. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  17976. closeIconPos: {
  17977. type: String,
  17978. default: uni.$u.props.popup.closeIconPos
  17979. },
  17980. // 是否显示圆角
  17981. round: {
  17982. type: [Boolean, String, Number],
  17983. default: uni.$u.props.popup.round
  17984. },
  17985. // mode=center,也即中部弹出时,是否使用缩放模式
  17986. zoom: {
  17987. type: Boolean,
  17988. default: uni.$u.props.popup.zoom
  17989. },
  17990. // 弹窗背景色,设置为transparent可去除白色背景
  17991. bgColor: {
  17992. type: String,
  17993. default: uni.$u.props.popup.bgColor
  17994. },
  17995. // 遮罩的透明度,0-1之间
  17996. overlayOpacity: {
  17997. type: [Number, String],
  17998. default: uni.$u.props.popup.overlayOpacity
  17999. }
  18000. }
  18001. };
  18002. exports.default = _default;
  18003. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18004. /***/ }),
  18005. /* 245 */,
  18006. /* 246 */,
  18007. /* 247 */,
  18008. /* 248 */,
  18009. /* 249 */,
  18010. /* 250 */,
  18011. /* 251 */,
  18012. /* 252 */
  18013. /*!******************************************************************************!*\
  18014. !*** D:/baozhida/baozhida-figure-platter/pages/index/components/calendar.js ***!
  18015. \******************************************************************************/
  18016. /*! no static exports found */
  18017. /***/ (function(module, exports, __webpack_require__) {
  18018. "use strict";
  18019. Object.defineProperty(exports, "__esModule", {
  18020. value: true
  18021. });
  18022. exports.default = void 0;
  18023. /**
  18024. * @1900-2100区间内的公历、农历互转
  18025. * @charset UTF-8
  18026. * @Author Jea杨(JJonline@JJonline.Cn)
  18027. * @Time 2014-7-21
  18028. * @Time 2016-8-13 Fixed 2033hex、Attribution Annals
  18029. * @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
  18030. * @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year
  18031. * @Version 1.0.3
  18032. * @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0]
  18033. * @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0]
  18034. */
  18035. var calendar = {
  18036. /**
  18037. * 农历1900-2100的润大小信息表
  18038. * @Array Of Property
  18039. * @return Hex
  18040. */
  18041. lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2,
  18042. //1900-1909
  18043. 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977,
  18044. //1910-1919
  18045. 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970,
  18046. //1920-1929
  18047. 0x06566, 0x0d4a0, 0x0ea50, 0x16a95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950,
  18048. //1930-1939
  18049. 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557,
  18050. //1940-1949
  18051. 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0,
  18052. //1950-1959
  18053. 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0,
  18054. //1960-1969
  18055. 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6,
  18056. //1970-1979
  18057. 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570,
  18058. //1980-1989
  18059. 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0,
  18060. //1990-1999
  18061. 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5,
  18062. //2000-2009
  18063. 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930,
  18064. //2010-2019
  18065. 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530,
  18066. //2020-2029
  18067. 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45,
  18068. //2030-2039
  18069. 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0,
  18070. //2040-2049
  18071. /**Add By JJonline@JJonline.Cn**/
  18072. 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0,
  18073. //2050-2059
  18074. 0x092e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4,
  18075. //2060-2069
  18076. 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0,
  18077. //2070-2079
  18078. 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160,
  18079. //2080-2089
  18080. 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252,
  18081. //2090-2099
  18082. 0x0d520],
  18083. //2100
  18084. /**
  18085. * 公历每个月份的天数普通表
  18086. * @Array Of Property
  18087. * @return Number
  18088. */
  18089. solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
  18090. /**
  18091. * 天干地支之天干速查表
  18092. * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"]
  18093. * @return Cn string
  18094. */
  18095. Gan: ["\u7532", "\u4E59", "\u4E19", "\u4E01", "\u620A", "\u5DF1", "\u5E9A", "\u8F9B", "\u58EC", "\u7678"],
  18096. /**
  18097. * 天干地支之地支速查表
  18098. * @Array Of Property
  18099. * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"]
  18100. * @return Cn string
  18101. */
  18102. Zhi: ["\u5B50", "\u4E11", "\u5BC5", "\u536F", "\u8FB0", "\u5DF3", "\u5348", "\u672A", "\u7533", "\u9149", "\u620C", "\u4EA5"],
  18103. /**
  18104. * 天干地支之地支速查表<=>生肖
  18105. * @Array Of Property
  18106. * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"]
  18107. * @return Cn string
  18108. */
  18109. Animals: ["\u9F20", "\u725B", "\u864E", "\u5154", "\u9F99", "\u86C7", "\u9A6C", "\u7F8A", "\u7334", "\u9E21", "\u72D7", "\u732A"],
  18110. /**
  18111. * 阳历节日
  18112. */
  18113. festival: {
  18114. '1-1': {
  18115. title: '元旦节'
  18116. },
  18117. '2-14': {
  18118. title: '情人节'
  18119. },
  18120. '5-1': {
  18121. title: '劳动节'
  18122. },
  18123. '5-4': {
  18124. title: '青年节'
  18125. },
  18126. '6-1': {
  18127. title: '儿童节'
  18128. },
  18129. '9-10': {
  18130. title: '教师节'
  18131. },
  18132. '10-1': {
  18133. title: '国庆节'
  18134. },
  18135. '12-25': {
  18136. title: '圣诞节'
  18137. },
  18138. '3-8': {
  18139. title: '妇女节'
  18140. },
  18141. '3-12': {
  18142. title: '植树节'
  18143. },
  18144. '4-1': {
  18145. title: '愚人节'
  18146. },
  18147. '5-12': {
  18148. title: '护士节'
  18149. },
  18150. '7-1': {
  18151. title: '建党节'
  18152. },
  18153. '8-1': {
  18154. title: '建军节'
  18155. },
  18156. '12-24': {
  18157. title: '平安夜'
  18158. }
  18159. },
  18160. /**
  18161. * 农历节日
  18162. */
  18163. lfestival: {
  18164. '12-30': {
  18165. title: '除夕'
  18166. },
  18167. '1-1': {
  18168. title: '春节'
  18169. },
  18170. '1-15': {
  18171. title: '元宵节'
  18172. },
  18173. '5-5': {
  18174. title: '端午节'
  18175. },
  18176. '8-15': {
  18177. title: '中秋节'
  18178. },
  18179. '9-9': {
  18180. title: '重阳节'
  18181. }
  18182. },
  18183. /**
  18184. * 返回默认定义的阳历节日
  18185. */
  18186. getFestival: function getFestival() {
  18187. return this.festival;
  18188. },
  18189. /**
  18190. * 返回默认定义的内容里节日
  18191. */
  18192. getLunarFestival: function getLunarFestival() {
  18193. return this.lfestival;
  18194. },
  18195. /**
  18196. *
  18197. * @param {Object} 按照festival的格式输入数据,设置阳历节日
  18198. */
  18199. setFestival: function setFestival() {
  18200. var param = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18201. this.festival = param;
  18202. },
  18203. /**
  18204. *
  18205. * @param {Object} 按照lfestival的格式输入数据,设置农历节日
  18206. */
  18207. setLunarFestival: function setLunarFestival() {
  18208. var param = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18209. this.lfestival = param;
  18210. },
  18211. /**
  18212. * 24节气速查表
  18213. * @Array Of Property
  18214. * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"]
  18215. * @return Cn string
  18216. */
  18217. solarTerm: ["\u5C0F\u5BD2", "\u5927\u5BD2", "\u7ACB\u6625", "\u96E8\u6C34", "\u60CA\u86F0", "\u6625\u5206", "\u6E05\u660E", "\u8C37\u96E8", "\u7ACB\u590F", "\u5C0F\u6EE1", "\u8292\u79CD", "\u590F\u81F3", "\u5C0F\u6691", "\u5927\u6691", "\u7ACB\u79CB", "\u5904\u6691", "\u767D\u9732", "\u79CB\u5206", "\u5BD2\u9732", "\u971C\u964D", "\u7ACB\u51AC", "\u5C0F\u96EA", "\u5927\u96EA", "\u51AC\u81F3"],
  18218. /**
  18219. * 1900-2100各年的24节气日期速查表
  18220. * @Array Of Property
  18221. * @return 0x string For splice
  18222. */
  18223. sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e', '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'],
  18224. /**
  18225. * 数字转中文速查表
  18226. * @Array Of Property
  18227. * @trans ['日','一','二','三','四','五','六','七','八','九','十']
  18228. * @return Cn string
  18229. */
  18230. nStr1: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341"],
  18231. /**
  18232. * 日期转农历称呼速查表
  18233. * @Array Of Property
  18234. * @trans ['初','十','廿','卅']
  18235. * @return Cn string
  18236. */
  18237. nStr2: ["\u521D", "\u5341", "\u5EFF", "\u5345"],
  18238. /**
  18239. * 月份转农历称呼速查表
  18240. * @Array Of Property
  18241. * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊']
  18242. * @return Cn string
  18243. */
  18244. nStr3: ["\u6B63", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341", "\u51AC", "\u814A"],
  18245. /**
  18246. * 农历年份数字称呼速查表
  18247. * @Array Of Property
  18248. * @trans ['零','一','二','三','四','五','六','七','八','九','十']
  18249. * @return Cn string
  18250. */
  18251. nStr4: ["\u96F6", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341"],
  18252. /**
  18253. * 返回农历y年一整年的总天数
  18254. * @param lunar Year
  18255. * @return Number
  18256. * @eg:var count = calendar.lYearDays(1987) ;//count=387
  18257. */
  18258. lYearDays: function lYearDays(y) {
  18259. var i,
  18260. sum = 348;
  18261. for (i = 0x8000; i > 0x8; i >>= 1) {
  18262. sum += this.lunarInfo[y - 1900] & i ? 1 : 0;
  18263. }
  18264. return sum + this.leapDays(y);
  18265. },
  18266. /**
  18267. * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0
  18268. * @param lunar Year
  18269. * @return Number (0-12)
  18270. * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
  18271. */
  18272. leapMonth: function leapMonth(y) {
  18273. //闰字编码 \u95f0
  18274. return this.lunarInfo[y - 1900] & 0xf;
  18275. },
  18276. /**
  18277. * 返回农历y年闰月的天数 若该年没有闰月则返回0
  18278. * @param lunar Year
  18279. * @return Number (0、29、30)
  18280. * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
  18281. */
  18282. leapDays: function leapDays(y) {
  18283. if (this.leapMonth(y)) {
  18284. return this.lunarInfo[y - 1900] & 0x10000 ? 30 : 29;
  18285. }
  18286. return 0;
  18287. },
  18288. /**
  18289. * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法
  18290. * @param lunar Year
  18291. * @return Number (-1、29、30)
  18292. * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
  18293. */
  18294. monthDays: function monthDays(y, m) {
  18295. if (m > 12 || m < 1) {
  18296. return -1;
  18297. } //月份参数从1至12,参数错误返回-1
  18298. return this.lunarInfo[y - 1900] & 0x10000 >> m ? 30 : 29;
  18299. },
  18300. /**
  18301. * 返回公历(!)y年m月的天数
  18302. * @param solar Year
  18303. * @return Number (-1、28、29、30、31)
  18304. * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
  18305. */
  18306. solarDays: function solarDays(y, m) {
  18307. if (m > 12 || m < 1) {
  18308. return -1;
  18309. } //若参数错误 返回-1
  18310. var ms = m - 1;
  18311. if (ms == 1) {
  18312. //2月份的闰平规律测算后确认返回28或29
  18313. return y % 4 == 0 && y % 100 != 0 || y % 400 == 0 ? 29 : 28;
  18314. } else {
  18315. return this.solarMonth[ms];
  18316. }
  18317. },
  18318. /**
  18319. * 农历年份转换为干支纪年
  18320. * @param lYear 农历年的年份数
  18321. * @return Cn string
  18322. */
  18323. toGanZhiYear: function toGanZhiYear(lYear) {
  18324. var ganKey = (lYear - 3) % 10;
  18325. var zhiKey = (lYear - 3) % 12;
  18326. if (ganKey == 0) ganKey = 10; //如果余数为0则为最后一个天干
  18327. if (zhiKey == 0) zhiKey = 12; //如果余数为0则为最后一个地支
  18328. return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1];
  18329. },
  18330. /**
  18331. * 公历月、日判断所属星座
  18332. * @param cMonth [description]
  18333. * @param cDay [description]
  18334. * @return Cn string
  18335. */
  18336. toAstro: function toAstro(cMonth, cDay) {
  18337. var s = "\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF";
  18338. var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22];
  18339. return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + "\u5EA7"; //座
  18340. },
  18341. /**
  18342. * 传入offset偏移量返回干支
  18343. * @param offset 相对甲子的偏移量
  18344. * @return Cn string
  18345. */
  18346. toGanZhi: function toGanZhi(offset) {
  18347. return this.Gan[offset % 10] + this.Zhi[offset % 12];
  18348. },
  18349. /**
  18350. * 传入公历(!)y年获得该年第n个节气的公历日期
  18351. * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起
  18352. * @return day Number
  18353. * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春
  18354. */
  18355. getTerm: function getTerm(y, n) {
  18356. if (y < 1900 || y > 2100) {
  18357. return -1;
  18358. }
  18359. if (n < 1 || n > 24) {
  18360. return -1;
  18361. }
  18362. var _table = this.sTermInfo[y - 1900];
  18363. var _info = [parseInt('0x' + _table.substr(0, 5)).toString(), parseInt('0x' + _table.substr(5, 5)).toString(), parseInt('0x' + _table.substr(10, 5)).toString(), parseInt('0x' + _table.substr(15, 5)).toString(), parseInt('0x' + _table.substr(20, 5)).toString(), parseInt('0x' + _table.substr(25, 5)).toString()];
  18364. var _calday = [_info[0].substr(0, 1), _info[0].substr(1, 2), _info[0].substr(3, 1), _info[0].substr(4, 2), _info[1].substr(0, 1), _info[1].substr(1, 2), _info[1].substr(3, 1), _info[1].substr(4, 2), _info[2].substr(0, 1), _info[2].substr(1, 2), _info[2].substr(3, 1), _info[2].substr(4, 2), _info[3].substr(0, 1), _info[3].substr(1, 2), _info[3].substr(3, 1), _info[3].substr(4, 2), _info[4].substr(0, 1), _info[4].substr(1, 2), _info[4].substr(3, 1), _info[4].substr(4, 2), _info[5].substr(0, 1), _info[5].substr(1, 2), _info[5].substr(3, 1), _info[5].substr(4, 2)];
  18365. return parseInt(_calday[n - 1]);
  18366. },
  18367. /**
  18368. * 传入年份返回汉语通俗表示法
  18369. * @param {lunar} year
  18370. * @return CN {string}
  18371. * @eg:let cnYear = calendar.toChinaYear(1960);//cnYear = '一九六零'
  18372. */
  18373. toChinaYear: function toChinaYear(y) {
  18374. //年
  18375. var year = y.toString().split("");
  18376. return "".concat(this.nStr4[year[0]]).concat(this.nStr4[year[1]]).concat(this.nStr4[year[2]]).concat(this.nStr4[year[3]]);
  18377. },
  18378. /**
  18379. * 传入农历数字月份返回汉语通俗表示法
  18380. * @param lunar month
  18381. * @return Cn string
  18382. * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月'
  18383. */
  18384. toChinaMonth: function toChinaMonth(m) {
  18385. // 月 => \u6708
  18386. if (m > 12 || m < 1) {
  18387. return -1;
  18388. } //若参数错误 返回-1
  18389. var s = this.nStr3[m - 1];
  18390. s += "\u6708"; //加上月字
  18391. return s;
  18392. },
  18393. /**
  18394. * 传入农历日期数字返回汉字表示法
  18395. * @param lunar day
  18396. * @return Cn string
  18397. * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一'
  18398. */
  18399. toChinaDay: function toChinaDay(d) {
  18400. //日 => \u65e5
  18401. var s;
  18402. switch (d) {
  18403. case 10:
  18404. s = "\u521D\u5341";
  18405. break;
  18406. case 20:
  18407. s = "\u4E8C\u5341";
  18408. break;
  18409. break;
  18410. case 30:
  18411. s = "\u4E09\u5341";
  18412. break;
  18413. break;
  18414. default:
  18415. s = this.nStr2[Math.floor(d / 10)];
  18416. s += this.nStr1[d % 10];
  18417. }
  18418. return s;
  18419. },
  18420. /**
  18421. * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春”
  18422. * @param y year
  18423. * @return Cn string
  18424. * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔'
  18425. */
  18426. getAnimal: function getAnimal(y) {
  18427. return this.Animals[(y - 4) % 12];
  18428. },
  18429. /**
  18430. * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON
  18431. * @param y solar year
  18432. * @param m solar month
  18433. * @param d solar day
  18434. * @return JSON object
  18435. * @eg:console.log(calendar.solar2lunar(1987,11,01));
  18436. */
  18437. solar2lunar: function solar2lunar(y, m, d) {
  18438. //参数区间1900.1.31~2100.12.31
  18439. y = parseInt(y);
  18440. m = parseInt(m);
  18441. d = parseInt(d);
  18442. //年份限定、上限
  18443. if (y < 1900 || y > 2100) {
  18444. return -1; // undefined转换为数字变为NaN
  18445. }
  18446. //公历传参最下限
  18447. if (y == 1900 && m == 1 && d < 31) {
  18448. return -1;
  18449. }
  18450. //未传参 获得当天
  18451. if (!y) {
  18452. var objDate = new Date();
  18453. } else {
  18454. var objDate = new Date(y, parseInt(m) - 1, d);
  18455. }
  18456. var i,
  18457. leap = 0,
  18458. temp = 0;
  18459. //修正ymd参数
  18460. var y = objDate.getFullYear(),
  18461. m = objDate.getMonth() + 1,
  18462. d = objDate.getDate();
  18463. var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000;
  18464. for (i = 1900; i < 2101 && offset > 0; i++) {
  18465. temp = this.lYearDays(i);
  18466. offset -= temp;
  18467. }
  18468. if (offset < 0) {
  18469. offset += temp;
  18470. i--;
  18471. }
  18472. //是否今天
  18473. var isTodayObj = new Date(),
  18474. isToday = false;
  18475. if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) {
  18476. isToday = true;
  18477. }
  18478. //星期几
  18479. var nWeek = objDate.getDay(),
  18480. cWeek = this.nStr1[nWeek];
  18481. //数字表示周几顺应天朝周一开始的惯例
  18482. if (nWeek == 0) {
  18483. nWeek = 7;
  18484. }
  18485. //农历年
  18486. var year = i;
  18487. var leap = this.leapMonth(i); //闰哪个月
  18488. var isLeap = false;
  18489. //效验闰月
  18490. for (i = 1; i < 13 && offset > 0; i++) {
  18491. //闰月
  18492. if (leap > 0 && i == leap + 1 && isLeap == false) {
  18493. --i;
  18494. isLeap = true;
  18495. temp = this.leapDays(year); //计算农历闰月天数
  18496. } else {
  18497. temp = this.monthDays(year, i); //计算农历普通月天数
  18498. }
  18499. //解除闰月
  18500. if (isLeap == true && i == leap + 1) {
  18501. isLeap = false;
  18502. }
  18503. offset -= temp;
  18504. }
  18505. // 闰月导致数组下标重叠取反
  18506. if (offset == 0 && leap > 0 && i == leap + 1) {
  18507. if (isLeap) {
  18508. isLeap = false;
  18509. } else {
  18510. isLeap = true;
  18511. --i;
  18512. }
  18513. }
  18514. if (offset < 0) {
  18515. offset += temp;
  18516. --i;
  18517. }
  18518. //农历月
  18519. var month = i;
  18520. //农历日
  18521. var day = offset + 1;
  18522. //天干地支处理
  18523. var sm = m - 1;
  18524. var gzY = this.toGanZhiYear(year);
  18525. // 当月的两个节气
  18526. // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year`
  18527. var firstNode = this.getTerm(y, m * 2 - 1); //返回当月「节」为几日开始
  18528. var secondNode = this.getTerm(y, m * 2); //返回当月「节」为几日开始
  18529. // 依据12节气修正干支月
  18530. var gzM = this.toGanZhi((y - 1900) * 12 + m + 11);
  18531. if (d >= firstNode) {
  18532. gzM = this.toGanZhi((y - 1900) * 12 + m + 12);
  18533. }
  18534. //传入的日期的节气与否
  18535. var isTerm = false;
  18536. var Term = null;
  18537. if (firstNode == d) {
  18538. isTerm = true;
  18539. Term = this.solarTerm[m * 2 - 2];
  18540. }
  18541. if (secondNode == d) {
  18542. isTerm = true;
  18543. Term = this.solarTerm[m * 2 - 1];
  18544. }
  18545. //日柱 当月一日与 1900/1/1 相差天数
  18546. var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10;
  18547. var gzD = this.toGanZhi(dayCyclical + d - 1);
  18548. //该日期所属的星座
  18549. var astro = this.toAstro(m, d);
  18550. var solarDate = y + '-' + m + '-' + d;
  18551. var lunarDate = year + '-' + month + '-' + day;
  18552. var festival = this.festival;
  18553. var lfestival = this.lfestival;
  18554. var festivalDate = m + '-' + d;
  18555. var lunarFestivalDate = month + '-' + day;
  18556. return {
  18557. date: solarDate,
  18558. lunarDate: lunarDate,
  18559. festival: festival[festivalDate] ? festival[festivalDate].title : null,
  18560. lunarFestival: lfestival[lunarFestivalDate] ? lfestival[lunarFestivalDate].title : null,
  18561. 'lYear': year,
  18562. 'lMonth': month,
  18563. 'lDay': day,
  18564. 'Animal': this.getAnimal(year),
  18565. 'IMonthCn': (isLeap ? "\u95F0" : '') + this.toChinaMonth(month),
  18566. 'IDayCn': this.toChinaDay(day),
  18567. 'cYear': y,
  18568. 'cMonth': m,
  18569. 'cDay': d,
  18570. 'gzYear': gzY,
  18571. 'gzMonth': gzM,
  18572. 'gzDay': gzD,
  18573. 'isToday': isToday,
  18574. 'isLeap': isLeap,
  18575. 'nWeek': nWeek,
  18576. 'ncWeek': "\u661F\u671F" + cWeek,
  18577. 'isTerm': isTerm,
  18578. 'Term': Term,
  18579. 'astro': astro
  18580. };
  18581. },
  18582. /**
  18583. * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON
  18584. * @param y lunar year
  18585. * @param m lunar month
  18586. * @param d lunar day
  18587. * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可]
  18588. * @return JSON object
  18589. * @eg:console.log(calendar.lunar2solar(1987,9,10));
  18590. */
  18591. lunar2solar: function lunar2solar(y, m, d, isLeapMonth) {
  18592. //参数区间1900.1.31~2100.12.1
  18593. y = parseInt(y);
  18594. m = parseInt(m);
  18595. d = parseInt(d);
  18596. var isLeapMonth = !!isLeapMonth;
  18597. var leapOffset = 0;
  18598. var leapMonth = this.leapMonth(y);
  18599. var leapDay = this.leapDays(y);
  18600. if (isLeapMonth && leapMonth != m) {
  18601. return -1;
  18602. } //传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同
  18603. if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) {
  18604. return -1;
  18605. } //超出了最大极限值
  18606. var day = this.monthDays(y, m);
  18607. var _day = day;
  18608. //bugFix 2016-9-25
  18609. //if month is leap, _day use leapDays method
  18610. if (isLeapMonth) {
  18611. _day = this.leapDays(y, m);
  18612. }
  18613. if (y < 1900 || y > 2100 || d > _day) {
  18614. return -1;
  18615. } //参数合法性效验
  18616. //计算农历的时间差
  18617. var offset = 0;
  18618. for (var i = 1900; i < y; i++) {
  18619. offset += this.lYearDays(i);
  18620. }
  18621. var leap = 0,
  18622. isAdd = false;
  18623. for (var i = 1; i < m; i++) {
  18624. leap = this.leapMonth(y);
  18625. if (!isAdd) {
  18626. //处理闰月
  18627. if (leap <= i && leap > 0) {
  18628. offset += this.leapDays(y);
  18629. isAdd = true;
  18630. }
  18631. }
  18632. offset += this.monthDays(y, i);
  18633. }
  18634. //转换闰月农历 需补充该年闰月的前一个月的时差
  18635. if (isLeapMonth) {
  18636. offset += day;
  18637. }
  18638. //1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点)
  18639. var stmap = Date.UTC(1900, 1, 30, 0, 0, 0);
  18640. var calObj = new Date((offset + d - 31) * 86400000 + stmap);
  18641. var cY = calObj.getUTCFullYear();
  18642. var cM = calObj.getUTCMonth() + 1;
  18643. var cD = calObj.getUTCDate();
  18644. return this.solar2lunar(cY, cM, cD);
  18645. }
  18646. };
  18647. var _default = calendar;
  18648. exports.default = _default;
  18649. /***/ }),
  18650. /* 253 */
  18651. /*!*********************************************************************************!*\
  18652. !*** D:/baozhida/baozhida-figure-platter/pages/index/components/information.js ***!
  18653. \*********************************************************************************/
  18654. /*! no static exports found */
  18655. /***/ (function(module, exports, __webpack_require__) {
  18656. "use strict";
  18657. Object.defineProperty(exports, "__esModule", {
  18658. value: true
  18659. });
  18660. exports.default = void 0;
  18661. var data = {
  18662. // 农历新历时辰
  18663. lunarHour: [{
  18664. value: "24",
  18665. solar: "未知",
  18666. label: "未知"
  18667. }, {
  18668. value: "0",
  18669. solar: "00",
  18670. label: "00"
  18671. }, {
  18672. value: "1",
  18673. solar: "01",
  18674. label: "01"
  18675. }, {
  18676. value: "2",
  18677. solar: "02",
  18678. label: "02"
  18679. }, {
  18680. value: "3",
  18681. solar: "03",
  18682. label: "03"
  18683. }, {
  18684. value: "4",
  18685. solar: "04",
  18686. label: "04"
  18687. }, {
  18688. value: "5",
  18689. solar: "05",
  18690. label: "05"
  18691. }, {
  18692. value: "6",
  18693. solar: "06",
  18694. label: "06"
  18695. }, {
  18696. value: "7",
  18697. solar: "07",
  18698. label: "07"
  18699. }, {
  18700. value: "8",
  18701. solar: "08",
  18702. label: "08"
  18703. }, {
  18704. value: "9",
  18705. solar: "09",
  18706. label: "09"
  18707. }, {
  18708. value: "10",
  18709. solar: "10",
  18710. label: "10"
  18711. }, {
  18712. value: "11",
  18713. solar: "11",
  18714. label: "11"
  18715. }, {
  18716. value: "12",
  18717. solar: "12",
  18718. label: "12"
  18719. }, {
  18720. value: "13",
  18721. solar: "13",
  18722. label: "13"
  18723. }, {
  18724. value: "14",
  18725. solar: "14",
  18726. label: "14"
  18727. }, {
  18728. value: "15",
  18729. solar: "15",
  18730. label: "15"
  18731. }, {
  18732. value: "16",
  18733. solar: "16",
  18734. label: "16"
  18735. }, {
  18736. value: "17",
  18737. solar: "17",
  18738. label: "17"
  18739. }, {
  18740. value: "18",
  18741. solar: "18",
  18742. label: "18"
  18743. }, {
  18744. value: "19",
  18745. solar: "19",
  18746. label: "19"
  18747. }, {
  18748. value: "20",
  18749. solar: "20",
  18750. label: "20"
  18751. }, {
  18752. value: "21",
  18753. solar: "21",
  18754. label: "21"
  18755. }, {
  18756. value: "22",
  18757. solar: "22",
  18758. label: "22"
  18759. }, {
  18760. value: "23",
  18761. solar: "23",
  18762. label: "23"
  18763. }]
  18764. };
  18765. var _default = data;
  18766. exports.default = _default;
  18767. /***/ }),
  18768. /* 254 */
  18769. /*!****************************************************************************!*\
  18770. !*** D:/baozhida/baozhida-figure-platter/pages/index/components/minute.js ***!
  18771. \****************************************************************************/
  18772. /*! no static exports found */
  18773. /***/ (function(module, exports, __webpack_require__) {
  18774. "use strict";
  18775. Object.defineProperty(exports, "__esModule", {
  18776. value: true
  18777. });
  18778. exports.default = void 0;
  18779. var data = {
  18780. // 农历新历时辰
  18781. minuteHour: [{
  18782. value: "99",
  18783. solar: "未知",
  18784. label: "未知"
  18785. }, {
  18786. value: "0",
  18787. solar: "00",
  18788. label: "00"
  18789. }, {
  18790. value: "1",
  18791. solar: "01",
  18792. label: "01"
  18793. }, {
  18794. value: "2",
  18795. solar: "02",
  18796. label: "02"
  18797. }, {
  18798. value: "3",
  18799. solar: "03",
  18800. label: "03"
  18801. }, {
  18802. value: "4",
  18803. solar: "04",
  18804. label: "04"
  18805. }, {
  18806. value: "5",
  18807. solar: "05",
  18808. label: "05"
  18809. }, {
  18810. value: "6",
  18811. solar: "06",
  18812. label: "06"
  18813. }, {
  18814. value: "7",
  18815. solar: "07",
  18816. label: "07"
  18817. }, {
  18818. value: "8",
  18819. solar: "08",
  18820. label: "08"
  18821. }, {
  18822. value: "9",
  18823. solar: "09",
  18824. label: "09"
  18825. }, {
  18826. value: "10",
  18827. solar: "10",
  18828. label: "10"
  18829. }, {
  18830. value: "11",
  18831. solar: "11",
  18832. label: "11"
  18833. }, {
  18834. value: "12",
  18835. solar: "12",
  18836. label: "12"
  18837. }, {
  18838. value: "13",
  18839. solar: "13",
  18840. label: "13"
  18841. }, {
  18842. value: "14",
  18843. solar: "14",
  18844. label: "14"
  18845. }, {
  18846. value: "15",
  18847. solar: "15",
  18848. label: "15"
  18849. }, {
  18850. value: "16",
  18851. solar: "16",
  18852. label: "16"
  18853. }, {
  18854. value: "17",
  18855. solar: "17",
  18856. label: "17"
  18857. }, {
  18858. value: "18",
  18859. solar: "18",
  18860. label: "18"
  18861. }, {
  18862. value: "19",
  18863. solar: "19",
  18864. label: "19"
  18865. }, {
  18866. value: "20",
  18867. solar: "20",
  18868. label: "20"
  18869. }, {
  18870. value: "21",
  18871. solar: "21",
  18872. label: "21"
  18873. }, {
  18874. value: "22",
  18875. solar: "22",
  18876. label: "22"
  18877. }, {
  18878. value: "23",
  18879. solar: "23",
  18880. label: "23"
  18881. }, {
  18882. value: "24",
  18883. solar: "24",
  18884. label: "24"
  18885. }, {
  18886. value: "25",
  18887. solar: "25",
  18888. label: "25"
  18889. }, {
  18890. value: "26",
  18891. solar: "26",
  18892. label: "26"
  18893. }, {
  18894. value: "27",
  18895. solar: "27",
  18896. label: "27"
  18897. }, {
  18898. value: "28",
  18899. solar: "28",
  18900. label: "28"
  18901. }, {
  18902. value: "29",
  18903. solar: "29",
  18904. label: "29"
  18905. }, {
  18906. value: "30",
  18907. solar: "30",
  18908. label: "30"
  18909. }, {
  18910. value: "31",
  18911. solar: "31",
  18912. label: "31"
  18913. }, {
  18914. value: "32",
  18915. solar: "32",
  18916. label: "32"
  18917. }, {
  18918. value: "33",
  18919. solar: "33",
  18920. label: "33"
  18921. }, {
  18922. value: "34",
  18923. solar: "34",
  18924. label: "34"
  18925. }, {
  18926. value: "35",
  18927. solar: "35",
  18928. label: "35"
  18929. }, {
  18930. value: "36",
  18931. solar: "36",
  18932. label: "36"
  18933. }, {
  18934. value: "37",
  18935. solar: "37",
  18936. label: "37"
  18937. }, {
  18938. value: "38",
  18939. solar: "38",
  18940. label: "38"
  18941. }, {
  18942. value: "39",
  18943. solar: "39",
  18944. label: "39"
  18945. }, {
  18946. value: "40",
  18947. solar: "40",
  18948. label: "40"
  18949. }, {
  18950. value: "41",
  18951. solar: "41",
  18952. label: "41"
  18953. }, {
  18954. value: "42",
  18955. solar: "42",
  18956. label: "42"
  18957. }, {
  18958. value: "43",
  18959. solar: "43",
  18960. label: "43"
  18961. }, {
  18962. value: "44",
  18963. solar: "44",
  18964. label: "44"
  18965. }, {
  18966. value: "45",
  18967. solar: "45",
  18968. label: "45"
  18969. }, {
  18970. value: "46",
  18971. solar: "46",
  18972. label: "46"
  18973. }, {
  18974. value: "47",
  18975. solar: "47",
  18976. label: "47"
  18977. }, {
  18978. value: "48",
  18979. solar: "48",
  18980. label: "48"
  18981. }, {
  18982. value: "49",
  18983. solar: "49",
  18984. label: "49"
  18985. }, {
  18986. value: "50",
  18987. solar: "50",
  18988. label: "50"
  18989. }, {
  18990. value: "51",
  18991. solar: "51",
  18992. label: "51"
  18993. }, {
  18994. value: "52",
  18995. solar: "52",
  18996. label: "52"
  18997. }, {
  18998. value: "53",
  18999. solar: "53",
  19000. label: "53"
  19001. }, {
  19002. value: "54",
  19003. solar: "54",
  19004. label: "54"
  19005. }, {
  19006. value: "55",
  19007. solar: "55",
  19008. label: "55"
  19009. }, {
  19010. value: "56",
  19011. solar: "56",
  19012. label: "56"
  19013. }, {
  19014. value: "57",
  19015. solar: "57",
  19016. label: "57"
  19017. }, {
  19018. value: "58",
  19019. solar: "58",
  19020. label: "58"
  19021. }, {
  19022. value: "59",
  19023. solar: "59",
  19024. label: "59"
  19025. }]
  19026. };
  19027. var _default = data;
  19028. exports.default = _default;
  19029. /***/ }),
  19030. /* 255 */,
  19031. /* 256 */,
  19032. /* 257 */,
  19033. /* 258 */,
  19034. /* 259 */,
  19035. /* 260 */,
  19036. /* 261 */,
  19037. /* 262 */
  19038. /*!********************************************************************************!*\
  19039. !*** D:/baozhida/baozhida-figure-platter/pages/school/reader/novel-service.js ***!
  19040. \********************************************************************************/
  19041. /*! no static exports found */
  19042. /***/ (function(module, exports, __webpack_require__) {
  19043. "use strict";
  19044. /* WEBPACK VAR INJECTION */(function(uni) {
  19045. Object.defineProperty(exports, "__esModule", {
  19046. value: true
  19047. });
  19048. exports.default = void 0;
  19049. // 小说数据服务
  19050. // 引入 uni-app API
  19051. // import uni from "@dcloudio/uni-app"
  19052. var _default = {
  19053. // 获取小说章节列表
  19054. getChapterList: function getChapterList(novelId) {
  19055. // 这里应该从API获取数据,这里使用模拟数据
  19056. return new Promise(function (resolve) {
  19057. setTimeout(function () {
  19058. resolve([{
  19059. id: 1,
  19060. title: "题记与引"
  19061. }, {
  19062. id: 2,
  19063. title: "第一章 命理之源"
  19064. }, {
  19065. id: 3,
  19066. title: "第二章 八字基础"
  19067. }, {
  19068. id: 4,
  19069. title: "第三章 五行生克"
  19070. }, {
  19071. id: 5,
  19072. title: "第四章 十神详解"
  19073. }
  19074. // 更多章节...
  19075. ]);
  19076. }, 300);
  19077. });
  19078. },
  19079. // 获取章节内容
  19080. getChapterContent: function getChapterContent(chapterId) {
  19081. // 这里应该从API获取数据,这里使用模拟数据
  19082. return new Promise(function (resolve) {
  19083. setTimeout(function () {
  19084. var content = "";
  19085. if (chapterId === 1) {
  19086. content = "\u5B50\u5E73\u4E66\uFF0C\u5B8B\u5F90\u516C\u4E1C\u658B\u5DF2\u8BE6\u660E\u77E3\u3002\u4F20\u6709\u300A\u6E0A\u6D77\u300B\u3001\u300A\u6E0A\u6E90\u300B\u4E4B\u96C6\uFF0C\u5176\u7406\u5219\u4E00\uFF0C\u7BC7\u53E5\u4FF1\u540C\u3002\u4ECA\u4E4B\u7528\u8005\uFF0C\u60DF\u5B97\u300A\u6E0A\u6D77\u300B\u3002\u800C\u300A\u6E0A\u6E90\u300B\u4EA6\u6709\u5999\u7528\uFF0C\u6216\u672A\u4E4B\u96C6\u3002\u4ECA\u5C06\u4E8C\u4E66\u5408\u5E76\u53C2\u8003\uFF0C\u9057\u5931\u603B\u5F52\u4E00\u8F68\u3002\u52A0\u4E4B\u8BD7\u8BC0\u3001\u8D77\u4F8B\uFF0C\u589E\u89E3\u5B57\u4E49\u3002\u5F8C\u5B66\u8BC6\u4E4B\uFF0C\u5219\u4E8C\u4E66\u4E86\u7136\u5728\u76EE\uFF0C\u65E0\u9057\u77E3\u3002\u8C28\u767D\u3002\n\n\u5F15\n\n\u5B50\u5E73\u6E0A\u6D77\u4E4B\u7406\uFF0C\u59CB\u81EA\u5510\u5927\u592B\u674E\u516C\u865A\u4E2D\uFF0C\u4EE5\u4EBA\u751F\u5E74\u6708\u65E5\u65F6\uFF0C\u751F\u514B\u65FA\u76F8\uFF0C\u4F11\u56DA\u5236\u5316\uFF0C\u51B3\u4EBA\u751F\u4E4B\u7978\u798F\uFF0C\u5176\u9A8C\u795E\u77E3\u3002\u53CA\u516C\u85A8\uFF0C\u660C\u9ECE\u97E9\u7089\u4E3A\u4E4B\u4F5C\u5893\u5FD7\uFF0C\u4EE5\u8BB0\u4E4B\u5F8C\u3002\u7ECF\u5415\u5927\u592B\u624D\u53C8\u88C1\u5B9A\u4E4B\uFF0C\u5E76\u65E0\u8FF0\u4F5C\u4E4B\u7531\uFF0C\u4F46\u4E91\u5F97\u4E4B\u4E8E\u5E08\uFF0C\u4E0D\u6562\u79C1\u4F20\uFF0C\u6050\u540E\u4EBA\u5984\u52A0\u7A7F\u51FF\uFF0C\u9042\u79D8\u5176\u8BF4\u3002";
  19087. } else if (chapterId === 2) {
  19088. content = "\u547D\u7406\u4E4B\u6E90\uFF0C\u59CB\u4E8E\u5148\u5929\u3002\u4EBA\u751F\u4E8E\u4E16\uFF0C\u7686\u6709\u5B9A\u6570\u3002\u516B\u5B57\u8005\uFF0C\u4E43\u5E74\u6708\u65E5\u65F6\u56DB\u67F1\uFF0C\u6BCF\u67F1\u4E00\u5B57\uFF0C\u6545\u66F0\u516B\u5B57\u3002\u6B64\u516B\u5B57\u5305\u542B\u5929\u5E72\u5730\u652F\uFF0C\u9634\u9633\u4E94\u884C\uFF0C\u751F\u514B\u5236\u5316\uFF0C\u65E0\u6240\u4E0D\u5305\u3002\n\n\u53E4\u4EBA\u4E91\uFF1A\"\u4E00\u547D\u4E8C\u8FD0\u4E09\u98CE\u6C34\uFF0C\u56DB\u79EF\u9634\u5FB7\u4E94\u8BFB\u4E66\u3002\"\u547D\u4E3A\u5148\u5929\uFF0C\u4E43\u7236\u6BCD\u6240\u751F\uFF1B\u8FD0\u4E3A\u540E\u5929\uFF0C\u4E43\u65F6\u8FD0\u6240\u81F3\uFF1B\u98CE\u6C34\u4E3A\u5C45\u4F4F\u73AF\u5883\uFF1B\u79EF\u5FB7\u4E3A\u5584\u884C\u4E49\u4E3E\uFF1B\u8BFB\u4E66\u4E3A\u589E\u957F\u667A\u6167\u3002\u4E94\u8005\u76F8\u8F85\u76F8\u6210\uFF0C\u7F3A\u4E00\u4E0D\u53EF\u3002\n\n\u7136\u800C\uFF0C\u547D\u7406\u4E4B\u5B66\uFF0C\u91CD\u5728\u660E\u7406\uFF0C\u4E0D\u5728\u8FF7\u4FE1\u3002\u77E5\u547D\u800C\u4E0D\u8BA4\u547D\uFF0C\u987A\u5E94\u5929\u65F6\u800C\u4E0D\u8FDD\u80CC\u4EBA\u4F26\u3002\u660E\u767D\u6B64\u7406\uFF0C\u65B9\u80FD\u8D8B\u5409\u907F\u51F6\uFF0C\u6539\u5584\u4EBA\u751F\u3002";
  19089. } else {
  19090. content = "\u8FD9\u662F\u7B2C".concat(chapterId, "\u7AE0\u7684\u5185\u5BB9\uFF0C\u6B63\u5728\u52A0\u8F7D\u4E2D...");
  19091. }
  19092. resolve({
  19093. id: chapterId,
  19094. title: "\u7B2C".concat(chapterId, "\u7AE0"),
  19095. content: content
  19096. });
  19097. }, 300);
  19098. });
  19099. },
  19100. // 保存阅读进度
  19101. saveReadingProgress: function saveReadingProgress(novelId, chapterId, position) {
  19102. return new Promise(function (resolve) {
  19103. // 保存到本地存储
  19104. uni.setStorageSync("novel_progress_".concat(novelId), {
  19105. chapterId: chapterId,
  19106. position: position
  19107. });
  19108. resolve(true);
  19109. });
  19110. },
  19111. // 获取阅读进度
  19112. getReadingProgress: function getReadingProgress(novelId) {
  19113. return new Promise(function (resolve) {
  19114. var progress = uni.getStorageSync("novel_progress_".concat(novelId));
  19115. resolve(progress || {
  19116. chapterId: 1,
  19117. position: 0
  19118. });
  19119. });
  19120. },
  19121. // 添加书签
  19122. addBookmark: function addBookmark(novelId, chapterId, position, text) {
  19123. return new Promise(function (resolve) {
  19124. // 获取现有书签
  19125. var bookmarksKey = "novel_bookmarks_".concat(novelId);
  19126. var bookmarks = uni.getStorageSync(bookmarksKey) || [];
  19127. // 添加新书签
  19128. bookmarks.push({
  19129. id: Date.now(),
  19130. chapterId: chapterId,
  19131. position: position,
  19132. text: text,
  19133. createTime: new Date().toISOString()
  19134. });
  19135. // 保存书签
  19136. uni.setStorageSync(bookmarksKey, bookmarks);
  19137. resolve(true);
  19138. });
  19139. },
  19140. // 获取书签列表
  19141. getBookmarks: function getBookmarks(novelId) {
  19142. return new Promise(function (resolve) {
  19143. var bookmarks = uni.getStorageSync("novel_bookmarks_".concat(novelId)) || [];
  19144. resolve(bookmarks);
  19145. });
  19146. }
  19147. };
  19148. exports.default = _default;
  19149. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19150. /***/ }),
  19151. /* 263 */,
  19152. /* 264 */,
  19153. /* 265 */,
  19154. /* 266 */,
  19155. /* 267 */,
  19156. /* 268 */,
  19157. /* 269 */,
  19158. /* 270 */
  19159. /*!*******************************************************************************************!*\
  19160. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-icon/icons.js ***!
  19161. \*******************************************************************************************/
  19162. /*! no static exports found */
  19163. /***/ (function(module, exports, __webpack_require__) {
  19164. "use strict";
  19165. Object.defineProperty(exports, "__esModule", {
  19166. value: true
  19167. });
  19168. exports.default = void 0;
  19169. var _default = {
  19170. 'uicon-level': "\uE693",
  19171. 'uicon-column-line': "\uE68E",
  19172. 'uicon-checkbox-mark': "\uE807",
  19173. 'uicon-folder': "\uE7F5",
  19174. 'uicon-movie': "\uE7F6",
  19175. 'uicon-star-fill': "\uE669",
  19176. 'uicon-star': "\uE65F",
  19177. 'uicon-phone-fill': "\uE64F",
  19178. 'uicon-phone': "\uE622",
  19179. 'uicon-apple-fill': "\uE881",
  19180. 'uicon-chrome-circle-fill': "\uE885",
  19181. 'uicon-backspace': "\uE67B",
  19182. 'uicon-attach': "\uE632",
  19183. 'uicon-cut': "\uE948",
  19184. 'uicon-empty-car': "\uE602",
  19185. 'uicon-empty-coupon': "\uE682",
  19186. 'uicon-empty-address': "\uE646",
  19187. 'uicon-empty-favor': "\uE67C",
  19188. 'uicon-empty-permission': "\uE686",
  19189. 'uicon-empty-news': "\uE687",
  19190. 'uicon-empty-search': "\uE664",
  19191. 'uicon-github-circle-fill': "\uE887",
  19192. 'uicon-rmb': "\uE608",
  19193. 'uicon-person-delete-fill': "\uE66A",
  19194. 'uicon-reload': "\uE788",
  19195. 'uicon-order': "\uE68F",
  19196. 'uicon-server-man': "\uE6BC",
  19197. 'uicon-search': "\uE62A",
  19198. 'uicon-fingerprint': "\uE955",
  19199. 'uicon-more-dot-fill': "\uE630",
  19200. 'uicon-scan': "\uE662",
  19201. 'uicon-share-square': "\uE60B",
  19202. 'uicon-map': "\uE61D",
  19203. 'uicon-map-fill': "\uE64E",
  19204. 'uicon-tags': "\uE629",
  19205. 'uicon-tags-fill': "\uE651",
  19206. 'uicon-bookmark-fill': "\uE63B",
  19207. 'uicon-bookmark': "\uE60A",
  19208. 'uicon-eye': "\uE613",
  19209. 'uicon-eye-fill': "\uE641",
  19210. 'uicon-mic': "\uE64A",
  19211. 'uicon-mic-off': "\uE649",
  19212. 'uicon-calendar': "\uE66E",
  19213. 'uicon-calendar-fill': "\uE634",
  19214. 'uicon-trash': "\uE623",
  19215. 'uicon-trash-fill': "\uE658",
  19216. 'uicon-play-left': "\uE66D",
  19217. 'uicon-play-right': "\uE610",
  19218. 'uicon-minus': "\uE618",
  19219. 'uicon-plus': "\uE62D",
  19220. 'uicon-info': "\uE653",
  19221. 'uicon-info-circle': "\uE7D2",
  19222. 'uicon-info-circle-fill': "\uE64B",
  19223. 'uicon-question': "\uE715",
  19224. 'uicon-error': "\uE6D3",
  19225. 'uicon-close': "\uE685",
  19226. 'uicon-checkmark': "\uE6A8",
  19227. 'uicon-android-circle-fill': "\uE67E",
  19228. 'uicon-android-fill': "\uE67D",
  19229. 'uicon-ie': "\uE87B",
  19230. 'uicon-IE-circle-fill': "\uE889",
  19231. 'uicon-google': "\uE87A",
  19232. 'uicon-google-circle-fill': "\uE88A",
  19233. 'uicon-setting-fill': "\uE872",
  19234. 'uicon-setting': "\uE61F",
  19235. 'uicon-minus-square-fill': "\uE855",
  19236. 'uicon-plus-square-fill': "\uE856",
  19237. 'uicon-heart': "\uE7DF",
  19238. 'uicon-heart-fill': "\uE851",
  19239. 'uicon-camera': "\uE7D7",
  19240. 'uicon-camera-fill': "\uE870",
  19241. 'uicon-more-circle': "\uE63E",
  19242. 'uicon-more-circle-fill': "\uE645",
  19243. 'uicon-chat': "\uE620",
  19244. 'uicon-chat-fill': "\uE61E",
  19245. 'uicon-bag-fill': "\uE617",
  19246. 'uicon-bag': "\uE619",
  19247. 'uicon-error-circle-fill': "\uE62C",
  19248. 'uicon-error-circle': "\uE624",
  19249. 'uicon-close-circle': "\uE63F",
  19250. 'uicon-close-circle-fill': "\uE637",
  19251. 'uicon-checkmark-circle': "\uE63D",
  19252. 'uicon-checkmark-circle-fill': "\uE635",
  19253. 'uicon-question-circle-fill': "\uE666",
  19254. 'uicon-question-circle': "\uE625",
  19255. 'uicon-share': "\uE631",
  19256. 'uicon-share-fill': "\uE65E",
  19257. 'uicon-shopping-cart': "\uE621",
  19258. 'uicon-shopping-cart-fill': "\uE65D",
  19259. 'uicon-bell': "\uE609",
  19260. 'uicon-bell-fill': "\uE640",
  19261. 'uicon-list': "\uE650",
  19262. 'uicon-list-dot': "\uE616",
  19263. 'uicon-zhihu': "\uE6BA",
  19264. 'uicon-zhihu-circle-fill': "\uE709",
  19265. 'uicon-zhifubao': "\uE6B9",
  19266. 'uicon-zhifubao-circle-fill': "\uE6B8",
  19267. 'uicon-weixin-circle-fill': "\uE6B1",
  19268. 'uicon-weixin-fill': "\uE6B2",
  19269. 'uicon-twitter-circle-fill': "\uE6AB",
  19270. 'uicon-twitter': "\uE6AA",
  19271. 'uicon-taobao-circle-fill': "\uE6A7",
  19272. 'uicon-taobao': "\uE6A6",
  19273. 'uicon-weibo-circle-fill': "\uE6A5",
  19274. 'uicon-weibo': "\uE6A4",
  19275. 'uicon-qq-fill': "\uE6A1",
  19276. 'uicon-qq-circle-fill': "\uE6A0",
  19277. 'uicon-moments-circel-fill': "\uE69A",
  19278. 'uicon-moments': "\uE69B",
  19279. 'uicon-qzone': "\uE695",
  19280. 'uicon-qzone-circle-fill': "\uE696",
  19281. 'uicon-baidu-circle-fill': "\uE680",
  19282. 'uicon-baidu': "\uE681",
  19283. 'uicon-facebook-circle-fill': "\uE68A",
  19284. 'uicon-facebook': "\uE689",
  19285. 'uicon-car': "\uE60C",
  19286. 'uicon-car-fill': "\uE636",
  19287. 'uicon-warning-fill': "\uE64D",
  19288. 'uicon-warning': "\uE694",
  19289. 'uicon-clock-fill': "\uE638",
  19290. 'uicon-clock': "\uE60F",
  19291. 'uicon-edit-pen': "\uE612",
  19292. 'uicon-edit-pen-fill': "\uE66B",
  19293. 'uicon-email': "\uE611",
  19294. 'uicon-email-fill': "\uE642",
  19295. 'uicon-minus-circle': "\uE61B",
  19296. 'uicon-minus-circle-fill': "\uE652",
  19297. 'uicon-plus-circle': "\uE62E",
  19298. 'uicon-plus-circle-fill': "\uE661",
  19299. 'uicon-file-text': "\uE663",
  19300. 'uicon-file-text-fill': "\uE665",
  19301. 'uicon-pushpin': "\uE7E3",
  19302. 'uicon-pushpin-fill': "\uE86E",
  19303. 'uicon-grid': "\uE673",
  19304. 'uicon-grid-fill': "\uE678",
  19305. 'uicon-play-circle': "\uE647",
  19306. 'uicon-play-circle-fill': "\uE655",
  19307. 'uicon-pause-circle-fill': "\uE654",
  19308. 'uicon-pause': "\uE8FA",
  19309. 'uicon-pause-circle': "\uE643",
  19310. 'uicon-eye-off': "\uE648",
  19311. 'uicon-eye-off-outline': "\uE62B",
  19312. 'uicon-gift-fill': "\uE65C",
  19313. 'uicon-gift': "\uE65B",
  19314. 'uicon-rmb-circle-fill': "\uE657",
  19315. 'uicon-rmb-circle': "\uE677",
  19316. 'uicon-kefu-ermai': "\uE656",
  19317. 'uicon-server-fill': "\uE751",
  19318. 'uicon-coupon-fill': "\uE8C4",
  19319. 'uicon-coupon': "\uE8AE",
  19320. 'uicon-integral': "\uE704",
  19321. 'uicon-integral-fill': "\uE703",
  19322. 'uicon-home-fill': "\uE964",
  19323. 'uicon-home': "\uE965",
  19324. 'uicon-hourglass-half-fill': "\uE966",
  19325. 'uicon-hourglass': "\uE967",
  19326. 'uicon-account': "\uE628",
  19327. 'uicon-plus-people-fill': "\uE626",
  19328. 'uicon-minus-people-fill': "\uE615",
  19329. 'uicon-account-fill': "\uE614",
  19330. 'uicon-thumb-down-fill': "\uE726",
  19331. 'uicon-thumb-down': "\uE727",
  19332. 'uicon-thumb-up': "\uE733",
  19333. 'uicon-thumb-up-fill': "\uE72F",
  19334. 'uicon-lock-fill': "\uE979",
  19335. 'uicon-lock-open': "\uE973",
  19336. 'uicon-lock-opened-fill': "\uE974",
  19337. 'uicon-lock': "\uE97A",
  19338. 'uicon-red-packet-fill': "\uE690",
  19339. 'uicon-photo-fill': "\uE98B",
  19340. 'uicon-photo': "\uE98D",
  19341. 'uicon-volume-off-fill': "\uE659",
  19342. 'uicon-volume-off': "\uE644",
  19343. 'uicon-volume-fill': "\uE670",
  19344. 'uicon-volume': "\uE633",
  19345. 'uicon-red-packet': "\uE691",
  19346. 'uicon-download': "\uE63C",
  19347. 'uicon-arrow-up-fill': "\uE6B0",
  19348. 'uicon-arrow-down-fill': "\uE600",
  19349. 'uicon-play-left-fill': "\uE675",
  19350. 'uicon-play-right-fill': "\uE676",
  19351. 'uicon-rewind-left-fill': "\uE679",
  19352. 'uicon-rewind-right-fill': "\uE67A",
  19353. 'uicon-arrow-downward': "\uE604",
  19354. 'uicon-arrow-leftward': "\uE601",
  19355. 'uicon-arrow-rightward': "\uE603",
  19356. 'uicon-arrow-upward': "\uE607",
  19357. 'uicon-arrow-down': "\uE60D",
  19358. 'uicon-arrow-right': "\uE605",
  19359. 'uicon-arrow-left': "\uE60E",
  19360. 'uicon-arrow-up': "\uE606",
  19361. 'uicon-skip-back-left': "\uE674",
  19362. 'uicon-skip-forward-right': "\uE672",
  19363. 'uicon-rewind-right': "\uE66F",
  19364. 'uicon-rewind-left': "\uE671",
  19365. 'uicon-arrow-right-double': "\uE68D",
  19366. 'uicon-arrow-left-double': "\uE68C",
  19367. 'uicon-wifi-off': "\uE668",
  19368. 'uicon-wifi': "\uE667",
  19369. 'uicon-empty-data': "\uE62F",
  19370. 'uicon-empty-history': "\uE684",
  19371. 'uicon-empty-list': "\uE68B",
  19372. 'uicon-empty-page': "\uE627",
  19373. 'uicon-empty-order': "\uE639",
  19374. 'uicon-man': "\uE697",
  19375. 'uicon-woman': "\uE69C",
  19376. 'uicon-man-add': "\uE61C",
  19377. 'uicon-man-add-fill': "\uE64C",
  19378. 'uicon-man-delete': "\uE61A",
  19379. 'uicon-man-delete-fill': "\uE66A",
  19380. 'uicon-zh': "\uE70A",
  19381. 'uicon-en': "\uE692"
  19382. };
  19383. exports.default = _default;
  19384. /***/ }),
  19385. /* 271 */
  19386. /*!*******************************************************************************************!*\
  19387. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-icon/props.js ***!
  19388. \*******************************************************************************************/
  19389. /*! no static exports found */
  19390. /***/ (function(module, exports, __webpack_require__) {
  19391. "use strict";
  19392. /* WEBPACK VAR INJECTION */(function(uni) {
  19393. Object.defineProperty(exports, "__esModule", {
  19394. value: true
  19395. });
  19396. exports.default = void 0;
  19397. var _default = {
  19398. props: {
  19399. // 图标类名
  19400. name: {
  19401. type: String,
  19402. default: uni.$u.props.icon.name
  19403. },
  19404. // 图标颜色,可接受主题色
  19405. color: {
  19406. type: String,
  19407. default: uni.$u.props.icon.color
  19408. },
  19409. // 字体大小,单位px
  19410. size: {
  19411. type: [String, Number],
  19412. default: uni.$u.props.icon.size
  19413. },
  19414. // 是否显示粗体
  19415. bold: {
  19416. type: Boolean,
  19417. default: uni.$u.props.icon.bold
  19418. },
  19419. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  19420. index: {
  19421. type: [String, Number],
  19422. default: uni.$u.props.icon.index
  19423. },
  19424. // 触摸图标时的类名
  19425. hoverClass: {
  19426. type: String,
  19427. default: uni.$u.props.icon.hoverClass
  19428. },
  19429. // 自定义扩展前缀,方便用户扩展自己的图标库
  19430. customPrefix: {
  19431. type: String,
  19432. default: uni.$u.props.icon.customPrefix
  19433. },
  19434. // 图标右边或者下面的文字
  19435. label: {
  19436. type: [String, Number],
  19437. default: uni.$u.props.icon.label
  19438. },
  19439. // label的位置,只能右边或者下边
  19440. labelPos: {
  19441. type: String,
  19442. default: uni.$u.props.icon.labelPos
  19443. },
  19444. // label的大小
  19445. labelSize: {
  19446. type: [String, Number],
  19447. default: uni.$u.props.icon.labelSize
  19448. },
  19449. // label的颜色
  19450. labelColor: {
  19451. type: String,
  19452. default: uni.$u.props.icon.labelColor
  19453. },
  19454. // label与图标的距离
  19455. space: {
  19456. type: [String, Number],
  19457. default: uni.$u.props.icon.space
  19458. },
  19459. // 图片的mode
  19460. imgMode: {
  19461. type: String,
  19462. default: uni.$u.props.icon.imgMode
  19463. },
  19464. // 用于显示图片小图标时,图片的宽度
  19465. width: {
  19466. type: [String, Number],
  19467. default: uni.$u.props.icon.width
  19468. },
  19469. // 用于显示图片小图标时,图片的高度
  19470. height: {
  19471. type: [String, Number],
  19472. default: uni.$u.props.icon.height
  19473. },
  19474. // 用于解决某些情况下,让图标垂直居中的用途
  19475. top: {
  19476. type: [String, Number],
  19477. default: uni.$u.props.icon.top
  19478. },
  19479. // 是否阻止事件传播
  19480. stop: {
  19481. type: Boolean,
  19482. default: uni.$u.props.icon.stop
  19483. }
  19484. }
  19485. };
  19486. exports.default = _default;
  19487. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19488. /***/ }),
  19489. /* 272 */,
  19490. /* 273 */,
  19491. /* 274 */,
  19492. /* 275 */,
  19493. /* 276 */,
  19494. /* 277 */,
  19495. /* 278 */,
  19496. /* 279 */
  19497. /*!****************************************************************************************************!*\
  19498. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-column-notice/props.js ***!
  19499. \****************************************************************************************************/
  19500. /*! no static exports found */
  19501. /***/ (function(module, exports, __webpack_require__) {
  19502. "use strict";
  19503. /* WEBPACK VAR INJECTION */(function(uni) {
  19504. Object.defineProperty(exports, "__esModule", {
  19505. value: true
  19506. });
  19507. exports.default = void 0;
  19508. var _default = {
  19509. props: {
  19510. // 显示的内容,字符串
  19511. text: {
  19512. type: [Array],
  19513. default: uni.$u.props.columnNotice.text
  19514. },
  19515. // 是否显示左侧的音量图标
  19516. icon: {
  19517. type: String,
  19518. default: uni.$u.props.columnNotice.icon
  19519. },
  19520. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  19521. mode: {
  19522. type: String,
  19523. default: uni.$u.props.columnNotice.mode
  19524. },
  19525. // 文字颜色,各图标也会使用文字颜色
  19526. color: {
  19527. type: String,
  19528. default: uni.$u.props.columnNotice.color
  19529. },
  19530. // 背景颜色
  19531. bgColor: {
  19532. type: String,
  19533. default: uni.$u.props.columnNotice.bgColor
  19534. },
  19535. // 字体大小,单位px
  19536. fontSize: {
  19537. type: [String, Number],
  19538. default: uni.$u.props.columnNotice.fontSize
  19539. },
  19540. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  19541. speed: {
  19542. type: [String, Number],
  19543. default: uni.$u.props.columnNotice.speed
  19544. },
  19545. // direction = row时,是否使用步进形式滚动
  19546. step: {
  19547. type: Boolean,
  19548. default: uni.$u.props.columnNotice.step
  19549. },
  19550. // 滚动一个周期的时间长,单位ms
  19551. duration: {
  19552. type: [String, Number],
  19553. default: uni.$u.props.columnNotice.duration
  19554. },
  19555. // 是否禁止用手滑动切换
  19556. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  19557. disableTouch: {
  19558. type: Boolean,
  19559. default: uni.$u.props.columnNotice.disableTouch
  19560. }
  19561. }
  19562. };
  19563. exports.default = _default;
  19564. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19565. /***/ }),
  19566. /* 280 */,
  19567. /* 281 */,
  19568. /* 282 */,
  19569. /* 283 */,
  19570. /* 284 */,
  19571. /* 285 */,
  19572. /* 286 */,
  19573. /* 287 */
  19574. /*!*************************************************************************************************!*\
  19575. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-row-notice/props.js ***!
  19576. \*************************************************************************************************/
  19577. /*! no static exports found */
  19578. /***/ (function(module, exports, __webpack_require__) {
  19579. "use strict";
  19580. /* WEBPACK VAR INJECTION */(function(uni) {
  19581. Object.defineProperty(exports, "__esModule", {
  19582. value: true
  19583. });
  19584. exports.default = void 0;
  19585. var _default = {
  19586. props: {
  19587. // 显示的内容,字符串
  19588. text: {
  19589. type: String,
  19590. default: uni.$u.props.rowNotice.text
  19591. },
  19592. // 是否显示左侧的音量图标
  19593. icon: {
  19594. type: String,
  19595. default: uni.$u.props.rowNotice.icon
  19596. },
  19597. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  19598. mode: {
  19599. type: String,
  19600. default: uni.$u.props.rowNotice.mode
  19601. },
  19602. // 文字颜色,各图标也会使用文字颜色
  19603. color: {
  19604. type: String,
  19605. default: uni.$u.props.rowNotice.color
  19606. },
  19607. // 背景颜色
  19608. bgColor: {
  19609. type: String,
  19610. default: uni.$u.props.rowNotice.bgColor
  19611. },
  19612. // 字体大小,单位px
  19613. fontSize: {
  19614. type: [String, Number],
  19615. default: uni.$u.props.rowNotice.fontSize
  19616. },
  19617. // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
  19618. speed: {
  19619. type: [String, Number],
  19620. default: uni.$u.props.rowNotice.speed
  19621. }
  19622. }
  19623. };
  19624. exports.default = _default;
  19625. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19626. /***/ }),
  19627. /* 288 */,
  19628. /* 289 */,
  19629. /* 290 */,
  19630. /* 291 */,
  19631. /* 292 */,
  19632. /* 293 */,
  19633. /* 294 */,
  19634. /* 295 */
  19635. /*!***************************************************************************************************!*\
  19636. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  19637. \***************************************************************************************************/
  19638. /*! no static exports found */
  19639. /***/ (function(module, exports, __webpack_require__) {
  19640. "use strict";
  19641. /* WEBPACK VAR INJECTION */(function(uni) {
  19642. Object.defineProperty(exports, "__esModule", {
  19643. value: true
  19644. });
  19645. exports.default = void 0;
  19646. var _default = {
  19647. props: {
  19648. // 是否显示组件
  19649. show: {
  19650. type: Boolean,
  19651. default: uni.$u.props.loadingIcon.show
  19652. },
  19653. // 颜色
  19654. color: {
  19655. type: String,
  19656. default: uni.$u.props.loadingIcon.color
  19657. },
  19658. // 提示文字颜色
  19659. textColor: {
  19660. type: String,
  19661. default: uni.$u.props.loadingIcon.textColor
  19662. },
  19663. // 文字和图标是否垂直排列
  19664. vertical: {
  19665. type: Boolean,
  19666. default: uni.$u.props.loadingIcon.vertical
  19667. },
  19668. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  19669. mode: {
  19670. type: String,
  19671. default: uni.$u.props.loadingIcon.mode
  19672. },
  19673. // 图标大小,单位默认px
  19674. size: {
  19675. type: [String, Number],
  19676. default: uni.$u.props.loadingIcon.size
  19677. },
  19678. // 文字大小
  19679. textSize: {
  19680. type: [String, Number],
  19681. default: uni.$u.props.loadingIcon.textSize
  19682. },
  19683. // 文字内容
  19684. text: {
  19685. type: [String, Number],
  19686. default: uni.$u.props.loadingIcon.text
  19687. },
  19688. // 动画模式
  19689. timingFunction: {
  19690. type: String,
  19691. default: uni.$u.props.loadingIcon.timingFunction
  19692. },
  19693. // 动画执行周期时间
  19694. duration: {
  19695. type: [String, Number],
  19696. default: uni.$u.props.loadingIcon.duration
  19697. },
  19698. // mode=circle时的暗边颜色
  19699. inactiveColor: {
  19700. type: String,
  19701. default: uni.$u.props.loadingIcon.inactiveColor
  19702. }
  19703. }
  19704. };
  19705. exports.default = _default;
  19706. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19707. /***/ }),
  19708. /* 296 */,
  19709. /* 297 */,
  19710. /* 298 */,
  19711. /* 299 */,
  19712. /* 300 */,
  19713. /* 301 */,
  19714. /* 302 */,
  19715. /* 303 */
  19716. /*!**********************************************************************************************!*\
  19717. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-overlay/props.js ***!
  19718. \**********************************************************************************************/
  19719. /*! no static exports found */
  19720. /***/ (function(module, exports, __webpack_require__) {
  19721. "use strict";
  19722. /* WEBPACK VAR INJECTION */(function(uni) {
  19723. Object.defineProperty(exports, "__esModule", {
  19724. value: true
  19725. });
  19726. exports.default = void 0;
  19727. var _default = {
  19728. props: {
  19729. // 是否显示遮罩
  19730. show: {
  19731. type: Boolean,
  19732. default: uni.$u.props.overlay.show
  19733. },
  19734. // 层级z-index
  19735. zIndex: {
  19736. type: [String, Number],
  19737. default: uni.$u.props.overlay.zIndex
  19738. },
  19739. // 遮罩的过渡时间,单位为ms
  19740. duration: {
  19741. type: [String, Number],
  19742. default: uni.$u.props.overlay.duration
  19743. },
  19744. // 不透明度值,当做rgba的第四个参数
  19745. opacity: {
  19746. type: [String, Number],
  19747. default: uni.$u.props.overlay.opacity
  19748. }
  19749. }
  19750. };
  19751. exports.default = _default;
  19752. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19753. /***/ }),
  19754. /* 304 */,
  19755. /* 305 */,
  19756. /* 306 */,
  19757. /* 307 */,
  19758. /* 308 */,
  19759. /* 309 */,
  19760. /* 310 */,
  19761. /* 311 */
  19762. /*!*************************************************************************************************!*\
  19763. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-transition/props.js ***!
  19764. \*************************************************************************************************/
  19765. /*! no static exports found */
  19766. /***/ (function(module, exports, __webpack_require__) {
  19767. "use strict";
  19768. /* WEBPACK VAR INJECTION */(function(uni) {
  19769. Object.defineProperty(exports, "__esModule", {
  19770. value: true
  19771. });
  19772. exports.default = void 0;
  19773. var _default = {
  19774. props: {
  19775. // 是否展示组件
  19776. show: {
  19777. type: Boolean,
  19778. default: uni.$u.props.transition.show
  19779. },
  19780. // 使用的动画模式
  19781. mode: {
  19782. type: String,
  19783. default: uni.$u.props.transition.mode
  19784. },
  19785. // 动画的执行时间,单位ms
  19786. duration: {
  19787. type: [String, Number],
  19788. default: uni.$u.props.transition.duration
  19789. },
  19790. // 使用的动画过渡函数
  19791. timingFunction: {
  19792. type: String,
  19793. default: uni.$u.props.transition.timingFunction
  19794. }
  19795. }
  19796. };
  19797. exports.default = _default;
  19798. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19799. /***/ }),
  19800. /* 312 */
  19801. /*!******************************************************************************************************!*\
  19802. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-transition/transition.js ***!
  19803. \******************************************************************************************************/
  19804. /*! no static exports found */
  19805. /***/ (function(module, exports, __webpack_require__) {
  19806. "use strict";
  19807. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19808. Object.defineProperty(exports, "__esModule", {
  19809. value: true
  19810. });
  19811. exports.default = void 0;
  19812. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  19813. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  19814. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 313));
  19815. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  19816. var nextTick = function nextTick() {
  19817. return new Promise(function (resolve) {
  19818. return setTimeout(resolve, 1000 / 50);
  19819. });
  19820. };
  19821. // nvue动画模块实现细节抽离在外部文件
  19822. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  19823. var getClassNames = function getClassNames(name) {
  19824. return {
  19825. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  19826. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  19827. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  19828. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  19829. };
  19830. };
  19831. var _default = {
  19832. methods: {
  19833. // 组件被点击发出事件
  19834. clickHandler: function clickHandler() {
  19835. this.$emit('click');
  19836. },
  19837. // vue版本的组件进场处理
  19838. vueEnter: function vueEnter() {
  19839. var _this = this;
  19840. // 动画进入时的类名
  19841. var classNames = getClassNames(this.mode);
  19842. // 定义状态和发出动画进入前事件
  19843. this.status = 'enter';
  19844. this.$emit('beforeEnter');
  19845. this.inited = true;
  19846. this.display = true;
  19847. this.classes = classNames.enter;
  19848. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  19849. return _regenerator.default.wrap(function _callee$(_context) {
  19850. while (1) {
  19851. switch (_context.prev = _context.next) {
  19852. case 0:
  19853. // 标识动画尚未结束
  19854. _this.$emit('enter');
  19855. _this.transitionEnded = false;
  19856. // 组件动画进入后触发的事件
  19857. _this.$emit('afterEnter');
  19858. // 赋予组件enter-to类名
  19859. _this.classes = classNames['enter-to'];
  19860. case 4:
  19861. case "end":
  19862. return _context.stop();
  19863. }
  19864. }
  19865. }, _callee);
  19866. })));
  19867. },
  19868. // 动画离场处理
  19869. vueLeave: function vueLeave() {
  19870. var _this2 = this;
  19871. // 如果不是展示状态,无需执行逻辑
  19872. if (!this.display) return;
  19873. var classNames = getClassNames(this.mode);
  19874. // 标记离开状态和发出事件
  19875. this.status = 'leave';
  19876. this.$emit('beforeLeave');
  19877. // 获得类名
  19878. this.classes = classNames.leave;
  19879. this.$nextTick(function () {
  19880. // 动画正在离场的状态
  19881. _this2.transitionEnded = false;
  19882. _this2.$emit('leave');
  19883. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  19884. setTimeout(_this2.onTransitionEnd, _this2.duration);
  19885. _this2.classes = classNames['leave-to'];
  19886. });
  19887. },
  19888. // 完成过渡后触发
  19889. onTransitionEnd: function onTransitionEnd() {
  19890. // 如果已经是结束的状态,无需再处理
  19891. if (this.transitionEnded) return;
  19892. this.transitionEnded = true;
  19893. // 发出组件动画执行后的事件
  19894. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  19895. if (!this.show && this.display) {
  19896. this.display = false;
  19897. this.inited = false;
  19898. }
  19899. }
  19900. }
  19901. };
  19902. exports.default = _default;
  19903. /***/ }),
  19904. /* 313 */
  19905. /*!********************************************************************************************************!*\
  19906. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  19907. \********************************************************************************************************/
  19908. /*! no static exports found */
  19909. /***/ (function(module, exports, __webpack_require__) {
  19910. "use strict";
  19911. Object.defineProperty(exports, "__esModule", {
  19912. value: true
  19913. });
  19914. exports.default = void 0;
  19915. var _default = {
  19916. fade: {
  19917. enter: {
  19918. opacity: 0
  19919. },
  19920. 'enter-to': {
  19921. opacity: 1
  19922. },
  19923. leave: {
  19924. opacity: 1
  19925. },
  19926. 'leave-to': {
  19927. opacity: 0
  19928. }
  19929. },
  19930. 'fade-up': {
  19931. enter: {
  19932. opacity: 0,
  19933. transform: 'translateY(100%)'
  19934. },
  19935. 'enter-to': {
  19936. opacity: 1,
  19937. transform: 'translateY(0)'
  19938. },
  19939. leave: {
  19940. opacity: 1,
  19941. transform: 'translateY(0)'
  19942. },
  19943. 'leave-to': {
  19944. opacity: 0,
  19945. transform: 'translateY(100%)'
  19946. }
  19947. },
  19948. 'fade-down': {
  19949. enter: {
  19950. opacity: 0,
  19951. transform: 'translateY(-100%)'
  19952. },
  19953. 'enter-to': {
  19954. opacity: 1,
  19955. transform: 'translateY(0)'
  19956. },
  19957. leave: {
  19958. opacity: 1,
  19959. transform: 'translateY(0)'
  19960. },
  19961. 'leave-to': {
  19962. opacity: 0,
  19963. transform: 'translateY(-100%)'
  19964. }
  19965. },
  19966. 'fade-left': {
  19967. enter: {
  19968. opacity: 0,
  19969. transform: 'translateX(-100%)'
  19970. },
  19971. 'enter-to': {
  19972. opacity: 1,
  19973. transform: 'translateY(0)'
  19974. },
  19975. leave: {
  19976. opacity: 1,
  19977. transform: 'translateY(0)'
  19978. },
  19979. 'leave-to': {
  19980. opacity: 0,
  19981. transform: 'translateX(-100%)'
  19982. }
  19983. },
  19984. 'fade-right': {
  19985. enter: {
  19986. opacity: 0,
  19987. transform: 'translateX(100%)'
  19988. },
  19989. 'enter-to': {
  19990. opacity: 1,
  19991. transform: 'translateY(0)'
  19992. },
  19993. leave: {
  19994. opacity: 1,
  19995. transform: 'translateY(0)'
  19996. },
  19997. 'leave-to': {
  19998. opacity: 0,
  19999. transform: 'translateX(100%)'
  20000. }
  20001. },
  20002. 'slide-up': {
  20003. enter: {
  20004. transform: 'translateY(100%)'
  20005. },
  20006. 'enter-to': {
  20007. transform: 'translateY(0)'
  20008. },
  20009. leave: {
  20010. transform: 'translateY(0)'
  20011. },
  20012. 'leave-to': {
  20013. transform: 'translateY(100%)'
  20014. }
  20015. },
  20016. 'slide-down': {
  20017. enter: {
  20018. transform: 'translateY(-100%)'
  20019. },
  20020. 'enter-to': {
  20021. transform: 'translateY(0)'
  20022. },
  20023. leave: {
  20024. transform: 'translateY(0)'
  20025. },
  20026. 'leave-to': {
  20027. transform: 'translateY(-100%)'
  20028. }
  20029. },
  20030. 'slide-left': {
  20031. enter: {
  20032. transform: 'translateX(-100%)'
  20033. },
  20034. 'enter-to': {
  20035. transform: 'translateY(0)'
  20036. },
  20037. leave: {
  20038. transform: 'translateY(0)'
  20039. },
  20040. 'leave-to': {
  20041. transform: 'translateX(-100%)'
  20042. }
  20043. },
  20044. 'slide-right': {
  20045. enter: {
  20046. transform: 'translateX(100%)'
  20047. },
  20048. 'enter-to': {
  20049. transform: 'translateY(0)'
  20050. },
  20051. leave: {
  20052. transform: 'translateY(0)'
  20053. },
  20054. 'leave-to': {
  20055. transform: 'translateX(100%)'
  20056. }
  20057. },
  20058. zoom: {
  20059. enter: {
  20060. transform: 'scale(0.95)'
  20061. },
  20062. 'enter-to': {
  20063. transform: 'scale(1)'
  20064. },
  20065. leave: {
  20066. transform: 'scale(1)'
  20067. },
  20068. 'leave-to': {
  20069. transform: 'scale(0.95)'
  20070. }
  20071. },
  20072. 'fade-zoom': {
  20073. enter: {
  20074. opacity: 0,
  20075. transform: 'scale(0.95)'
  20076. },
  20077. 'enter-to': {
  20078. opacity: 1,
  20079. transform: 'scale(1)'
  20080. },
  20081. leave: {
  20082. opacity: 1,
  20083. transform: 'scale(1)'
  20084. },
  20085. 'leave-to': {
  20086. opacity: 0,
  20087. transform: 'scale(0.95)'
  20088. }
  20089. }
  20090. };
  20091. exports.default = _default;
  20092. /***/ }),
  20093. /* 314 */,
  20094. /* 315 */,
  20095. /* 316 */,
  20096. /* 317 */,
  20097. /* 318 */,
  20098. /* 319 */,
  20099. /* 320 */,
  20100. /* 321 */
  20101. /*!*************************************************************************************************!*\
  20102. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  20103. \*************************************************************************************************/
  20104. /*! no static exports found */
  20105. /***/ (function(module, exports, __webpack_require__) {
  20106. "use strict";
  20107. /* WEBPACK VAR INJECTION */(function(uni) {
  20108. Object.defineProperty(exports, "__esModule", {
  20109. value: true
  20110. });
  20111. exports.default = void 0;
  20112. var _default = {
  20113. props: {
  20114. bgColor: {
  20115. type: String,
  20116. default: uni.$u.props.statusBar.bgColor
  20117. }
  20118. }
  20119. };
  20120. exports.default = _default;
  20121. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20122. /***/ }),
  20123. /* 322 */,
  20124. /* 323 */,
  20125. /* 324 */,
  20126. /* 325 */,
  20127. /* 326 */,
  20128. /* 327 */,
  20129. /* 328 */,
  20130. /* 329 */
  20131. /*!**************************************************************************************************!*\
  20132. !*** D:/baozhida/baozhida-figure-platter/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  20133. \**************************************************************************************************/
  20134. /*! no static exports found */
  20135. /***/ (function(module, exports, __webpack_require__) {
  20136. "use strict";
  20137. Object.defineProperty(exports, "__esModule", {
  20138. value: true
  20139. });
  20140. exports.default = void 0;
  20141. var _default = {
  20142. props: {}
  20143. };
  20144. exports.default = _default;
  20145. /***/ })
  20146. ]]);
  20147. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map