vendor.js 721 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404
  1. (my["webpackJsonp"] = my["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!************************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js ***!
  6. \************************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. /* WEBPACK VAR INJECTION */(function(global) {
  11. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  12. Object.defineProperty(exports, "__esModule", {
  13. value: true
  14. });
  15. exports.createApp = createApp;
  16. exports.createComponent = createComponent;
  17. exports.createPage = createPage;
  18. exports.createPlugin = createPlugin;
  19. exports.createSubpackageApp = createSubpackageApp;
  20. exports.default = void 0;
  21. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  22. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  23. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 14));
  24. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 15));
  25. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 16));
  26. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  27. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 20);
  28. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 21));
  29. var realAtob;
  30. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  31. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  32. if (typeof atob !== 'function') {
  33. realAtob = function realAtob(str) {
  34. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  35. if (!b64re.test(str)) {
  36. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  37. }
  38. // Adding the padding if missing, for semplicity
  39. str += '=='.slice(2 - (str.length & 3));
  40. var bitmap;
  41. var result = '';
  42. var r1;
  43. var r2;
  44. var i = 0;
  45. for (; i < str.length;) {
  46. 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++)));
  47. 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);
  48. }
  49. return result;
  50. };
  51. } else {
  52. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  53. realAtob = atob;
  54. }
  55. function b64DecodeUnicode(str) {
  56. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  57. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  58. }).join(''));
  59. }
  60. function getCurrentUserInfo() {
  61. var token = my.getStorageSync('uni_id_token') || '';
  62. var tokenArr = token.split('.');
  63. if (!token || tokenArr.length !== 3) {
  64. return {
  65. uid: null,
  66. role: [],
  67. permission: [],
  68. tokenExpired: 0
  69. };
  70. }
  71. var userInfo;
  72. try {
  73. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  74. } catch (error) {
  75. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  76. }
  77. userInfo.tokenExpired = userInfo.exp * 1000;
  78. delete userInfo.exp;
  79. delete userInfo.iat;
  80. return userInfo;
  81. }
  82. function uniIdMixin(Vue) {
  83. Vue.prototype.uniIDHasRole = function (roleId) {
  84. var _getCurrentUserInfo = getCurrentUserInfo(),
  85. role = _getCurrentUserInfo.role;
  86. return role.indexOf(roleId) > -1;
  87. };
  88. Vue.prototype.uniIDHasPermission = function (permissionId) {
  89. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  90. permission = _getCurrentUserInfo2.permission;
  91. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  92. };
  93. Vue.prototype.uniIDTokenValid = function () {
  94. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  95. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  96. return tokenExpired > Date.now();
  97. };
  98. }
  99. var _toString = Object.prototype.toString;
  100. var hasOwnProperty = Object.prototype.hasOwnProperty;
  101. function isFn(fn) {
  102. return typeof fn === 'function';
  103. }
  104. function isStr(str) {
  105. return typeof str === 'string';
  106. }
  107. function isObject(obj) {
  108. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  109. }
  110. function isPlainObject(obj) {
  111. return _toString.call(obj) === '[object Object]';
  112. }
  113. function hasOwn(obj, key) {
  114. return hasOwnProperty.call(obj, key);
  115. }
  116. function noop() {}
  117. /**
  118. * Create a cached version of a pure function.
  119. */
  120. function cached(fn) {
  121. var cache = Object.create(null);
  122. return function cachedFn(str) {
  123. var hit = cache[str];
  124. return hit || (cache[str] = fn(str));
  125. };
  126. }
  127. /**
  128. * Camelize a hyphen-delimited string.
  129. */
  130. var camelizeRE = /-(\w)/g;
  131. var camelize = cached(function (str) {
  132. return str.replace(camelizeRE, function (_, c) {
  133. return c ? c.toUpperCase() : '';
  134. });
  135. });
  136. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  137. var globalInterceptors = {};
  138. var scopedInterceptors = {};
  139. function mergeHook(parentVal, childVal) {
  140. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  141. return res ? dedupeHooks(res) : res;
  142. }
  143. function dedupeHooks(hooks) {
  144. var res = [];
  145. for (var i = 0; i < hooks.length; i++) {
  146. if (res.indexOf(hooks[i]) === -1) {
  147. res.push(hooks[i]);
  148. }
  149. }
  150. return res;
  151. }
  152. function removeHook(hooks, hook) {
  153. var index = hooks.indexOf(hook);
  154. if (index !== -1) {
  155. hooks.splice(index, 1);
  156. }
  157. }
  158. function mergeInterceptorHook(interceptor, option) {
  159. Object.keys(option).forEach(function (hook) {
  160. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  161. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  162. }
  163. });
  164. }
  165. function removeInterceptorHook(interceptor, option) {
  166. if (!interceptor || !option) {
  167. return;
  168. }
  169. Object.keys(option).forEach(function (hook) {
  170. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  171. removeHook(interceptor[hook], option[hook]);
  172. }
  173. });
  174. }
  175. function addInterceptor(method, option) {
  176. if (typeof method === 'string' && isPlainObject(option)) {
  177. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  178. } else if (isPlainObject(method)) {
  179. mergeInterceptorHook(globalInterceptors, method);
  180. }
  181. }
  182. function removeInterceptor(method, option) {
  183. if (typeof method === 'string') {
  184. if (isPlainObject(option)) {
  185. removeInterceptorHook(scopedInterceptors[method], option);
  186. } else {
  187. delete scopedInterceptors[method];
  188. }
  189. } else if (isPlainObject(method)) {
  190. removeInterceptorHook(globalInterceptors, method);
  191. }
  192. }
  193. function wrapperHook(hook) {
  194. return function (data) {
  195. return hook(data) || data;
  196. };
  197. }
  198. function isPromise(obj) {
  199. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  200. }
  201. function queue(hooks, data) {
  202. var promise = false;
  203. for (var i = 0; i < hooks.length; i++) {
  204. var hook = hooks[i];
  205. if (promise) {
  206. promise = Promise.resolve(wrapperHook(hook));
  207. } else {
  208. var res = hook(data);
  209. if (isPromise(res)) {
  210. promise = Promise.resolve(res);
  211. }
  212. if (res === false) {
  213. return {
  214. then: function then() {}
  215. };
  216. }
  217. }
  218. }
  219. return promise || {
  220. then: function then(callback) {
  221. return callback(data);
  222. }
  223. };
  224. }
  225. function wrapperOptions(interceptor) {
  226. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  227. ['success', 'fail', 'complete'].forEach(function (name) {
  228. if (Array.isArray(interceptor[name])) {
  229. var oldCallback = options[name];
  230. options[name] = function callbackInterceptor(res) {
  231. queue(interceptor[name], res).then(function (res) {
  232. /* eslint-disable no-mixed-operators */
  233. return isFn(oldCallback) && oldCallback(res) || res;
  234. });
  235. };
  236. }
  237. });
  238. return options;
  239. }
  240. function wrapperReturnValue(method, returnValue) {
  241. var returnValueHooks = [];
  242. if (Array.isArray(globalInterceptors.returnValue)) {
  243. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  244. }
  245. var interceptor = scopedInterceptors[method];
  246. if (interceptor && Array.isArray(interceptor.returnValue)) {
  247. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  248. }
  249. returnValueHooks.forEach(function (hook) {
  250. returnValue = hook(returnValue) || returnValue;
  251. });
  252. return returnValue;
  253. }
  254. function getApiInterceptorHooks(method) {
  255. var interceptor = Object.create(null);
  256. Object.keys(globalInterceptors).forEach(function (hook) {
  257. if (hook !== 'returnValue') {
  258. interceptor[hook] = globalInterceptors[hook].slice();
  259. }
  260. });
  261. var scopedInterceptor = scopedInterceptors[method];
  262. if (scopedInterceptor) {
  263. Object.keys(scopedInterceptor).forEach(function (hook) {
  264. if (hook !== 'returnValue') {
  265. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  266. }
  267. });
  268. }
  269. return interceptor;
  270. }
  271. function invokeApi(method, api, options) {
  272. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  273. params[_key - 3] = arguments[_key];
  274. }
  275. var interceptor = getApiInterceptorHooks(method);
  276. if (interceptor && Object.keys(interceptor).length) {
  277. if (Array.isArray(interceptor.invoke)) {
  278. var res = queue(interceptor.invoke, options);
  279. return res.then(function (options) {
  280. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  281. });
  282. } else {
  283. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  284. }
  285. }
  286. return api.apply(void 0, [options].concat(params));
  287. }
  288. var promiseInterceptor = {
  289. returnValue: function returnValue(res) {
  290. if (!isPromise(res)) {
  291. return res;
  292. }
  293. return new Promise(function (resolve, reject) {
  294. res.then(function (res) {
  295. if (res[0]) {
  296. reject(res[0]);
  297. } else {
  298. resolve(res[1]);
  299. }
  300. });
  301. });
  302. }
  303. };
  304. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  305. var CONTEXT_API_RE = /^create|Manager$/;
  306. // Context例外情况
  307. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  308. // 同步例外情况
  309. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  310. var CALLBACK_API_RE = /^on|^off/;
  311. function isContextApi(name) {
  312. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  313. }
  314. function isSyncApi(name) {
  315. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  316. }
  317. function isCallbackApi(name) {
  318. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  319. }
  320. function handlePromise(promise) {
  321. return promise.then(function (data) {
  322. return [null, data];
  323. }).catch(function (err) {
  324. return [err];
  325. });
  326. }
  327. function shouldPromise(name) {
  328. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  329. return false;
  330. }
  331. return true;
  332. }
  333. /* eslint-disable no-extend-native */
  334. if (!Promise.prototype.finally) {
  335. Promise.prototype.finally = function (callback) {
  336. var promise = this.constructor;
  337. return this.then(function (value) {
  338. return promise.resolve(callback()).then(function () {
  339. return value;
  340. });
  341. }, function (reason) {
  342. return promise.resolve(callback()).then(function () {
  343. throw reason;
  344. });
  345. });
  346. };
  347. }
  348. function promisify(name, api) {
  349. if (!shouldPromise(name) || !isFn(api)) {
  350. return api;
  351. }
  352. return function promiseApi() {
  353. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  354. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  355. params[_key2 - 1] = arguments[_key2];
  356. }
  357. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  358. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  359. }
  360. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  361. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  362. success: resolve,
  363. fail: reject
  364. })].concat(params));
  365. })));
  366. };
  367. }
  368. var EPS = 1e-4;
  369. var BASE_DEVICE_WIDTH = 750;
  370. var isIOS = false;
  371. var deviceWidth = 0;
  372. var deviceDPR = 0;
  373. function checkDeviceWidth() {
  374. var _my$getSystemInfoSync = my.getSystemInfoSync(),
  375. platform = _my$getSystemInfoSync.platform,
  376. pixelRatio = _my$getSystemInfoSync.pixelRatio,
  377. windowWidth = _my$getSystemInfoSync.windowWidth; // uni=>my runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  378. deviceWidth = windowWidth;
  379. deviceDPR = pixelRatio;
  380. isIOS = platform === 'ios';
  381. }
  382. function upx2px(number, newDeviceWidth) {
  383. if (deviceWidth === 0) {
  384. checkDeviceWidth();
  385. }
  386. number = Number(number);
  387. if (number === 0) {
  388. return 0;
  389. }
  390. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  391. if (result < 0) {
  392. result = -result;
  393. }
  394. result = Math.floor(result + EPS);
  395. if (result === 0) {
  396. if (deviceDPR === 1 || !isIOS) {
  397. result = 1;
  398. } else {
  399. result = 0.5;
  400. }
  401. }
  402. return number < 0 ? -result : result;
  403. }
  404. var LOCALE_ZH_HANS = 'zh-Hans';
  405. var LOCALE_ZH_HANT = 'zh-Hant';
  406. var LOCALE_EN = 'en';
  407. var LOCALE_FR = 'fr';
  408. var LOCALE_ES = 'es';
  409. var messages = {};
  410. var locale;
  411. {
  412. locale = normalizeLocale(my.getSystemInfoSync().language) || LOCALE_EN;
  413. }
  414. function initI18nMessages() {
  415. if (!isEnableLocale()) {
  416. return;
  417. }
  418. var localeKeys = Object.keys(__uniConfig.locales);
  419. if (localeKeys.length) {
  420. localeKeys.forEach(function (locale) {
  421. var curMessages = messages[locale];
  422. var userMessages = __uniConfig.locales[locale];
  423. if (curMessages) {
  424. Object.assign(curMessages, userMessages);
  425. } else {
  426. messages[locale] = userMessages;
  427. }
  428. });
  429. }
  430. }
  431. initI18nMessages();
  432. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  433. var t = i18n.t;
  434. var i18nMixin = i18n.mixin = {
  435. beforeCreate: function beforeCreate() {
  436. var _this = this;
  437. var unwatch = i18n.i18n.watchLocale(function () {
  438. _this.$forceUpdate();
  439. });
  440. this.$once('hook:beforeDestroy', function () {
  441. unwatch();
  442. });
  443. },
  444. methods: {
  445. $$t: function $$t(key, values) {
  446. return t(key, values);
  447. }
  448. }
  449. };
  450. var setLocale = i18n.setLocale;
  451. var getLocale = i18n.getLocale;
  452. function initAppLocale(Vue, appVm, locale) {
  453. var state = Vue.observable({
  454. locale: locale || i18n.getLocale()
  455. });
  456. var localeWatchers = [];
  457. appVm.$watchLocale = function (fn) {
  458. localeWatchers.push(fn);
  459. };
  460. Object.defineProperty(appVm, '$locale', {
  461. get: function get() {
  462. return state.locale;
  463. },
  464. set: function set(v) {
  465. state.locale = v;
  466. localeWatchers.forEach(function (watch) {
  467. return watch(v);
  468. });
  469. }
  470. });
  471. }
  472. function isEnableLocale() {
  473. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  474. }
  475. function include(str, parts) {
  476. return !!parts.find(function (part) {
  477. return str.indexOf(part) !== -1;
  478. });
  479. }
  480. function startsWith(str, parts) {
  481. return parts.find(function (part) {
  482. return str.indexOf(part) === 0;
  483. });
  484. }
  485. function normalizeLocale(locale, messages) {
  486. if (!locale) {
  487. return;
  488. }
  489. locale = locale.trim().replace(/_/g, '-');
  490. if (messages && messages[locale]) {
  491. return locale;
  492. }
  493. locale = locale.toLowerCase();
  494. if (locale === 'chinese') {
  495. // 支付宝
  496. return LOCALE_ZH_HANS;
  497. }
  498. if (locale.indexOf('zh') === 0) {
  499. if (locale.indexOf('-hans') > -1) {
  500. return LOCALE_ZH_HANS;
  501. }
  502. if (locale.indexOf('-hant') > -1) {
  503. return LOCALE_ZH_HANT;
  504. }
  505. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  506. return LOCALE_ZH_HANT;
  507. }
  508. return LOCALE_ZH_HANS;
  509. }
  510. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  511. if (lang) {
  512. return lang;
  513. }
  514. }
  515. // export function initI18n() {
  516. // const localeKeys = Object.keys(__uniConfig.locales || {})
  517. // if (localeKeys.length) {
  518. // localeKeys.forEach((locale) =>
  519. // i18n.add(locale, __uniConfig.locales[locale])
  520. // )
  521. // }
  522. // }
  523. function getLocale$1() {
  524. // 优先使用 $locale
  525. if (isFn(getApp)) {
  526. var app = getApp({
  527. allowDefault: true
  528. });
  529. if (app && app.$vm) {
  530. return app.$vm.$locale;
  531. }
  532. }
  533. return normalizeLocale(my.getSystemInfoSync().language) || LOCALE_EN;
  534. }
  535. function setLocale$1(locale) {
  536. var app = isFn(getApp) ? getApp() : false;
  537. if (!app) {
  538. return false;
  539. }
  540. var oldLocale = app.$vm.$locale;
  541. if (oldLocale !== locale) {
  542. app.$vm.$locale = locale;
  543. onLocaleChangeCallbacks.forEach(function (fn) {
  544. return fn({
  545. locale: locale
  546. });
  547. });
  548. return true;
  549. }
  550. return false;
  551. }
  552. var onLocaleChangeCallbacks = [];
  553. function onLocaleChange(fn) {
  554. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  555. onLocaleChangeCallbacks.push(fn);
  556. }
  557. }
  558. if (typeof global !== 'undefined') {
  559. global.getLocale = getLocale$1;
  560. }
  561. var interceptors = {
  562. promiseInterceptor: promiseInterceptor
  563. };
  564. var baseApi = /*#__PURE__*/Object.freeze({
  565. __proto__: null,
  566. upx2px: upx2px,
  567. getLocale: getLocale$1,
  568. setLocale: setLocale$1,
  569. onLocaleChange: onLocaleChange,
  570. addInterceptor: addInterceptor,
  571. removeInterceptor: removeInterceptor,
  572. interceptors: interceptors
  573. });
  574. var EventChannel = /*#__PURE__*/function () {
  575. function EventChannel(id, events) {
  576. var _this2 = this;
  577. (0, _classCallCheck2.default)(this, EventChannel);
  578. this.id = id;
  579. this.listener = {};
  580. this.emitCache = {};
  581. if (events) {
  582. Object.keys(events).forEach(function (name) {
  583. _this2.on(name, events[name]);
  584. });
  585. }
  586. }
  587. (0, _createClass2.default)(EventChannel, [{
  588. key: "emit",
  589. value: function emit(eventName) {
  590. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  591. args[_key3 - 1] = arguments[_key3];
  592. }
  593. var fns = this.listener[eventName];
  594. if (!fns) {
  595. return (this.emitCache[eventName] || (this.emitCache[eventName] = [])).push(args);
  596. }
  597. fns.forEach(function (opt) {
  598. opt.fn.apply(opt.fn, args);
  599. });
  600. this.listener[eventName] = fns.filter(function (opt) {
  601. return opt.type !== 'once';
  602. });
  603. }
  604. }, {
  605. key: "on",
  606. value: function on(eventName, fn) {
  607. this._addListener(eventName, 'on', fn);
  608. this._clearCache(eventName);
  609. }
  610. }, {
  611. key: "once",
  612. value: function once(eventName, fn) {
  613. this._addListener(eventName, 'once', fn);
  614. this._clearCache(eventName);
  615. }
  616. }, {
  617. key: "off",
  618. value: function off(eventName, fn) {
  619. var fns = this.listener[eventName];
  620. if (!fns) {
  621. return;
  622. }
  623. if (fn) {
  624. for (var i = 0; i < fns.length;) {
  625. if (fns[i].fn === fn) {
  626. fns.splice(i, 1);
  627. i--;
  628. }
  629. i++;
  630. }
  631. } else {
  632. delete this.listener[eventName];
  633. }
  634. }
  635. }, {
  636. key: "_clearCache",
  637. value: function _clearCache(eventName) {
  638. var cacheArgs = this.emitCache[eventName];
  639. if (cacheArgs) {
  640. for (; cacheArgs.length > 0;) {
  641. this.emit.apply(this, [eventName].concat(cacheArgs.shift()));
  642. }
  643. }
  644. }
  645. }, {
  646. key: "_addListener",
  647. value: function _addListener(eventName, type, fn) {
  648. (this.listener[eventName] || (this.listener[eventName] = [])).push({
  649. fn: fn,
  650. type: type
  651. });
  652. }
  653. }]);
  654. return EventChannel;
  655. }();
  656. var eventChannels = {};
  657. var eventChannelStack = [];
  658. var id = 0;
  659. function initEventChannel(events) {
  660. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  661. id++;
  662. var eventChannel = new EventChannel(id, events);
  663. if (cache) {
  664. eventChannels[id] = eventChannel;
  665. eventChannelStack.push(eventChannel);
  666. }
  667. return eventChannel;
  668. }
  669. function getEventChannel(id) {
  670. if (id) {
  671. var eventChannel = eventChannels[id];
  672. delete eventChannels[id];
  673. return eventChannel;
  674. }
  675. return eventChannelStack.shift();
  676. }
  677. var navigateTo = {
  678. args: function args(fromArgs, toArgs) {
  679. var id = initEventChannel(fromArgs.events).id;
  680. if (fromArgs.url) {
  681. fromArgs.url = fromArgs.url + (fromArgs.url.indexOf('?') === -1 ? '?' : '&') + '__id__=' + id;
  682. }
  683. },
  684. returnValue: function returnValue(fromRes, toRes) {
  685. fromRes.eventChannel = getEventChannel();
  686. }
  687. };
  688. function findExistsPageIndex(url) {
  689. var pages = getCurrentPages();
  690. var len = pages.length;
  691. while (len--) {
  692. var page = pages[len];
  693. if (page.$page && page.$page.fullPath === url) {
  694. return len;
  695. }
  696. }
  697. return -1;
  698. }
  699. var redirectTo = {
  700. name: function name(fromArgs) {
  701. if (fromArgs.exists === 'back' && fromArgs.delta) {
  702. return 'navigateBack';
  703. }
  704. return 'redirectTo';
  705. },
  706. args: function args(fromArgs) {
  707. if (fromArgs.exists === 'back' && fromArgs.url) {
  708. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  709. if (existsPageIndex !== -1) {
  710. var delta = getCurrentPages().length - 1 - existsPageIndex;
  711. if (delta > 0) {
  712. fromArgs.delta = delta;
  713. }
  714. }
  715. }
  716. }
  717. };
  718. function setStorageSync(key, data) {
  719. return my.setStorageSync({
  720. key: key,
  721. data: data
  722. });
  723. }
  724. function getStorageSync(key) {
  725. var result = my.getStorageSync({
  726. key: key
  727. });
  728. // 支付宝平台会返回一个 success 值,但是目前测试的结果这个始终是 true。当没有存储数据的时候,其它平台会返回空字符串。
  729. return result.data !== null ? result.data : '';
  730. }
  731. function removeStorageSync(key) {
  732. return my.removeStorageSync({
  733. key: key
  734. });
  735. }
  736. function addSafeAreaInsets(result) {
  737. if (result.safeArea) {
  738. var safeArea = result.safeArea;
  739. result.safeAreaInsets = {
  740. top: safeArea.top,
  741. left: safeArea.left,
  742. right: result.windowWidth - safeArea.right,
  743. bottom: result.screenHeight - safeArea.bottom
  744. };
  745. }
  746. }
  747. function populateParameters(result) {
  748. var _result$brand = result.brand,
  749. brand = _result$brand === void 0 ? '' : _result$brand,
  750. _result$model = result.model,
  751. model = _result$model === void 0 ? '' : _result$model,
  752. _result$system = result.system,
  753. system = _result$system === void 0 ? '' : _result$system,
  754. _result$language = result.language,
  755. language = _result$language === void 0 ? '' : _result$language,
  756. theme = result.theme,
  757. version = result.version,
  758. platform = result.platform,
  759. fontSizeSetting = result.fontSizeSetting,
  760. SDKVersion = result.SDKVersion,
  761. pixelRatio = result.pixelRatio,
  762. deviceOrientation = result.deviceOrientation;
  763. // const isQuickApp = "mp-alipay".indexOf('quickapp-webview') !== -1
  764. var extraParam = {};
  765. // osName osVersion
  766. var osName = '';
  767. var osVersion = '';
  768. {
  769. my.canIUse('isIDE') && my.isIDE && (extraParam.platform = 'devtools');
  770. osName = platform;
  771. osVersion = system;
  772. }
  773. var hostVersion = version;
  774. // deviceType
  775. var deviceType = getGetDeviceType(result, model);
  776. // deviceModel
  777. var deviceBrand = getDeviceBrand(brand);
  778. // hostName
  779. var _hostName = getHostName(result);
  780. // deviceOrientation
  781. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  782. // devicePixelRatio
  783. var _devicePixelRatio = pixelRatio;
  784. // SDKVersion
  785. var _SDKVersion = SDKVersion;
  786. {
  787. _SDKVersion = my.SDKVersion;
  788. }
  789. // hostLanguage
  790. var hostLanguage = language.replace(/_/g, '-');
  791. // wx.getAccountInfoSync
  792. var parameters = {
  793. appId: "__UNI__CE07FDB",
  794. appName: "project_order",
  795. appVersion: "1.0.0",
  796. appVersionCode: "100",
  797. appLanguage: getAppLanguage(hostLanguage),
  798. uniCompileVersion: "3.7.11",
  799. uniRuntimeVersion: "3.7.11",
  800. uniPlatform: undefined || "mp-alipay",
  801. deviceBrand: deviceBrand,
  802. deviceModel: model,
  803. deviceType: deviceType,
  804. devicePixelRatio: _devicePixelRatio,
  805. deviceOrientation: _deviceOrientation,
  806. osName: osName.toLocaleLowerCase(),
  807. osVersion: osVersion,
  808. hostTheme: theme,
  809. hostVersion: hostVersion,
  810. hostLanguage: hostLanguage,
  811. hostName: _hostName,
  812. hostSDKVersion: _SDKVersion,
  813. hostFontSizeSetting: fontSizeSetting,
  814. windowTop: 0,
  815. windowBottom: 0,
  816. // TODO
  817. osLanguage: undefined,
  818. osTheme: undefined,
  819. ua: undefined,
  820. hostPackageName: undefined,
  821. browserName: undefined,
  822. browserVersion: undefined
  823. };
  824. Object.assign(result, parameters, extraParam);
  825. }
  826. function getGetDeviceType(result, model) {
  827. var deviceType = result.deviceType || 'phone';
  828. {
  829. var deviceTypeMaps = {
  830. ipad: 'pad',
  831. windows: 'pc',
  832. mac: 'pc'
  833. };
  834. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  835. var _model = model.toLocaleLowerCase();
  836. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  837. var _m = deviceTypeMapsKeys[index];
  838. if (_model.indexOf(_m) !== -1) {
  839. deviceType = deviceTypeMaps[_m];
  840. break;
  841. }
  842. }
  843. }
  844. return deviceType;
  845. }
  846. function getDeviceBrand(brand) {
  847. var deviceBrand = brand;
  848. if (deviceBrand) {
  849. deviceBrand = brand.toLocaleLowerCase();
  850. }
  851. return deviceBrand;
  852. }
  853. function getAppLanguage(defaultLanguage) {
  854. return getLocale$1 ? getLocale$1() : defaultLanguage;
  855. }
  856. function getHostName(result) {
  857. var _platform = "mp-alipay".split('-')[1];
  858. var _hostName = result.hostName || _platform; // mp-jd
  859. _hostName = result.app;
  860. return _hostName;
  861. }
  862. var UUID_KEY = '__DC_STAT_UUID';
  863. var deviceId;
  864. function addUuid(result) {
  865. deviceId = deviceId || getStorageSync(UUID_KEY);
  866. if (!deviceId) {
  867. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  868. my.setStorage({
  869. key: UUID_KEY,
  870. data: deviceId
  871. });
  872. }
  873. result.deviceId = deviceId;
  874. }
  875. function normalizePlatform(result) {
  876. var platform = result.platform ? result.platform.toLowerCase() : 'devtools';
  877. if (!~['android', 'ios'].indexOf(platform)) {
  878. platform = 'devtools';
  879. }
  880. result.platform = platform;
  881. }
  882. var getSystemInfo = {
  883. returnValue: function returnValue(result) {
  884. addUuid(result);
  885. addSafeAreaInsets(result);
  886. normalizePlatform(result);
  887. populateParameters(result);
  888. }
  889. };
  890. // 不支持的 API 列表
  891. var todos = ['preloadPage', 'unPreloadPage', 'loadSubPackage'
  892. // 'getRecorderManager',
  893. // 'getBackgroundAudioManager',
  894. // 'createInnerAudioContext',
  895. // 'createCameraContext',
  896. // 'createLivePlayerContext',
  897. // 'startAccelerometer',
  898. // 'startCompass',
  899. // 'authorize',
  900. // 'chooseInvoiceTitle',
  901. // 'addTemplate',
  902. // 'deleteTemplate',
  903. // 'getTemplateLibraryById',
  904. // 'getTemplateLibraryList',
  905. // 'getTemplateList',
  906. // 'sendTemplateMessage',
  907. // 'setEnableDebug',
  908. // 'getExtConfig',
  909. // 'getExtConfigSync',
  910. // 'onWindowResize',
  911. // 'offWindowResize'
  912. ];
  913. // 存在兼容性的 API 列表
  914. var canIUses = ['startPullDownRefresh', 'setTabBarItem', 'setTabBarStyle', 'hideTabBar', 'showTabBar', 'setTabBarBadge', 'removeTabBarBadge', 'showTabBarRedDot', 'hideTabBarRedDot', 'openSetting', 'getSetting', 'createIntersectionObserver', 'getUpdateManager', 'setBackgroundColor', 'setBackgroundTextStyle', 'checkIsSupportSoterAuthentication', 'startSoterAuthentication', 'checkIsSoterEnrolledInDevice', 'openDocument', 'createVideoContext', 'onMemoryWarning', 'addPhoneContact'];
  915. function _handleNetworkInfo(result) {
  916. switch (result.networkType) {
  917. case 'NOTREACHABLE':
  918. result.networkType = 'none';
  919. break;
  920. case 'WWAN':
  921. // TODO ?
  922. result.networkType = '3g';
  923. break;
  924. default:
  925. result.networkType = result.networkType.toLowerCase();
  926. break;
  927. }
  928. return {};
  929. }
  930. var protocols = {
  931. // 需要做转换的 API 列表
  932. navigateTo: navigateTo,
  933. redirectTo: redirectTo,
  934. returnValue: function returnValue(methodName) {
  935. var res = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  936. // 通用 returnValue 解析
  937. if (res.error || res.errorMessage) {
  938. res.errMsg = "".concat(methodName, ":fail ").concat(res.errorMessage || res.error);
  939. delete res.error;
  940. delete res.errorMessage;
  941. } else {
  942. res.errMsg = "".concat(methodName, ":ok");
  943. }
  944. return res;
  945. },
  946. request: {
  947. name: my.canIUse('request') ? 'request' : 'httpRequest',
  948. args: function args(fromArgs) {
  949. var method = fromArgs.method || 'GET';
  950. if (!fromArgs.header) {
  951. // 默认增加 header 参数,方便格式化 content-type
  952. fromArgs.header = {};
  953. }
  954. var headers = {
  955. 'content-type': 'application/json'
  956. };
  957. Object.keys(fromArgs.header).forEach(function (key) {
  958. headers[key.toLocaleLowerCase()] = fromArgs.header[key];
  959. });
  960. return {
  961. header: function header() {
  962. var header = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  963. var toArgs = arguments.length > 1 ? arguments[1] : undefined;
  964. return {
  965. name: 'headers',
  966. value: headers
  967. };
  968. },
  969. data: function data(_data) {
  970. // 钉钉小程序在content-type为application/json时需上传字符串形式data,使用my.dd在真机运行钉钉小程序时不能正确判断
  971. if (my.canIUse('saveFileToDingTalk') && method.toUpperCase() === 'POST' && headers['content-type'].indexOf('application/json') === 0 && isPlainObject(_data)) {
  972. return {
  973. name: 'data',
  974. value: JSON.stringify(_data)
  975. };
  976. }
  977. return {
  978. name: 'data',
  979. value: _data
  980. };
  981. },
  982. method: 'method',
  983. // TODO 支付宝小程序仅支持 get,post
  984. responseType: false
  985. };
  986. },
  987. returnValue: {
  988. status: 'statusCode',
  989. headers: 'header'
  990. }
  991. },
  992. setNavigationBarColor: {
  993. name: 'setNavigationBar',
  994. args: {
  995. frontColor: false,
  996. animation: false
  997. }
  998. },
  999. setNavigationBarTitle: {
  1000. name: 'setNavigationBar'
  1001. },
  1002. showModal: function showModal() {
  1003. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  1004. _ref$showCancel = _ref.showCancel,
  1005. showCancel = _ref$showCancel === void 0 ? true : _ref$showCancel;
  1006. if (showCancel) {
  1007. return {
  1008. name: 'confirm',
  1009. args: {
  1010. cancelColor: false,
  1011. confirmColor: false,
  1012. cancelText: 'cancelButtonText',
  1013. confirmText: 'confirmButtonText'
  1014. },
  1015. returnValue: function returnValue(fromRes, toRes) {
  1016. toRes.confirm = fromRes.confirm;
  1017. toRes.cancel = !fromRes.confirm;
  1018. }
  1019. };
  1020. }
  1021. return {
  1022. name: 'alert',
  1023. args: {
  1024. confirmColor: false,
  1025. confirmText: 'buttonText'
  1026. },
  1027. returnValue: function returnValue(fromRes, toRes) {
  1028. toRes.confirm = true;
  1029. toRes.cancel = false;
  1030. }
  1031. };
  1032. },
  1033. showToast: function showToast() {
  1034. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  1035. _ref2$icon = _ref2.icon,
  1036. icon = _ref2$icon === void 0 ? 'success' : _ref2$icon;
  1037. var args = {
  1038. title: 'content',
  1039. icon: 'type',
  1040. image: false,
  1041. mask: false
  1042. };
  1043. if (icon === 'loading') {
  1044. return {
  1045. name: 'showLoading',
  1046. args: args
  1047. };
  1048. }
  1049. return {
  1050. name: 'showToast',
  1051. args: args
  1052. };
  1053. },
  1054. showActionSheet: {
  1055. name: 'showActionSheet',
  1056. args: {
  1057. itemList: 'items',
  1058. itemColor: false
  1059. },
  1060. returnValue: {
  1061. index: 'tapIndex'
  1062. }
  1063. },
  1064. showLoading: {
  1065. args: {
  1066. title: 'content'
  1067. }
  1068. },
  1069. uploadFile: {
  1070. args: {
  1071. name: 'fileName'
  1072. }
  1073. // 从测试结果看,是有返回对象的,文档上没有说明。
  1074. },
  1075. downloadFile: {
  1076. returnValue: {
  1077. apFilePath: 'tempFilePath'
  1078. }
  1079. },
  1080. getFileInfo: {
  1081. args: {
  1082. filePath: 'apFilePath'
  1083. }
  1084. },
  1085. compressImage: {
  1086. args: function args(fromArgs) {
  1087. fromArgs.compressLevel = 4;
  1088. if (fromArgs && fromArgs.quality) {
  1089. fromArgs.compressLevel = Math.floor(fromArgs.quality / 26);
  1090. }
  1091. fromArgs.apFilePaths = [fromArgs.src];
  1092. },
  1093. returnValue: function returnValue(result) {
  1094. if (result.apFilePaths && result.apFilePaths.length) {
  1095. result.tempFilePath = result.apFilePaths[0];
  1096. }
  1097. }
  1098. },
  1099. chooseVideo: {
  1100. // 支付宝小程序文档中未找到(仅在getSetting处提及),但实际可用
  1101. returnValue: {
  1102. apFilePath: 'tempFilePath'
  1103. }
  1104. },
  1105. connectSocket: {
  1106. args: {
  1107. method: false,
  1108. protocols: false
  1109. }
  1110. // TODO 有没有返回值还需要测试下
  1111. },
  1112. chooseImage: {
  1113. returnValue: function returnValue(result) {
  1114. var hasTempFilePaths = hasOwn(result, 'tempFilePaths') && result.tempFilePaths;
  1115. if (hasOwn(result, 'apFilePaths') && !hasTempFilePaths) {
  1116. result.tempFilePaths = result.apFilePaths;
  1117. delete result.apFilePaths;
  1118. }
  1119. if (!hasOwn(result, 'tempFiles') && hasTempFilePaths) {
  1120. result.tempFiles = [];
  1121. result.tempFilePaths.forEach(function (tempFilePath) {
  1122. return result.tempFiles.push({
  1123. path: tempFilePath
  1124. });
  1125. });
  1126. }
  1127. return {};
  1128. }
  1129. },
  1130. previewImage: {
  1131. args: function args(fromArgs) {
  1132. // 支付宝小程序的 current 是索引值,而非图片地址。
  1133. var currentIndex = Number(fromArgs.current);
  1134. if (isNaN(currentIndex)) {
  1135. if (fromArgs.current && Array.isArray(fromArgs.urls)) {
  1136. var index = fromArgs.urls.indexOf(fromArgs.current);
  1137. fromArgs.current = ~index ? index : 0;
  1138. }
  1139. } else {
  1140. fromArgs.current = currentIndex;
  1141. }
  1142. return {
  1143. indicator: false,
  1144. loop: false
  1145. };
  1146. }
  1147. },
  1148. saveFile: {
  1149. args: {
  1150. tempFilePath: 'apFilePath'
  1151. },
  1152. returnValue: {
  1153. apFilePath: 'savedFilePath'
  1154. }
  1155. },
  1156. getSavedFileInfo: {
  1157. args: {
  1158. filePath: 'apFilePath'
  1159. }
  1160. },
  1161. getSavedFileList: {
  1162. returnValue: function returnValue(result) {
  1163. if (result.fileList && result.fileList.length) {
  1164. result.fileList.forEach(function (file) {
  1165. file.filePath = file.apFilePath;
  1166. delete file.apFilePath;
  1167. });
  1168. }
  1169. return {};
  1170. }
  1171. },
  1172. removeSavedFile: {
  1173. args: {
  1174. filePath: 'apFilePath'
  1175. }
  1176. },
  1177. getLocation: {
  1178. args: {
  1179. type: false,
  1180. altitude: false
  1181. }
  1182. },
  1183. openLocation: {
  1184. args: {
  1185. // TODO address 参数在阿里上是必传的
  1186. }
  1187. },
  1188. getNetworkType: {
  1189. returnValue: _handleNetworkInfo
  1190. },
  1191. onNetworkStatusChange: {
  1192. returnValue: _handleNetworkInfo
  1193. },
  1194. stopAccelerometer: {
  1195. name: 'offAccelerometerChange'
  1196. },
  1197. stopCompass: {
  1198. name: 'offCompassChange'
  1199. },
  1200. scanCode: {
  1201. name: 'scan',
  1202. args: function args(fromArgs) {
  1203. if (fromArgs.scanType) {
  1204. switch (fromArgs.scanType[0]) {
  1205. case 'qrCode':
  1206. fromArgs.type = 'qr';
  1207. break;
  1208. case 'barCode':
  1209. fromArgs.type = 'bar';
  1210. break;
  1211. }
  1212. }
  1213. return {
  1214. onlyFromCamera: 'hideAlbum'
  1215. };
  1216. },
  1217. returnValue: {
  1218. code: 'result'
  1219. }
  1220. },
  1221. setClipboardData: {
  1222. name: 'setClipboard',
  1223. args: {
  1224. data: 'text'
  1225. }
  1226. },
  1227. getClipboardData: {
  1228. name: 'getClipboard',
  1229. returnValue: {
  1230. text: 'data'
  1231. }
  1232. },
  1233. login: {
  1234. name: 'getAuthCode',
  1235. returnValue: function returnValue(result) {
  1236. result.code = result.authCode;
  1237. }
  1238. },
  1239. getUserInfo: {
  1240. name: my.canIUse('getOpenUserInfo') ? 'getOpenUserInfo' : 'getAuthUserInfo',
  1241. returnValue: function returnValue(result) {
  1242. if (my.canIUse('getOpenUserInfo')) {
  1243. var response = {};
  1244. try {
  1245. response = JSON.parse(result.response).response;
  1246. } catch (e) {}
  1247. result.nickName = response.nickName;
  1248. result.avatar = response.avatar;
  1249. }
  1250. result.userInfo = {
  1251. nickName: result.nickName,
  1252. avatarUrl: result.avatar
  1253. };
  1254. }
  1255. },
  1256. getUserProfile: {
  1257. name: my.canIUse('getOpenUserInfo') ? 'getOpenUserInfo' : 'getAuthUserInfo',
  1258. returnValue: function returnValue(result) {
  1259. if (my.canIUse('getOpenUserInfo')) {
  1260. var response = {};
  1261. try {
  1262. response = JSON.parse(result.response).response;
  1263. } catch (e) {}
  1264. result.nickName = response.nickName;
  1265. result.avatar = response.avatar;
  1266. }
  1267. result.userInfo = {
  1268. nickName: result.nickName,
  1269. avatarUrl: result.avatar
  1270. };
  1271. }
  1272. },
  1273. requestPayment: {
  1274. name: 'tradePay',
  1275. args: {
  1276. orderInfo: 'tradeNO'
  1277. }
  1278. },
  1279. getBLEDeviceServices: {
  1280. returnValue: function returnValue(result) {
  1281. result.services.forEach(function (item) {
  1282. item.uuid = item.serviceId;
  1283. });
  1284. }
  1285. },
  1286. createBLEConnection: {
  1287. name: 'connectBLEDevice',
  1288. args: {
  1289. timeout: false
  1290. }
  1291. },
  1292. closeBLEConnection: {
  1293. name: 'disconnectBLEDevice'
  1294. },
  1295. onBLEConnectionStateChange: {
  1296. name: 'onBLEConnectionStateChanged'
  1297. },
  1298. makePhoneCall: {
  1299. args: {
  1300. phoneNumber: 'number'
  1301. }
  1302. },
  1303. stopGyroscope: {
  1304. name: 'offGyroscopeChange'
  1305. },
  1306. getSystemInfo: getSystemInfo,
  1307. getSystemInfoSync: getSystemInfo,
  1308. // 文档没提到,但是实测可用。
  1309. canvasToTempFilePath: {
  1310. returnValue: function returnValue(result) {
  1311. // 真机的情况下会有 tempFilePath 这个值,因此需要主动修改。
  1312. result.tempFilePath = result.apFilePath;
  1313. }
  1314. },
  1315. setScreenBrightness: {
  1316. args: {
  1317. value: 'brightness'
  1318. }
  1319. },
  1320. getScreenBrightness: {
  1321. returnValue: {
  1322. brightness: 'value'
  1323. }
  1324. },
  1325. showShareMenu: {
  1326. name: 'showSharePanel'
  1327. },
  1328. hideHomeButton: {
  1329. name: 'hideBackHome'
  1330. },
  1331. saveVideoToPhotosAlbum: {
  1332. args: {
  1333. filePath: 'src'
  1334. }
  1335. },
  1336. chooseAddress: {
  1337. name: 'getAddress',
  1338. returnValue: function returnValue(result) {
  1339. var info = result.result || {};
  1340. result.userName = info.fullname;
  1341. result.provinceName = info.prov;
  1342. result.cityName = info.city;
  1343. result.countyName = info.area;
  1344. result.detailInfo = info.address;
  1345. result.telNumber = info.mobilePhone;
  1346. result.errMsg = result.resultStatus;
  1347. }
  1348. }
  1349. };
  1350. // 钉钉小程序处理
  1351. if (!my.canIUse('saveImageToPhotosAlbum')) {
  1352. protocols.saveImageToPhotosAlbum = {
  1353. name: 'saveImage',
  1354. args: {
  1355. filePath: 'url'
  1356. }
  1357. };
  1358. }
  1359. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1360. function processCallback(methodName, method, returnValue) {
  1361. return function (res) {
  1362. return method(processReturnValue(methodName, res, returnValue));
  1363. };
  1364. }
  1365. function processArgs(methodName, fromArgs) {
  1366. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1367. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1368. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1369. if (isPlainObject(fromArgs)) {
  1370. // 一般 api 的参数解析
  1371. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1372. if (isFn(argsOption)) {
  1373. argsOption = argsOption(fromArgs, toArgs) || {};
  1374. }
  1375. for (var key in fromArgs) {
  1376. if (hasOwn(argsOption, key)) {
  1377. var keyOption = argsOption[key];
  1378. if (isFn(keyOption)) {
  1379. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1380. }
  1381. if (!keyOption) {
  1382. // 不支持的参数
  1383. console.warn("The '".concat(methodName, "' method of platform '\u652F\u4ED8\u5B9D\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1384. } else if (isStr(keyOption)) {
  1385. // 重写参数 key
  1386. toArgs[keyOption] = fromArgs[key];
  1387. } else if (isPlainObject(keyOption)) {
  1388. // {name:newName,value:value}可重新指定参数 key:value
  1389. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1390. }
  1391. } else if (CALLBACKS.indexOf(key) !== -1) {
  1392. if (isFn(fromArgs[key])) {
  1393. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1394. }
  1395. } else {
  1396. if (!keepFromArgs) {
  1397. toArgs[key] = fromArgs[key];
  1398. }
  1399. }
  1400. }
  1401. return toArgs;
  1402. } else if (isFn(fromArgs)) {
  1403. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1404. }
  1405. return fromArgs;
  1406. }
  1407. function processReturnValue(methodName, res, returnValue) {
  1408. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1409. if (isFn(protocols.returnValue)) {
  1410. // 处理通用 returnValue
  1411. res = protocols.returnValue(methodName, res);
  1412. }
  1413. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1414. }
  1415. function wrapper(methodName, method) {
  1416. if (hasOwn(protocols, methodName)) {
  1417. var protocol = protocols[methodName];
  1418. if (!protocol) {
  1419. // 暂不支持的 api
  1420. return function () {
  1421. console.error("Platform '\u652F\u4ED8\u5B9D\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1422. };
  1423. }
  1424. return function (arg1, arg2) {
  1425. // 目前 api 最多两个参数
  1426. var options = protocol;
  1427. if (isFn(protocol)) {
  1428. options = protocol(arg1);
  1429. }
  1430. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1431. var args = [arg1];
  1432. if (typeof arg2 !== 'undefined') {
  1433. args.push(arg2);
  1434. }
  1435. if (isFn(options.name)) {
  1436. methodName = options.name(arg1);
  1437. } else if (isStr(options.name)) {
  1438. methodName = options.name;
  1439. }
  1440. var returnValue = my[methodName].apply(my, args);
  1441. if (isSyncApi(methodName)) {
  1442. // 同步 api
  1443. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1444. }
  1445. return returnValue;
  1446. };
  1447. }
  1448. return method;
  1449. }
  1450. var todoApis = Object.create(null);
  1451. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1452. function createTodoApi(name) {
  1453. return function todoApi(_ref3) {
  1454. var fail = _ref3.fail,
  1455. complete = _ref3.complete;
  1456. var res = {
  1457. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1458. };
  1459. isFn(fail) && fail(res);
  1460. isFn(complete) && complete(res);
  1461. };
  1462. }
  1463. TODOS.forEach(function (name) {
  1464. todoApis[name] = createTodoApi(name);
  1465. });
  1466. var providers = {
  1467. oauth: ['alipay'],
  1468. share: ['alipay'],
  1469. payment: ['alipay'],
  1470. push: ['alipay']
  1471. };
  1472. function getProvider(_ref4) {
  1473. var service = _ref4.service,
  1474. success = _ref4.success,
  1475. fail = _ref4.fail,
  1476. complete = _ref4.complete;
  1477. var res = false;
  1478. if (providers[service]) {
  1479. res = {
  1480. errMsg: 'getProvider:ok',
  1481. service: service,
  1482. provider: providers[service]
  1483. };
  1484. isFn(success) && success(res);
  1485. } else {
  1486. res = {
  1487. errMsg: 'getProvider:fail service not found'
  1488. };
  1489. isFn(fail) && fail(res);
  1490. }
  1491. isFn(complete) && complete(res);
  1492. }
  1493. var extraApi = /*#__PURE__*/Object.freeze({
  1494. __proto__: null,
  1495. getProvider: getProvider
  1496. });
  1497. var getEmitter = function () {
  1498. var Emitter;
  1499. return function getUniEmitter() {
  1500. if (!Emitter) {
  1501. Emitter = new _vue.default();
  1502. }
  1503. return Emitter;
  1504. };
  1505. }();
  1506. function apply(ctx, method, args) {
  1507. return ctx[method].apply(ctx, args);
  1508. }
  1509. function $on() {
  1510. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1511. }
  1512. function $off() {
  1513. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1514. }
  1515. function $once() {
  1516. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1517. }
  1518. function $emit() {
  1519. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1520. }
  1521. var eventApi = /*#__PURE__*/Object.freeze({
  1522. __proto__: null,
  1523. $on: $on,
  1524. $off: $off,
  1525. $once: $once,
  1526. $emit: $emit
  1527. });
  1528. function createMediaQueryObserver() {
  1529. var mediaQueryObserver = {};
  1530. var _my$getSystemInfoSync2 = my.getSystemInfoSync(),
  1531. windowWidth = _my$getSystemInfoSync2.windowWidth,
  1532. windowHeight = _my$getSystemInfoSync2.windowHeight;
  1533. var orientation = windowWidth < windowHeight ? 'portrait' : 'landscape';
  1534. mediaQueryObserver.observe = function (options, callback) {
  1535. var matches = true;
  1536. for (var item in options) {
  1537. var itemValue = item === 'orientation' ? options[item] : Number(options[item]);
  1538. if (options[item] !== '') {
  1539. if (item === 'width') {
  1540. if (itemValue === windowWidth) {
  1541. matches = true;
  1542. } else {
  1543. matches = false;
  1544. callback(matches);
  1545. return matches;
  1546. }
  1547. }
  1548. if (item === 'minWidth') {
  1549. if (windowWidth >= itemValue) {
  1550. matches = true;
  1551. } else {
  1552. matches = false;
  1553. callback(matches);
  1554. return matches;
  1555. }
  1556. }
  1557. if (item === 'maxWidth') {
  1558. if (windowWidth <= itemValue) {
  1559. matches = true;
  1560. } else {
  1561. matches = false;
  1562. callback(matches);
  1563. return matches;
  1564. }
  1565. }
  1566. if (item === 'height') {
  1567. if (itemValue === windowHeight) {
  1568. matches = true;
  1569. } else {
  1570. matches = false;
  1571. callback(matches);
  1572. return matches;
  1573. }
  1574. }
  1575. if (item === 'minHeight') {
  1576. if (windowHeight >= itemValue) {
  1577. matches = true;
  1578. } else {
  1579. matches = false;
  1580. callback(matches);
  1581. return matches;
  1582. }
  1583. }
  1584. if (item === 'maxHeight') {
  1585. if (windowHeight <= itemValue) {
  1586. matches = true;
  1587. } else {
  1588. matches = false;
  1589. callback(matches);
  1590. return matches;
  1591. }
  1592. }
  1593. if (item === 'orientation') {
  1594. if (options[item] === orientation) {
  1595. matches = true;
  1596. } else {
  1597. matches = false;
  1598. callback(matches);
  1599. return matches;
  1600. }
  1601. }
  1602. }
  1603. }
  1604. callback(matches);
  1605. return matches;
  1606. };
  1607. mediaQueryObserver.disconnect = function () {};
  1608. return mediaQueryObserver;
  1609. }
  1610. /**
  1611. * 框架内 try-catch
  1612. */
  1613. /**
  1614. * 开发者 try-catch
  1615. */
  1616. function tryCatch(fn) {
  1617. return function () {
  1618. try {
  1619. return fn.apply(fn, arguments);
  1620. } catch (e) {
  1621. // TODO
  1622. console.error(e);
  1623. }
  1624. };
  1625. }
  1626. function getApiCallbacks(params) {
  1627. var apiCallbacks = {};
  1628. for (var name in params) {
  1629. var param = params[name];
  1630. if (isFn(param)) {
  1631. apiCallbacks[name] = tryCatch(param);
  1632. delete params[name];
  1633. }
  1634. }
  1635. return apiCallbacks;
  1636. }
  1637. var cid;
  1638. var cidErrMsg;
  1639. var enabled;
  1640. function normalizePushMessage(message) {
  1641. try {
  1642. return JSON.parse(message);
  1643. } catch (e) {}
  1644. return message;
  1645. }
  1646. function invokePushCallback(args) {
  1647. if (args.type === 'enabled') {
  1648. enabled = true;
  1649. } else if (args.type === 'clientId') {
  1650. cid = args.cid;
  1651. cidErrMsg = args.errMsg;
  1652. invokeGetPushCidCallbacks(cid, args.errMsg);
  1653. } else if (args.type === 'pushMsg') {
  1654. var message = {
  1655. type: 'receive',
  1656. data: normalizePushMessage(args.message)
  1657. };
  1658. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1659. var callback = onPushMessageCallbacks[i];
  1660. callback(message);
  1661. // 该消息已被阻止
  1662. if (message.stopped) {
  1663. break;
  1664. }
  1665. }
  1666. } else if (args.type === 'click') {
  1667. onPushMessageCallbacks.forEach(function (callback) {
  1668. callback({
  1669. type: 'click',
  1670. data: normalizePushMessage(args.message)
  1671. });
  1672. });
  1673. }
  1674. }
  1675. var getPushCidCallbacks = [];
  1676. function invokeGetPushCidCallbacks(cid, errMsg) {
  1677. getPushCidCallbacks.forEach(function (callback) {
  1678. callback(cid, errMsg);
  1679. });
  1680. getPushCidCallbacks.length = 0;
  1681. }
  1682. function getPushClientId(args) {
  1683. if (!isPlainObject(args)) {
  1684. args = {};
  1685. }
  1686. var _getApiCallbacks = getApiCallbacks(args),
  1687. success = _getApiCallbacks.success,
  1688. fail = _getApiCallbacks.fail,
  1689. complete = _getApiCallbacks.complete;
  1690. var hasSuccess = isFn(success);
  1691. var hasFail = isFn(fail);
  1692. var hasComplete = isFn(complete);
  1693. Promise.resolve().then(function () {
  1694. if (typeof enabled === 'undefined') {
  1695. enabled = false;
  1696. cid = '';
  1697. cidErrMsg = 'uniPush is not enabled';
  1698. }
  1699. getPushCidCallbacks.push(function (cid, errMsg) {
  1700. var res;
  1701. if (cid) {
  1702. res = {
  1703. errMsg: 'getPushClientId:ok',
  1704. cid: cid
  1705. };
  1706. hasSuccess && success(res);
  1707. } else {
  1708. res = {
  1709. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1710. };
  1711. hasFail && fail(res);
  1712. }
  1713. hasComplete && complete(res);
  1714. });
  1715. if (typeof cid !== 'undefined') {
  1716. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1717. }
  1718. });
  1719. }
  1720. var onPushMessageCallbacks = [];
  1721. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1722. var onPushMessage = function onPushMessage(fn) {
  1723. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1724. onPushMessageCallbacks.push(fn);
  1725. }
  1726. };
  1727. var offPushMessage = function offPushMessage(fn) {
  1728. if (!fn) {
  1729. onPushMessageCallbacks.length = 0;
  1730. } else {
  1731. var index = onPushMessageCallbacks.indexOf(fn);
  1732. if (index > -1) {
  1733. onPushMessageCallbacks.splice(index, 1);
  1734. }
  1735. }
  1736. };
  1737. var onKeyboardHeightChangeCallback;
  1738. function startGyroscope(params) {
  1739. if (hasOwn(params, 'interval')) {
  1740. console.warn('支付宝小程序 startGyroscope暂不支持interval');
  1741. }
  1742. params.success && params.success({
  1743. errMsg: 'startGyroscope:ok'
  1744. });
  1745. params.complete && params.complete({
  1746. errMsg: 'startGyroscope:ok'
  1747. });
  1748. }
  1749. function createExecCallback(execCallback) {
  1750. return function wrapperExecCallback(res) {
  1751. this.actions.forEach(function (action, index) {
  1752. (action._$callbacks || []).forEach(function (callback) {
  1753. callback(res[index]);
  1754. });
  1755. });
  1756. if (isFn(execCallback)) {
  1757. execCallback(res);
  1758. }
  1759. };
  1760. }
  1761. function addCallback(callback) {
  1762. if (isFn(callback)) {
  1763. var action = this.actions[this.actions.length - 1];
  1764. if (action) {
  1765. (action._$callbacks || (action._$callbacks = [])).push(callback);
  1766. }
  1767. }
  1768. }
  1769. function createSelectorQuery() {
  1770. var query = my.createSelectorQuery();
  1771. var oldExec = query.exec;
  1772. var oldScrollOffset = query.scrollOffset;
  1773. var oldBoundingClientRect = query.boundingClientRect;
  1774. query.exec = function exec(callback) {
  1775. return oldExec.call(this, createExecCallback(callback).bind(this));
  1776. };
  1777. query.scrollOffset = function scrollOffset(callback) {
  1778. var ret = oldScrollOffset.call(this);
  1779. addCallback.call(this, callback);
  1780. return ret;
  1781. };
  1782. query.boundingClientRect = function boundingClientRect(callback) {
  1783. var ret = oldBoundingClientRect.call(this);
  1784. addCallback.call(this, callback);
  1785. return ret;
  1786. };
  1787. if (!query.fields) {
  1788. query.fields = function () {
  1789. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  1790. rect = _ref5.rect,
  1791. size = _ref5.size,
  1792. scrollOffset = _ref5.scrollOffset;
  1793. var callback = arguments.length > 1 ? arguments[1] : undefined;
  1794. if (rect || size) {
  1795. this.boundingClientRect();
  1796. }
  1797. if (scrollOffset) {
  1798. this.scrollOffset();
  1799. }
  1800. addCallback.call(this, callback);
  1801. return this;
  1802. };
  1803. }
  1804. if (!query.in) {
  1805. query.in = function () {
  1806. return this;
  1807. };
  1808. }
  1809. return query;
  1810. }
  1811. function createIntersectionObserver(component, options) {
  1812. if (options && options.observeAll) {
  1813. options.selectAll = options.observeAll;
  1814. delete options.observeAll;
  1815. }
  1816. return my.createIntersectionObserver(options);
  1817. }
  1818. function onKeyboardHeightChange(callback) {
  1819. // 与微信小程序一致仅保留最后一次监听
  1820. if (onKeyboardHeightChangeCallback) {
  1821. $off('uni:keyboardHeightChange', onKeyboardHeightChangeCallback);
  1822. }
  1823. onKeyboardHeightChangeCallback = callback;
  1824. $on('uni:keyboardHeightChange', onKeyboardHeightChangeCallback);
  1825. }
  1826. function offKeyboardHeightChange() {
  1827. // 与微信小程序一致移除最后一次监听
  1828. $off('uni:keyboardHeightChange', onKeyboardHeightChangeCallback);
  1829. onKeyboardHeightChangeCallback = null;
  1830. }
  1831. var api = /*#__PURE__*/Object.freeze({
  1832. __proto__: null,
  1833. startGyroscope: startGyroscope,
  1834. createSelectorQuery: createSelectorQuery,
  1835. createIntersectionObserver: createIntersectionObserver,
  1836. onKeyboardHeightChange: onKeyboardHeightChange,
  1837. offKeyboardHeightChange: offKeyboardHeightChange,
  1838. createMediaQueryObserver: createMediaQueryObserver,
  1839. setStorageSync: setStorageSync,
  1840. getStorageSync: getStorageSync,
  1841. removeStorageSync: removeStorageSync,
  1842. getPushClientId: getPushClientId,
  1843. onPushMessage: onPushMessage,
  1844. offPushMessage: offPushMessage,
  1845. invokePushCallback: invokePushCallback
  1846. });
  1847. function findVmByVueId(vm, vuePid) {
  1848. var $children = vm.$children;
  1849. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1850. for (var i = $children.length - 1; i >= 0; i--) {
  1851. var childVm = $children[i];
  1852. if (childVm.$scope._$vueId === vuePid) {
  1853. return childVm;
  1854. }
  1855. }
  1856. // 反向递归查找
  1857. var parentVm;
  1858. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1859. parentVm = findVmByVueId($children[_i], vuePid);
  1860. if (parentVm) {
  1861. return parentVm;
  1862. }
  1863. }
  1864. }
  1865. function handleLink(event) {
  1866. var _ref6 = event.detail || event.value,
  1867. vuePid = _ref6.vuePid,
  1868. vueOptions = _ref6.vueOptions; // detail 是微信,value 是百度(dipatch)
  1869. var parentVm;
  1870. if (vuePid) {
  1871. parentVm = findVmByVueId(this.$vm, vuePid);
  1872. }
  1873. if (!parentVm) {
  1874. parentVm = this.$vm;
  1875. }
  1876. vueOptions.parent = parentVm;
  1877. }
  1878. function markMPComponent(component) {
  1879. // 在 Vue 中标记为小程序组件
  1880. var IS_MP = '__v_isMPComponent';
  1881. Object.defineProperty(component, IS_MP, {
  1882. configurable: true,
  1883. enumerable: false,
  1884. value: true
  1885. });
  1886. return component;
  1887. }
  1888. function toSkip(obj) {
  1889. var OB = '__ob__';
  1890. var SKIP = '__v_skip';
  1891. if (isObject(obj) && Object.isExtensible(obj)) {
  1892. // 避免被 @vue/composition-api 观测
  1893. Object.defineProperty(obj, OB, {
  1894. configurable: true,
  1895. enumerable: false,
  1896. value: (0, _defineProperty2.default)({}, SKIP, true)
  1897. });
  1898. }
  1899. return obj;
  1900. }
  1901. var isArray = Array.isArray;
  1902. var keyList = Object.keys;
  1903. function equal(a, b) {
  1904. if (a === b) return true;
  1905. if (a && b && (0, _typeof2.default)(a) === 'object' && (0, _typeof2.default)(b) === 'object') {
  1906. var arrA = isArray(a);
  1907. var arrB = isArray(b);
  1908. var i, length, key;
  1909. if (arrA && arrB) {
  1910. length = a.length;
  1911. if (length !== b.length) return false;
  1912. for (i = length; i-- !== 0;) {
  1913. if (!equal(a[i], b[i])) return false;
  1914. }
  1915. return true;
  1916. }
  1917. if (arrA !== arrB) return false;
  1918. var dateA = a instanceof Date;
  1919. var dateB = b instanceof Date;
  1920. if (dateA !== dateB) return false;
  1921. if (dateA && dateB) return a.getTime() === b.getTime();
  1922. var regexpA = a instanceof RegExp;
  1923. var regexpB = b instanceof RegExp;
  1924. if (regexpA !== regexpB) return false;
  1925. if (regexpA && regexpB) return a.toString() === b.toString();
  1926. var keys = keyList(a);
  1927. length = keys.length;
  1928. if (length !== keyList(b).length) {
  1929. return false;
  1930. }
  1931. for (i = length; i-- !== 0;) {
  1932. if (!hasOwn.call(b, keys[i])) return false;
  1933. }
  1934. for (i = length; i-- !== 0;) {
  1935. key = keys[i];
  1936. if (!equal(a[key], b[key])) return false;
  1937. }
  1938. return true;
  1939. }
  1940. return false;
  1941. }
  1942. var customizeRE = /:/g;
  1943. var customize = cached(function (str) {
  1944. return camelize(str.replace(customizeRE, '-'));
  1945. });
  1946. var isComponent2 = my.canIUse('component2');
  1947. var mocks = ['$id'];
  1948. function initRefs() {}
  1949. function initRelation(detail) {
  1950. this.props.onVueInit(detail);
  1951. }
  1952. function initSpecialMethods(mpInstance) {
  1953. if (!mpInstance.$vm) {
  1954. return;
  1955. }
  1956. var path = mpInstance.is || mpInstance.route;
  1957. if (!path) {
  1958. return;
  1959. }
  1960. if (path.indexOf('/') === 0) {
  1961. path = path.substr(1);
  1962. }
  1963. var specialMethods = my.specialMethods && my.specialMethods[path];
  1964. if (specialMethods) {
  1965. specialMethods.forEach(function (method) {
  1966. if (isFn(mpInstance.$vm[method])) {
  1967. mpInstance[method] = function (event) {
  1968. if (hasOwn(event, 'markerId')) {
  1969. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1970. event.detail.markerId = event.markerId;
  1971. }
  1972. // TODO normalizeEvent
  1973. mpInstance.$vm[method](event);
  1974. };
  1975. }
  1976. });
  1977. }
  1978. }
  1979. function initChildVues(mpInstance) {
  1980. // 此时需保证当前 mpInstance 已经存在 $vm
  1981. if (!mpInstance.$vm) {
  1982. return;
  1983. }
  1984. mpInstance._$childVues && mpInstance._$childVues.forEach(function (_ref7) {
  1985. var vuePid = _ref7.vuePid,
  1986. vueOptions = _ref7.vueOptions,
  1987. VueComponent = _ref7.VueComponent,
  1988. childMPInstance = _ref7.mpInstance;
  1989. // 父子关系
  1990. handleLink.call(mpInstance, {
  1991. detail: {
  1992. vuePid: vuePid,
  1993. vueOptions: vueOptions
  1994. }
  1995. });
  1996. childMPInstance.$vm = new VueComponent(vueOptions);
  1997. initSpecialMethods(childMPInstance);
  1998. handleRef.call(vueOptions.parent.$scope, childMPInstance);
  1999. childMPInstance.$vm.$mount();
  2000. initChildVues(childMPInstance);
  2001. childMPInstance.$vm._isMounted = true;
  2002. childMPInstance.$vm.__call_hook('mounted');
  2003. childMPInstance.$vm.__call_hook('onReady');
  2004. });
  2005. delete mpInstance._$childVues;
  2006. }
  2007. function handleProps(ref) {
  2008. var eventProps = {};
  2009. var refProps = ref.props;
  2010. var eventList = (refProps['data-event-list'] || '').split(',');
  2011. // 初始化支付宝小程序组件事件
  2012. eventList.forEach(function (key) {
  2013. var handler = refProps[key];
  2014. var res = key.match(/^on([A-Z])(\S*)/);
  2015. var event = res && res[1].toLowerCase() + res[2];
  2016. refProps[key] = eventProps[key] = function () {
  2017. var props = Object.assign({}, refProps);
  2018. props[key] = handler;
  2019. // 由于支付宝事件可能包含多个参数,不使用微信小程序事件格式
  2020. delete props['data-com-type'];
  2021. triggerEvent.bind({
  2022. props: props
  2023. })(event, {
  2024. __args__: Array.prototype.slice.call(arguments)
  2025. });
  2026. };
  2027. });
  2028. // 处理 props 重写
  2029. Object.defineProperty(ref, 'props', {
  2030. get: function get() {
  2031. return refProps;
  2032. },
  2033. set: function set(value) {
  2034. refProps = Object.assign(value, eventProps);
  2035. }
  2036. });
  2037. }
  2038. function handleRef(ref) {
  2039. if (!(ref && this.$vm)) {
  2040. return;
  2041. }
  2042. var refName = ref.props['data-ref'];
  2043. var refInForName = ref.props['data-ref-in-for'];
  2044. if (refName) {
  2045. this.$vm.$refs[refName] = ref.$vm || toSkip(ref);
  2046. } else if (refInForName) {
  2047. (this.$vm.$refs[refInForName] || (this.$vm.$refs[refInForName] = [])).push(ref.$vm || toSkip(ref));
  2048. }
  2049. }
  2050. function triggerEvent(type, detail, options) {
  2051. var handler = this.props && this.props[customize('on-' + type)];
  2052. if (!handler) {
  2053. return;
  2054. }
  2055. var eventOpts = this.props['data-event-opts'];
  2056. var eventParams = this.props['data-event-params'];
  2057. var comType = this.props['data-com-type'];
  2058. var target = {
  2059. dataset: {
  2060. eventOpts: eventOpts,
  2061. eventParams: eventParams,
  2062. comType: comType
  2063. }
  2064. };
  2065. handler({
  2066. type: customize(type),
  2067. target: target,
  2068. currentTarget: target,
  2069. detail: detail
  2070. });
  2071. }
  2072. var IGNORES = ['$slots', '$scopedSlots'];
  2073. function createObserver(isDidUpdate) {
  2074. return function observe(props) {
  2075. var _this3 = this;
  2076. var prevProps = isDidUpdate ? props : this.props;
  2077. var nextProps = isDidUpdate ? this.props : props;
  2078. if (equal(prevProps, nextProps)) {
  2079. return;
  2080. }
  2081. Object.keys(prevProps).forEach(function (name) {
  2082. if (IGNORES.indexOf(name) === -1) {
  2083. var prevValue = prevProps[name];
  2084. var nextValue = nextProps[name];
  2085. if (!isFn(prevValue) && !isFn(nextValue) && !equal(prevValue, nextValue)) {
  2086. _this3.$vm[name] = nextProps[name];
  2087. }
  2088. }
  2089. });
  2090. };
  2091. }
  2092. var handleLink$1 = function () {
  2093. if (isComponent2) {
  2094. return function handleLink$1(detail) {
  2095. return handleLink.call(this, {
  2096. detail: detail
  2097. });
  2098. };
  2099. }
  2100. return function handleLink$1(detail) {
  2101. if (this.$vm && this.$vm._isMounted) {
  2102. // 父已初始化
  2103. return handleLink.call(this, {
  2104. detail: {
  2105. vuePid: detail.vuePid,
  2106. vueOptions: detail.vueOptions
  2107. }
  2108. });
  2109. }
  2110. // 支付宝通过 didMount 来实现,先子后父,故等父 ready 之后,统一初始化
  2111. (this._$childVues || (this._$childVues = [])).unshift(detail);
  2112. };
  2113. }();
  2114. var handleWrap = function handleWrap(mp, destory) {
  2115. var _this4 = this;
  2116. var vueId = mp.props.vueId;
  2117. var list = (mp.props['data-event-list'] || '').split(',');
  2118. list.forEach(function (eventName) {
  2119. var key = "".concat(eventName).concat(vueId);
  2120. if (destory) {
  2121. delete _this4[key];
  2122. } else {
  2123. _this4[key] = function () {
  2124. mp.props[eventName].apply(this, arguments);
  2125. };
  2126. }
  2127. });
  2128. if (!destory) {
  2129. handleProps(mp);
  2130. }
  2131. };
  2132. var MPComponent = Component;
  2133. function initHook(name, options) {
  2134. var oldHook = options[name];
  2135. options[name] = function () {
  2136. markMPComponent(this);
  2137. var props = this.props;
  2138. if (props && props['data-com-type'] === 'wx') {
  2139. handleProps(this);
  2140. }
  2141. if (oldHook) {
  2142. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  2143. args[_key4] = arguments[_key4];
  2144. }
  2145. return oldHook.apply(this, args);
  2146. }
  2147. };
  2148. }
  2149. if (!MPComponent.__$wrappered) {
  2150. MPComponent.__$wrappered = true;
  2151. Component = function Component() {
  2152. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2153. initHook('onInit', options);
  2154. return MPComponent(options);
  2155. };
  2156. }
  2157. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  2158. function initMocks(vm, mocks) {
  2159. var mpInstance = vm.$mp[vm.mpType];
  2160. mocks.forEach(function (mock) {
  2161. if (hasOwn(mpInstance, mock)) {
  2162. vm[mock] = mpInstance[mock];
  2163. }
  2164. });
  2165. }
  2166. function hasHook(hook, vueOptions) {
  2167. if (!vueOptions) {
  2168. return true;
  2169. }
  2170. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  2171. return true;
  2172. }
  2173. vueOptions = vueOptions.default || vueOptions;
  2174. if (isFn(vueOptions)) {
  2175. if (isFn(vueOptions.extendOptions[hook])) {
  2176. return true;
  2177. }
  2178. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  2179. return true;
  2180. }
  2181. return false;
  2182. }
  2183. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  2184. return true;
  2185. }
  2186. var mixins = vueOptions.mixins;
  2187. if (Array.isArray(mixins)) {
  2188. return !!mixins.find(function (mixin) {
  2189. return hasHook(hook, mixin);
  2190. });
  2191. }
  2192. }
  2193. function initHooks(mpOptions, hooks, vueOptions) {
  2194. hooks.forEach(function (hook) {
  2195. if (hasHook(hook, vueOptions)) {
  2196. mpOptions[hook] = function (args) {
  2197. return this.$vm && this.$vm.__call_hook(hook, args);
  2198. };
  2199. }
  2200. });
  2201. }
  2202. function initUnknownHooks(mpOptions, vueOptions) {
  2203. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2204. findHooks(vueOptions).forEach(function (hook) {
  2205. return initHook$1(mpOptions, hook, excludes);
  2206. });
  2207. }
  2208. function findHooks(vueOptions) {
  2209. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  2210. if (vueOptions) {
  2211. Object.keys(vueOptions).forEach(function (name) {
  2212. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  2213. hooks.push(name);
  2214. }
  2215. });
  2216. }
  2217. return hooks;
  2218. }
  2219. function initHook$1(mpOptions, hook, excludes) {
  2220. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  2221. mpOptions[hook] = function (args) {
  2222. return this.$vm && this.$vm.__call_hook(hook, args);
  2223. };
  2224. }
  2225. }
  2226. function initVueComponent(Vue, vueOptions) {
  2227. vueOptions = vueOptions.default || vueOptions;
  2228. var VueComponent;
  2229. if (isFn(vueOptions)) {
  2230. VueComponent = vueOptions;
  2231. } else {
  2232. VueComponent = Vue.extend(vueOptions);
  2233. }
  2234. vueOptions = VueComponent.options;
  2235. return [VueComponent, vueOptions];
  2236. }
  2237. function initVueIds(vueIds, mpInstance) {
  2238. vueIds = (vueIds || '').split(',');
  2239. var len = vueIds.length;
  2240. if (len === 1) {
  2241. mpInstance._$vueId = vueIds[0];
  2242. } else if (len === 2) {
  2243. mpInstance._$vueId = vueIds[0];
  2244. mpInstance._$vuePid = vueIds[1];
  2245. }
  2246. }
  2247. function initData(vueOptions, context) {
  2248. var data = vueOptions.data || {};
  2249. var methods = vueOptions.methods || {};
  2250. if (typeof data === 'function') {
  2251. try {
  2252. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  2253. } catch (e) {
  2254. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"project_order","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG) {
  2255. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  2256. }
  2257. }
  2258. } else {
  2259. try {
  2260. // 对 data 格式化
  2261. data = JSON.parse(JSON.stringify(data));
  2262. } catch (e) {}
  2263. }
  2264. if (!isPlainObject(data)) {
  2265. data = {};
  2266. }
  2267. Object.keys(methods).forEach(function (methodName) {
  2268. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  2269. data[methodName] = methods[methodName];
  2270. }
  2271. });
  2272. return data;
  2273. }
  2274. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  2275. function createObserver$1(name) {
  2276. return function observer(newVal, oldVal) {
  2277. if (this.$vm) {
  2278. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  2279. }
  2280. };
  2281. }
  2282. function initBehaviors(vueOptions, initBehavior) {
  2283. var vueBehaviors = vueOptions.behaviors;
  2284. var vueExtends = vueOptions.extends;
  2285. var vueMixins = vueOptions.mixins;
  2286. var vueProps = vueOptions.props;
  2287. if (!vueProps) {
  2288. vueOptions.props = vueProps = [];
  2289. }
  2290. var behaviors = [];
  2291. if (Array.isArray(vueBehaviors)) {
  2292. vueBehaviors.forEach(function (behavior) {
  2293. behaviors.push(behavior.replace('uni://', "my".concat("://")));
  2294. if (behavior === 'uni://form-field') {
  2295. if (Array.isArray(vueProps)) {
  2296. vueProps.push('name');
  2297. vueProps.push('value');
  2298. } else {
  2299. vueProps.name = {
  2300. type: String,
  2301. default: ''
  2302. };
  2303. vueProps.value = {
  2304. type: [String, Number, Boolean, Array, Object, Date],
  2305. default: ''
  2306. };
  2307. }
  2308. }
  2309. });
  2310. }
  2311. {
  2312. // alipay 重复定义props会报错,下边的代码对于其他平台也没有意义,保险起见,仅对alipay做处理
  2313. return;
  2314. }
  2315. }
  2316. function parsePropType(key, type, defaultValue, file) {
  2317. // [String]=>String
  2318. if (Array.isArray(type) && type.length === 1) {
  2319. return type[0];
  2320. }
  2321. return type;
  2322. }
  2323. function initProperties(props) {
  2324. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  2325. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  2326. var options = arguments.length > 3 ? arguments[3] : undefined;
  2327. var properties = {};
  2328. if (!isBehavior) {
  2329. properties.vueId = {
  2330. type: String,
  2331. value: ''
  2332. };
  2333. {
  2334. {
  2335. properties.virtualHostStyle = {
  2336. type: null,
  2337. value: ''
  2338. };
  2339. properties.virtualHostClass = {
  2340. type: null,
  2341. value: ''
  2342. };
  2343. }
  2344. }
  2345. // scopedSlotsCompiler auto
  2346. properties.scopedSlotsCompiler = {
  2347. type: String,
  2348. value: ''
  2349. };
  2350. properties.vueSlots = {
  2351. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  2352. type: null,
  2353. value: [],
  2354. observer: function observer(newVal, oldVal) {
  2355. var $slots = Object.create(null);
  2356. newVal.forEach(function (slotName) {
  2357. $slots[slotName] = true;
  2358. });
  2359. this.setData({
  2360. $slots: $slots
  2361. });
  2362. }
  2363. };
  2364. }
  2365. if (Array.isArray(props)) {
  2366. // ['title']
  2367. props.forEach(function (key) {
  2368. properties[key] = {
  2369. type: null,
  2370. observer: createObserver$1(key)
  2371. };
  2372. });
  2373. } else if (isPlainObject(props)) {
  2374. // {title:{type:String,default:''},content:String}
  2375. Object.keys(props).forEach(function (key) {
  2376. var opts = props[key];
  2377. if (isPlainObject(opts)) {
  2378. // title:{type:String,default:''}
  2379. var value = opts.default;
  2380. if (isFn(value)) {
  2381. value = value();
  2382. }
  2383. opts.type = parsePropType(key, opts.type);
  2384. properties[key] = {
  2385. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  2386. value: value,
  2387. observer: createObserver$1(key)
  2388. };
  2389. } else {
  2390. // content:String
  2391. var type = parsePropType(key, opts);
  2392. properties[key] = {
  2393. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  2394. observer: createObserver$1(key)
  2395. };
  2396. }
  2397. });
  2398. }
  2399. return properties;
  2400. }
  2401. function wrapper$1(event) {
  2402. // TODO 又得兼容 mpvue 的 mp 对象
  2403. try {
  2404. event.mp = JSON.parse(JSON.stringify(event));
  2405. } catch (e) {}
  2406. event.stopPropagation = noop;
  2407. event.preventDefault = noop;
  2408. event.target = event.target || {};
  2409. if (!hasOwn(event, 'detail')) {
  2410. event.detail = {};
  2411. }
  2412. if (hasOwn(event, 'markerId')) {
  2413. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  2414. event.detail.markerId = event.markerId;
  2415. }
  2416. if (isPlainObject(event.detail)) {
  2417. event.target = Object.assign({}, event.target, event.detail);
  2418. }
  2419. return event;
  2420. }
  2421. function getExtraValue(vm, dataPathsArray) {
  2422. var context = vm;
  2423. dataPathsArray.forEach(function (dataPathArray) {
  2424. var dataPath = dataPathArray[0];
  2425. var value = dataPathArray[2];
  2426. if (dataPath || typeof value !== 'undefined') {
  2427. // ['','',index,'disable']
  2428. var propPath = dataPathArray[1];
  2429. var valuePath = dataPathArray[3];
  2430. var vFor;
  2431. if (Number.isInteger(dataPath)) {
  2432. vFor = dataPath;
  2433. } else if (!dataPath) {
  2434. vFor = context;
  2435. } else if (typeof dataPath === 'string' && dataPath) {
  2436. if (dataPath.indexOf('#s#') === 0) {
  2437. vFor = dataPath.substr(3);
  2438. } else {
  2439. vFor = vm.__get_value(dataPath, context);
  2440. }
  2441. }
  2442. if (Number.isInteger(vFor)) {
  2443. context = value;
  2444. } else if (!propPath) {
  2445. context = vFor[value];
  2446. } else {
  2447. if (Array.isArray(vFor)) {
  2448. context = vFor.find(function (vForItem) {
  2449. return vm.__get_value(propPath, vForItem) === value;
  2450. });
  2451. } else if (isPlainObject(vFor)) {
  2452. context = Object.keys(vFor).find(function (vForKey) {
  2453. return vm.__get_value(propPath, vFor[vForKey]) === value;
  2454. });
  2455. } else {
  2456. console.error('v-for 暂不支持循环数据:', vFor);
  2457. }
  2458. }
  2459. if (valuePath) {
  2460. context = vm.__get_value(valuePath, context);
  2461. }
  2462. }
  2463. });
  2464. return context;
  2465. }
  2466. function processEventExtra(vm, extra, event, __args__) {
  2467. var extraObj = {};
  2468. if (Array.isArray(extra) && extra.length) {
  2469. /**
  2470. *[
  2471. * ['data.items', 'data.id', item.data.id],
  2472. * ['metas', 'id', meta.id]
  2473. *],
  2474. *[
  2475. * ['data.items', 'data.id', item.data.id],
  2476. * ['metas', 'id', meta.id]
  2477. *],
  2478. *'test'
  2479. */
  2480. extra.forEach(function (dataPath, index) {
  2481. if (typeof dataPath === 'string') {
  2482. if (!dataPath) {
  2483. // model,prop.sync
  2484. extraObj['$' + index] = vm;
  2485. } else {
  2486. if (dataPath === '$event') {
  2487. // $event
  2488. extraObj['$' + index] = event;
  2489. } else if (dataPath === 'arguments') {
  2490. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  2491. } else if (dataPath.indexOf('$event.') === 0) {
  2492. // $event.target.value
  2493. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  2494. } else {
  2495. extraObj['$' + index] = vm.__get_value(dataPath);
  2496. }
  2497. }
  2498. } else {
  2499. extraObj['$' + index] = getExtraValue(vm, dataPath);
  2500. }
  2501. });
  2502. }
  2503. return extraObj;
  2504. }
  2505. function getObjByArray(arr) {
  2506. var obj = {};
  2507. for (var i = 1; i < arr.length; i++) {
  2508. var element = arr[i];
  2509. obj[element[0]] = element[1];
  2510. }
  2511. return obj;
  2512. }
  2513. function processEventArgs(vm, event) {
  2514. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2515. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  2516. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  2517. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  2518. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  2519. // fixed 用户直接触发 mpInstance.triggerEvent
  2520. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  2521. if (isCustom) {
  2522. // 自定义事件
  2523. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  2524. if (!args.length) {
  2525. // 无参数,直接传入 event 或 detail 数组
  2526. if (isCustomMPEvent) {
  2527. return [event];
  2528. }
  2529. return __args__;
  2530. }
  2531. }
  2532. var extraObj = processEventExtra(vm, extra, event, __args__);
  2533. var ret = [];
  2534. args.forEach(function (arg) {
  2535. if (arg === '$event') {
  2536. if (methodName === '__set_model' && !isCustom) {
  2537. // input v-model value
  2538. ret.push(event.target.value);
  2539. } else {
  2540. if (isCustom && !isCustomMPEvent) {
  2541. ret.push(__args__[0]);
  2542. } else {
  2543. // wxcomponent 组件或内置组件
  2544. ret.push(event);
  2545. }
  2546. }
  2547. } else {
  2548. if (Array.isArray(arg) && arg[0] === 'o') {
  2549. ret.push(getObjByArray(arg));
  2550. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  2551. ret.push(extraObj[arg]);
  2552. } else {
  2553. ret.push(arg);
  2554. }
  2555. }
  2556. });
  2557. return ret;
  2558. }
  2559. var ONCE = '~';
  2560. var CUSTOM = '^';
  2561. function isMatchEventType(eventType, optType) {
  2562. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2563. }
  2564. function getContextVm(vm) {
  2565. var $parent = vm.$parent;
  2566. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2567. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2568. $parent = $parent.$parent;
  2569. }
  2570. return $parent && $parent.$parent;
  2571. }
  2572. function handleEvent(event) {
  2573. var _this5 = this;
  2574. event = wrapper$1(event);
  2575. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2576. var dataset = (event.currentTarget || event.target).dataset;
  2577. if (!dataset) {
  2578. return console.warn('事件信息不存在');
  2579. }
  2580. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2581. if (!eventOpts) {
  2582. return console.warn('事件信息不存在');
  2583. }
  2584. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2585. var eventType = event.type;
  2586. var ret = [];
  2587. eventOpts.forEach(function (eventOpt) {
  2588. var type = eventOpt[0];
  2589. var eventsArray = eventOpt[1];
  2590. var isCustom = type.charAt(0) === CUSTOM;
  2591. type = isCustom ? type.slice(1) : type;
  2592. var isOnce = type.charAt(0) === ONCE;
  2593. type = isOnce ? type.slice(1) : type;
  2594. if (eventsArray && isMatchEventType(eventType, type)) {
  2595. eventsArray.forEach(function (eventArray) {
  2596. var methodName = eventArray[0];
  2597. if (methodName) {
  2598. var handlerCtx = _this5.$vm;
  2599. if (handlerCtx.$options.generic) {
  2600. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2601. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2602. }
  2603. if (methodName === '$emit') {
  2604. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this5.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2605. return;
  2606. }
  2607. var handler = handlerCtx[methodName];
  2608. if (!isFn(handler)) {
  2609. var _type = _this5.$vm.mpType === 'page' ? 'Page' : 'Component';
  2610. var path = _this5.route || _this5.is;
  2611. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2612. }
  2613. if (isOnce) {
  2614. if (handler.once) {
  2615. return;
  2616. }
  2617. handler.once = true;
  2618. }
  2619. var params = processEventArgs(_this5.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2620. params = Array.isArray(params) ? params : [];
  2621. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2622. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2623. // eslint-disable-next-line no-sparse-arrays
  2624. params = params.concat([,,,,,,,,,, event]);
  2625. }
  2626. ret.push(handler.apply(handlerCtx, params));
  2627. }
  2628. });
  2629. }
  2630. });
  2631. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2632. return ret[0];
  2633. }
  2634. }
  2635. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2636. function initEventChannel$1() {
  2637. _vue.default.prototype.getOpenerEventChannel = function () {
  2638. if (!this.__eventChannel__) {
  2639. this.__eventChannel__ = new EventChannel();
  2640. }
  2641. return this.__eventChannel__;
  2642. };
  2643. var callHook = _vue.default.prototype.__call_hook;
  2644. _vue.default.prototype.__call_hook = function (hook, args) {
  2645. if (hook === 'onLoad' && args && args.__id__) {
  2646. this.__eventChannel__ = getEventChannel(args.__id__);
  2647. delete args.__id__;
  2648. }
  2649. return callHook.call(this, hook, args);
  2650. };
  2651. }
  2652. function initScopedSlotsParams() {
  2653. var center = {};
  2654. var parents = {};
  2655. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  2656. var has = center[vueId];
  2657. if (!has) {
  2658. parents[vueId] = this;
  2659. this.$on('hook:destroyed', function () {
  2660. delete parents[vueId];
  2661. });
  2662. }
  2663. return has;
  2664. };
  2665. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  2666. var data = center[vueId];
  2667. if (data) {
  2668. var object = data[name] || {};
  2669. return key ? object[key] : object;
  2670. } else {
  2671. parents[vueId] = this;
  2672. this.$on('hook:destroyed', function () {
  2673. delete parents[vueId];
  2674. });
  2675. }
  2676. };
  2677. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  2678. var vueIds = this.$options.propsData.vueId;
  2679. if (vueIds) {
  2680. var vueId = vueIds.split(',')[0];
  2681. var object = center[vueId] = center[vueId] || {};
  2682. object[name] = value;
  2683. if (parents[vueId]) {
  2684. parents[vueId].$forceUpdate();
  2685. }
  2686. }
  2687. };
  2688. _vue.default.mixin({
  2689. destroyed: function destroyed() {
  2690. var propsData = this.$options.propsData;
  2691. var vueId = propsData && propsData.vueId;
  2692. if (vueId) {
  2693. delete center[vueId];
  2694. delete parents[vueId];
  2695. }
  2696. }
  2697. });
  2698. }
  2699. function parseBaseApp(vm, _ref8) {
  2700. var mocks = _ref8.mocks,
  2701. initRefs = _ref8.initRefs;
  2702. initEventChannel$1();
  2703. {
  2704. initScopedSlotsParams();
  2705. }
  2706. if (vm.$options.store) {
  2707. _vue.default.prototype.$store = vm.$options.store;
  2708. }
  2709. uniIdMixin(_vue.default);
  2710. _vue.default.prototype.mpHost = "mp-alipay";
  2711. _vue.default.mixin({
  2712. beforeCreate: function beforeCreate() {
  2713. if (!this.$options.mpType) {
  2714. return;
  2715. }
  2716. this.mpType = this.$options.mpType;
  2717. this.$mp = (0, _defineProperty2.default)({
  2718. data: {}
  2719. }, this.mpType, this.$options.mpInstance);
  2720. this.$scope = this.$options.mpInstance;
  2721. delete this.$options.mpType;
  2722. delete this.$options.mpInstance;
  2723. if (this.mpType === 'page' && typeof getApp === 'function') {
  2724. // hack vue-i18n
  2725. var app = getApp();
  2726. if (app.$vm && app.$vm.$i18n) {
  2727. this._i18n = app.$vm.$i18n;
  2728. }
  2729. }
  2730. if (this.mpType !== 'app') {
  2731. initRefs(this);
  2732. initMocks(this, mocks);
  2733. }
  2734. }
  2735. });
  2736. var appOptions = {
  2737. onLaunch: function onLaunch(args) {
  2738. if (this.$vm) {
  2739. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2740. return;
  2741. }
  2742. this.$vm = vm;
  2743. this.$vm.$mp = {
  2744. app: this
  2745. };
  2746. this.$vm.$scope = this;
  2747. // vm 上也挂载 globalData
  2748. this.$vm.globalData = this.globalData;
  2749. this.$vm._isMounted = true;
  2750. this.$vm.__call_hook('mounted', args);
  2751. this.$vm.__call_hook('onLaunch', args);
  2752. }
  2753. };
  2754. // 兼容旧版本 globalData
  2755. appOptions.globalData = vm.$options.globalData || {};
  2756. // 将 methods 中的方法挂在 getApp() 中
  2757. var methods = vm.$options.methods;
  2758. if (methods) {
  2759. Object.keys(methods).forEach(function (name) {
  2760. appOptions[name] = methods[name];
  2761. });
  2762. }
  2763. initAppLocale(_vue.default, vm, normalizeLocale(my.getSystemInfoSync().language) || LOCALE_EN);
  2764. initHooks(appOptions, hooks);
  2765. initUnknownHooks(appOptions, vm.$options);
  2766. return appOptions;
  2767. }
  2768. function parseApp(vm) {
  2769. _vue.default.prototype.$onAliGetAuthorize = function onAliGetAuthorize(method, $event) {
  2770. var _this6 = this;
  2771. my.getPhoneNumber({
  2772. success: function success(res) {
  2773. $event.type = 'getphonenumber';
  2774. var response = JSON.parse(res.response);
  2775. $event.detail.errMsg = 'getPhoneNumber:ok';
  2776. $event.detail.encryptedData = response.response;
  2777. $event.detail.sign = response.sign;
  2778. _this6[method]($event);
  2779. },
  2780. fail: function fail(res) {
  2781. $event.type = 'getphonenumber';
  2782. $event.detail.errMsg = 'getPhoneNumber:fail Error: ' + JSON.stringify(res);
  2783. _this6[method]($event);
  2784. }
  2785. });
  2786. };
  2787. _vue.default.prototype.$onAliAuthError = function $onAliAuthError(method, $event) {
  2788. $event.type = 'getphonenumber';
  2789. $event.detail.errMsg = 'getPhoneNumber:fail Error: ' + $event.detail.errorMessage;
  2790. this[method]($event);
  2791. };
  2792. return parseBaseApp(vm, {
  2793. mocks: mocks,
  2794. initRefs: initRefs
  2795. });
  2796. }
  2797. function createApp(vm) {
  2798. App(parseApp(vm));
  2799. return vm;
  2800. }
  2801. var encodeReserveRE = /[!'()*]/g;
  2802. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2803. return '%' + c.charCodeAt(0).toString(16);
  2804. };
  2805. var commaRE = /%2C/g;
  2806. // fixed encodeURIComponent which is more conformant to RFC3986:
  2807. // - escapes [!'()*]
  2808. // - preserve commas
  2809. var encode = function encode(str) {
  2810. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2811. };
  2812. function stringifyQuery(obj) {
  2813. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2814. var res = obj ? Object.keys(obj).map(function (key) {
  2815. var val = obj[key];
  2816. if (val === undefined) {
  2817. return '';
  2818. }
  2819. if (val === null) {
  2820. return encodeStr(key);
  2821. }
  2822. if (Array.isArray(val)) {
  2823. var result = [];
  2824. val.forEach(function (val2) {
  2825. if (val2 === undefined) {
  2826. return;
  2827. }
  2828. if (val2 === null) {
  2829. result.push(encodeStr(key));
  2830. } else {
  2831. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2832. }
  2833. });
  2834. return result.join('&');
  2835. }
  2836. return encodeStr(key) + '=' + encodeStr(val);
  2837. }).filter(function (x) {
  2838. return x.length > 0;
  2839. }).join('&') : null;
  2840. return res ? "?".concat(res) : '';
  2841. }
  2842. var hooks$1 = ['onShow', 'onHide',
  2843. // mp-alipay 特有
  2844. 'onTitleClick', 'onOptionMenuClick', 'onPopMenuClick', 'onPullIntercept'];
  2845. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2846. function parsePage(vuePageOptions) {
  2847. var _initVueComponent = initVueComponent(_vue.default, vuePageOptions),
  2848. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2849. VueComponent = _initVueComponent2[0],
  2850. vueOptions = _initVueComponent2[1];
  2851. var pageOptions = {
  2852. mixins: initBehaviors(vueOptions),
  2853. data: initData(vueOptions, _vue.default.prototype),
  2854. onLoad: function onLoad(query) {
  2855. var properties = this.props;
  2856. var options = {
  2857. mpType: 'page',
  2858. mpInstance: this,
  2859. propsData: properties
  2860. };
  2861. // 初始化 vue 实例
  2862. this.$vm = new VueComponent(options);
  2863. initSpecialMethods(this);
  2864. // 触发首次 setData
  2865. this.$vm.$mount();
  2866. var copyQuery = Object.assign({}, query);
  2867. delete copyQuery.__id__;
  2868. this.$page = {
  2869. fullPath: '/' + this.route + stringifyQuery(copyQuery)
  2870. };
  2871. this.options = query;
  2872. this.$vm.$mp.query = query; // 兼容 mpvue
  2873. this.$vm.__call_hook('onLoad', query);
  2874. },
  2875. onReady: function onReady() {
  2876. initChildVues(this);
  2877. this.$vm._isMounted = true;
  2878. this.$vm.__call_hook('mounted');
  2879. this.$vm.__call_hook('onReady');
  2880. },
  2881. onUnload: function onUnload() {
  2882. this.$vm.__call_hook('onUnload');
  2883. this.$vm.$destroy();
  2884. },
  2885. events: {
  2886. // 支付宝小程序有些页面事件只能放在events下
  2887. onBack: function onBack() {
  2888. this.$vm.__call_hook('onBackPress');
  2889. },
  2890. onKeyboardHeight: function onKeyboardHeight(res) {
  2891. $emit('uni:keyboardHeightChange', res);
  2892. }
  2893. },
  2894. __r: handleRef,
  2895. __e: handleEvent,
  2896. __l: handleLink$1,
  2897. __w: handleWrap,
  2898. triggerEvent: triggerEvent
  2899. };
  2900. Object.assign(pageOptions.events, vueOptions.events || {});
  2901. initHooks(pageOptions, hooks$1, vueOptions);
  2902. initUnknownHooks(pageOptions, vueOptions, ['onReady']);
  2903. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2904. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2905. pageOptions[callMethod] = function (args) {
  2906. return this.$vm[callMethod](args);
  2907. };
  2908. });
  2909. }
  2910. return pageOptions;
  2911. }
  2912. function createPage(vuePageOptions) {
  2913. {
  2914. return Page(parsePage(vuePageOptions));
  2915. }
  2916. }
  2917. function initSlots(vm, vueSlots) {
  2918. var $slots = Object.create(null);
  2919. // 未启用小程序基础库 2.0 时,组件实例支持支持访问 $slots、$scopedSlots
  2920. Object.defineProperty(vm, '$slots', {
  2921. get: function get() {
  2922. var $scope = this.$scope;
  2923. return $scope && $scope.props.$slots || ($scope && $scope.props.$scopedSlots ? {} : $slots);
  2924. }
  2925. });
  2926. Object.defineProperty(vm, '$scopedSlots', {
  2927. get: function get() {
  2928. var $scope = this.$scope;
  2929. return $scope && $scope.props.$scopedSlots || ($scope && $scope.props.$slots ? {} : $slots);
  2930. }
  2931. });
  2932. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2933. if (Array.isArray(vueSlots) && vueSlots.length) {
  2934. vueSlots.forEach(function (slotName) {
  2935. $slots[slotName] = true;
  2936. });
  2937. }
  2938. }
  2939. function initVm(VueComponent) {
  2940. if (this.$vm) {
  2941. return;
  2942. }
  2943. var properties = this.props;
  2944. var options = {
  2945. mpType: 'component',
  2946. mpInstance: this,
  2947. propsData: properties
  2948. };
  2949. initVueIds(properties.vueId, this);
  2950. if (isComponent2) {
  2951. // 处理父子关系
  2952. initRelation.call(this, {
  2953. vuePid: this._$vuePid,
  2954. vueOptions: options
  2955. });
  2956. // 初始化 vue 实例
  2957. this.$vm = new VueComponent(options);
  2958. initSlots(this.$vm, properties.vueSlots);
  2959. // 触发首次 setData
  2960. this.$vm.$mount();
  2961. } else {
  2962. // 处理父子关系
  2963. initRelation.call(this, {
  2964. vuePid: this._$vuePid,
  2965. vueOptions: options,
  2966. VueComponent: VueComponent,
  2967. mpInstance: this
  2968. });
  2969. if (options.parent) {
  2970. // 父组件已经初始化,直接初始化子,否则放到父组件的 didMount 中处理
  2971. // 初始化 vue 实例
  2972. this.$vm = new VueComponent(options);
  2973. handleRef.call(options.parent.$scope, this);
  2974. initSlots(this.$vm, properties.vueSlots);
  2975. // 触发首次 setData
  2976. this.$vm.$mount();
  2977. initChildVues(this);
  2978. this.$vm._isMounted = true;
  2979. this.$vm.__call_hook('mounted');
  2980. this.$vm.__call_hook('onReady');
  2981. }
  2982. }
  2983. }
  2984. function parseComponent(vueComponentOptions, needVueOptions) {
  2985. var _initVueComponent3 = initVueComponent(_vue.default, vueComponentOptions),
  2986. _initVueComponent4 = (0, _slicedToArray2.default)(_initVueComponent3, 2),
  2987. VueComponent = _initVueComponent4[0],
  2988. vueOptions = _initVueComponent4[1];
  2989. var properties = initProperties(vueOptions.props, false, vueOptions.__file);
  2990. var props = {
  2991. onVueInit: function onVueInit() {}
  2992. };
  2993. Object.keys(properties).forEach(function (key) {
  2994. props[key] = properties[key].value;
  2995. });
  2996. var componentOptions = {
  2997. mixins: initBehaviors(vueOptions),
  2998. data: initData(vueOptions, _vue.default.prototype),
  2999. props: props,
  3000. didMount: function didMount() {
  3001. var _this7 = this;
  3002. if (my.dd) {
  3003. // 钉钉小程序底层基础库有 bug,组件嵌套使用时,在 didMount 中无法及时调用 props 中的方法
  3004. setTimeout(function () {
  3005. initVm.call(_this7, VueComponent);
  3006. }, 4);
  3007. } else {
  3008. initVm.call(this, VueComponent);
  3009. }
  3010. initSpecialMethods(this);
  3011. if (isComponent2) {
  3012. this.$vm._isMounted = true;
  3013. this.$vm.__call_hook('mounted');
  3014. this.$vm.__call_hook('onReady');
  3015. }
  3016. },
  3017. didUnmount: function didUnmount() {
  3018. this.$vm && this.$vm.$destroy();
  3019. },
  3020. methods: {
  3021. __r: handleRef,
  3022. __e: handleEvent,
  3023. __l: handleLink$1,
  3024. __w: handleWrap,
  3025. triggerEvent: triggerEvent
  3026. }
  3027. };
  3028. if (isComponent2) {
  3029. componentOptions.onInit = function onInit() {
  3030. initVm.call(this, VueComponent);
  3031. };
  3032. componentOptions.deriveDataFromProps = createObserver();
  3033. } else {
  3034. componentOptions.didUpdate = createObserver(true);
  3035. }
  3036. if (Array.isArray(vueOptions.wxsCallMethods)) {
  3037. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  3038. componentOptions.methods[callMethod] = function (args) {
  3039. return this.$vm[callMethod](args);
  3040. };
  3041. });
  3042. }
  3043. return needVueOptions ? [componentOptions, vueOptions] : componentOptions;
  3044. }
  3045. function createComponent(vueOptions) {
  3046. {
  3047. return my.defineComponent(parseComponent(vueOptions));
  3048. }
  3049. }
  3050. function createSubpackageApp(vm) {
  3051. var appOptions = parseApp(vm);
  3052. var app = getApp({
  3053. allowDefault: true
  3054. });
  3055. vm.$scope = app;
  3056. var globalData = app.globalData;
  3057. if (globalData) {
  3058. Object.keys(appOptions.globalData).forEach(function (name) {
  3059. if (!hasOwn(globalData, name)) {
  3060. globalData[name] = appOptions.globalData[name];
  3061. }
  3062. });
  3063. }
  3064. Object.keys(appOptions).forEach(function (name) {
  3065. if (!hasOwn(app, name)) {
  3066. app[name] = appOptions[name];
  3067. }
  3068. });
  3069. if (isFn(appOptions.onShow) && my.onAppShow) {
  3070. my.onAppShow(function () {
  3071. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  3072. args[_key5] = arguments[_key5];
  3073. }
  3074. vm.__call_hook('onShow', args);
  3075. });
  3076. }
  3077. if (isFn(appOptions.onHide) && my.onAppHide) {
  3078. my.onAppHide(function () {
  3079. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  3080. args[_key6] = arguments[_key6];
  3081. }
  3082. vm.__call_hook('onHide', args);
  3083. });
  3084. }
  3085. if (isFn(appOptions.onLaunch)) {
  3086. var args = my.getLaunchOptionsSync && my.getLaunchOptionsSync();
  3087. vm.__call_hook('onLaunch', args);
  3088. }
  3089. return vm;
  3090. }
  3091. function createPlugin(vm) {
  3092. var appOptions = parseApp(vm);
  3093. if (isFn(appOptions.onShow) && my.onAppShow) {
  3094. my.onAppShow(function () {
  3095. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  3096. args[_key7] = arguments[_key7];
  3097. }
  3098. vm.__call_hook('onShow', args);
  3099. });
  3100. }
  3101. if (isFn(appOptions.onHide) && my.onAppHide) {
  3102. my.onAppHide(function () {
  3103. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  3104. args[_key8] = arguments[_key8];
  3105. }
  3106. vm.__call_hook('onHide', args);
  3107. });
  3108. }
  3109. if (isFn(appOptions.onLaunch)) {
  3110. var args = my.getLaunchOptionsSync && my.getLaunchOptionsSync();
  3111. vm.__call_hook('onLaunch', args);
  3112. }
  3113. return vm;
  3114. }
  3115. todos.forEach(function (todoApi) {
  3116. protocols[todoApi] = false;
  3117. });
  3118. canIUses.forEach(function (canIUseApi) {
  3119. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  3120. if (!my.canIUse(apiName)) {
  3121. protocols[canIUseApi] = false;
  3122. }
  3123. });
  3124. var uni = {};
  3125. if (typeof Proxy !== 'undefined' && "mp-alipay" !== 'app-plus') {
  3126. uni = new Proxy({}, {
  3127. get: function get(target, name) {
  3128. if (hasOwn(target, name)) {
  3129. return target[name];
  3130. }
  3131. if (baseApi[name]) {
  3132. return baseApi[name];
  3133. }
  3134. if (api[name]) {
  3135. return promisify(name, api[name]);
  3136. }
  3137. {
  3138. if (extraApi[name]) {
  3139. return promisify(name, extraApi[name]);
  3140. }
  3141. if (todoApis[name]) {
  3142. return promisify(name, todoApis[name]);
  3143. }
  3144. }
  3145. if (eventApi[name]) {
  3146. return eventApi[name];
  3147. }
  3148. return promisify(name, wrapper(name, my[name]));
  3149. },
  3150. set: function set(target, name, value) {
  3151. target[name] = value;
  3152. return true;
  3153. }
  3154. });
  3155. } else {
  3156. Object.keys(baseApi).forEach(function (name) {
  3157. uni[name] = baseApi[name];
  3158. });
  3159. {
  3160. Object.keys(todoApis).forEach(function (name) {
  3161. uni[name] = promisify(name, todoApis[name]);
  3162. });
  3163. Object.keys(extraApi).forEach(function (name) {
  3164. uni[name] = promisify(name, todoApis[name]);
  3165. });
  3166. }
  3167. Object.keys(eventApi).forEach(function (name) {
  3168. uni[name] = eventApi[name];
  3169. });
  3170. Object.keys(api).forEach(function (name) {
  3171. uni[name] = promisify(name, api[name]);
  3172. });
  3173. Object.keys(my).forEach(function (name) {
  3174. if (hasOwn(my, name) || hasOwn(protocols, name)) {
  3175. uni[name] = promisify(name, wrapper(name, my[name]));
  3176. }
  3177. });
  3178. }
  3179. my.createApp = createApp;
  3180. my.createPage = createPage;
  3181. my.createComponent = createComponent;
  3182. my.createSubpackageApp = createSubpackageApp;
  3183. my.createPlugin = createPlugin;
  3184. var uni$1 = uni;
  3185. var _default = uni$1;
  3186. exports.default = _default;
  3187. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  3188. /***/ }),
  3189. /* 2 */
  3190. /*!***********************************!*\
  3191. !*** (webpack)/buildin/global.js ***!
  3192. \***********************************/
  3193. /*! no static exports found */
  3194. /***/ (function(module, exports) {
  3195. var g;
  3196. // This works in non-strict mode
  3197. g = (function() {
  3198. return this;
  3199. })();
  3200. try {
  3201. // This works if eval is allowed (see CSP)
  3202. g = g || new Function("return this")();
  3203. } catch (e) {
  3204. // This works if the window reference is available
  3205. if (typeof window === "object") g = window;
  3206. }
  3207. // g can still be undefined, but nothing to do about it...
  3208. // We return undefined, instead of nothing here, so it's
  3209. // easier to handle this case. if(!global) { ...}
  3210. module.exports = g;
  3211. /***/ }),
  3212. /* 3 */
  3213. /*!**********************************************************************!*\
  3214. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  3215. \**********************************************************************/
  3216. /*! no static exports found */
  3217. /***/ (function(module, exports) {
  3218. function _interopRequireDefault(obj) {
  3219. return obj && obj.__esModule ? obj : {
  3220. "default": obj
  3221. };
  3222. }
  3223. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3224. /***/ }),
  3225. /* 4 */
  3226. /*!**************************************************************!*\
  3227. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  3228. \**************************************************************/
  3229. /*! no static exports found */
  3230. /***/ (function(module, exports, __webpack_require__) {
  3231. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 5);
  3232. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 6);
  3233. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  3234. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 9);
  3235. function _slicedToArray(arr, i) {
  3236. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  3237. }
  3238. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3239. /***/ }),
  3240. /* 5 */
  3241. /*!***************************************************************!*\
  3242. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  3243. \***************************************************************/
  3244. /*! no static exports found */
  3245. /***/ (function(module, exports) {
  3246. function _arrayWithHoles(arr) {
  3247. if (Array.isArray(arr)) return arr;
  3248. }
  3249. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3250. /***/ }),
  3251. /* 6 */
  3252. /*!*********************************************************************!*\
  3253. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  3254. \*********************************************************************/
  3255. /*! no static exports found */
  3256. /***/ (function(module, exports) {
  3257. function _iterableToArrayLimit(arr, i) {
  3258. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  3259. if (null != _i) {
  3260. var _s,
  3261. _e,
  3262. _x,
  3263. _r,
  3264. _arr = [],
  3265. _n = !0,
  3266. _d = !1;
  3267. try {
  3268. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  3269. if (Object(_i) !== _i) return;
  3270. _n = !1;
  3271. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  3272. ;
  3273. }
  3274. } catch (err) {
  3275. _d = !0, _e = err;
  3276. } finally {
  3277. try {
  3278. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  3279. } finally {
  3280. if (_d) throw _e;
  3281. }
  3282. }
  3283. return _arr;
  3284. }
  3285. }
  3286. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3287. /***/ }),
  3288. /* 7 */
  3289. /*!***************************************************************************!*\
  3290. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  3291. \***************************************************************************/
  3292. /*! no static exports found */
  3293. /***/ (function(module, exports, __webpack_require__) {
  3294. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 8);
  3295. function _unsupportedIterableToArray(o, minLen) {
  3296. if (!o) return;
  3297. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  3298. var n = Object.prototype.toString.call(o).slice(8, -1);
  3299. if (n === "Object" && o.constructor) n = o.constructor.name;
  3300. if (n === "Map" || n === "Set") return Array.from(o);
  3301. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  3302. }
  3303. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3304. /***/ }),
  3305. /* 8 */
  3306. /*!*****************************************************************!*\
  3307. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  3308. \*****************************************************************/
  3309. /*! no static exports found */
  3310. /***/ (function(module, exports) {
  3311. function _arrayLikeToArray(arr, len) {
  3312. if (len == null || len > arr.length) len = arr.length;
  3313. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  3314. arr2[i] = arr[i];
  3315. }
  3316. return arr2;
  3317. }
  3318. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3319. /***/ }),
  3320. /* 9 */
  3321. /*!****************************************************************!*\
  3322. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  3323. \****************************************************************/
  3324. /*! no static exports found */
  3325. /***/ (function(module, exports) {
  3326. function _nonIterableRest() {
  3327. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  3328. }
  3329. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3330. /***/ }),
  3331. /* 10 */
  3332. /*!***************************************************************!*\
  3333. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  3334. \***************************************************************/
  3335. /*! no static exports found */
  3336. /***/ (function(module, exports, __webpack_require__) {
  3337. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 11);
  3338. function _defineProperty(obj, key, value) {
  3339. key = toPropertyKey(key);
  3340. if (key in obj) {
  3341. Object.defineProperty(obj, key, {
  3342. value: value,
  3343. enumerable: true,
  3344. configurable: true,
  3345. writable: true
  3346. });
  3347. } else {
  3348. obj[key] = value;
  3349. }
  3350. return obj;
  3351. }
  3352. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3353. /***/ }),
  3354. /* 11 */
  3355. /*!**************************************************************!*\
  3356. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  3357. \**************************************************************/
  3358. /*! no static exports found */
  3359. /***/ (function(module, exports, __webpack_require__) {
  3360. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  3361. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 13);
  3362. function _toPropertyKey(arg) {
  3363. var key = toPrimitive(arg, "string");
  3364. return _typeof(key) === "symbol" ? key : String(key);
  3365. }
  3366. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3367. /***/ }),
  3368. /* 12 */
  3369. /*!*******************************************************!*\
  3370. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  3371. \*******************************************************/
  3372. /*! no static exports found */
  3373. /***/ (function(module, exports) {
  3374. function _typeof(obj) {
  3375. "@babel/helpers - typeof";
  3376. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  3377. return typeof obj;
  3378. } : function (obj) {
  3379. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  3380. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  3381. }
  3382. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3383. /***/ }),
  3384. /* 13 */
  3385. /*!************************************************************!*\
  3386. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  3387. \************************************************************/
  3388. /*! no static exports found */
  3389. /***/ (function(module, exports, __webpack_require__) {
  3390. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  3391. function _toPrimitive(input, hint) {
  3392. if (_typeof(input) !== "object" || input === null) return input;
  3393. var prim = input[Symbol.toPrimitive];
  3394. if (prim !== undefined) {
  3395. var res = prim.call(input, hint || "default");
  3396. if (_typeof(res) !== "object") return res;
  3397. throw new TypeError("@@toPrimitive must return a primitive value.");
  3398. }
  3399. return (hint === "string" ? String : Number)(input);
  3400. }
  3401. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3402. /***/ }),
  3403. /* 14 */
  3404. /*!***************************************************************!*\
  3405. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3406. \***************************************************************/
  3407. /*! no static exports found */
  3408. /***/ (function(module, exports) {
  3409. function _classCallCheck(instance, Constructor) {
  3410. if (!(instance instanceof Constructor)) {
  3411. throw new TypeError("Cannot call a class as a function");
  3412. }
  3413. }
  3414. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3415. /***/ }),
  3416. /* 15 */
  3417. /*!************************************************************!*\
  3418. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3419. \************************************************************/
  3420. /*! no static exports found */
  3421. /***/ (function(module, exports, __webpack_require__) {
  3422. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 11);
  3423. function _defineProperties(target, props) {
  3424. for (var i = 0; i < props.length; i++) {
  3425. var descriptor = props[i];
  3426. descriptor.enumerable = descriptor.enumerable || false;
  3427. descriptor.configurable = true;
  3428. if ("value" in descriptor) descriptor.writable = true;
  3429. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3430. }
  3431. }
  3432. function _createClass(Constructor, protoProps, staticProps) {
  3433. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3434. if (staticProps) _defineProperties(Constructor, staticProps);
  3435. Object.defineProperty(Constructor, "prototype", {
  3436. writable: false
  3437. });
  3438. return Constructor;
  3439. }
  3440. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3441. /***/ }),
  3442. /* 16 */
  3443. /*!******************************************************************!*\
  3444. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  3445. \******************************************************************/
  3446. /*! no static exports found */
  3447. /***/ (function(module, exports, __webpack_require__) {
  3448. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 17);
  3449. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 18);
  3450. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  3451. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 19);
  3452. function _toConsumableArray(arr) {
  3453. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  3454. }
  3455. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3456. /***/ }),
  3457. /* 17 */
  3458. /*!******************************************************************!*\
  3459. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  3460. \******************************************************************/
  3461. /*! no static exports found */
  3462. /***/ (function(module, exports, __webpack_require__) {
  3463. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 8);
  3464. function _arrayWithoutHoles(arr) {
  3465. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  3466. }
  3467. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3468. /***/ }),
  3469. /* 18 */
  3470. /*!****************************************************************!*\
  3471. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  3472. \****************************************************************/
  3473. /*! no static exports found */
  3474. /***/ (function(module, exports) {
  3475. function _iterableToArray(iter) {
  3476. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  3477. }
  3478. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3479. /***/ }),
  3480. /* 19 */
  3481. /*!******************************************************************!*\
  3482. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  3483. \******************************************************************/
  3484. /*! no static exports found */
  3485. /***/ (function(module, exports) {
  3486. function _nonIterableSpread() {
  3487. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  3488. }
  3489. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3490. /***/ }),
  3491. /* 20 */
  3492. /*!*************************************************************!*\
  3493. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  3494. \*************************************************************/
  3495. /*! no static exports found */
  3496. /***/ (function(module, exports, __webpack_require__) {
  3497. "use strict";
  3498. /* WEBPACK VAR INJECTION */(function(uni, global) {
  3499. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  3500. Object.defineProperty(exports, "__esModule", {
  3501. value: true
  3502. });
  3503. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  3504. exports.compileI18nJsonStr = compileI18nJsonStr;
  3505. exports.hasI18nJson = hasI18nJson;
  3506. exports.initVueI18n = initVueI18n;
  3507. exports.isI18nStr = isI18nStr;
  3508. exports.isString = void 0;
  3509. exports.normalizeLocale = normalizeLocale;
  3510. exports.parseI18nJson = parseI18nJson;
  3511. exports.resolveLocale = resolveLocale;
  3512. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  3513. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 14));
  3514. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 15));
  3515. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  3516. var isArray = Array.isArray;
  3517. var isObject = function isObject(val) {
  3518. return val !== null && (0, _typeof2.default)(val) === 'object';
  3519. };
  3520. var defaultDelimiters = ['{', '}'];
  3521. var BaseFormatter = /*#__PURE__*/function () {
  3522. function BaseFormatter() {
  3523. (0, _classCallCheck2.default)(this, BaseFormatter);
  3524. this._caches = Object.create(null);
  3525. }
  3526. (0, _createClass2.default)(BaseFormatter, [{
  3527. key: "interpolate",
  3528. value: function interpolate(message, values) {
  3529. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  3530. if (!values) {
  3531. return [message];
  3532. }
  3533. var tokens = this._caches[message];
  3534. if (!tokens) {
  3535. tokens = parse(message, delimiters);
  3536. this._caches[message] = tokens;
  3537. }
  3538. return compile(tokens, values);
  3539. }
  3540. }]);
  3541. return BaseFormatter;
  3542. }();
  3543. exports.Formatter = BaseFormatter;
  3544. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  3545. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  3546. function parse(format, _ref) {
  3547. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  3548. startDelimiter = _ref2[0],
  3549. endDelimiter = _ref2[1];
  3550. var tokens = [];
  3551. var position = 0;
  3552. var text = '';
  3553. while (position < format.length) {
  3554. var char = format[position++];
  3555. if (char === startDelimiter) {
  3556. if (text) {
  3557. tokens.push({
  3558. type: 'text',
  3559. value: text
  3560. });
  3561. }
  3562. text = '';
  3563. var sub = '';
  3564. char = format[position++];
  3565. while (char !== undefined && char !== endDelimiter) {
  3566. sub += char;
  3567. char = format[position++];
  3568. }
  3569. var isClosed = char === endDelimiter;
  3570. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  3571. tokens.push({
  3572. value: sub,
  3573. type: type
  3574. });
  3575. }
  3576. // else if (char === '%') {
  3577. // // when found rails i18n syntax, skip text capture
  3578. // if (format[position] !== '{') {
  3579. // text += char
  3580. // }
  3581. // }
  3582. else {
  3583. text += char;
  3584. }
  3585. }
  3586. text && tokens.push({
  3587. type: 'text',
  3588. value: text
  3589. });
  3590. return tokens;
  3591. }
  3592. function compile(tokens, values) {
  3593. var compiled = [];
  3594. var index = 0;
  3595. var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  3596. if (mode === 'unknown') {
  3597. return compiled;
  3598. }
  3599. while (index < tokens.length) {
  3600. var token = tokens[index];
  3601. switch (token.type) {
  3602. case 'text':
  3603. compiled.push(token.value);
  3604. break;
  3605. case 'list':
  3606. compiled.push(values[parseInt(token.value, 10)]);
  3607. break;
  3608. case 'named':
  3609. if (mode === 'named') {
  3610. compiled.push(values[token.value]);
  3611. } else {
  3612. if (true) {
  3613. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  3614. }
  3615. }
  3616. break;
  3617. case 'unknown':
  3618. if (true) {
  3619. console.warn("Detect 'unknown' type of token!");
  3620. }
  3621. break;
  3622. }
  3623. index++;
  3624. }
  3625. return compiled;
  3626. }
  3627. var LOCALE_ZH_HANS = 'zh-Hans';
  3628. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  3629. var LOCALE_ZH_HANT = 'zh-Hant';
  3630. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  3631. var LOCALE_EN = 'en';
  3632. exports.LOCALE_EN = LOCALE_EN;
  3633. var LOCALE_FR = 'fr';
  3634. exports.LOCALE_FR = LOCALE_FR;
  3635. var LOCALE_ES = 'es';
  3636. exports.LOCALE_ES = LOCALE_ES;
  3637. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3638. var hasOwn = function hasOwn(val, key) {
  3639. return hasOwnProperty.call(val, key);
  3640. };
  3641. var defaultFormatter = new BaseFormatter();
  3642. function include(str, parts) {
  3643. return !!parts.find(function (part) {
  3644. return str.indexOf(part) !== -1;
  3645. });
  3646. }
  3647. function startsWith(str, parts) {
  3648. return parts.find(function (part) {
  3649. return str.indexOf(part) === 0;
  3650. });
  3651. }
  3652. function normalizeLocale(locale, messages) {
  3653. if (!locale) {
  3654. return;
  3655. }
  3656. locale = locale.trim().replace(/_/g, '-');
  3657. if (messages && messages[locale]) {
  3658. return locale;
  3659. }
  3660. locale = locale.toLowerCase();
  3661. if (locale.indexOf('zh') === 0) {
  3662. if (locale.indexOf('-hans') > -1) {
  3663. return LOCALE_ZH_HANS;
  3664. }
  3665. if (locale.indexOf('-hant') > -1) {
  3666. return LOCALE_ZH_HANT;
  3667. }
  3668. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  3669. return LOCALE_ZH_HANT;
  3670. }
  3671. return LOCALE_ZH_HANS;
  3672. }
  3673. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  3674. if (lang) {
  3675. return lang;
  3676. }
  3677. }
  3678. var I18n = /*#__PURE__*/function () {
  3679. function I18n(_ref3) {
  3680. var locale = _ref3.locale,
  3681. fallbackLocale = _ref3.fallbackLocale,
  3682. messages = _ref3.messages,
  3683. watcher = _ref3.watcher,
  3684. formater = _ref3.formater;
  3685. (0, _classCallCheck2.default)(this, I18n);
  3686. this.locale = LOCALE_EN;
  3687. this.fallbackLocale = LOCALE_EN;
  3688. this.message = {};
  3689. this.messages = {};
  3690. this.watchers = [];
  3691. if (fallbackLocale) {
  3692. this.fallbackLocale = fallbackLocale;
  3693. }
  3694. this.formater = formater || defaultFormatter;
  3695. this.messages = messages || {};
  3696. this.setLocale(locale || LOCALE_EN);
  3697. if (watcher) {
  3698. this.watchLocale(watcher);
  3699. }
  3700. }
  3701. (0, _createClass2.default)(I18n, [{
  3702. key: "setLocale",
  3703. value: function setLocale(locale) {
  3704. var _this = this;
  3705. var oldLocale = this.locale;
  3706. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  3707. if (!this.messages[this.locale]) {
  3708. // 可能初始化时不存在
  3709. this.messages[this.locale] = {};
  3710. }
  3711. this.message = this.messages[this.locale];
  3712. // 仅发生变化时,通知
  3713. if (oldLocale !== this.locale) {
  3714. this.watchers.forEach(function (watcher) {
  3715. watcher(_this.locale, oldLocale);
  3716. });
  3717. }
  3718. }
  3719. }, {
  3720. key: "getLocale",
  3721. value: function getLocale() {
  3722. return this.locale;
  3723. }
  3724. }, {
  3725. key: "watchLocale",
  3726. value: function watchLocale(fn) {
  3727. var _this2 = this;
  3728. var index = this.watchers.push(fn) - 1;
  3729. return function () {
  3730. _this2.watchers.splice(index, 1);
  3731. };
  3732. }
  3733. }, {
  3734. key: "add",
  3735. value: function add(locale, message) {
  3736. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3737. var curMessages = this.messages[locale];
  3738. if (curMessages) {
  3739. if (override) {
  3740. Object.assign(curMessages, message);
  3741. } else {
  3742. Object.keys(message).forEach(function (key) {
  3743. if (!hasOwn(curMessages, key)) {
  3744. curMessages[key] = message[key];
  3745. }
  3746. });
  3747. }
  3748. } else {
  3749. this.messages[locale] = message;
  3750. }
  3751. }
  3752. }, {
  3753. key: "f",
  3754. value: function f(message, values, delimiters) {
  3755. return this.formater.interpolate(message, values, delimiters).join('');
  3756. }
  3757. }, {
  3758. key: "t",
  3759. value: function t(key, locale, values) {
  3760. var message = this.message;
  3761. if (typeof locale === 'string') {
  3762. locale = normalizeLocale(locale, this.messages);
  3763. locale && (message = this.messages[locale]);
  3764. } else {
  3765. values = locale;
  3766. }
  3767. if (!hasOwn(message, key)) {
  3768. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3769. return key;
  3770. }
  3771. return this.formater.interpolate(message[key], values).join('');
  3772. }
  3773. }]);
  3774. return I18n;
  3775. }();
  3776. exports.I18n = I18n;
  3777. function watchAppLocale(appVm, i18n) {
  3778. // 需要保证 watch 的触发在组件渲染之前
  3779. if (appVm.$watchLocale) {
  3780. // vue2
  3781. appVm.$watchLocale(function (newLocale) {
  3782. i18n.setLocale(newLocale);
  3783. });
  3784. } else {
  3785. appVm.$watch(function () {
  3786. return appVm.$locale;
  3787. }, function (newLocale) {
  3788. i18n.setLocale(newLocale);
  3789. });
  3790. }
  3791. }
  3792. function getDefaultLocale() {
  3793. if (typeof uni !== 'undefined' && uni.getLocale) {
  3794. return uni.getLocale();
  3795. }
  3796. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3797. if (typeof global !== 'undefined' && global.getLocale) {
  3798. return global.getLocale();
  3799. }
  3800. return LOCALE_EN;
  3801. }
  3802. function initVueI18n(locale) {
  3803. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3804. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3805. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3806. // 兼容旧版本入参
  3807. if (typeof locale !== 'string') {
  3808. var _ref4 = [messages, locale];
  3809. locale = _ref4[0];
  3810. messages = _ref4[1];
  3811. }
  3812. if (typeof locale !== 'string') {
  3813. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3814. locale = getDefaultLocale();
  3815. }
  3816. if (typeof fallbackLocale !== 'string') {
  3817. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3818. }
  3819. var i18n = new I18n({
  3820. locale: locale,
  3821. fallbackLocale: fallbackLocale,
  3822. messages: messages,
  3823. watcher: watcher
  3824. });
  3825. var _t = function t(key, values) {
  3826. if (typeof getApp !== 'function') {
  3827. // app view
  3828. /* eslint-disable no-func-assign */
  3829. _t = function t(key, values) {
  3830. return i18n.t(key, values);
  3831. };
  3832. } else {
  3833. var isWatchedAppLocale = false;
  3834. _t = function t(key, values) {
  3835. var appVm = getApp().$vm;
  3836. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3837. // options: {
  3838. // type: Array,
  3839. // default () {
  3840. // return [{
  3841. // icon: 'shop',
  3842. // text: t("uni-goods-nav.options.shop"),
  3843. // }, {
  3844. // icon: 'cart',
  3845. // text: t("uni-goods-nav.options.cart")
  3846. // }]
  3847. // }
  3848. // },
  3849. if (appVm) {
  3850. // 触发响应式
  3851. appVm.$locale;
  3852. if (!isWatchedAppLocale) {
  3853. isWatchedAppLocale = true;
  3854. watchAppLocale(appVm, i18n);
  3855. }
  3856. }
  3857. return i18n.t(key, values);
  3858. };
  3859. }
  3860. return _t(key, values);
  3861. };
  3862. return {
  3863. i18n: i18n,
  3864. f: function f(message, values, delimiters) {
  3865. return i18n.f(message, values, delimiters);
  3866. },
  3867. t: function t(key, values) {
  3868. return _t(key, values);
  3869. },
  3870. add: function add(locale, message) {
  3871. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3872. return i18n.add(locale, message, override);
  3873. },
  3874. watch: function watch(fn) {
  3875. return i18n.watchLocale(fn);
  3876. },
  3877. getLocale: function getLocale() {
  3878. return i18n.getLocale();
  3879. },
  3880. setLocale: function setLocale(newLocale) {
  3881. return i18n.setLocale(newLocale);
  3882. }
  3883. };
  3884. }
  3885. var isString = function isString(val) {
  3886. return typeof val === 'string';
  3887. };
  3888. exports.isString = isString;
  3889. var formater;
  3890. function hasI18nJson(jsonObj, delimiters) {
  3891. if (!formater) {
  3892. formater = new BaseFormatter();
  3893. }
  3894. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3895. var value = jsonObj[key];
  3896. if (isString(value)) {
  3897. if (isI18nStr(value, delimiters)) {
  3898. return true;
  3899. }
  3900. } else {
  3901. return hasI18nJson(value, delimiters);
  3902. }
  3903. });
  3904. }
  3905. function parseI18nJson(jsonObj, values, delimiters) {
  3906. if (!formater) {
  3907. formater = new BaseFormatter();
  3908. }
  3909. walkJsonObj(jsonObj, function (jsonObj, key) {
  3910. var value = jsonObj[key];
  3911. if (isString(value)) {
  3912. if (isI18nStr(value, delimiters)) {
  3913. jsonObj[key] = compileStr(value, values, delimiters);
  3914. }
  3915. } else {
  3916. parseI18nJson(value, values, delimiters);
  3917. }
  3918. });
  3919. return jsonObj;
  3920. }
  3921. function compileI18nJsonStr(jsonStr, _ref5) {
  3922. var locale = _ref5.locale,
  3923. locales = _ref5.locales,
  3924. delimiters = _ref5.delimiters;
  3925. if (!isI18nStr(jsonStr, delimiters)) {
  3926. return jsonStr;
  3927. }
  3928. if (!formater) {
  3929. formater = new BaseFormatter();
  3930. }
  3931. var localeValues = [];
  3932. Object.keys(locales).forEach(function (name) {
  3933. if (name !== locale) {
  3934. localeValues.push({
  3935. locale: name,
  3936. values: locales[name]
  3937. });
  3938. }
  3939. });
  3940. localeValues.unshift({
  3941. locale: locale,
  3942. values: locales[locale]
  3943. });
  3944. try {
  3945. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3946. } catch (e) {}
  3947. return jsonStr;
  3948. }
  3949. function isI18nStr(value, delimiters) {
  3950. return value.indexOf(delimiters[0]) > -1;
  3951. }
  3952. function compileStr(value, values, delimiters) {
  3953. return formater.interpolate(value, values, delimiters).join('');
  3954. }
  3955. function compileValue(jsonObj, key, localeValues, delimiters) {
  3956. var value = jsonObj[key];
  3957. if (isString(value)) {
  3958. // 存在国际化
  3959. if (isI18nStr(value, delimiters)) {
  3960. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3961. if (localeValues.length > 1) {
  3962. // 格式化国际化语言
  3963. var valueLocales = jsonObj[key + 'Locales'] = {};
  3964. localeValues.forEach(function (localValue) {
  3965. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3966. });
  3967. }
  3968. }
  3969. } else {
  3970. compileJsonObj(value, localeValues, delimiters);
  3971. }
  3972. }
  3973. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3974. walkJsonObj(jsonObj, function (jsonObj, key) {
  3975. compileValue(jsonObj, key, localeValues, delimiters);
  3976. });
  3977. return jsonObj;
  3978. }
  3979. function walkJsonObj(jsonObj, walk) {
  3980. if (isArray(jsonObj)) {
  3981. for (var i = 0; i < jsonObj.length; i++) {
  3982. if (walk(jsonObj, i)) {
  3983. return true;
  3984. }
  3985. }
  3986. } else if (isObject(jsonObj)) {
  3987. for (var key in jsonObj) {
  3988. if (walk(jsonObj, key)) {
  3989. return true;
  3990. }
  3991. }
  3992. }
  3993. return false;
  3994. }
  3995. function resolveLocale(locales) {
  3996. return function (locale) {
  3997. if (!locale) {
  3998. return locale;
  3999. }
  4000. locale = normalizeLocale(locale) || locale;
  4001. return resolveLocaleChain(locale).find(function (locale) {
  4002. return locales.indexOf(locale) > -1;
  4003. });
  4004. };
  4005. }
  4006. function resolveLocaleChain(locale) {
  4007. var chain = [];
  4008. var tokens = locale.split('-');
  4009. while (tokens.length) {
  4010. chain.push(tokens.join('-'));
  4011. tokens.pop();
  4012. }
  4013. return chain;
  4014. }
  4015. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  4016. /***/ }),
  4017. /* 21 */
  4018. /*!******************************************************************************************!*\
  4019. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  4020. \******************************************************************************************/
  4021. /*! exports provided: default */
  4022. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4023. "use strict";
  4024. __webpack_require__.r(__webpack_exports__);
  4025. /* WEBPACK VAR INJECTION */(function(global) {/*!
  4026. * Vue.js v2.6.11
  4027. * (c) 2014-2022 Evan You
  4028. * Released under the MIT License.
  4029. */
  4030. /* */
  4031. var emptyObject = Object.freeze({});
  4032. // These helpers produce better VM code in JS engines due to their
  4033. // explicitness and function inlining.
  4034. function isUndef (v) {
  4035. return v === undefined || v === null
  4036. }
  4037. function isDef (v) {
  4038. return v !== undefined && v !== null
  4039. }
  4040. function isTrue (v) {
  4041. return v === true
  4042. }
  4043. function isFalse (v) {
  4044. return v === false
  4045. }
  4046. /**
  4047. * Check if value is primitive.
  4048. */
  4049. function isPrimitive (value) {
  4050. return (
  4051. typeof value === 'string' ||
  4052. typeof value === 'number' ||
  4053. // $flow-disable-line
  4054. typeof value === 'symbol' ||
  4055. typeof value === 'boolean'
  4056. )
  4057. }
  4058. /**
  4059. * Quick object check - this is primarily used to tell
  4060. * Objects from primitive values when we know the value
  4061. * is a JSON-compliant type.
  4062. */
  4063. function isObject (obj) {
  4064. return obj !== null && typeof obj === 'object'
  4065. }
  4066. /**
  4067. * Get the raw type string of a value, e.g., [object Object].
  4068. */
  4069. var _toString = Object.prototype.toString;
  4070. function toRawType (value) {
  4071. return _toString.call(value).slice(8, -1)
  4072. }
  4073. /**
  4074. * Strict object type check. Only returns true
  4075. * for plain JavaScript objects.
  4076. */
  4077. function isPlainObject (obj) {
  4078. return _toString.call(obj) === '[object Object]'
  4079. }
  4080. function isRegExp (v) {
  4081. return _toString.call(v) === '[object RegExp]'
  4082. }
  4083. /**
  4084. * Check if val is a valid array index.
  4085. */
  4086. function isValidArrayIndex (val) {
  4087. var n = parseFloat(String(val));
  4088. return n >= 0 && Math.floor(n) === n && isFinite(val)
  4089. }
  4090. function isPromise (val) {
  4091. return (
  4092. isDef(val) &&
  4093. typeof val.then === 'function' &&
  4094. typeof val.catch === 'function'
  4095. )
  4096. }
  4097. /**
  4098. * Convert a value to a string that is actually rendered.
  4099. */
  4100. function toString (val) {
  4101. return val == null
  4102. ? ''
  4103. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  4104. ? JSON.stringify(val, null, 2)
  4105. : String(val)
  4106. }
  4107. /**
  4108. * Convert an input value to a number for persistence.
  4109. * If the conversion fails, return original string.
  4110. */
  4111. function toNumber (val) {
  4112. var n = parseFloat(val);
  4113. return isNaN(n) ? val : n
  4114. }
  4115. /**
  4116. * Make a map and return a function for checking if a key
  4117. * is in that map.
  4118. */
  4119. function makeMap (
  4120. str,
  4121. expectsLowerCase
  4122. ) {
  4123. var map = Object.create(null);
  4124. var list = str.split(',');
  4125. for (var i = 0; i < list.length; i++) {
  4126. map[list[i]] = true;
  4127. }
  4128. return expectsLowerCase
  4129. ? function (val) { return map[val.toLowerCase()]; }
  4130. : function (val) { return map[val]; }
  4131. }
  4132. /**
  4133. * Check if a tag is a built-in tag.
  4134. */
  4135. var isBuiltInTag = makeMap('slot,component', true);
  4136. /**
  4137. * Check if an attribute is a reserved attribute.
  4138. */
  4139. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  4140. /**
  4141. * Remove an item from an array.
  4142. */
  4143. function remove (arr, item) {
  4144. if (arr.length) {
  4145. var index = arr.indexOf(item);
  4146. if (index > -1) {
  4147. return arr.splice(index, 1)
  4148. }
  4149. }
  4150. }
  4151. /**
  4152. * Check whether an object has the property.
  4153. */
  4154. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4155. function hasOwn (obj, key) {
  4156. return hasOwnProperty.call(obj, key)
  4157. }
  4158. /**
  4159. * Create a cached version of a pure function.
  4160. */
  4161. function cached (fn) {
  4162. var cache = Object.create(null);
  4163. return (function cachedFn (str) {
  4164. var hit = cache[str];
  4165. return hit || (cache[str] = fn(str))
  4166. })
  4167. }
  4168. /**
  4169. * Camelize a hyphen-delimited string.
  4170. */
  4171. var camelizeRE = /-(\w)/g;
  4172. var camelize = cached(function (str) {
  4173. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  4174. });
  4175. /**
  4176. * Capitalize a string.
  4177. */
  4178. var capitalize = cached(function (str) {
  4179. return str.charAt(0).toUpperCase() + str.slice(1)
  4180. });
  4181. /**
  4182. * Hyphenate a camelCase string.
  4183. */
  4184. var hyphenateRE = /\B([A-Z])/g;
  4185. var hyphenate = cached(function (str) {
  4186. return str.replace(hyphenateRE, '-$1').toLowerCase()
  4187. });
  4188. /**
  4189. * Simple bind polyfill for environments that do not support it,
  4190. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  4191. * since native bind is now performant enough in most browsers.
  4192. * But removing it would mean breaking code that was able to run in
  4193. * PhantomJS 1.x, so this must be kept for backward compatibility.
  4194. */
  4195. /* istanbul ignore next */
  4196. function polyfillBind (fn, ctx) {
  4197. function boundFn (a) {
  4198. var l = arguments.length;
  4199. return l
  4200. ? l > 1
  4201. ? fn.apply(ctx, arguments)
  4202. : fn.call(ctx, a)
  4203. : fn.call(ctx)
  4204. }
  4205. boundFn._length = fn.length;
  4206. return boundFn
  4207. }
  4208. function nativeBind (fn, ctx) {
  4209. return fn.bind(ctx)
  4210. }
  4211. var bind = Function.prototype.bind
  4212. ? nativeBind
  4213. : polyfillBind;
  4214. /**
  4215. * Convert an Array-like object to a real Array.
  4216. */
  4217. function toArray (list, start) {
  4218. start = start || 0;
  4219. var i = list.length - start;
  4220. var ret = new Array(i);
  4221. while (i--) {
  4222. ret[i] = list[i + start];
  4223. }
  4224. return ret
  4225. }
  4226. /**
  4227. * Mix properties into target object.
  4228. */
  4229. function extend (to, _from) {
  4230. for (var key in _from) {
  4231. to[key] = _from[key];
  4232. }
  4233. return to
  4234. }
  4235. /**
  4236. * Merge an Array of Objects into a single Object.
  4237. */
  4238. function toObject (arr) {
  4239. var res = {};
  4240. for (var i = 0; i < arr.length; i++) {
  4241. if (arr[i]) {
  4242. extend(res, arr[i]);
  4243. }
  4244. }
  4245. return res
  4246. }
  4247. /* eslint-disable no-unused-vars */
  4248. /**
  4249. * Perform no operation.
  4250. * Stubbing args to make Flow happy without leaving useless transpiled code
  4251. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  4252. */
  4253. function noop (a, b, c) {}
  4254. /**
  4255. * Always return false.
  4256. */
  4257. var no = function (a, b, c) { return false; };
  4258. /* eslint-enable no-unused-vars */
  4259. /**
  4260. * Return the same value.
  4261. */
  4262. var identity = function (_) { return _; };
  4263. /**
  4264. * Check if two values are loosely equal - that is,
  4265. * if they are plain objects, do they have the same shape?
  4266. */
  4267. function looseEqual (a, b) {
  4268. if (a === b) { return true }
  4269. var isObjectA = isObject(a);
  4270. var isObjectB = isObject(b);
  4271. if (isObjectA && isObjectB) {
  4272. try {
  4273. var isArrayA = Array.isArray(a);
  4274. var isArrayB = Array.isArray(b);
  4275. if (isArrayA && isArrayB) {
  4276. return a.length === b.length && a.every(function (e, i) {
  4277. return looseEqual(e, b[i])
  4278. })
  4279. } else if (a instanceof Date && b instanceof Date) {
  4280. return a.getTime() === b.getTime()
  4281. } else if (!isArrayA && !isArrayB) {
  4282. var keysA = Object.keys(a);
  4283. var keysB = Object.keys(b);
  4284. return keysA.length === keysB.length && keysA.every(function (key) {
  4285. return looseEqual(a[key], b[key])
  4286. })
  4287. } else {
  4288. /* istanbul ignore next */
  4289. return false
  4290. }
  4291. } catch (e) {
  4292. /* istanbul ignore next */
  4293. return false
  4294. }
  4295. } else if (!isObjectA && !isObjectB) {
  4296. return String(a) === String(b)
  4297. } else {
  4298. return false
  4299. }
  4300. }
  4301. /**
  4302. * Return the first index at which a loosely equal value can be
  4303. * found in the array (if value is a plain object, the array must
  4304. * contain an object of the same shape), or -1 if it is not present.
  4305. */
  4306. function looseIndexOf (arr, val) {
  4307. for (var i = 0; i < arr.length; i++) {
  4308. if (looseEqual(arr[i], val)) { return i }
  4309. }
  4310. return -1
  4311. }
  4312. /**
  4313. * Ensure a function is called only once.
  4314. */
  4315. function once (fn) {
  4316. var called = false;
  4317. return function () {
  4318. if (!called) {
  4319. called = true;
  4320. fn.apply(this, arguments);
  4321. }
  4322. }
  4323. }
  4324. var ASSET_TYPES = [
  4325. 'component',
  4326. 'directive',
  4327. 'filter'
  4328. ];
  4329. var LIFECYCLE_HOOKS = [
  4330. 'beforeCreate',
  4331. 'created',
  4332. 'beforeMount',
  4333. 'mounted',
  4334. 'beforeUpdate',
  4335. 'updated',
  4336. 'beforeDestroy',
  4337. 'destroyed',
  4338. 'activated',
  4339. 'deactivated',
  4340. 'errorCaptured',
  4341. 'serverPrefetch'
  4342. ];
  4343. /* */
  4344. var config = ({
  4345. /**
  4346. * Option merge strategies (used in core/util/options)
  4347. */
  4348. // $flow-disable-line
  4349. optionMergeStrategies: Object.create(null),
  4350. /**
  4351. * Whether to suppress warnings.
  4352. */
  4353. silent: false,
  4354. /**
  4355. * Show production mode tip message on boot?
  4356. */
  4357. productionTip: "development" !== 'production',
  4358. /**
  4359. * Whether to enable devtools
  4360. */
  4361. devtools: "development" !== 'production',
  4362. /**
  4363. * Whether to record perf
  4364. */
  4365. performance: false,
  4366. /**
  4367. * Error handler for watcher errors
  4368. */
  4369. errorHandler: null,
  4370. /**
  4371. * Warn handler for watcher warns
  4372. */
  4373. warnHandler: null,
  4374. /**
  4375. * Ignore certain custom elements
  4376. */
  4377. ignoredElements: [],
  4378. /**
  4379. * Custom user key aliases for v-on
  4380. */
  4381. // $flow-disable-line
  4382. keyCodes: Object.create(null),
  4383. /**
  4384. * Check if a tag is reserved so that it cannot be registered as a
  4385. * component. This is platform-dependent and may be overwritten.
  4386. */
  4387. isReservedTag: no,
  4388. /**
  4389. * Check if an attribute is reserved so that it cannot be used as a component
  4390. * prop. This is platform-dependent and may be overwritten.
  4391. */
  4392. isReservedAttr: no,
  4393. /**
  4394. * Check if a tag is an unknown element.
  4395. * Platform-dependent.
  4396. */
  4397. isUnknownElement: no,
  4398. /**
  4399. * Get the namespace of an element
  4400. */
  4401. getTagNamespace: noop,
  4402. /**
  4403. * Parse the real tag name for the specific platform.
  4404. */
  4405. parsePlatformTagName: identity,
  4406. /**
  4407. * Check if an attribute must be bound using property, e.g. value
  4408. * Platform-dependent.
  4409. */
  4410. mustUseProp: no,
  4411. /**
  4412. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  4413. * This will significantly reduce performance if set to false.
  4414. */
  4415. async: true,
  4416. /**
  4417. * Exposed for legacy reasons
  4418. */
  4419. _lifecycleHooks: LIFECYCLE_HOOKS
  4420. });
  4421. /* */
  4422. /**
  4423. * unicode letters used for parsing html tags, component names and property paths.
  4424. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  4425. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  4426. */
  4427. 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/;
  4428. /**
  4429. * Check if a string starts with $ or _
  4430. */
  4431. function isReserved (str) {
  4432. var c = (str + '').charCodeAt(0);
  4433. return c === 0x24 || c === 0x5F
  4434. }
  4435. /**
  4436. * Define a property.
  4437. */
  4438. function def (obj, key, val, enumerable) {
  4439. Object.defineProperty(obj, key, {
  4440. value: val,
  4441. enumerable: !!enumerable,
  4442. writable: true,
  4443. configurable: true
  4444. });
  4445. }
  4446. /**
  4447. * Parse simple path.
  4448. */
  4449. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  4450. function parsePath (path) {
  4451. if (bailRE.test(path)) {
  4452. return
  4453. }
  4454. var segments = path.split('.');
  4455. return function (obj) {
  4456. for (var i = 0; i < segments.length; i++) {
  4457. if (!obj) { return }
  4458. obj = obj[segments[i]];
  4459. }
  4460. return obj
  4461. }
  4462. }
  4463. /* */
  4464. // can we use __proto__?
  4465. var hasProto = '__proto__' in {};
  4466. // Browser environment sniffing
  4467. var inBrowser = typeof window !== 'undefined';
  4468. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  4469. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  4470. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  4471. var isIE = UA && /msie|trident/.test(UA);
  4472. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  4473. var isEdge = UA && UA.indexOf('edge/') > 0;
  4474. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  4475. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  4476. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  4477. var isPhantomJS = UA && /phantomjs/.test(UA);
  4478. var isFF = UA && UA.match(/firefox\/(\d+)/);
  4479. // Firefox has a "watch" function on Object.prototype...
  4480. var nativeWatch = ({}).watch;
  4481. if (inBrowser) {
  4482. try {
  4483. var opts = {};
  4484. Object.defineProperty(opts, 'passive', ({
  4485. get: function get () {
  4486. }
  4487. })); // https://github.com/facebook/flow/issues/285
  4488. window.addEventListener('test-passive', null, opts);
  4489. } catch (e) {}
  4490. }
  4491. // this needs to be lazy-evaled because vue may be required before
  4492. // vue-server-renderer can set VUE_ENV
  4493. var _isServer;
  4494. var isServerRendering = function () {
  4495. if (_isServer === undefined) {
  4496. /* istanbul ignore if */
  4497. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  4498. // detect presence of vue-server-renderer and avoid
  4499. // Webpack shimming the process
  4500. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  4501. } else {
  4502. _isServer = false;
  4503. }
  4504. }
  4505. return _isServer
  4506. };
  4507. // detect devtools
  4508. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  4509. /* istanbul ignore next */
  4510. function isNative (Ctor) {
  4511. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  4512. }
  4513. var hasSymbol =
  4514. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  4515. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  4516. var _Set;
  4517. /* istanbul ignore if */ // $flow-disable-line
  4518. if (typeof Set !== 'undefined' && isNative(Set)) {
  4519. // use native Set when available.
  4520. _Set = Set;
  4521. } else {
  4522. // a non-standard Set polyfill that only works with primitive keys.
  4523. _Set = /*@__PURE__*/(function () {
  4524. function Set () {
  4525. this.set = Object.create(null);
  4526. }
  4527. Set.prototype.has = function has (key) {
  4528. return this.set[key] === true
  4529. };
  4530. Set.prototype.add = function add (key) {
  4531. this.set[key] = true;
  4532. };
  4533. Set.prototype.clear = function clear () {
  4534. this.set = Object.create(null);
  4535. };
  4536. return Set;
  4537. }());
  4538. }
  4539. /* */
  4540. var warn = noop;
  4541. var tip = noop;
  4542. var generateComponentTrace = (noop); // work around flow check
  4543. var formatComponentName = (noop);
  4544. if (true) {
  4545. var hasConsole = typeof console !== 'undefined';
  4546. var classifyRE = /(?:^|[-_])(\w)/g;
  4547. var classify = function (str) { return str
  4548. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  4549. .replace(/[-_]/g, ''); };
  4550. warn = function (msg, vm) {
  4551. var trace = vm ? generateComponentTrace(vm) : '';
  4552. if (config.warnHandler) {
  4553. config.warnHandler.call(null, msg, vm, trace);
  4554. } else if (hasConsole && (!config.silent)) {
  4555. console.error(("[Vue warn]: " + msg + trace));
  4556. }
  4557. };
  4558. tip = function (msg, vm) {
  4559. if (hasConsole && (!config.silent)) {
  4560. console.warn("[Vue tip]: " + msg + (
  4561. vm ? generateComponentTrace(vm) : ''
  4562. ));
  4563. }
  4564. };
  4565. formatComponentName = function (vm, includeFile) {
  4566. if (vm.$root === vm) {
  4567. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  4568. return ('') + vm.$options.__file
  4569. }
  4570. return '<Root>'
  4571. }
  4572. var options = typeof vm === 'function' && vm.cid != null
  4573. ? vm.options
  4574. : vm._isVue
  4575. ? vm.$options || vm.constructor.options
  4576. : vm;
  4577. var name = options.name || options._componentTag;
  4578. var file = options.__file;
  4579. if (!name && file) {
  4580. var match = file.match(/([^/\\]+)\.vue$/);
  4581. name = match && match[1];
  4582. }
  4583. return (
  4584. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  4585. (file && includeFile !== false ? (" at " + file) : '')
  4586. )
  4587. };
  4588. var repeat = function (str, n) {
  4589. var res = '';
  4590. while (n) {
  4591. if (n % 2 === 1) { res += str; }
  4592. if (n > 1) { str += str; }
  4593. n >>= 1;
  4594. }
  4595. return res
  4596. };
  4597. generateComponentTrace = function (vm) {
  4598. if (vm._isVue && vm.$parent) {
  4599. var tree = [];
  4600. var currentRecursiveSequence = 0;
  4601. while (vm && vm.$options.name !== 'PageBody') {
  4602. if (tree.length > 0) {
  4603. var last = tree[tree.length - 1];
  4604. if (last.constructor === vm.constructor) {
  4605. currentRecursiveSequence++;
  4606. vm = vm.$parent;
  4607. continue
  4608. } else if (currentRecursiveSequence > 0) {
  4609. tree[tree.length - 1] = [last, currentRecursiveSequence];
  4610. currentRecursiveSequence = 0;
  4611. }
  4612. }
  4613. !vm.$options.isReserved && tree.push(vm);
  4614. vm = vm.$parent;
  4615. }
  4616. return '\n\nfound in\n\n' + tree
  4617. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  4618. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  4619. : formatComponentName(vm))); })
  4620. .join('\n')
  4621. } else {
  4622. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  4623. }
  4624. };
  4625. }
  4626. /* */
  4627. var uid = 0;
  4628. /**
  4629. * A dep is an observable that can have multiple
  4630. * directives subscribing to it.
  4631. */
  4632. var Dep = function Dep () {
  4633. this.id = uid++;
  4634. this.subs = [];
  4635. };
  4636. Dep.prototype.addSub = function addSub (sub) {
  4637. this.subs.push(sub);
  4638. };
  4639. Dep.prototype.removeSub = function removeSub (sub) {
  4640. remove(this.subs, sub);
  4641. };
  4642. Dep.prototype.depend = function depend () {
  4643. if (Dep.SharedObject.target) {
  4644. Dep.SharedObject.target.addDep(this);
  4645. }
  4646. };
  4647. Dep.prototype.notify = function notify () {
  4648. // stabilize the subscriber list first
  4649. var subs = this.subs.slice();
  4650. if ( true && !config.async) {
  4651. // subs aren't sorted in scheduler if not running async
  4652. // we need to sort them now to make sure they fire in correct
  4653. // order
  4654. subs.sort(function (a, b) { return a.id - b.id; });
  4655. }
  4656. for (var i = 0, l = subs.length; i < l; i++) {
  4657. subs[i].update();
  4658. }
  4659. };
  4660. // The current target watcher being evaluated.
  4661. // This is globally unique because only one watcher
  4662. // can be evaluated at a time.
  4663. // fixed by xxxxxx (nvue shared vuex)
  4664. /* eslint-disable no-undef */
  4665. Dep.SharedObject = {};
  4666. Dep.SharedObject.target = null;
  4667. Dep.SharedObject.targetStack = [];
  4668. function pushTarget (target) {
  4669. Dep.SharedObject.targetStack.push(target);
  4670. Dep.SharedObject.target = target;
  4671. Dep.target = target;
  4672. }
  4673. function popTarget () {
  4674. Dep.SharedObject.targetStack.pop();
  4675. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  4676. Dep.target = Dep.SharedObject.target;
  4677. }
  4678. /* */
  4679. var VNode = function VNode (
  4680. tag,
  4681. data,
  4682. children,
  4683. text,
  4684. elm,
  4685. context,
  4686. componentOptions,
  4687. asyncFactory
  4688. ) {
  4689. this.tag = tag;
  4690. this.data = data;
  4691. this.children = children;
  4692. this.text = text;
  4693. this.elm = elm;
  4694. this.ns = undefined;
  4695. this.context = context;
  4696. this.fnContext = undefined;
  4697. this.fnOptions = undefined;
  4698. this.fnScopeId = undefined;
  4699. this.key = data && data.key;
  4700. this.componentOptions = componentOptions;
  4701. this.componentInstance = undefined;
  4702. this.parent = undefined;
  4703. this.raw = false;
  4704. this.isStatic = false;
  4705. this.isRootInsert = true;
  4706. this.isComment = false;
  4707. this.isCloned = false;
  4708. this.isOnce = false;
  4709. this.asyncFactory = asyncFactory;
  4710. this.asyncMeta = undefined;
  4711. this.isAsyncPlaceholder = false;
  4712. };
  4713. var prototypeAccessors = { child: { configurable: true } };
  4714. // DEPRECATED: alias for componentInstance for backwards compat.
  4715. /* istanbul ignore next */
  4716. prototypeAccessors.child.get = function () {
  4717. return this.componentInstance
  4718. };
  4719. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4720. var createEmptyVNode = function (text) {
  4721. if ( text === void 0 ) text = '';
  4722. var node = new VNode();
  4723. node.text = text;
  4724. node.isComment = true;
  4725. return node
  4726. };
  4727. function createTextVNode (val) {
  4728. return new VNode(undefined, undefined, undefined, String(val))
  4729. }
  4730. // optimized shallow clone
  4731. // used for static nodes and slot nodes because they may be reused across
  4732. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4733. // on their elm reference.
  4734. function cloneVNode (vnode) {
  4735. var cloned = new VNode(
  4736. vnode.tag,
  4737. vnode.data,
  4738. // #7975
  4739. // clone children array to avoid mutating original in case of cloning
  4740. // a child.
  4741. vnode.children && vnode.children.slice(),
  4742. vnode.text,
  4743. vnode.elm,
  4744. vnode.context,
  4745. vnode.componentOptions,
  4746. vnode.asyncFactory
  4747. );
  4748. cloned.ns = vnode.ns;
  4749. cloned.isStatic = vnode.isStatic;
  4750. cloned.key = vnode.key;
  4751. cloned.isComment = vnode.isComment;
  4752. cloned.fnContext = vnode.fnContext;
  4753. cloned.fnOptions = vnode.fnOptions;
  4754. cloned.fnScopeId = vnode.fnScopeId;
  4755. cloned.asyncMeta = vnode.asyncMeta;
  4756. cloned.isCloned = true;
  4757. return cloned
  4758. }
  4759. /*
  4760. * not type checking this file because flow doesn't play well with
  4761. * dynamically accessing methods on Array prototype
  4762. */
  4763. var arrayProto = Array.prototype;
  4764. var arrayMethods = Object.create(arrayProto);
  4765. var methodsToPatch = [
  4766. 'push',
  4767. 'pop',
  4768. 'shift',
  4769. 'unshift',
  4770. 'splice',
  4771. 'sort',
  4772. 'reverse'
  4773. ];
  4774. /**
  4775. * Intercept mutating methods and emit events
  4776. */
  4777. methodsToPatch.forEach(function (method) {
  4778. // cache original method
  4779. var original = arrayProto[method];
  4780. def(arrayMethods, method, function mutator () {
  4781. var args = [], len = arguments.length;
  4782. while ( len-- ) args[ len ] = arguments[ len ];
  4783. var result = original.apply(this, args);
  4784. var ob = this.__ob__;
  4785. var inserted;
  4786. switch (method) {
  4787. case 'push':
  4788. case 'unshift':
  4789. inserted = args;
  4790. break
  4791. case 'splice':
  4792. inserted = args.slice(2);
  4793. break
  4794. }
  4795. if (inserted) { ob.observeArray(inserted); }
  4796. // notify change
  4797. ob.dep.notify();
  4798. return result
  4799. });
  4800. });
  4801. /* */
  4802. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4803. /**
  4804. * In some cases we may want to disable observation inside a component's
  4805. * update computation.
  4806. */
  4807. var shouldObserve = true;
  4808. function toggleObserving (value) {
  4809. shouldObserve = value;
  4810. }
  4811. /**
  4812. * Observer class that is attached to each observed
  4813. * object. Once attached, the observer converts the target
  4814. * object's property keys into getter/setters that
  4815. * collect dependencies and dispatch updates.
  4816. */
  4817. var Observer = function Observer (value) {
  4818. this.value = value;
  4819. this.dep = new Dep();
  4820. this.vmCount = 0;
  4821. def(value, '__ob__', this);
  4822. if (Array.isArray(value)) {
  4823. if (hasProto) {
  4824. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4825. if(value.push !== value.__proto__.push){
  4826. copyAugment(value, arrayMethods, arrayKeys);
  4827. } else {
  4828. protoAugment(value, arrayMethods);
  4829. }
  4830. }
  4831. } else {
  4832. copyAugment(value, arrayMethods, arrayKeys);
  4833. }
  4834. this.observeArray(value);
  4835. } else {
  4836. this.walk(value);
  4837. }
  4838. };
  4839. /**
  4840. * Walk through all properties and convert them into
  4841. * getter/setters. This method should only be called when
  4842. * value type is Object.
  4843. */
  4844. Observer.prototype.walk = function walk (obj) {
  4845. var keys = Object.keys(obj);
  4846. for (var i = 0; i < keys.length; i++) {
  4847. defineReactive$$1(obj, keys[i]);
  4848. }
  4849. };
  4850. /**
  4851. * Observe a list of Array items.
  4852. */
  4853. Observer.prototype.observeArray = function observeArray (items) {
  4854. for (var i = 0, l = items.length; i < l; i++) {
  4855. observe(items[i]);
  4856. }
  4857. };
  4858. // helpers
  4859. /**
  4860. * Augment a target Object or Array by intercepting
  4861. * the prototype chain using __proto__
  4862. */
  4863. function protoAugment (target, src) {
  4864. /* eslint-disable no-proto */
  4865. target.__proto__ = src;
  4866. /* eslint-enable no-proto */
  4867. }
  4868. /**
  4869. * Augment a target Object or Array by defining
  4870. * hidden properties.
  4871. */
  4872. /* istanbul ignore next */
  4873. function copyAugment (target, src, keys) {
  4874. for (var i = 0, l = keys.length; i < l; i++) {
  4875. var key = keys[i];
  4876. def(target, key, src[key]);
  4877. }
  4878. }
  4879. /**
  4880. * Attempt to create an observer instance for a value,
  4881. * returns the new observer if successfully observed,
  4882. * or the existing observer if the value already has one.
  4883. */
  4884. function observe (value, asRootData) {
  4885. if (!isObject(value) || value instanceof VNode) {
  4886. return
  4887. }
  4888. var ob;
  4889. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4890. ob = value.__ob__;
  4891. } else if (
  4892. shouldObserve &&
  4893. !isServerRendering() &&
  4894. (Array.isArray(value) || isPlainObject(value)) &&
  4895. Object.isExtensible(value) &&
  4896. !value._isVue &&
  4897. !value.__v_isMPComponent
  4898. ) {
  4899. ob = new Observer(value);
  4900. }
  4901. if (asRootData && ob) {
  4902. ob.vmCount++;
  4903. }
  4904. return ob
  4905. }
  4906. /**
  4907. * Define a reactive property on an Object.
  4908. */
  4909. function defineReactive$$1 (
  4910. obj,
  4911. key,
  4912. val,
  4913. customSetter,
  4914. shallow
  4915. ) {
  4916. var dep = new Dep();
  4917. var property = Object.getOwnPropertyDescriptor(obj, key);
  4918. if (property && property.configurable === false) {
  4919. return
  4920. }
  4921. // cater for pre-defined getter/setters
  4922. var getter = property && property.get;
  4923. var setter = property && property.set;
  4924. if ((!getter || setter) && arguments.length === 2) {
  4925. val = obj[key];
  4926. }
  4927. var childOb = !shallow && observe(val);
  4928. Object.defineProperty(obj, key, {
  4929. enumerable: true,
  4930. configurable: true,
  4931. get: function reactiveGetter () {
  4932. var value = getter ? getter.call(obj) : val;
  4933. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4934. dep.depend();
  4935. if (childOb) {
  4936. childOb.dep.depend();
  4937. if (Array.isArray(value)) {
  4938. dependArray(value);
  4939. }
  4940. }
  4941. }
  4942. return value
  4943. },
  4944. set: function reactiveSetter (newVal) {
  4945. var value = getter ? getter.call(obj) : val;
  4946. /* eslint-disable no-self-compare */
  4947. if (newVal === value || (newVal !== newVal && value !== value)) {
  4948. return
  4949. }
  4950. /* eslint-enable no-self-compare */
  4951. if ( true && customSetter) {
  4952. customSetter();
  4953. }
  4954. // #7981: for accessor properties without setter
  4955. if (getter && !setter) { return }
  4956. if (setter) {
  4957. setter.call(obj, newVal);
  4958. } else {
  4959. val = newVal;
  4960. }
  4961. childOb = !shallow && observe(newVal);
  4962. dep.notify();
  4963. }
  4964. });
  4965. }
  4966. /**
  4967. * Set a property on an object. Adds the new property and
  4968. * triggers change notification if the property doesn't
  4969. * already exist.
  4970. */
  4971. function set (target, key, val) {
  4972. if ( true &&
  4973. (isUndef(target) || isPrimitive(target))
  4974. ) {
  4975. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4976. }
  4977. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4978. target.length = Math.max(target.length, key);
  4979. target.splice(key, 1, val);
  4980. return val
  4981. }
  4982. if (key in target && !(key in Object.prototype)) {
  4983. target[key] = val;
  4984. return val
  4985. }
  4986. var ob = (target).__ob__;
  4987. if (target._isVue || (ob && ob.vmCount)) {
  4988. true && warn(
  4989. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4990. 'at runtime - declare it upfront in the data option.'
  4991. );
  4992. return val
  4993. }
  4994. if (!ob) {
  4995. target[key] = val;
  4996. return val
  4997. }
  4998. defineReactive$$1(ob.value, key, val);
  4999. ob.dep.notify();
  5000. return val
  5001. }
  5002. /**
  5003. * Delete a property and trigger change if necessary.
  5004. */
  5005. function del (target, key) {
  5006. if ( true &&
  5007. (isUndef(target) || isPrimitive(target))
  5008. ) {
  5009. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  5010. }
  5011. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5012. target.splice(key, 1);
  5013. return
  5014. }
  5015. var ob = (target).__ob__;
  5016. if (target._isVue || (ob && ob.vmCount)) {
  5017. true && warn(
  5018. 'Avoid deleting properties on a Vue instance or its root $data ' +
  5019. '- just set it to null.'
  5020. );
  5021. return
  5022. }
  5023. if (!hasOwn(target, key)) {
  5024. return
  5025. }
  5026. delete target[key];
  5027. if (!ob) {
  5028. return
  5029. }
  5030. ob.dep.notify();
  5031. }
  5032. /**
  5033. * Collect dependencies on array elements when the array is touched, since
  5034. * we cannot intercept array element access like property getters.
  5035. */
  5036. function dependArray (value) {
  5037. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  5038. e = value[i];
  5039. e && e.__ob__ && e.__ob__.dep.depend();
  5040. if (Array.isArray(e)) {
  5041. dependArray(e);
  5042. }
  5043. }
  5044. }
  5045. /* */
  5046. /**
  5047. * Option overwriting strategies are functions that handle
  5048. * how to merge a parent option value and a child option
  5049. * value into the final value.
  5050. */
  5051. var strats = config.optionMergeStrategies;
  5052. /**
  5053. * Options with restrictions
  5054. */
  5055. if (true) {
  5056. strats.el = strats.propsData = function (parent, child, vm, key) {
  5057. if (!vm) {
  5058. warn(
  5059. "option \"" + key + "\" can only be used during instance " +
  5060. 'creation with the `new` keyword.'
  5061. );
  5062. }
  5063. return defaultStrat(parent, child)
  5064. };
  5065. }
  5066. /**
  5067. * Helper that recursively merges two data objects together.
  5068. */
  5069. function mergeData (to, from) {
  5070. if (!from) { return to }
  5071. var key, toVal, fromVal;
  5072. var keys = hasSymbol
  5073. ? Reflect.ownKeys(from)
  5074. : Object.keys(from);
  5075. for (var i = 0; i < keys.length; i++) {
  5076. key = keys[i];
  5077. // in case the object is already observed...
  5078. if (key === '__ob__') { continue }
  5079. toVal = to[key];
  5080. fromVal = from[key];
  5081. if (!hasOwn(to, key)) {
  5082. set(to, key, fromVal);
  5083. } else if (
  5084. toVal !== fromVal &&
  5085. isPlainObject(toVal) &&
  5086. isPlainObject(fromVal)
  5087. ) {
  5088. mergeData(toVal, fromVal);
  5089. }
  5090. }
  5091. return to
  5092. }
  5093. /**
  5094. * Data
  5095. */
  5096. function mergeDataOrFn (
  5097. parentVal,
  5098. childVal,
  5099. vm
  5100. ) {
  5101. if (!vm) {
  5102. // in a Vue.extend merge, both should be functions
  5103. if (!childVal) {
  5104. return parentVal
  5105. }
  5106. if (!parentVal) {
  5107. return childVal
  5108. }
  5109. // when parentVal & childVal are both present,
  5110. // we need to return a function that returns the
  5111. // merged result of both functions... no need to
  5112. // check if parentVal is a function here because
  5113. // it has to be a function to pass previous merges.
  5114. return function mergedDataFn () {
  5115. return mergeData(
  5116. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  5117. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  5118. )
  5119. }
  5120. } else {
  5121. return function mergedInstanceDataFn () {
  5122. // instance merge
  5123. var instanceData = typeof childVal === 'function'
  5124. ? childVal.call(vm, vm)
  5125. : childVal;
  5126. var defaultData = typeof parentVal === 'function'
  5127. ? parentVal.call(vm, vm)
  5128. : parentVal;
  5129. if (instanceData) {
  5130. return mergeData(instanceData, defaultData)
  5131. } else {
  5132. return defaultData
  5133. }
  5134. }
  5135. }
  5136. }
  5137. strats.data = function (
  5138. parentVal,
  5139. childVal,
  5140. vm
  5141. ) {
  5142. if (!vm) {
  5143. if (childVal && typeof childVal !== 'function') {
  5144. true && warn(
  5145. 'The "data" option should be a function ' +
  5146. 'that returns a per-instance value in component ' +
  5147. 'definitions.',
  5148. vm
  5149. );
  5150. return parentVal
  5151. }
  5152. return mergeDataOrFn(parentVal, childVal)
  5153. }
  5154. return mergeDataOrFn(parentVal, childVal, vm)
  5155. };
  5156. /**
  5157. * Hooks and props are merged as arrays.
  5158. */
  5159. function mergeHook (
  5160. parentVal,
  5161. childVal
  5162. ) {
  5163. var res = childVal
  5164. ? parentVal
  5165. ? parentVal.concat(childVal)
  5166. : Array.isArray(childVal)
  5167. ? childVal
  5168. : [childVal]
  5169. : parentVal;
  5170. return res
  5171. ? dedupeHooks(res)
  5172. : res
  5173. }
  5174. function dedupeHooks (hooks) {
  5175. var res = [];
  5176. for (var i = 0; i < hooks.length; i++) {
  5177. if (res.indexOf(hooks[i]) === -1) {
  5178. res.push(hooks[i]);
  5179. }
  5180. }
  5181. return res
  5182. }
  5183. LIFECYCLE_HOOKS.forEach(function (hook) {
  5184. strats[hook] = mergeHook;
  5185. });
  5186. /**
  5187. * Assets
  5188. *
  5189. * When a vm is present (instance creation), we need to do
  5190. * a three-way merge between constructor options, instance
  5191. * options and parent options.
  5192. */
  5193. function mergeAssets (
  5194. parentVal,
  5195. childVal,
  5196. vm,
  5197. key
  5198. ) {
  5199. var res = Object.create(parentVal || null);
  5200. if (childVal) {
  5201. true && assertObjectType(key, childVal, vm);
  5202. return extend(res, childVal)
  5203. } else {
  5204. return res
  5205. }
  5206. }
  5207. ASSET_TYPES.forEach(function (type) {
  5208. strats[type + 's'] = mergeAssets;
  5209. });
  5210. /**
  5211. * Watchers.
  5212. *
  5213. * Watchers hashes should not overwrite one
  5214. * another, so we merge them as arrays.
  5215. */
  5216. strats.watch = function (
  5217. parentVal,
  5218. childVal,
  5219. vm,
  5220. key
  5221. ) {
  5222. // work around Firefox's Object.prototype.watch...
  5223. if (parentVal === nativeWatch) { parentVal = undefined; }
  5224. if (childVal === nativeWatch) { childVal = undefined; }
  5225. /* istanbul ignore if */
  5226. if (!childVal) { return Object.create(parentVal || null) }
  5227. if (true) {
  5228. assertObjectType(key, childVal, vm);
  5229. }
  5230. if (!parentVal) { return childVal }
  5231. var ret = {};
  5232. extend(ret, parentVal);
  5233. for (var key$1 in childVal) {
  5234. var parent = ret[key$1];
  5235. var child = childVal[key$1];
  5236. if (parent && !Array.isArray(parent)) {
  5237. parent = [parent];
  5238. }
  5239. ret[key$1] = parent
  5240. ? parent.concat(child)
  5241. : Array.isArray(child) ? child : [child];
  5242. }
  5243. return ret
  5244. };
  5245. /**
  5246. * Other object hashes.
  5247. */
  5248. strats.props =
  5249. strats.methods =
  5250. strats.inject =
  5251. strats.computed = function (
  5252. parentVal,
  5253. childVal,
  5254. vm,
  5255. key
  5256. ) {
  5257. if (childVal && "development" !== 'production') {
  5258. assertObjectType(key, childVal, vm);
  5259. }
  5260. if (!parentVal) { return childVal }
  5261. var ret = Object.create(null);
  5262. extend(ret, parentVal);
  5263. if (childVal) { extend(ret, childVal); }
  5264. return ret
  5265. };
  5266. strats.provide = mergeDataOrFn;
  5267. /**
  5268. * Default strategy.
  5269. */
  5270. var defaultStrat = function (parentVal, childVal) {
  5271. return childVal === undefined
  5272. ? parentVal
  5273. : childVal
  5274. };
  5275. /**
  5276. * Validate component names
  5277. */
  5278. function checkComponents (options) {
  5279. for (var key in options.components) {
  5280. validateComponentName(key);
  5281. }
  5282. }
  5283. function validateComponentName (name) {
  5284. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  5285. warn(
  5286. 'Invalid component name: "' + name + '". Component names ' +
  5287. 'should conform to valid custom element name in html5 specification.'
  5288. );
  5289. }
  5290. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  5291. warn(
  5292. 'Do not use built-in or reserved HTML elements as component ' +
  5293. 'id: ' + name
  5294. );
  5295. }
  5296. }
  5297. /**
  5298. * Ensure all props option syntax are normalized into the
  5299. * Object-based format.
  5300. */
  5301. function normalizeProps (options, vm) {
  5302. var props = options.props;
  5303. if (!props) { return }
  5304. var res = {};
  5305. var i, val, name;
  5306. if (Array.isArray(props)) {
  5307. i = props.length;
  5308. while (i--) {
  5309. val = props[i];
  5310. if (typeof val === 'string') {
  5311. name = camelize(val);
  5312. res[name] = { type: null };
  5313. } else if (true) {
  5314. warn('props must be strings when using array syntax.');
  5315. }
  5316. }
  5317. } else if (isPlainObject(props)) {
  5318. for (var key in props) {
  5319. val = props[key];
  5320. name = camelize(key);
  5321. res[name] = isPlainObject(val)
  5322. ? val
  5323. : { type: val };
  5324. }
  5325. } else if (true) {
  5326. warn(
  5327. "Invalid value for option \"props\": expected an Array or an Object, " +
  5328. "but got " + (toRawType(props)) + ".",
  5329. vm
  5330. );
  5331. }
  5332. options.props = res;
  5333. }
  5334. /**
  5335. * Normalize all injections into Object-based format
  5336. */
  5337. function normalizeInject (options, vm) {
  5338. var inject = options.inject;
  5339. if (!inject) { return }
  5340. var normalized = options.inject = {};
  5341. if (Array.isArray(inject)) {
  5342. for (var i = 0; i < inject.length; i++) {
  5343. normalized[inject[i]] = { from: inject[i] };
  5344. }
  5345. } else if (isPlainObject(inject)) {
  5346. for (var key in inject) {
  5347. var val = inject[key];
  5348. normalized[key] = isPlainObject(val)
  5349. ? extend({ from: key }, val)
  5350. : { from: val };
  5351. }
  5352. } else if (true) {
  5353. warn(
  5354. "Invalid value for option \"inject\": expected an Array or an Object, " +
  5355. "but got " + (toRawType(inject)) + ".",
  5356. vm
  5357. );
  5358. }
  5359. }
  5360. /**
  5361. * Normalize raw function directives into object format.
  5362. */
  5363. function normalizeDirectives (options) {
  5364. var dirs = options.directives;
  5365. if (dirs) {
  5366. for (var key in dirs) {
  5367. var def$$1 = dirs[key];
  5368. if (typeof def$$1 === 'function') {
  5369. dirs[key] = { bind: def$$1, update: def$$1 };
  5370. }
  5371. }
  5372. }
  5373. }
  5374. function assertObjectType (name, value, vm) {
  5375. if (!isPlainObject(value)) {
  5376. warn(
  5377. "Invalid value for option \"" + name + "\": expected an Object, " +
  5378. "but got " + (toRawType(value)) + ".",
  5379. vm
  5380. );
  5381. }
  5382. }
  5383. /**
  5384. * Merge two option objects into a new one.
  5385. * Core utility used in both instantiation and inheritance.
  5386. */
  5387. function mergeOptions (
  5388. parent,
  5389. child,
  5390. vm
  5391. ) {
  5392. if (true) {
  5393. checkComponents(child);
  5394. }
  5395. if (typeof child === 'function') {
  5396. child = child.options;
  5397. }
  5398. normalizeProps(child, vm);
  5399. normalizeInject(child, vm);
  5400. normalizeDirectives(child);
  5401. // Apply extends and mixins on the child options,
  5402. // but only if it is a raw options object that isn't
  5403. // the result of another mergeOptions call.
  5404. // Only merged options has the _base property.
  5405. if (!child._base) {
  5406. if (child.extends) {
  5407. parent = mergeOptions(parent, child.extends, vm);
  5408. }
  5409. if (child.mixins) {
  5410. for (var i = 0, l = child.mixins.length; i < l; i++) {
  5411. parent = mergeOptions(parent, child.mixins[i], vm);
  5412. }
  5413. }
  5414. }
  5415. var options = {};
  5416. var key;
  5417. for (key in parent) {
  5418. mergeField(key);
  5419. }
  5420. for (key in child) {
  5421. if (!hasOwn(parent, key)) {
  5422. mergeField(key);
  5423. }
  5424. }
  5425. function mergeField (key) {
  5426. var strat = strats[key] || defaultStrat;
  5427. options[key] = strat(parent[key], child[key], vm, key);
  5428. }
  5429. return options
  5430. }
  5431. /**
  5432. * Resolve an asset.
  5433. * This function is used because child instances need access
  5434. * to assets defined in its ancestor chain.
  5435. */
  5436. function resolveAsset (
  5437. options,
  5438. type,
  5439. id,
  5440. warnMissing
  5441. ) {
  5442. /* istanbul ignore if */
  5443. if (typeof id !== 'string') {
  5444. return
  5445. }
  5446. var assets = options[type];
  5447. // check local registration variations first
  5448. if (hasOwn(assets, id)) { return assets[id] }
  5449. var camelizedId = camelize(id);
  5450. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  5451. var PascalCaseId = capitalize(camelizedId);
  5452. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  5453. // fallback to prototype chain
  5454. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  5455. if ( true && warnMissing && !res) {
  5456. warn(
  5457. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  5458. options
  5459. );
  5460. }
  5461. return res
  5462. }
  5463. /* */
  5464. function validateProp (
  5465. key,
  5466. propOptions,
  5467. propsData,
  5468. vm
  5469. ) {
  5470. var prop = propOptions[key];
  5471. var absent = !hasOwn(propsData, key);
  5472. var value = propsData[key];
  5473. // boolean casting
  5474. var booleanIndex = getTypeIndex(Boolean, prop.type);
  5475. if (booleanIndex > -1) {
  5476. if (absent && !hasOwn(prop, 'default')) {
  5477. value = false;
  5478. } else if (value === '' || value === hyphenate(key)) {
  5479. // only cast empty string / same name to boolean if
  5480. // boolean has higher priority
  5481. var stringIndex = getTypeIndex(String, prop.type);
  5482. if (stringIndex < 0 || booleanIndex < stringIndex) {
  5483. value = true;
  5484. }
  5485. }
  5486. }
  5487. // check default value
  5488. if (value === undefined) {
  5489. value = getPropDefaultValue(vm, prop, key);
  5490. // since the default value is a fresh copy,
  5491. // make sure to observe it.
  5492. var prevShouldObserve = shouldObserve;
  5493. toggleObserving(true);
  5494. observe(value);
  5495. toggleObserving(prevShouldObserve);
  5496. }
  5497. if (
  5498. true
  5499. ) {
  5500. assertProp(prop, key, value, vm, absent);
  5501. }
  5502. return value
  5503. }
  5504. /**
  5505. * Get the default value of a prop.
  5506. */
  5507. function getPropDefaultValue (vm, prop, key) {
  5508. // no default, return undefined
  5509. if (!hasOwn(prop, 'default')) {
  5510. return undefined
  5511. }
  5512. var def = prop.default;
  5513. // warn against non-factory defaults for Object & Array
  5514. if ( true && isObject(def)) {
  5515. warn(
  5516. 'Invalid default value for prop "' + key + '": ' +
  5517. 'Props with type Object/Array must use a factory function ' +
  5518. 'to return the default value.',
  5519. vm
  5520. );
  5521. }
  5522. // the raw prop value was also undefined from previous render,
  5523. // return previous default value to avoid unnecessary watcher trigger
  5524. if (vm && vm.$options.propsData &&
  5525. vm.$options.propsData[key] === undefined &&
  5526. vm._props[key] !== undefined
  5527. ) {
  5528. return vm._props[key]
  5529. }
  5530. // call factory function for non-Function types
  5531. // a value is Function if its prototype is function even across different execution context
  5532. return typeof def === 'function' && getType(prop.type) !== 'Function'
  5533. ? def.call(vm)
  5534. : def
  5535. }
  5536. /**
  5537. * Assert whether a prop is valid.
  5538. */
  5539. function assertProp (
  5540. prop,
  5541. name,
  5542. value,
  5543. vm,
  5544. absent
  5545. ) {
  5546. if (prop.required && absent) {
  5547. warn(
  5548. 'Missing required prop: "' + name + '"',
  5549. vm
  5550. );
  5551. return
  5552. }
  5553. if (value == null && !prop.required) {
  5554. return
  5555. }
  5556. var type = prop.type;
  5557. var valid = !type || type === true;
  5558. var expectedTypes = [];
  5559. if (type) {
  5560. if (!Array.isArray(type)) {
  5561. type = [type];
  5562. }
  5563. for (var i = 0; i < type.length && !valid; i++) {
  5564. var assertedType = assertType(value, type[i]);
  5565. expectedTypes.push(assertedType.expectedType || '');
  5566. valid = assertedType.valid;
  5567. }
  5568. }
  5569. if (!valid) {
  5570. warn(
  5571. getInvalidTypeMessage(name, value, expectedTypes),
  5572. vm
  5573. );
  5574. return
  5575. }
  5576. var validator = prop.validator;
  5577. if (validator) {
  5578. if (!validator(value)) {
  5579. warn(
  5580. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  5581. vm
  5582. );
  5583. }
  5584. }
  5585. }
  5586. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  5587. function assertType (value, type) {
  5588. var valid;
  5589. var expectedType = getType(type);
  5590. if (simpleCheckRE.test(expectedType)) {
  5591. var t = typeof value;
  5592. valid = t === expectedType.toLowerCase();
  5593. // for primitive wrapper objects
  5594. if (!valid && t === 'object') {
  5595. valid = value instanceof type;
  5596. }
  5597. } else if (expectedType === 'Object') {
  5598. valid = isPlainObject(value);
  5599. } else if (expectedType === 'Array') {
  5600. valid = Array.isArray(value);
  5601. } else {
  5602. valid = value instanceof type;
  5603. }
  5604. return {
  5605. valid: valid,
  5606. expectedType: expectedType
  5607. }
  5608. }
  5609. /**
  5610. * Use function string name to check built-in types,
  5611. * because a simple equality check will fail when running
  5612. * across different vms / iframes.
  5613. */
  5614. function getType (fn) {
  5615. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  5616. return match ? match[1] : ''
  5617. }
  5618. function isSameType (a, b) {
  5619. return getType(a) === getType(b)
  5620. }
  5621. function getTypeIndex (type, expectedTypes) {
  5622. if (!Array.isArray(expectedTypes)) {
  5623. return isSameType(expectedTypes, type) ? 0 : -1
  5624. }
  5625. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  5626. if (isSameType(expectedTypes[i], type)) {
  5627. return i
  5628. }
  5629. }
  5630. return -1
  5631. }
  5632. function getInvalidTypeMessage (name, value, expectedTypes) {
  5633. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  5634. " Expected " + (expectedTypes.map(capitalize).join(', '));
  5635. var expectedType = expectedTypes[0];
  5636. var receivedType = toRawType(value);
  5637. var expectedValue = styleValue(value, expectedType);
  5638. var receivedValue = styleValue(value, receivedType);
  5639. // check if we need to specify expected value
  5640. if (expectedTypes.length === 1 &&
  5641. isExplicable(expectedType) &&
  5642. !isBoolean(expectedType, receivedType)) {
  5643. message += " with value " + expectedValue;
  5644. }
  5645. message += ", got " + receivedType + " ";
  5646. // check if we need to specify received value
  5647. if (isExplicable(receivedType)) {
  5648. message += "with value " + receivedValue + ".";
  5649. }
  5650. return message
  5651. }
  5652. function styleValue (value, type) {
  5653. if (type === 'String') {
  5654. return ("\"" + value + "\"")
  5655. } else if (type === 'Number') {
  5656. return ("" + (Number(value)))
  5657. } else {
  5658. return ("" + value)
  5659. }
  5660. }
  5661. function isExplicable (value) {
  5662. var explicitTypes = ['string', 'number', 'boolean'];
  5663. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  5664. }
  5665. function isBoolean () {
  5666. var args = [], len = arguments.length;
  5667. while ( len-- ) args[ len ] = arguments[ len ];
  5668. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  5669. }
  5670. /* */
  5671. function handleError (err, vm, info) {
  5672. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  5673. // See: https://github.com/vuejs/vuex/issues/1505
  5674. pushTarget();
  5675. try {
  5676. if (vm) {
  5677. var cur = vm;
  5678. while ((cur = cur.$parent)) {
  5679. var hooks = cur.$options.errorCaptured;
  5680. if (hooks) {
  5681. for (var i = 0; i < hooks.length; i++) {
  5682. try {
  5683. var capture = hooks[i].call(cur, err, vm, info) === false;
  5684. if (capture) { return }
  5685. } catch (e) {
  5686. globalHandleError(e, cur, 'errorCaptured hook');
  5687. }
  5688. }
  5689. }
  5690. }
  5691. }
  5692. globalHandleError(err, vm, info);
  5693. } finally {
  5694. popTarget();
  5695. }
  5696. }
  5697. function invokeWithErrorHandling (
  5698. handler,
  5699. context,
  5700. args,
  5701. vm,
  5702. info
  5703. ) {
  5704. var res;
  5705. try {
  5706. res = args ? handler.apply(context, args) : handler.call(context);
  5707. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5708. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5709. // issue #9511
  5710. // avoid catch triggering multiple times when nested calls
  5711. res._handled = true;
  5712. }
  5713. } catch (e) {
  5714. handleError(e, vm, info);
  5715. }
  5716. return res
  5717. }
  5718. function globalHandleError (err, vm, info) {
  5719. if (config.errorHandler) {
  5720. try {
  5721. return config.errorHandler.call(null, err, vm, info)
  5722. } catch (e) {
  5723. // if the user intentionally throws the original error in the handler,
  5724. // do not log it twice
  5725. if (e !== err) {
  5726. logError(e, null, 'config.errorHandler');
  5727. }
  5728. }
  5729. }
  5730. logError(err, vm, info);
  5731. }
  5732. function logError (err, vm, info) {
  5733. if (true) {
  5734. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5735. }
  5736. /* istanbul ignore else */
  5737. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5738. console.error(err);
  5739. } else {
  5740. throw err
  5741. }
  5742. }
  5743. /* */
  5744. var callbacks = [];
  5745. var pending = false;
  5746. function flushCallbacks () {
  5747. pending = false;
  5748. var copies = callbacks.slice(0);
  5749. callbacks.length = 0;
  5750. for (var i = 0; i < copies.length; i++) {
  5751. copies[i]();
  5752. }
  5753. }
  5754. // Here we have async deferring wrappers using microtasks.
  5755. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5756. // However, it has subtle problems when state is changed right before repaint
  5757. // (e.g. #6813, out-in transitions).
  5758. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5759. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5760. // So we now use microtasks everywhere, again.
  5761. // A major drawback of this tradeoff is that there are some scenarios
  5762. // where microtasks have too high a priority and fire in between supposedly
  5763. // sequential events (e.g. #4521, #6690, which have workarounds)
  5764. // or even between bubbling of the same event (#6566).
  5765. var timerFunc;
  5766. // The nextTick behavior leverages the microtask queue, which can be accessed
  5767. // via either native Promise.then or MutationObserver.
  5768. // MutationObserver has wider support, however it is seriously bugged in
  5769. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5770. // completely stops working after triggering a few times... so, if native
  5771. // Promise is available, we will use it:
  5772. /* istanbul ignore next, $flow-disable-line */
  5773. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5774. var p = Promise.resolve();
  5775. timerFunc = function () {
  5776. p.then(flushCallbacks);
  5777. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5778. // it can get stuck in a weird state where callbacks are pushed into the
  5779. // microtask queue but the queue isn't being flushed, until the browser
  5780. // needs to do some other work, e.g. handle a timer. Therefore we can
  5781. // "force" the microtask queue to be flushed by adding an empty timer.
  5782. if (isIOS) { setTimeout(noop); }
  5783. };
  5784. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5785. isNative(MutationObserver) ||
  5786. // PhantomJS and iOS 7.x
  5787. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5788. )) {
  5789. // Use MutationObserver where native Promise is not available,
  5790. // e.g. PhantomJS, iOS7, Android 4.4
  5791. // (#6466 MutationObserver is unreliable in IE11)
  5792. var counter = 1;
  5793. var observer = new MutationObserver(flushCallbacks);
  5794. var textNode = document.createTextNode(String(counter));
  5795. observer.observe(textNode, {
  5796. characterData: true
  5797. });
  5798. timerFunc = function () {
  5799. counter = (counter + 1) % 2;
  5800. textNode.data = String(counter);
  5801. };
  5802. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5803. // Fallback to setImmediate.
  5804. // Technically it leverages the (macro) task queue,
  5805. // but it is still a better choice than setTimeout.
  5806. timerFunc = function () {
  5807. setImmediate(flushCallbacks);
  5808. };
  5809. } else {
  5810. // Fallback to setTimeout.
  5811. timerFunc = function () {
  5812. setTimeout(flushCallbacks, 0);
  5813. };
  5814. }
  5815. function nextTick (cb, ctx) {
  5816. var _resolve;
  5817. callbacks.push(function () {
  5818. if (cb) {
  5819. try {
  5820. cb.call(ctx);
  5821. } catch (e) {
  5822. handleError(e, ctx, 'nextTick');
  5823. }
  5824. } else if (_resolve) {
  5825. _resolve(ctx);
  5826. }
  5827. });
  5828. if (!pending) {
  5829. pending = true;
  5830. timerFunc();
  5831. }
  5832. // $flow-disable-line
  5833. if (!cb && typeof Promise !== 'undefined') {
  5834. return new Promise(function (resolve) {
  5835. _resolve = resolve;
  5836. })
  5837. }
  5838. }
  5839. /* */
  5840. /* not type checking this file because flow doesn't play well with Proxy */
  5841. var initProxy;
  5842. if (true) {
  5843. var allowedGlobals = makeMap(
  5844. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5845. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5846. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5847. 'require' // for Webpack/Browserify
  5848. );
  5849. var warnNonPresent = function (target, key) {
  5850. warn(
  5851. "Property or method \"" + key + "\" is not defined on the instance but " +
  5852. 'referenced during render. Make sure that this property is reactive, ' +
  5853. 'either in the data option, or for class-based components, by ' +
  5854. 'initializing the property. ' +
  5855. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5856. target
  5857. );
  5858. };
  5859. var warnReservedPrefix = function (target, key) {
  5860. warn(
  5861. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5862. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5863. 'prevent conflicts with Vue internals. ' +
  5864. 'See: https://vuejs.org/v2/api/#data',
  5865. target
  5866. );
  5867. };
  5868. var hasProxy =
  5869. typeof Proxy !== 'undefined' && isNative(Proxy);
  5870. if (hasProxy) {
  5871. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5872. config.keyCodes = new Proxy(config.keyCodes, {
  5873. set: function set (target, key, value) {
  5874. if (isBuiltInModifier(key)) {
  5875. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5876. return false
  5877. } else {
  5878. target[key] = value;
  5879. return true
  5880. }
  5881. }
  5882. });
  5883. }
  5884. var hasHandler = {
  5885. has: function has (target, key) {
  5886. var has = key in target;
  5887. var isAllowed = allowedGlobals(key) ||
  5888. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5889. if (!has && !isAllowed) {
  5890. if (key in target.$data) { warnReservedPrefix(target, key); }
  5891. else { warnNonPresent(target, key); }
  5892. }
  5893. return has || !isAllowed
  5894. }
  5895. };
  5896. var getHandler = {
  5897. get: function get (target, key) {
  5898. if (typeof key === 'string' && !(key in target)) {
  5899. if (key in target.$data) { warnReservedPrefix(target, key); }
  5900. else { warnNonPresent(target, key); }
  5901. }
  5902. return target[key]
  5903. }
  5904. };
  5905. initProxy = function initProxy (vm) {
  5906. if (hasProxy) {
  5907. // determine which proxy handler to use
  5908. var options = vm.$options;
  5909. var handlers = options.render && options.render._withStripped
  5910. ? getHandler
  5911. : hasHandler;
  5912. vm._renderProxy = new Proxy(vm, handlers);
  5913. } else {
  5914. vm._renderProxy = vm;
  5915. }
  5916. };
  5917. }
  5918. /* */
  5919. var seenObjects = new _Set();
  5920. /**
  5921. * Recursively traverse an object to evoke all converted
  5922. * getters, so that every nested property inside the object
  5923. * is collected as a "deep" dependency.
  5924. */
  5925. function traverse (val) {
  5926. _traverse(val, seenObjects);
  5927. seenObjects.clear();
  5928. }
  5929. function _traverse (val, seen) {
  5930. var i, keys;
  5931. var isA = Array.isArray(val);
  5932. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5933. return
  5934. }
  5935. if (val.__ob__) {
  5936. var depId = val.__ob__.dep.id;
  5937. if (seen.has(depId)) {
  5938. return
  5939. }
  5940. seen.add(depId);
  5941. }
  5942. if (isA) {
  5943. i = val.length;
  5944. while (i--) { _traverse(val[i], seen); }
  5945. } else {
  5946. keys = Object.keys(val);
  5947. i = keys.length;
  5948. while (i--) { _traverse(val[keys[i]], seen); }
  5949. }
  5950. }
  5951. var mark;
  5952. var measure;
  5953. if (true) {
  5954. var perf = inBrowser && window.performance;
  5955. /* istanbul ignore if */
  5956. if (
  5957. perf &&
  5958. perf.mark &&
  5959. perf.measure &&
  5960. perf.clearMarks &&
  5961. perf.clearMeasures
  5962. ) {
  5963. mark = function (tag) { return perf.mark(tag); };
  5964. measure = function (name, startTag, endTag) {
  5965. perf.measure(name, startTag, endTag);
  5966. perf.clearMarks(startTag);
  5967. perf.clearMarks(endTag);
  5968. // perf.clearMeasures(name)
  5969. };
  5970. }
  5971. }
  5972. /* */
  5973. var normalizeEvent = cached(function (name) {
  5974. var passive = name.charAt(0) === '&';
  5975. name = passive ? name.slice(1) : name;
  5976. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5977. name = once$$1 ? name.slice(1) : name;
  5978. var capture = name.charAt(0) === '!';
  5979. name = capture ? name.slice(1) : name;
  5980. return {
  5981. name: name,
  5982. once: once$$1,
  5983. capture: capture,
  5984. passive: passive
  5985. }
  5986. });
  5987. function createFnInvoker (fns, vm) {
  5988. function invoker () {
  5989. var arguments$1 = arguments;
  5990. var fns = invoker.fns;
  5991. if (Array.isArray(fns)) {
  5992. var cloned = fns.slice();
  5993. for (var i = 0; i < cloned.length; i++) {
  5994. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5995. }
  5996. } else {
  5997. // return handler return value for single handlers
  5998. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5999. }
  6000. }
  6001. invoker.fns = fns;
  6002. return invoker
  6003. }
  6004. function updateListeners (
  6005. on,
  6006. oldOn,
  6007. add,
  6008. remove$$1,
  6009. createOnceHandler,
  6010. vm
  6011. ) {
  6012. var name, def$$1, cur, old, event;
  6013. for (name in on) {
  6014. def$$1 = cur = on[name];
  6015. old = oldOn[name];
  6016. event = normalizeEvent(name);
  6017. if (isUndef(cur)) {
  6018. true && warn(
  6019. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  6020. vm
  6021. );
  6022. } else if (isUndef(old)) {
  6023. if (isUndef(cur.fns)) {
  6024. cur = on[name] = createFnInvoker(cur, vm);
  6025. }
  6026. if (isTrue(event.once)) {
  6027. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  6028. }
  6029. add(event.name, cur, event.capture, event.passive, event.params);
  6030. } else if (cur !== old) {
  6031. old.fns = cur;
  6032. on[name] = old;
  6033. }
  6034. }
  6035. for (name in oldOn) {
  6036. if (isUndef(on[name])) {
  6037. event = normalizeEvent(name);
  6038. remove$$1(event.name, oldOn[name], event.capture);
  6039. }
  6040. }
  6041. }
  6042. /* */
  6043. /* */
  6044. // fixed by xxxxxx (mp properties)
  6045. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  6046. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  6047. if (isUndef(propOptions)) {
  6048. return res
  6049. }
  6050. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  6051. var attrs = data.attrs;
  6052. var props = data.props;
  6053. if (isDef(attrs) || isDef(props)) {
  6054. for (var key in propOptions) {
  6055. var altKey = hyphenate(key);
  6056. var result = checkProp(res, props, key, altKey, true) ||
  6057. checkProp(res, attrs, key, altKey, false);
  6058. // externalClass
  6059. if (
  6060. result &&
  6061. res[key] &&
  6062. externalClasses.indexOf(altKey) !== -1 &&
  6063. context[camelize(res[key])]
  6064. ) {
  6065. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  6066. res[key] = context[camelize(res[key])];
  6067. }
  6068. }
  6069. }
  6070. return res
  6071. }
  6072. function extractPropsFromVNodeData (
  6073. data,
  6074. Ctor,
  6075. tag,
  6076. context// fixed by xxxxxx
  6077. ) {
  6078. // we are only extracting raw values here.
  6079. // validation and default values are handled in the child
  6080. // component itself.
  6081. var propOptions = Ctor.options.props;
  6082. if (isUndef(propOptions)) {
  6083. // fixed by xxxxxx
  6084. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  6085. }
  6086. var res = {};
  6087. var attrs = data.attrs;
  6088. var props = data.props;
  6089. if (isDef(attrs) || isDef(props)) {
  6090. for (var key in propOptions) {
  6091. var altKey = hyphenate(key);
  6092. if (true) {
  6093. var keyInLowerCase = key.toLowerCase();
  6094. if (
  6095. key !== keyInLowerCase &&
  6096. attrs && hasOwn(attrs, keyInLowerCase)
  6097. ) {
  6098. tip(
  6099. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  6100. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  6101. " \"" + key + "\". " +
  6102. "Note that HTML attributes are case-insensitive and camelCased " +
  6103. "props need to use their kebab-case equivalents when using in-DOM " +
  6104. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  6105. );
  6106. }
  6107. }
  6108. checkProp(res, props, key, altKey, true) ||
  6109. checkProp(res, attrs, key, altKey, false);
  6110. }
  6111. }
  6112. // fixed by xxxxxx
  6113. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  6114. }
  6115. function checkProp (
  6116. res,
  6117. hash,
  6118. key,
  6119. altKey,
  6120. preserve
  6121. ) {
  6122. if (isDef(hash)) {
  6123. if (hasOwn(hash, key)) {
  6124. res[key] = hash[key];
  6125. if (!preserve) {
  6126. delete hash[key];
  6127. }
  6128. return true
  6129. } else if (hasOwn(hash, altKey)) {
  6130. res[key] = hash[altKey];
  6131. if (!preserve) {
  6132. delete hash[altKey];
  6133. }
  6134. return true
  6135. }
  6136. }
  6137. return false
  6138. }
  6139. /* */
  6140. // The template compiler attempts to minimize the need for normalization by
  6141. // statically analyzing the template at compile time.
  6142. //
  6143. // For plain HTML markup, normalization can be completely skipped because the
  6144. // generated render function is guaranteed to return Array<VNode>. There are
  6145. // two cases where extra normalization is needed:
  6146. // 1. When the children contains components - because a functional component
  6147. // may return an Array instead of a single root. In this case, just a simple
  6148. // normalization is needed - if any child is an Array, we flatten the whole
  6149. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  6150. // because functional components already normalize their own children.
  6151. function simpleNormalizeChildren (children) {
  6152. for (var i = 0; i < children.length; i++) {
  6153. if (Array.isArray(children[i])) {
  6154. return Array.prototype.concat.apply([], children)
  6155. }
  6156. }
  6157. return children
  6158. }
  6159. // 2. When the children contains constructs that always generated nested Arrays,
  6160. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  6161. // with hand-written render functions / JSX. In such cases a full normalization
  6162. // is needed to cater to all possible types of children values.
  6163. function normalizeChildren (children) {
  6164. return isPrimitive(children)
  6165. ? [createTextVNode(children)]
  6166. : Array.isArray(children)
  6167. ? normalizeArrayChildren(children)
  6168. : undefined
  6169. }
  6170. function isTextNode (node) {
  6171. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  6172. }
  6173. function normalizeArrayChildren (children, nestedIndex) {
  6174. var res = [];
  6175. var i, c, lastIndex, last;
  6176. for (i = 0; i < children.length; i++) {
  6177. c = children[i];
  6178. if (isUndef(c) || typeof c === 'boolean') { continue }
  6179. lastIndex = res.length - 1;
  6180. last = res[lastIndex];
  6181. // nested
  6182. if (Array.isArray(c)) {
  6183. if (c.length > 0) {
  6184. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  6185. // merge adjacent text nodes
  6186. if (isTextNode(c[0]) && isTextNode(last)) {
  6187. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  6188. c.shift();
  6189. }
  6190. res.push.apply(res, c);
  6191. }
  6192. } else if (isPrimitive(c)) {
  6193. if (isTextNode(last)) {
  6194. // merge adjacent text nodes
  6195. // this is necessary for SSR hydration because text nodes are
  6196. // essentially merged when rendered to HTML strings
  6197. res[lastIndex] = createTextVNode(last.text + c);
  6198. } else if (c !== '') {
  6199. // convert primitive to vnode
  6200. res.push(createTextVNode(c));
  6201. }
  6202. } else {
  6203. if (isTextNode(c) && isTextNode(last)) {
  6204. // merge adjacent text nodes
  6205. res[lastIndex] = createTextVNode(last.text + c.text);
  6206. } else {
  6207. // default key for nested array children (likely generated by v-for)
  6208. if (isTrue(children._isVList) &&
  6209. isDef(c.tag) &&
  6210. isUndef(c.key) &&
  6211. isDef(nestedIndex)) {
  6212. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  6213. }
  6214. res.push(c);
  6215. }
  6216. }
  6217. }
  6218. return res
  6219. }
  6220. /* */
  6221. function initProvide (vm) {
  6222. var provide = vm.$options.provide;
  6223. if (provide) {
  6224. vm._provided = typeof provide === 'function'
  6225. ? provide.call(vm)
  6226. : provide;
  6227. }
  6228. }
  6229. function initInjections (vm) {
  6230. var result = resolveInject(vm.$options.inject, vm);
  6231. if (result) {
  6232. toggleObserving(false);
  6233. Object.keys(result).forEach(function (key) {
  6234. /* istanbul ignore else */
  6235. if (true) {
  6236. defineReactive$$1(vm, key, result[key], function () {
  6237. warn(
  6238. "Avoid mutating an injected value directly since the changes will be " +
  6239. "overwritten whenever the provided component re-renders. " +
  6240. "injection being mutated: \"" + key + "\"",
  6241. vm
  6242. );
  6243. });
  6244. } else {}
  6245. });
  6246. toggleObserving(true);
  6247. }
  6248. }
  6249. function resolveInject (inject, vm) {
  6250. if (inject) {
  6251. // inject is :any because flow is not smart enough to figure out cached
  6252. var result = Object.create(null);
  6253. var keys = hasSymbol
  6254. ? Reflect.ownKeys(inject)
  6255. : Object.keys(inject);
  6256. for (var i = 0; i < keys.length; i++) {
  6257. var key = keys[i];
  6258. // #6574 in case the inject object is observed...
  6259. if (key === '__ob__') { continue }
  6260. var provideKey = inject[key].from;
  6261. var source = vm;
  6262. while (source) {
  6263. if (source._provided && hasOwn(source._provided, provideKey)) {
  6264. result[key] = source._provided[provideKey];
  6265. break
  6266. }
  6267. source = source.$parent;
  6268. }
  6269. if (!source) {
  6270. if ('default' in inject[key]) {
  6271. var provideDefault = inject[key].default;
  6272. result[key] = typeof provideDefault === 'function'
  6273. ? provideDefault.call(vm)
  6274. : provideDefault;
  6275. } else if (true) {
  6276. warn(("Injection \"" + key + "\" not found"), vm);
  6277. }
  6278. }
  6279. }
  6280. return result
  6281. }
  6282. }
  6283. /* */
  6284. /**
  6285. * Runtime helper for resolving raw children VNodes into a slot object.
  6286. */
  6287. function resolveSlots (
  6288. children,
  6289. context
  6290. ) {
  6291. if (!children || !children.length) {
  6292. return {}
  6293. }
  6294. var slots = {};
  6295. for (var i = 0, l = children.length; i < l; i++) {
  6296. var child = children[i];
  6297. var data = child.data;
  6298. // remove slot attribute if the node is resolved as a Vue slot node
  6299. if (data && data.attrs && data.attrs.slot) {
  6300. delete data.attrs.slot;
  6301. }
  6302. // named slots should only be respected if the vnode was rendered in the
  6303. // same context.
  6304. if ((child.context === context || child.fnContext === context) &&
  6305. data && data.slot != null
  6306. ) {
  6307. var name = data.slot;
  6308. var slot = (slots[name] || (slots[name] = []));
  6309. if (child.tag === 'template') {
  6310. slot.push.apply(slot, child.children || []);
  6311. } else {
  6312. slot.push(child);
  6313. }
  6314. } else {
  6315. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  6316. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  6317. (slots['page'] || (slots['page'] = [])).push(child);
  6318. }else{
  6319. (slots.default || (slots.default = [])).push(child);
  6320. }
  6321. }
  6322. }
  6323. // ignore slots that contains only whitespace
  6324. for (var name$1 in slots) {
  6325. if (slots[name$1].every(isWhitespace)) {
  6326. delete slots[name$1];
  6327. }
  6328. }
  6329. return slots
  6330. }
  6331. function isWhitespace (node) {
  6332. return (node.isComment && !node.asyncFactory) || node.text === ' '
  6333. }
  6334. /* */
  6335. function normalizeScopedSlots (
  6336. slots,
  6337. normalSlots,
  6338. prevSlots
  6339. ) {
  6340. var res;
  6341. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  6342. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  6343. var key = slots && slots.$key;
  6344. if (!slots) {
  6345. res = {};
  6346. } else if (slots._normalized) {
  6347. // fast path 1: child component re-render only, parent did not change
  6348. return slots._normalized
  6349. } else if (
  6350. isStable &&
  6351. prevSlots &&
  6352. prevSlots !== emptyObject &&
  6353. key === prevSlots.$key &&
  6354. !hasNormalSlots &&
  6355. !prevSlots.$hasNormal
  6356. ) {
  6357. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  6358. // only need to normalize once
  6359. return prevSlots
  6360. } else {
  6361. res = {};
  6362. for (var key$1 in slots) {
  6363. if (slots[key$1] && key$1[0] !== '$') {
  6364. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  6365. }
  6366. }
  6367. }
  6368. // expose normal slots on scopedSlots
  6369. for (var key$2 in normalSlots) {
  6370. if (!(key$2 in res)) {
  6371. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  6372. }
  6373. }
  6374. // avoriaz seems to mock a non-extensible $scopedSlots object
  6375. // and when that is passed down this would cause an error
  6376. if (slots && Object.isExtensible(slots)) {
  6377. (slots)._normalized = res;
  6378. }
  6379. def(res, '$stable', isStable);
  6380. def(res, '$key', key);
  6381. def(res, '$hasNormal', hasNormalSlots);
  6382. return res
  6383. }
  6384. function normalizeScopedSlot(normalSlots, key, fn) {
  6385. var normalized = function () {
  6386. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  6387. res = res && typeof res === 'object' && !Array.isArray(res)
  6388. ? [res] // single vnode
  6389. : normalizeChildren(res);
  6390. return res && (
  6391. res.length === 0 ||
  6392. (res.length === 1 && res[0].isComment) // #9658
  6393. ) ? undefined
  6394. : res
  6395. };
  6396. // this is a slot using the new v-slot syntax without scope. although it is
  6397. // compiled as a scoped slot, render fn users would expect it to be present
  6398. // on this.$slots because the usage is semantically a normal slot.
  6399. if (fn.proxy) {
  6400. Object.defineProperty(normalSlots, key, {
  6401. get: normalized,
  6402. enumerable: true,
  6403. configurable: true
  6404. });
  6405. }
  6406. return normalized
  6407. }
  6408. function proxyNormalSlot(slots, key) {
  6409. return function () { return slots[key]; }
  6410. }
  6411. /* */
  6412. /**
  6413. * Runtime helper for rendering v-for lists.
  6414. */
  6415. function renderList (
  6416. val,
  6417. render
  6418. ) {
  6419. var ret, i, l, keys, key;
  6420. if (Array.isArray(val) || typeof val === 'string') {
  6421. ret = new Array(val.length);
  6422. for (i = 0, l = val.length; i < l; i++) {
  6423. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  6424. }
  6425. } else if (typeof val === 'number') {
  6426. ret = new Array(val);
  6427. for (i = 0; i < val; i++) {
  6428. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  6429. }
  6430. } else if (isObject(val)) {
  6431. if (hasSymbol && val[Symbol.iterator]) {
  6432. ret = [];
  6433. var iterator = val[Symbol.iterator]();
  6434. var result = iterator.next();
  6435. while (!result.done) {
  6436. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  6437. result = iterator.next();
  6438. }
  6439. } else {
  6440. keys = Object.keys(val);
  6441. ret = new Array(keys.length);
  6442. for (i = 0, l = keys.length; i < l; i++) {
  6443. key = keys[i];
  6444. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  6445. }
  6446. }
  6447. }
  6448. if (!isDef(ret)) {
  6449. ret = [];
  6450. }
  6451. (ret)._isVList = true;
  6452. return ret
  6453. }
  6454. /* */
  6455. /**
  6456. * Runtime helper for rendering <slot>
  6457. */
  6458. function renderSlot (
  6459. name,
  6460. fallback,
  6461. props,
  6462. bindObject
  6463. ) {
  6464. var scopedSlotFn = this.$scopedSlots[name];
  6465. var nodes;
  6466. if (scopedSlotFn) { // scoped slot
  6467. props = props || {};
  6468. if (bindObject) {
  6469. if ( true && !isObject(bindObject)) {
  6470. warn(
  6471. 'slot v-bind without argument expects an Object',
  6472. this
  6473. );
  6474. }
  6475. props = extend(extend({}, bindObject), props);
  6476. }
  6477. // fixed by xxxxxx app-plus scopedSlot
  6478. nodes = scopedSlotFn(props, this, props._i) || fallback;
  6479. } else {
  6480. nodes = this.$slots[name] || fallback;
  6481. }
  6482. var target = props && props.slot;
  6483. if (target) {
  6484. return this.$createElement('template', { slot: target }, nodes)
  6485. } else {
  6486. return nodes
  6487. }
  6488. }
  6489. /* */
  6490. /**
  6491. * Runtime helper for resolving filters
  6492. */
  6493. function resolveFilter (id) {
  6494. return resolveAsset(this.$options, 'filters', id, true) || identity
  6495. }
  6496. /* */
  6497. function isKeyNotMatch (expect, actual) {
  6498. if (Array.isArray(expect)) {
  6499. return expect.indexOf(actual) === -1
  6500. } else {
  6501. return expect !== actual
  6502. }
  6503. }
  6504. /**
  6505. * Runtime helper for checking keyCodes from config.
  6506. * exposed as Vue.prototype._k
  6507. * passing in eventKeyName as last argument separately for backwards compat
  6508. */
  6509. function checkKeyCodes (
  6510. eventKeyCode,
  6511. key,
  6512. builtInKeyCode,
  6513. eventKeyName,
  6514. builtInKeyName
  6515. ) {
  6516. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  6517. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  6518. return isKeyNotMatch(builtInKeyName, eventKeyName)
  6519. } else if (mappedKeyCode) {
  6520. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  6521. } else if (eventKeyName) {
  6522. return hyphenate(eventKeyName) !== key
  6523. }
  6524. }
  6525. /* */
  6526. /**
  6527. * Runtime helper for merging v-bind="object" into a VNode's data.
  6528. */
  6529. function bindObjectProps (
  6530. data,
  6531. tag,
  6532. value,
  6533. asProp,
  6534. isSync
  6535. ) {
  6536. if (value) {
  6537. if (!isObject(value)) {
  6538. true && warn(
  6539. 'v-bind without argument expects an Object or Array value',
  6540. this
  6541. );
  6542. } else {
  6543. if (Array.isArray(value)) {
  6544. value = toObject(value);
  6545. }
  6546. var hash;
  6547. var loop = function ( key ) {
  6548. if (
  6549. key === 'class' ||
  6550. key === 'style' ||
  6551. isReservedAttribute(key)
  6552. ) {
  6553. hash = data;
  6554. } else {
  6555. var type = data.attrs && data.attrs.type;
  6556. hash = asProp || config.mustUseProp(tag, type, key)
  6557. ? data.domProps || (data.domProps = {})
  6558. : data.attrs || (data.attrs = {});
  6559. }
  6560. var camelizedKey = camelize(key);
  6561. var hyphenatedKey = hyphenate(key);
  6562. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  6563. hash[key] = value[key];
  6564. if (isSync) {
  6565. var on = data.on || (data.on = {});
  6566. on[("update:" + key)] = function ($event) {
  6567. value[key] = $event;
  6568. };
  6569. }
  6570. }
  6571. };
  6572. for (var key in value) loop( key );
  6573. }
  6574. }
  6575. return data
  6576. }
  6577. /* */
  6578. /**
  6579. * Runtime helper for rendering static trees.
  6580. */
  6581. function renderStatic (
  6582. index,
  6583. isInFor
  6584. ) {
  6585. var cached = this._staticTrees || (this._staticTrees = []);
  6586. var tree = cached[index];
  6587. // if has already-rendered static tree and not inside v-for,
  6588. // we can reuse the same tree.
  6589. if (tree && !isInFor) {
  6590. return tree
  6591. }
  6592. // otherwise, render a fresh tree.
  6593. tree = cached[index] = this.$options.staticRenderFns[index].call(
  6594. this._renderProxy,
  6595. null,
  6596. this // for render fns generated for functional component templates
  6597. );
  6598. markStatic(tree, ("__static__" + index), false);
  6599. return tree
  6600. }
  6601. /**
  6602. * Runtime helper for v-once.
  6603. * Effectively it means marking the node as static with a unique key.
  6604. */
  6605. function markOnce (
  6606. tree,
  6607. index,
  6608. key
  6609. ) {
  6610. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  6611. return tree
  6612. }
  6613. function markStatic (
  6614. tree,
  6615. key,
  6616. isOnce
  6617. ) {
  6618. if (Array.isArray(tree)) {
  6619. for (var i = 0; i < tree.length; i++) {
  6620. if (tree[i] && typeof tree[i] !== 'string') {
  6621. markStaticNode(tree[i], (key + "_" + i), isOnce);
  6622. }
  6623. }
  6624. } else {
  6625. markStaticNode(tree, key, isOnce);
  6626. }
  6627. }
  6628. function markStaticNode (node, key, isOnce) {
  6629. node.isStatic = true;
  6630. node.key = key;
  6631. node.isOnce = isOnce;
  6632. }
  6633. /* */
  6634. function bindObjectListeners (data, value) {
  6635. if (value) {
  6636. if (!isPlainObject(value)) {
  6637. true && warn(
  6638. 'v-on without argument expects an Object value',
  6639. this
  6640. );
  6641. } else {
  6642. var on = data.on = data.on ? extend({}, data.on) : {};
  6643. for (var key in value) {
  6644. var existing = on[key];
  6645. var ours = value[key];
  6646. on[key] = existing ? [].concat(existing, ours) : ours;
  6647. }
  6648. }
  6649. }
  6650. return data
  6651. }
  6652. /* */
  6653. function resolveScopedSlots (
  6654. fns, // see flow/vnode
  6655. res,
  6656. // the following are added in 2.6
  6657. hasDynamicKeys,
  6658. contentHashKey
  6659. ) {
  6660. res = res || { $stable: !hasDynamicKeys };
  6661. for (var i = 0; i < fns.length; i++) {
  6662. var slot = fns[i];
  6663. if (Array.isArray(slot)) {
  6664. resolveScopedSlots(slot, res, hasDynamicKeys);
  6665. } else if (slot) {
  6666. // marker for reverse proxying v-slot without scope on this.$slots
  6667. if (slot.proxy) {
  6668. slot.fn.proxy = true;
  6669. }
  6670. res[slot.key] = slot.fn;
  6671. }
  6672. }
  6673. if (contentHashKey) {
  6674. (res).$key = contentHashKey;
  6675. }
  6676. return res
  6677. }
  6678. /* */
  6679. function bindDynamicKeys (baseObj, values) {
  6680. for (var i = 0; i < values.length; i += 2) {
  6681. var key = values[i];
  6682. if (typeof key === 'string' && key) {
  6683. baseObj[values[i]] = values[i + 1];
  6684. } else if ( true && key !== '' && key !== null) {
  6685. // null is a special value for explicitly removing a binding
  6686. warn(
  6687. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  6688. this
  6689. );
  6690. }
  6691. }
  6692. return baseObj
  6693. }
  6694. // helper to dynamically append modifier runtime markers to event names.
  6695. // ensure only append when value is already string, otherwise it will be cast
  6696. // to string and cause the type check to miss.
  6697. function prependModifier (value, symbol) {
  6698. return typeof value === 'string' ? symbol + value : value
  6699. }
  6700. /* */
  6701. function installRenderHelpers (target) {
  6702. target._o = markOnce;
  6703. target._n = toNumber;
  6704. target._s = toString;
  6705. target._l = renderList;
  6706. target._t = renderSlot;
  6707. target._q = looseEqual;
  6708. target._i = looseIndexOf;
  6709. target._m = renderStatic;
  6710. target._f = resolveFilter;
  6711. target._k = checkKeyCodes;
  6712. target._b = bindObjectProps;
  6713. target._v = createTextVNode;
  6714. target._e = createEmptyVNode;
  6715. target._u = resolveScopedSlots;
  6716. target._g = bindObjectListeners;
  6717. target._d = bindDynamicKeys;
  6718. target._p = prependModifier;
  6719. }
  6720. /* */
  6721. function FunctionalRenderContext (
  6722. data,
  6723. props,
  6724. children,
  6725. parent,
  6726. Ctor
  6727. ) {
  6728. var this$1 = this;
  6729. var options = Ctor.options;
  6730. // ensure the createElement function in functional components
  6731. // gets a unique context - this is necessary for correct named slot check
  6732. var contextVm;
  6733. if (hasOwn(parent, '_uid')) {
  6734. contextVm = Object.create(parent);
  6735. // $flow-disable-line
  6736. contextVm._original = parent;
  6737. } else {
  6738. // the context vm passed in is a functional context as well.
  6739. // in this case we want to make sure we are able to get a hold to the
  6740. // real context instance.
  6741. contextVm = parent;
  6742. // $flow-disable-line
  6743. parent = parent._original;
  6744. }
  6745. var isCompiled = isTrue(options._compiled);
  6746. var needNormalization = !isCompiled;
  6747. this.data = data;
  6748. this.props = props;
  6749. this.children = children;
  6750. this.parent = parent;
  6751. this.listeners = data.on || emptyObject;
  6752. this.injections = resolveInject(options.inject, parent);
  6753. this.slots = function () {
  6754. if (!this$1.$slots) {
  6755. normalizeScopedSlots(
  6756. data.scopedSlots,
  6757. this$1.$slots = resolveSlots(children, parent)
  6758. );
  6759. }
  6760. return this$1.$slots
  6761. };
  6762. Object.defineProperty(this, 'scopedSlots', ({
  6763. enumerable: true,
  6764. get: function get () {
  6765. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6766. }
  6767. }));
  6768. // support for compiled functional template
  6769. if (isCompiled) {
  6770. // exposing $options for renderStatic()
  6771. this.$options = options;
  6772. // pre-resolve slots for renderSlot()
  6773. this.$slots = this.slots();
  6774. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6775. }
  6776. if (options._scopeId) {
  6777. this._c = function (a, b, c, d) {
  6778. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6779. if (vnode && !Array.isArray(vnode)) {
  6780. vnode.fnScopeId = options._scopeId;
  6781. vnode.fnContext = parent;
  6782. }
  6783. return vnode
  6784. };
  6785. } else {
  6786. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6787. }
  6788. }
  6789. installRenderHelpers(FunctionalRenderContext.prototype);
  6790. function createFunctionalComponent (
  6791. Ctor,
  6792. propsData,
  6793. data,
  6794. contextVm,
  6795. children
  6796. ) {
  6797. var options = Ctor.options;
  6798. var props = {};
  6799. var propOptions = options.props;
  6800. if (isDef(propOptions)) {
  6801. for (var key in propOptions) {
  6802. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6803. }
  6804. } else {
  6805. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6806. if (isDef(data.props)) { mergeProps(props, data.props); }
  6807. }
  6808. var renderContext = new FunctionalRenderContext(
  6809. data,
  6810. props,
  6811. children,
  6812. contextVm,
  6813. Ctor
  6814. );
  6815. var vnode = options.render.call(null, renderContext._c, renderContext);
  6816. if (vnode instanceof VNode) {
  6817. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6818. } else if (Array.isArray(vnode)) {
  6819. var vnodes = normalizeChildren(vnode) || [];
  6820. var res = new Array(vnodes.length);
  6821. for (var i = 0; i < vnodes.length; i++) {
  6822. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6823. }
  6824. return res
  6825. }
  6826. }
  6827. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6828. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6829. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6830. // that should not be matched to match.
  6831. var clone = cloneVNode(vnode);
  6832. clone.fnContext = contextVm;
  6833. clone.fnOptions = options;
  6834. if (true) {
  6835. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6836. }
  6837. if (data.slot) {
  6838. (clone.data || (clone.data = {})).slot = data.slot;
  6839. }
  6840. return clone
  6841. }
  6842. function mergeProps (to, from) {
  6843. for (var key in from) {
  6844. to[camelize(key)] = from[key];
  6845. }
  6846. }
  6847. /* */
  6848. /* */
  6849. /* */
  6850. /* */
  6851. // inline hooks to be invoked on component VNodes during patch
  6852. var componentVNodeHooks = {
  6853. init: function init (vnode, hydrating) {
  6854. if (
  6855. vnode.componentInstance &&
  6856. !vnode.componentInstance._isDestroyed &&
  6857. vnode.data.keepAlive
  6858. ) {
  6859. // kept-alive components, treat as a patch
  6860. var mountedNode = vnode; // work around flow
  6861. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6862. } else {
  6863. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6864. vnode,
  6865. activeInstance
  6866. );
  6867. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6868. }
  6869. },
  6870. prepatch: function prepatch (oldVnode, vnode) {
  6871. var options = vnode.componentOptions;
  6872. var child = vnode.componentInstance = oldVnode.componentInstance;
  6873. updateChildComponent(
  6874. child,
  6875. options.propsData, // updated props
  6876. options.listeners, // updated listeners
  6877. vnode, // new parent vnode
  6878. options.children // new children
  6879. );
  6880. },
  6881. insert: function insert (vnode) {
  6882. var context = vnode.context;
  6883. var componentInstance = vnode.componentInstance;
  6884. if (!componentInstance._isMounted) {
  6885. callHook(componentInstance, 'onServiceCreated');
  6886. callHook(componentInstance, 'onServiceAttached');
  6887. componentInstance._isMounted = true;
  6888. callHook(componentInstance, 'mounted');
  6889. }
  6890. if (vnode.data.keepAlive) {
  6891. if (context._isMounted) {
  6892. // vue-router#1212
  6893. // During updates, a kept-alive component's child components may
  6894. // change, so directly walking the tree here may call activated hooks
  6895. // on incorrect children. Instead we push them into a queue which will
  6896. // be processed after the whole patch process ended.
  6897. queueActivatedComponent(componentInstance);
  6898. } else {
  6899. activateChildComponent(componentInstance, true /* direct */);
  6900. }
  6901. }
  6902. },
  6903. destroy: function destroy (vnode) {
  6904. var componentInstance = vnode.componentInstance;
  6905. if (!componentInstance._isDestroyed) {
  6906. if (!vnode.data.keepAlive) {
  6907. componentInstance.$destroy();
  6908. } else {
  6909. deactivateChildComponent(componentInstance, true /* direct */);
  6910. }
  6911. }
  6912. }
  6913. };
  6914. var hooksToMerge = Object.keys(componentVNodeHooks);
  6915. function createComponent (
  6916. Ctor,
  6917. data,
  6918. context,
  6919. children,
  6920. tag
  6921. ) {
  6922. if (isUndef(Ctor)) {
  6923. return
  6924. }
  6925. var baseCtor = context.$options._base;
  6926. // plain options object: turn it into a constructor
  6927. if (isObject(Ctor)) {
  6928. Ctor = baseCtor.extend(Ctor);
  6929. }
  6930. // if at this stage it's not a constructor or an async component factory,
  6931. // reject.
  6932. if (typeof Ctor !== 'function') {
  6933. if (true) {
  6934. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6935. }
  6936. return
  6937. }
  6938. // async component
  6939. var asyncFactory;
  6940. if (isUndef(Ctor.cid)) {
  6941. asyncFactory = Ctor;
  6942. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6943. if (Ctor === undefined) {
  6944. // return a placeholder node for async component, which is rendered
  6945. // as a comment node but preserves all the raw information for the node.
  6946. // the information will be used for async server-rendering and hydration.
  6947. return createAsyncPlaceholder(
  6948. asyncFactory,
  6949. data,
  6950. context,
  6951. children,
  6952. tag
  6953. )
  6954. }
  6955. }
  6956. data = data || {};
  6957. // resolve constructor options in case global mixins are applied after
  6958. // component constructor creation
  6959. resolveConstructorOptions(Ctor);
  6960. // transform component v-model data into props & events
  6961. if (isDef(data.model)) {
  6962. transformModel(Ctor.options, data);
  6963. }
  6964. // extract props
  6965. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6966. // functional component
  6967. if (isTrue(Ctor.options.functional)) {
  6968. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6969. }
  6970. // extract listeners, since these needs to be treated as
  6971. // child component listeners instead of DOM listeners
  6972. var listeners = data.on;
  6973. // replace with listeners with .native modifier
  6974. // so it gets processed during parent component patch.
  6975. data.on = data.nativeOn;
  6976. if (isTrue(Ctor.options.abstract)) {
  6977. // abstract components do not keep anything
  6978. // other than props & listeners & slot
  6979. // work around flow
  6980. var slot = data.slot;
  6981. data = {};
  6982. if (slot) {
  6983. data.slot = slot;
  6984. }
  6985. }
  6986. // install component management hooks onto the placeholder node
  6987. installComponentHooks(data);
  6988. // return a placeholder vnode
  6989. var name = Ctor.options.name || tag;
  6990. var vnode = new VNode(
  6991. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6992. data, undefined, undefined, undefined, context,
  6993. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6994. asyncFactory
  6995. );
  6996. return vnode
  6997. }
  6998. function createComponentInstanceForVnode (
  6999. vnode, // we know it's MountedComponentVNode but flow doesn't
  7000. parent // activeInstance in lifecycle state
  7001. ) {
  7002. var options = {
  7003. _isComponent: true,
  7004. _parentVnode: vnode,
  7005. parent: parent
  7006. };
  7007. // check inline-template render functions
  7008. var inlineTemplate = vnode.data.inlineTemplate;
  7009. if (isDef(inlineTemplate)) {
  7010. options.render = inlineTemplate.render;
  7011. options.staticRenderFns = inlineTemplate.staticRenderFns;
  7012. }
  7013. return new vnode.componentOptions.Ctor(options)
  7014. }
  7015. function installComponentHooks (data) {
  7016. var hooks = data.hook || (data.hook = {});
  7017. for (var i = 0; i < hooksToMerge.length; i++) {
  7018. var key = hooksToMerge[i];
  7019. var existing = hooks[key];
  7020. var toMerge = componentVNodeHooks[key];
  7021. if (existing !== toMerge && !(existing && existing._merged)) {
  7022. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  7023. }
  7024. }
  7025. }
  7026. function mergeHook$1 (f1, f2) {
  7027. var merged = function (a, b) {
  7028. // flow complains about extra args which is why we use any
  7029. f1(a, b);
  7030. f2(a, b);
  7031. };
  7032. merged._merged = true;
  7033. return merged
  7034. }
  7035. // transform component v-model info (value and callback) into
  7036. // prop and event handler respectively.
  7037. function transformModel (options, data) {
  7038. var prop = (options.model && options.model.prop) || 'value';
  7039. var event = (options.model && options.model.event) || 'input'
  7040. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  7041. var on = data.on || (data.on = {});
  7042. var existing = on[event];
  7043. var callback = data.model.callback;
  7044. if (isDef(existing)) {
  7045. if (
  7046. Array.isArray(existing)
  7047. ? existing.indexOf(callback) === -1
  7048. : existing !== callback
  7049. ) {
  7050. on[event] = [callback].concat(existing);
  7051. }
  7052. } else {
  7053. on[event] = callback;
  7054. }
  7055. }
  7056. /* */
  7057. var SIMPLE_NORMALIZE = 1;
  7058. var ALWAYS_NORMALIZE = 2;
  7059. // wrapper function for providing a more flexible interface
  7060. // without getting yelled at by flow
  7061. function createElement (
  7062. context,
  7063. tag,
  7064. data,
  7065. children,
  7066. normalizationType,
  7067. alwaysNormalize
  7068. ) {
  7069. if (Array.isArray(data) || isPrimitive(data)) {
  7070. normalizationType = children;
  7071. children = data;
  7072. data = undefined;
  7073. }
  7074. if (isTrue(alwaysNormalize)) {
  7075. normalizationType = ALWAYS_NORMALIZE;
  7076. }
  7077. return _createElement(context, tag, data, children, normalizationType)
  7078. }
  7079. function _createElement (
  7080. context,
  7081. tag,
  7082. data,
  7083. children,
  7084. normalizationType
  7085. ) {
  7086. if (isDef(data) && isDef((data).__ob__)) {
  7087. true && warn(
  7088. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  7089. 'Always create fresh vnode data objects in each render!',
  7090. context
  7091. );
  7092. return createEmptyVNode()
  7093. }
  7094. // object syntax in v-bind
  7095. if (isDef(data) && isDef(data.is)) {
  7096. tag = data.is;
  7097. }
  7098. if (!tag) {
  7099. // in case of component :is set to falsy value
  7100. return createEmptyVNode()
  7101. }
  7102. // warn against non-primitive key
  7103. if ( true &&
  7104. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  7105. ) {
  7106. {
  7107. warn(
  7108. 'Avoid using non-primitive value as key, ' +
  7109. 'use string/number value instead.',
  7110. context
  7111. );
  7112. }
  7113. }
  7114. // support single function children as default scoped slot
  7115. if (Array.isArray(children) &&
  7116. typeof children[0] === 'function'
  7117. ) {
  7118. data = data || {};
  7119. data.scopedSlots = { default: children[0] };
  7120. children.length = 0;
  7121. }
  7122. if (normalizationType === ALWAYS_NORMALIZE) {
  7123. children = normalizeChildren(children);
  7124. } else if (normalizationType === SIMPLE_NORMALIZE) {
  7125. children = simpleNormalizeChildren(children);
  7126. }
  7127. var vnode, ns;
  7128. if (typeof tag === 'string') {
  7129. var Ctor;
  7130. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  7131. if (config.isReservedTag(tag)) {
  7132. // platform built-in elements
  7133. if ( true && isDef(data) && isDef(data.nativeOn)) {
  7134. warn(
  7135. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  7136. context
  7137. );
  7138. }
  7139. vnode = new VNode(
  7140. config.parsePlatformTagName(tag), data, children,
  7141. undefined, undefined, context
  7142. );
  7143. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  7144. // component
  7145. vnode = createComponent(Ctor, data, context, children, tag);
  7146. } else {
  7147. // unknown or unlisted namespaced elements
  7148. // check at runtime because it may get assigned a namespace when its
  7149. // parent normalizes children
  7150. vnode = new VNode(
  7151. tag, data, children,
  7152. undefined, undefined, context
  7153. );
  7154. }
  7155. } else {
  7156. // direct component options / constructor
  7157. vnode = createComponent(tag, data, context, children);
  7158. }
  7159. if (Array.isArray(vnode)) {
  7160. return vnode
  7161. } else if (isDef(vnode)) {
  7162. if (isDef(ns)) { applyNS(vnode, ns); }
  7163. if (isDef(data)) { registerDeepBindings(data); }
  7164. return vnode
  7165. } else {
  7166. return createEmptyVNode()
  7167. }
  7168. }
  7169. function applyNS (vnode, ns, force) {
  7170. vnode.ns = ns;
  7171. if (vnode.tag === 'foreignObject') {
  7172. // use default namespace inside foreignObject
  7173. ns = undefined;
  7174. force = true;
  7175. }
  7176. if (isDef(vnode.children)) {
  7177. for (var i = 0, l = vnode.children.length; i < l; i++) {
  7178. var child = vnode.children[i];
  7179. if (isDef(child.tag) && (
  7180. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  7181. applyNS(child, ns, force);
  7182. }
  7183. }
  7184. }
  7185. }
  7186. // ref #5318
  7187. // necessary to ensure parent re-render when deep bindings like :style and
  7188. // :class are used on slot nodes
  7189. function registerDeepBindings (data) {
  7190. if (isObject(data.style)) {
  7191. traverse(data.style);
  7192. }
  7193. if (isObject(data.class)) {
  7194. traverse(data.class);
  7195. }
  7196. }
  7197. /* */
  7198. function initRender (vm) {
  7199. vm._vnode = null; // the root of the child tree
  7200. vm._staticTrees = null; // v-once cached trees
  7201. var options = vm.$options;
  7202. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  7203. var renderContext = parentVnode && parentVnode.context;
  7204. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  7205. vm.$scopedSlots = emptyObject;
  7206. // bind the createElement fn to this instance
  7207. // so that we get proper render context inside it.
  7208. // args order: tag, data, children, normalizationType, alwaysNormalize
  7209. // internal version is used by render functions compiled from templates
  7210. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  7211. // normalization is always applied for the public version, used in
  7212. // user-written render functions.
  7213. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  7214. // $attrs & $listeners are exposed for easier HOC creation.
  7215. // they need to be reactive so that HOCs using them are always updated
  7216. var parentData = parentVnode && parentVnode.data;
  7217. /* istanbul ignore else */
  7218. if (true) {
  7219. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  7220. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  7221. }, true);
  7222. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  7223. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  7224. }, true);
  7225. } else {}
  7226. }
  7227. var currentRenderingInstance = null;
  7228. function renderMixin (Vue) {
  7229. // install runtime convenience helpers
  7230. installRenderHelpers(Vue.prototype);
  7231. Vue.prototype.$nextTick = function (fn) {
  7232. return nextTick(fn, this)
  7233. };
  7234. Vue.prototype._render = function () {
  7235. var vm = this;
  7236. var ref = vm.$options;
  7237. var render = ref.render;
  7238. var _parentVnode = ref._parentVnode;
  7239. if (_parentVnode) {
  7240. vm.$scopedSlots = normalizeScopedSlots(
  7241. _parentVnode.data.scopedSlots,
  7242. vm.$slots,
  7243. vm.$scopedSlots
  7244. );
  7245. }
  7246. // set parent vnode. this allows render functions to have access
  7247. // to the data on the placeholder node.
  7248. vm.$vnode = _parentVnode;
  7249. // render self
  7250. var vnode;
  7251. try {
  7252. // There's no need to maintain a stack because all render fns are called
  7253. // separately from one another. Nested component's render fns are called
  7254. // when parent component is patched.
  7255. currentRenderingInstance = vm;
  7256. vnode = render.call(vm._renderProxy, vm.$createElement);
  7257. } catch (e) {
  7258. handleError(e, vm, "render");
  7259. // return error render result,
  7260. // or previous vnode to prevent render error causing blank component
  7261. /* istanbul ignore else */
  7262. if ( true && vm.$options.renderError) {
  7263. try {
  7264. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  7265. } catch (e) {
  7266. handleError(e, vm, "renderError");
  7267. vnode = vm._vnode;
  7268. }
  7269. } else {
  7270. vnode = vm._vnode;
  7271. }
  7272. } finally {
  7273. currentRenderingInstance = null;
  7274. }
  7275. // if the returned array contains only a single node, allow it
  7276. if (Array.isArray(vnode) && vnode.length === 1) {
  7277. vnode = vnode[0];
  7278. }
  7279. // return empty vnode in case the render function errored out
  7280. if (!(vnode instanceof VNode)) {
  7281. if ( true && Array.isArray(vnode)) {
  7282. warn(
  7283. 'Multiple root nodes returned from render function. Render function ' +
  7284. 'should return a single root node.',
  7285. vm
  7286. );
  7287. }
  7288. vnode = createEmptyVNode();
  7289. }
  7290. // set parent
  7291. vnode.parent = _parentVnode;
  7292. return vnode
  7293. };
  7294. }
  7295. /* */
  7296. function ensureCtor (comp, base) {
  7297. if (
  7298. comp.__esModule ||
  7299. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  7300. ) {
  7301. comp = comp.default;
  7302. }
  7303. return isObject(comp)
  7304. ? base.extend(comp)
  7305. : comp
  7306. }
  7307. function createAsyncPlaceholder (
  7308. factory,
  7309. data,
  7310. context,
  7311. children,
  7312. tag
  7313. ) {
  7314. var node = createEmptyVNode();
  7315. node.asyncFactory = factory;
  7316. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  7317. return node
  7318. }
  7319. function resolveAsyncComponent (
  7320. factory,
  7321. baseCtor
  7322. ) {
  7323. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  7324. return factory.errorComp
  7325. }
  7326. if (isDef(factory.resolved)) {
  7327. return factory.resolved
  7328. }
  7329. var owner = currentRenderingInstance;
  7330. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  7331. // already pending
  7332. factory.owners.push(owner);
  7333. }
  7334. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  7335. return factory.loadingComp
  7336. }
  7337. if (owner && !isDef(factory.owners)) {
  7338. var owners = factory.owners = [owner];
  7339. var sync = true;
  7340. var timerLoading = null;
  7341. var timerTimeout = null
  7342. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  7343. var forceRender = function (renderCompleted) {
  7344. for (var i = 0, l = owners.length; i < l; i++) {
  7345. (owners[i]).$forceUpdate();
  7346. }
  7347. if (renderCompleted) {
  7348. owners.length = 0;
  7349. if (timerLoading !== null) {
  7350. clearTimeout(timerLoading);
  7351. timerLoading = null;
  7352. }
  7353. if (timerTimeout !== null) {
  7354. clearTimeout(timerTimeout);
  7355. timerTimeout = null;
  7356. }
  7357. }
  7358. };
  7359. var resolve = once(function (res) {
  7360. // cache resolved
  7361. factory.resolved = ensureCtor(res, baseCtor);
  7362. // invoke callbacks only if this is not a synchronous resolve
  7363. // (async resolves are shimmed as synchronous during SSR)
  7364. if (!sync) {
  7365. forceRender(true);
  7366. } else {
  7367. owners.length = 0;
  7368. }
  7369. });
  7370. var reject = once(function (reason) {
  7371. true && warn(
  7372. "Failed to resolve async component: " + (String(factory)) +
  7373. (reason ? ("\nReason: " + reason) : '')
  7374. );
  7375. if (isDef(factory.errorComp)) {
  7376. factory.error = true;
  7377. forceRender(true);
  7378. }
  7379. });
  7380. var res = factory(resolve, reject);
  7381. if (isObject(res)) {
  7382. if (isPromise(res)) {
  7383. // () => Promise
  7384. if (isUndef(factory.resolved)) {
  7385. res.then(resolve, reject);
  7386. }
  7387. } else if (isPromise(res.component)) {
  7388. res.component.then(resolve, reject);
  7389. if (isDef(res.error)) {
  7390. factory.errorComp = ensureCtor(res.error, baseCtor);
  7391. }
  7392. if (isDef(res.loading)) {
  7393. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  7394. if (res.delay === 0) {
  7395. factory.loading = true;
  7396. } else {
  7397. timerLoading = setTimeout(function () {
  7398. timerLoading = null;
  7399. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  7400. factory.loading = true;
  7401. forceRender(false);
  7402. }
  7403. }, res.delay || 200);
  7404. }
  7405. }
  7406. if (isDef(res.timeout)) {
  7407. timerTimeout = setTimeout(function () {
  7408. timerTimeout = null;
  7409. if (isUndef(factory.resolved)) {
  7410. reject(
  7411. true
  7412. ? ("timeout (" + (res.timeout) + "ms)")
  7413. : undefined
  7414. );
  7415. }
  7416. }, res.timeout);
  7417. }
  7418. }
  7419. }
  7420. sync = false;
  7421. // return in case resolved synchronously
  7422. return factory.loading
  7423. ? factory.loadingComp
  7424. : factory.resolved
  7425. }
  7426. }
  7427. /* */
  7428. function isAsyncPlaceholder (node) {
  7429. return node.isComment && node.asyncFactory
  7430. }
  7431. /* */
  7432. function getFirstComponentChild (children) {
  7433. if (Array.isArray(children)) {
  7434. for (var i = 0; i < children.length; i++) {
  7435. var c = children[i];
  7436. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  7437. return c
  7438. }
  7439. }
  7440. }
  7441. }
  7442. /* */
  7443. /* */
  7444. function initEvents (vm) {
  7445. vm._events = Object.create(null);
  7446. vm._hasHookEvent = false;
  7447. // init parent attached events
  7448. var listeners = vm.$options._parentListeners;
  7449. if (listeners) {
  7450. updateComponentListeners(vm, listeners);
  7451. }
  7452. }
  7453. var target;
  7454. function add (event, fn) {
  7455. target.$on(event, fn);
  7456. }
  7457. function remove$1 (event, fn) {
  7458. target.$off(event, fn);
  7459. }
  7460. function createOnceHandler (event, fn) {
  7461. var _target = target;
  7462. return function onceHandler () {
  7463. var res = fn.apply(null, arguments);
  7464. if (res !== null) {
  7465. _target.$off(event, onceHandler);
  7466. }
  7467. }
  7468. }
  7469. function updateComponentListeners (
  7470. vm,
  7471. listeners,
  7472. oldListeners
  7473. ) {
  7474. target = vm;
  7475. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  7476. target = undefined;
  7477. }
  7478. function eventsMixin (Vue) {
  7479. var hookRE = /^hook:/;
  7480. Vue.prototype.$on = function (event, fn) {
  7481. var vm = this;
  7482. if (Array.isArray(event)) {
  7483. for (var i = 0, l = event.length; i < l; i++) {
  7484. vm.$on(event[i], fn);
  7485. }
  7486. } else {
  7487. (vm._events[event] || (vm._events[event] = [])).push(fn);
  7488. // optimize hook:event cost by using a boolean flag marked at registration
  7489. // instead of a hash lookup
  7490. if (hookRE.test(event)) {
  7491. vm._hasHookEvent = true;
  7492. }
  7493. }
  7494. return vm
  7495. };
  7496. Vue.prototype.$once = function (event, fn) {
  7497. var vm = this;
  7498. function on () {
  7499. vm.$off(event, on);
  7500. fn.apply(vm, arguments);
  7501. }
  7502. on.fn = fn;
  7503. vm.$on(event, on);
  7504. return vm
  7505. };
  7506. Vue.prototype.$off = function (event, fn) {
  7507. var vm = this;
  7508. // all
  7509. if (!arguments.length) {
  7510. vm._events = Object.create(null);
  7511. return vm
  7512. }
  7513. // array of events
  7514. if (Array.isArray(event)) {
  7515. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  7516. vm.$off(event[i$1], fn);
  7517. }
  7518. return vm
  7519. }
  7520. // specific event
  7521. var cbs = vm._events[event];
  7522. if (!cbs) {
  7523. return vm
  7524. }
  7525. if (!fn) {
  7526. vm._events[event] = null;
  7527. return vm
  7528. }
  7529. // specific handler
  7530. var cb;
  7531. var i = cbs.length;
  7532. while (i--) {
  7533. cb = cbs[i];
  7534. if (cb === fn || cb.fn === fn) {
  7535. cbs.splice(i, 1);
  7536. break
  7537. }
  7538. }
  7539. return vm
  7540. };
  7541. Vue.prototype.$emit = function (event) {
  7542. var vm = this;
  7543. if (true) {
  7544. var lowerCaseEvent = event.toLowerCase();
  7545. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  7546. tip(
  7547. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  7548. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  7549. "Note that HTML attributes are case-insensitive and you cannot use " +
  7550. "v-on to listen to camelCase events when using in-DOM templates. " +
  7551. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  7552. );
  7553. }
  7554. }
  7555. var cbs = vm._events[event];
  7556. if (cbs) {
  7557. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  7558. var args = toArray(arguments, 1);
  7559. var info = "event handler for \"" + event + "\"";
  7560. for (var i = 0, l = cbs.length; i < l; i++) {
  7561. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  7562. }
  7563. }
  7564. return vm
  7565. };
  7566. }
  7567. /* */
  7568. var activeInstance = null;
  7569. var isUpdatingChildComponent = false;
  7570. function setActiveInstance(vm) {
  7571. var prevActiveInstance = activeInstance;
  7572. activeInstance = vm;
  7573. return function () {
  7574. activeInstance = prevActiveInstance;
  7575. }
  7576. }
  7577. function initLifecycle (vm) {
  7578. var options = vm.$options;
  7579. // locate first non-abstract parent
  7580. var parent = options.parent;
  7581. if (parent && !options.abstract) {
  7582. while (parent.$options.abstract && parent.$parent) {
  7583. parent = parent.$parent;
  7584. }
  7585. parent.$children.push(vm);
  7586. }
  7587. vm.$parent = parent;
  7588. vm.$root = parent ? parent.$root : vm;
  7589. vm.$children = [];
  7590. vm.$refs = {};
  7591. vm._watcher = null;
  7592. vm._inactive = null;
  7593. vm._directInactive = false;
  7594. vm._isMounted = false;
  7595. vm._isDestroyed = false;
  7596. vm._isBeingDestroyed = false;
  7597. }
  7598. function lifecycleMixin (Vue) {
  7599. Vue.prototype._update = function (vnode, hydrating) {
  7600. var vm = this;
  7601. var prevEl = vm.$el;
  7602. var prevVnode = vm._vnode;
  7603. var restoreActiveInstance = setActiveInstance(vm);
  7604. vm._vnode = vnode;
  7605. // Vue.prototype.__patch__ is injected in entry points
  7606. // based on the rendering backend used.
  7607. if (!prevVnode) {
  7608. // initial render
  7609. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  7610. } else {
  7611. // updates
  7612. vm.$el = vm.__patch__(prevVnode, vnode);
  7613. }
  7614. restoreActiveInstance();
  7615. // update __vue__ reference
  7616. if (prevEl) {
  7617. prevEl.__vue__ = null;
  7618. }
  7619. if (vm.$el) {
  7620. vm.$el.__vue__ = vm;
  7621. }
  7622. // if parent is an HOC, update its $el as well
  7623. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  7624. vm.$parent.$el = vm.$el;
  7625. }
  7626. // updated hook is called by the scheduler to ensure that children are
  7627. // updated in a parent's updated hook.
  7628. };
  7629. Vue.prototype.$forceUpdate = function () {
  7630. var vm = this;
  7631. if (vm._watcher) {
  7632. vm._watcher.update();
  7633. }
  7634. };
  7635. Vue.prototype.$destroy = function () {
  7636. var vm = this;
  7637. if (vm._isBeingDestroyed) {
  7638. return
  7639. }
  7640. callHook(vm, 'beforeDestroy');
  7641. vm._isBeingDestroyed = true;
  7642. // remove self from parent
  7643. var parent = vm.$parent;
  7644. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  7645. remove(parent.$children, vm);
  7646. }
  7647. // teardown watchers
  7648. if (vm._watcher) {
  7649. vm._watcher.teardown();
  7650. }
  7651. var i = vm._watchers.length;
  7652. while (i--) {
  7653. vm._watchers[i].teardown();
  7654. }
  7655. // remove reference from data ob
  7656. // frozen object may not have observer.
  7657. if (vm._data.__ob__) {
  7658. vm._data.__ob__.vmCount--;
  7659. }
  7660. // call the last hook...
  7661. vm._isDestroyed = true;
  7662. // invoke destroy hooks on current rendered tree
  7663. vm.__patch__(vm._vnode, null);
  7664. // fire destroyed hook
  7665. callHook(vm, 'destroyed');
  7666. // turn off all instance listeners.
  7667. vm.$off();
  7668. // remove __vue__ reference
  7669. if (vm.$el) {
  7670. vm.$el.__vue__ = null;
  7671. }
  7672. // release circular reference (#6759)
  7673. if (vm.$vnode) {
  7674. vm.$vnode.parent = null;
  7675. }
  7676. };
  7677. }
  7678. function updateChildComponent (
  7679. vm,
  7680. propsData,
  7681. listeners,
  7682. parentVnode,
  7683. renderChildren
  7684. ) {
  7685. if (true) {
  7686. isUpdatingChildComponent = true;
  7687. }
  7688. // determine whether component has slot children
  7689. // we need to do this before overwriting $options._renderChildren.
  7690. // check if there are dynamic scopedSlots (hand-written or compiled but with
  7691. // dynamic slot names). Static scoped slots compiled from template has the
  7692. // "$stable" marker.
  7693. var newScopedSlots = parentVnode.data.scopedSlots;
  7694. var oldScopedSlots = vm.$scopedSlots;
  7695. var hasDynamicScopedSlot = !!(
  7696. (newScopedSlots && !newScopedSlots.$stable) ||
  7697. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  7698. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  7699. );
  7700. // Any static slot children from the parent may have changed during parent's
  7701. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  7702. // update is necessary to ensure correctness.
  7703. var needsForceUpdate = !!(
  7704. renderChildren || // has new static slots
  7705. vm.$options._renderChildren || // has old static slots
  7706. hasDynamicScopedSlot
  7707. );
  7708. vm.$options._parentVnode = parentVnode;
  7709. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7710. if (vm._vnode) { // update child tree's parent
  7711. vm._vnode.parent = parentVnode;
  7712. }
  7713. vm.$options._renderChildren = renderChildren;
  7714. // update $attrs and $listeners hash
  7715. // these are also reactive so they may trigger child update if the child
  7716. // used them during render
  7717. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7718. vm.$listeners = listeners || emptyObject;
  7719. // update props
  7720. if (propsData && vm.$options.props) {
  7721. toggleObserving(false);
  7722. var props = vm._props;
  7723. var propKeys = vm.$options._propKeys || [];
  7724. for (var i = 0; i < propKeys.length; i++) {
  7725. var key = propKeys[i];
  7726. var propOptions = vm.$options.props; // wtf flow?
  7727. props[key] = validateProp(key, propOptions, propsData, vm);
  7728. }
  7729. toggleObserving(true);
  7730. // keep a copy of raw propsData
  7731. vm.$options.propsData = propsData;
  7732. }
  7733. // fixed by xxxxxx update properties(mp runtime)
  7734. vm._$updateProperties && vm._$updateProperties(vm);
  7735. // update listeners
  7736. listeners = listeners || emptyObject;
  7737. var oldListeners = vm.$options._parentListeners;
  7738. vm.$options._parentListeners = listeners;
  7739. updateComponentListeners(vm, listeners, oldListeners);
  7740. // resolve slots + force update if has children
  7741. if (needsForceUpdate) {
  7742. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7743. vm.$forceUpdate();
  7744. }
  7745. if (true) {
  7746. isUpdatingChildComponent = false;
  7747. }
  7748. }
  7749. function isInInactiveTree (vm) {
  7750. while (vm && (vm = vm.$parent)) {
  7751. if (vm._inactive) { return true }
  7752. }
  7753. return false
  7754. }
  7755. function activateChildComponent (vm, direct) {
  7756. if (direct) {
  7757. vm._directInactive = false;
  7758. if (isInInactiveTree(vm)) {
  7759. return
  7760. }
  7761. } else if (vm._directInactive) {
  7762. return
  7763. }
  7764. if (vm._inactive || vm._inactive === null) {
  7765. vm._inactive = false;
  7766. for (var i = 0; i < vm.$children.length; i++) {
  7767. activateChildComponent(vm.$children[i]);
  7768. }
  7769. callHook(vm, 'activated');
  7770. }
  7771. }
  7772. function deactivateChildComponent (vm, direct) {
  7773. if (direct) {
  7774. vm._directInactive = true;
  7775. if (isInInactiveTree(vm)) {
  7776. return
  7777. }
  7778. }
  7779. if (!vm._inactive) {
  7780. vm._inactive = true;
  7781. for (var i = 0; i < vm.$children.length; i++) {
  7782. deactivateChildComponent(vm.$children[i]);
  7783. }
  7784. callHook(vm, 'deactivated');
  7785. }
  7786. }
  7787. function callHook (vm, hook) {
  7788. // #7573 disable dep collection when invoking lifecycle hooks
  7789. pushTarget();
  7790. var handlers = vm.$options[hook];
  7791. var info = hook + " hook";
  7792. if (handlers) {
  7793. for (var i = 0, j = handlers.length; i < j; i++) {
  7794. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7795. }
  7796. }
  7797. if (vm._hasHookEvent) {
  7798. vm.$emit('hook:' + hook);
  7799. }
  7800. popTarget();
  7801. }
  7802. /* */
  7803. var MAX_UPDATE_COUNT = 100;
  7804. var queue = [];
  7805. var activatedChildren = [];
  7806. var has = {};
  7807. var circular = {};
  7808. var waiting = false;
  7809. var flushing = false;
  7810. var index = 0;
  7811. /**
  7812. * Reset the scheduler's state.
  7813. */
  7814. function resetSchedulerState () {
  7815. index = queue.length = activatedChildren.length = 0;
  7816. has = {};
  7817. if (true) {
  7818. circular = {};
  7819. }
  7820. waiting = flushing = false;
  7821. }
  7822. // Async edge case #6566 requires saving the timestamp when event listeners are
  7823. // attached. However, calling performance.now() has a perf overhead especially
  7824. // if the page has thousands of event listeners. Instead, we take a timestamp
  7825. // every time the scheduler flushes and use that for all event listeners
  7826. // attached during that flush.
  7827. var currentFlushTimestamp = 0;
  7828. // Async edge case fix requires storing an event listener's attach timestamp.
  7829. var getNow = Date.now;
  7830. // Determine what event timestamp the browser is using. Annoyingly, the
  7831. // timestamp can either be hi-res (relative to page load) or low-res
  7832. // (relative to UNIX epoch), so in order to compare time we have to use the
  7833. // same timestamp type when saving the flush timestamp.
  7834. // All IE versions use low-res event timestamps, and have problematic clock
  7835. // implementations (#9632)
  7836. if (inBrowser && !isIE) {
  7837. var performance = window.performance;
  7838. if (
  7839. performance &&
  7840. typeof performance.now === 'function' &&
  7841. getNow() > document.createEvent('Event').timeStamp
  7842. ) {
  7843. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7844. // smaller than it, it means the event is using a hi-res timestamp,
  7845. // and we need to use the hi-res version for event listener timestamps as
  7846. // well.
  7847. getNow = function () { return performance.now(); };
  7848. }
  7849. }
  7850. /**
  7851. * Flush both queues and run the watchers.
  7852. */
  7853. function flushSchedulerQueue () {
  7854. currentFlushTimestamp = getNow();
  7855. flushing = true;
  7856. var watcher, id;
  7857. // Sort queue before flush.
  7858. // This ensures that:
  7859. // 1. Components are updated from parent to child. (because parent is always
  7860. // created before the child)
  7861. // 2. A component's user watchers are run before its render watcher (because
  7862. // user watchers are created before the render watcher)
  7863. // 3. If a component is destroyed during a parent component's watcher run,
  7864. // its watchers can be skipped.
  7865. queue.sort(function (a, b) { return a.id - b.id; });
  7866. // do not cache length because more watchers might be pushed
  7867. // as we run existing watchers
  7868. for (index = 0; index < queue.length; index++) {
  7869. watcher = queue[index];
  7870. if (watcher.before) {
  7871. watcher.before();
  7872. }
  7873. id = watcher.id;
  7874. has[id] = null;
  7875. watcher.run();
  7876. // in dev build, check and stop circular updates.
  7877. if ( true && has[id] != null) {
  7878. circular[id] = (circular[id] || 0) + 1;
  7879. if (circular[id] > MAX_UPDATE_COUNT) {
  7880. warn(
  7881. 'You may have an infinite update loop ' + (
  7882. watcher.user
  7883. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7884. : "in a component render function."
  7885. ),
  7886. watcher.vm
  7887. );
  7888. break
  7889. }
  7890. }
  7891. }
  7892. // keep copies of post queues before resetting state
  7893. var activatedQueue = activatedChildren.slice();
  7894. var updatedQueue = queue.slice();
  7895. resetSchedulerState();
  7896. // call component updated and activated hooks
  7897. callActivatedHooks(activatedQueue);
  7898. callUpdatedHooks(updatedQueue);
  7899. // devtool hook
  7900. /* istanbul ignore if */
  7901. if (devtools && config.devtools) {
  7902. devtools.emit('flush');
  7903. }
  7904. }
  7905. function callUpdatedHooks (queue) {
  7906. var i = queue.length;
  7907. while (i--) {
  7908. var watcher = queue[i];
  7909. var vm = watcher.vm;
  7910. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7911. callHook(vm, 'updated');
  7912. }
  7913. }
  7914. }
  7915. /**
  7916. * Queue a kept-alive component that was activated during patch.
  7917. * The queue will be processed after the entire tree has been patched.
  7918. */
  7919. function queueActivatedComponent (vm) {
  7920. // setting _inactive to false here so that a render function can
  7921. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7922. vm._inactive = false;
  7923. activatedChildren.push(vm);
  7924. }
  7925. function callActivatedHooks (queue) {
  7926. for (var i = 0; i < queue.length; i++) {
  7927. queue[i]._inactive = true;
  7928. activateChildComponent(queue[i], true /* true */);
  7929. }
  7930. }
  7931. /**
  7932. * Push a watcher into the watcher queue.
  7933. * Jobs with duplicate IDs will be skipped unless it's
  7934. * pushed when the queue is being flushed.
  7935. */
  7936. function queueWatcher (watcher) {
  7937. var id = watcher.id;
  7938. if (has[id] == null) {
  7939. has[id] = true;
  7940. if (!flushing) {
  7941. queue.push(watcher);
  7942. } else {
  7943. // if already flushing, splice the watcher based on its id
  7944. // if already past its id, it will be run next immediately.
  7945. var i = queue.length - 1;
  7946. while (i > index && queue[i].id > watcher.id) {
  7947. i--;
  7948. }
  7949. queue.splice(i + 1, 0, watcher);
  7950. }
  7951. // queue the flush
  7952. if (!waiting) {
  7953. waiting = true;
  7954. if ( true && !config.async) {
  7955. flushSchedulerQueue();
  7956. return
  7957. }
  7958. nextTick(flushSchedulerQueue);
  7959. }
  7960. }
  7961. }
  7962. /* */
  7963. var uid$2 = 0;
  7964. /**
  7965. * A watcher parses an expression, collects dependencies,
  7966. * and fires callback when the expression value changes.
  7967. * This is used for both the $watch() api and directives.
  7968. */
  7969. var Watcher = function Watcher (
  7970. vm,
  7971. expOrFn,
  7972. cb,
  7973. options,
  7974. isRenderWatcher
  7975. ) {
  7976. this.vm = vm;
  7977. if (isRenderWatcher) {
  7978. vm._watcher = this;
  7979. }
  7980. vm._watchers.push(this);
  7981. // options
  7982. if (options) {
  7983. this.deep = !!options.deep;
  7984. this.user = !!options.user;
  7985. this.lazy = !!options.lazy;
  7986. this.sync = !!options.sync;
  7987. this.before = options.before;
  7988. } else {
  7989. this.deep = this.user = this.lazy = this.sync = false;
  7990. }
  7991. this.cb = cb;
  7992. this.id = ++uid$2; // uid for batching
  7993. this.active = true;
  7994. this.dirty = this.lazy; // for lazy watchers
  7995. this.deps = [];
  7996. this.newDeps = [];
  7997. this.depIds = new _Set();
  7998. this.newDepIds = new _Set();
  7999. this.expression = true
  8000. ? expOrFn.toString()
  8001. : undefined;
  8002. // parse expression for getter
  8003. if (typeof expOrFn === 'function') {
  8004. this.getter = expOrFn;
  8005. } else {
  8006. this.getter = parsePath(expOrFn);
  8007. if (!this.getter) {
  8008. this.getter = noop;
  8009. true && warn(
  8010. "Failed watching path: \"" + expOrFn + "\" " +
  8011. 'Watcher only accepts simple dot-delimited paths. ' +
  8012. 'For full control, use a function instead.',
  8013. vm
  8014. );
  8015. }
  8016. }
  8017. this.value = this.lazy
  8018. ? undefined
  8019. : this.get();
  8020. };
  8021. /**
  8022. * Evaluate the getter, and re-collect dependencies.
  8023. */
  8024. Watcher.prototype.get = function get () {
  8025. pushTarget(this);
  8026. var value;
  8027. var vm = this.vm;
  8028. try {
  8029. value = this.getter.call(vm, vm);
  8030. } catch (e) {
  8031. if (this.user) {
  8032. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  8033. } else {
  8034. throw e
  8035. }
  8036. } finally {
  8037. // "touch" every property so they are all tracked as
  8038. // dependencies for deep watching
  8039. if (this.deep) {
  8040. traverse(value);
  8041. }
  8042. popTarget();
  8043. this.cleanupDeps();
  8044. }
  8045. return value
  8046. };
  8047. /**
  8048. * Add a dependency to this directive.
  8049. */
  8050. Watcher.prototype.addDep = function addDep (dep) {
  8051. var id = dep.id;
  8052. if (!this.newDepIds.has(id)) {
  8053. this.newDepIds.add(id);
  8054. this.newDeps.push(dep);
  8055. if (!this.depIds.has(id)) {
  8056. dep.addSub(this);
  8057. }
  8058. }
  8059. };
  8060. /**
  8061. * Clean up for dependency collection.
  8062. */
  8063. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  8064. var i = this.deps.length;
  8065. while (i--) {
  8066. var dep = this.deps[i];
  8067. if (!this.newDepIds.has(dep.id)) {
  8068. dep.removeSub(this);
  8069. }
  8070. }
  8071. var tmp = this.depIds;
  8072. this.depIds = this.newDepIds;
  8073. this.newDepIds = tmp;
  8074. this.newDepIds.clear();
  8075. tmp = this.deps;
  8076. this.deps = this.newDeps;
  8077. this.newDeps = tmp;
  8078. this.newDeps.length = 0;
  8079. };
  8080. /**
  8081. * Subscriber interface.
  8082. * Will be called when a dependency changes.
  8083. */
  8084. Watcher.prototype.update = function update () {
  8085. /* istanbul ignore else */
  8086. if (this.lazy) {
  8087. this.dirty = true;
  8088. } else if (this.sync) {
  8089. this.run();
  8090. } else {
  8091. queueWatcher(this);
  8092. }
  8093. };
  8094. /**
  8095. * Scheduler job interface.
  8096. * Will be called by the scheduler.
  8097. */
  8098. Watcher.prototype.run = function run () {
  8099. if (this.active) {
  8100. var value = this.get();
  8101. if (
  8102. value !== this.value ||
  8103. // Deep watchers and watchers on Object/Arrays should fire even
  8104. // when the value is the same, because the value may
  8105. // have mutated.
  8106. isObject(value) ||
  8107. this.deep
  8108. ) {
  8109. // set new value
  8110. var oldValue = this.value;
  8111. this.value = value;
  8112. if (this.user) {
  8113. try {
  8114. this.cb.call(this.vm, value, oldValue);
  8115. } catch (e) {
  8116. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  8117. }
  8118. } else {
  8119. this.cb.call(this.vm, value, oldValue);
  8120. }
  8121. }
  8122. }
  8123. };
  8124. /**
  8125. * Evaluate the value of the watcher.
  8126. * This only gets called for lazy watchers.
  8127. */
  8128. Watcher.prototype.evaluate = function evaluate () {
  8129. this.value = this.get();
  8130. this.dirty = false;
  8131. };
  8132. /**
  8133. * Depend on all deps collected by this watcher.
  8134. */
  8135. Watcher.prototype.depend = function depend () {
  8136. var i = this.deps.length;
  8137. while (i--) {
  8138. this.deps[i].depend();
  8139. }
  8140. };
  8141. /**
  8142. * Remove self from all dependencies' subscriber list.
  8143. */
  8144. Watcher.prototype.teardown = function teardown () {
  8145. if (this.active) {
  8146. // remove self from vm's watcher list
  8147. // this is a somewhat expensive operation so we skip it
  8148. // if the vm is being destroyed.
  8149. if (!this.vm._isBeingDestroyed) {
  8150. remove(this.vm._watchers, this);
  8151. }
  8152. var i = this.deps.length;
  8153. while (i--) {
  8154. this.deps[i].removeSub(this);
  8155. }
  8156. this.active = false;
  8157. }
  8158. };
  8159. /* */
  8160. var sharedPropertyDefinition = {
  8161. enumerable: true,
  8162. configurable: true,
  8163. get: noop,
  8164. set: noop
  8165. };
  8166. function proxy (target, sourceKey, key) {
  8167. sharedPropertyDefinition.get = function proxyGetter () {
  8168. return this[sourceKey][key]
  8169. };
  8170. sharedPropertyDefinition.set = function proxySetter (val) {
  8171. this[sourceKey][key] = val;
  8172. };
  8173. Object.defineProperty(target, key, sharedPropertyDefinition);
  8174. }
  8175. function initState (vm) {
  8176. vm._watchers = [];
  8177. var opts = vm.$options;
  8178. if (opts.props) { initProps(vm, opts.props); }
  8179. if (opts.methods) { initMethods(vm, opts.methods); }
  8180. if (opts.data) {
  8181. initData(vm);
  8182. } else {
  8183. observe(vm._data = {}, true /* asRootData */);
  8184. }
  8185. if (opts.computed) { initComputed(vm, opts.computed); }
  8186. if (opts.watch && opts.watch !== nativeWatch) {
  8187. initWatch(vm, opts.watch);
  8188. }
  8189. }
  8190. function initProps (vm, propsOptions) {
  8191. var propsData = vm.$options.propsData || {};
  8192. var props = vm._props = {};
  8193. // cache prop keys so that future props updates can iterate using Array
  8194. // instead of dynamic object key enumeration.
  8195. var keys = vm.$options._propKeys = [];
  8196. var isRoot = !vm.$parent;
  8197. // root instance props should be converted
  8198. if (!isRoot) {
  8199. toggleObserving(false);
  8200. }
  8201. var loop = function ( key ) {
  8202. keys.push(key);
  8203. var value = validateProp(key, propsOptions, propsData, vm);
  8204. /* istanbul ignore else */
  8205. if (true) {
  8206. var hyphenatedKey = hyphenate(key);
  8207. if (isReservedAttribute(hyphenatedKey) ||
  8208. config.isReservedAttr(hyphenatedKey)) {
  8209. warn(
  8210. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  8211. vm
  8212. );
  8213. }
  8214. defineReactive$$1(props, key, value, function () {
  8215. if (!isRoot && !isUpdatingChildComponent) {
  8216. {
  8217. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  8218. return
  8219. }
  8220. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  8221. if(
  8222. key === 'value' &&
  8223. Array.isArray(vm.$options.behaviors) &&
  8224. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8225. ){
  8226. return
  8227. }
  8228. if(vm._getFormData){
  8229. return
  8230. }
  8231. var $parent = vm.$parent;
  8232. while($parent){
  8233. if($parent.__next_tick_pending){
  8234. return
  8235. }
  8236. $parent = $parent.$parent;
  8237. }
  8238. }
  8239. warn(
  8240. "Avoid mutating a prop directly since the value will be " +
  8241. "overwritten whenever the parent component re-renders. " +
  8242. "Instead, use a data or computed property based on the prop's " +
  8243. "value. Prop being mutated: \"" + key + "\"",
  8244. vm
  8245. );
  8246. }
  8247. });
  8248. } else {}
  8249. // static props are already proxied on the component's prototype
  8250. // during Vue.extend(). We only need to proxy props defined at
  8251. // instantiation here.
  8252. if (!(key in vm)) {
  8253. proxy(vm, "_props", key);
  8254. }
  8255. };
  8256. for (var key in propsOptions) loop( key );
  8257. toggleObserving(true);
  8258. }
  8259. function initData (vm) {
  8260. var data = vm.$options.data;
  8261. data = vm._data = typeof data === 'function'
  8262. ? getData(data, vm)
  8263. : data || {};
  8264. if (!isPlainObject(data)) {
  8265. data = {};
  8266. true && warn(
  8267. 'data functions should return an object:\n' +
  8268. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  8269. vm
  8270. );
  8271. }
  8272. // proxy data on instance
  8273. var keys = Object.keys(data);
  8274. var props = vm.$options.props;
  8275. var methods = vm.$options.methods;
  8276. var i = keys.length;
  8277. while (i--) {
  8278. var key = keys[i];
  8279. if (true) {
  8280. if (methods && hasOwn(methods, key)) {
  8281. warn(
  8282. ("Method \"" + key + "\" has already been defined as a data property."),
  8283. vm
  8284. );
  8285. }
  8286. }
  8287. if (props && hasOwn(props, key)) {
  8288. true && warn(
  8289. "The data property \"" + key + "\" is already declared as a prop. " +
  8290. "Use prop default value instead.",
  8291. vm
  8292. );
  8293. } else if (!isReserved(key)) {
  8294. proxy(vm, "_data", key);
  8295. }
  8296. }
  8297. // observe data
  8298. observe(data, true /* asRootData */);
  8299. }
  8300. function getData (data, vm) {
  8301. // #7573 disable dep collection when invoking data getters
  8302. pushTarget();
  8303. try {
  8304. return data.call(vm, vm)
  8305. } catch (e) {
  8306. handleError(e, vm, "data()");
  8307. return {}
  8308. } finally {
  8309. popTarget();
  8310. }
  8311. }
  8312. var computedWatcherOptions = { lazy: true };
  8313. function initComputed (vm, computed) {
  8314. // $flow-disable-line
  8315. var watchers = vm._computedWatchers = Object.create(null);
  8316. // computed properties are just getters during SSR
  8317. var isSSR = isServerRendering();
  8318. for (var key in computed) {
  8319. var userDef = computed[key];
  8320. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  8321. if ( true && getter == null) {
  8322. warn(
  8323. ("Getter is missing for computed property \"" + key + "\"."),
  8324. vm
  8325. );
  8326. }
  8327. if (!isSSR) {
  8328. // create internal watcher for the computed property.
  8329. watchers[key] = new Watcher(
  8330. vm,
  8331. getter || noop,
  8332. noop,
  8333. computedWatcherOptions
  8334. );
  8335. }
  8336. // component-defined computed properties are already defined on the
  8337. // component prototype. We only need to define computed properties defined
  8338. // at instantiation here.
  8339. if (!(key in vm)) {
  8340. defineComputed(vm, key, userDef);
  8341. } else if (true) {
  8342. if (key in vm.$data) {
  8343. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  8344. } else if (vm.$options.props && key in vm.$options.props) {
  8345. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  8346. }
  8347. }
  8348. }
  8349. }
  8350. function defineComputed (
  8351. target,
  8352. key,
  8353. userDef
  8354. ) {
  8355. var shouldCache = !isServerRendering();
  8356. if (typeof userDef === 'function') {
  8357. sharedPropertyDefinition.get = shouldCache
  8358. ? createComputedGetter(key)
  8359. : createGetterInvoker(userDef);
  8360. sharedPropertyDefinition.set = noop;
  8361. } else {
  8362. sharedPropertyDefinition.get = userDef.get
  8363. ? shouldCache && userDef.cache !== false
  8364. ? createComputedGetter(key)
  8365. : createGetterInvoker(userDef.get)
  8366. : noop;
  8367. sharedPropertyDefinition.set = userDef.set || noop;
  8368. }
  8369. if ( true &&
  8370. sharedPropertyDefinition.set === noop) {
  8371. sharedPropertyDefinition.set = function () {
  8372. warn(
  8373. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  8374. this
  8375. );
  8376. };
  8377. }
  8378. Object.defineProperty(target, key, sharedPropertyDefinition);
  8379. }
  8380. function createComputedGetter (key) {
  8381. return function computedGetter () {
  8382. var watcher = this._computedWatchers && this._computedWatchers[key];
  8383. if (watcher) {
  8384. if (watcher.dirty) {
  8385. watcher.evaluate();
  8386. }
  8387. if (Dep.SharedObject.target) {// fixed by xxxxxx
  8388. watcher.depend();
  8389. }
  8390. return watcher.value
  8391. }
  8392. }
  8393. }
  8394. function createGetterInvoker(fn) {
  8395. return function computedGetter () {
  8396. return fn.call(this, this)
  8397. }
  8398. }
  8399. function initMethods (vm, methods) {
  8400. var props = vm.$options.props;
  8401. for (var key in methods) {
  8402. if (true) {
  8403. if (typeof methods[key] !== 'function') {
  8404. warn(
  8405. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  8406. "Did you reference the function correctly?",
  8407. vm
  8408. );
  8409. }
  8410. if (props && hasOwn(props, key)) {
  8411. warn(
  8412. ("Method \"" + key + "\" has already been defined as a prop."),
  8413. vm
  8414. );
  8415. }
  8416. if ((key in vm) && isReserved(key)) {
  8417. warn(
  8418. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  8419. "Avoid defining component methods that start with _ or $."
  8420. );
  8421. }
  8422. }
  8423. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  8424. }
  8425. }
  8426. function initWatch (vm, watch) {
  8427. for (var key in watch) {
  8428. var handler = watch[key];
  8429. if (Array.isArray(handler)) {
  8430. for (var i = 0; i < handler.length; i++) {
  8431. createWatcher(vm, key, handler[i]);
  8432. }
  8433. } else {
  8434. createWatcher(vm, key, handler);
  8435. }
  8436. }
  8437. }
  8438. function createWatcher (
  8439. vm,
  8440. expOrFn,
  8441. handler,
  8442. options
  8443. ) {
  8444. if (isPlainObject(handler)) {
  8445. options = handler;
  8446. handler = handler.handler;
  8447. }
  8448. if (typeof handler === 'string') {
  8449. handler = vm[handler];
  8450. }
  8451. return vm.$watch(expOrFn, handler, options)
  8452. }
  8453. function stateMixin (Vue) {
  8454. // flow somehow has problems with directly declared definition object
  8455. // when using Object.defineProperty, so we have to procedurally build up
  8456. // the object here.
  8457. var dataDef = {};
  8458. dataDef.get = function () { return this._data };
  8459. var propsDef = {};
  8460. propsDef.get = function () { return this._props };
  8461. if (true) {
  8462. dataDef.set = function () {
  8463. warn(
  8464. 'Avoid replacing instance root $data. ' +
  8465. 'Use nested data properties instead.',
  8466. this
  8467. );
  8468. };
  8469. propsDef.set = function () {
  8470. warn("$props is readonly.", this);
  8471. };
  8472. }
  8473. Object.defineProperty(Vue.prototype, '$data', dataDef);
  8474. Object.defineProperty(Vue.prototype, '$props', propsDef);
  8475. Vue.prototype.$set = set;
  8476. Vue.prototype.$delete = del;
  8477. Vue.prototype.$watch = function (
  8478. expOrFn,
  8479. cb,
  8480. options
  8481. ) {
  8482. var vm = this;
  8483. if (isPlainObject(cb)) {
  8484. return createWatcher(vm, expOrFn, cb, options)
  8485. }
  8486. options = options || {};
  8487. options.user = true;
  8488. var watcher = new Watcher(vm, expOrFn, cb, options);
  8489. if (options.immediate) {
  8490. try {
  8491. cb.call(vm, watcher.value);
  8492. } catch (error) {
  8493. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  8494. }
  8495. }
  8496. return function unwatchFn () {
  8497. watcher.teardown();
  8498. }
  8499. };
  8500. }
  8501. /* */
  8502. var uid$3 = 0;
  8503. function initMixin (Vue) {
  8504. Vue.prototype._init = function (options) {
  8505. var vm = this;
  8506. // a uid
  8507. vm._uid = uid$3++;
  8508. var startTag, endTag;
  8509. /* istanbul ignore if */
  8510. if ( true && config.performance && mark) {
  8511. startTag = "vue-perf-start:" + (vm._uid);
  8512. endTag = "vue-perf-end:" + (vm._uid);
  8513. mark(startTag);
  8514. }
  8515. // a flag to avoid this being observed
  8516. vm._isVue = true;
  8517. // merge options
  8518. if (options && options._isComponent) {
  8519. // optimize internal component instantiation
  8520. // since dynamic options merging is pretty slow, and none of the
  8521. // internal component options needs special treatment.
  8522. initInternalComponent(vm, options);
  8523. } else {
  8524. vm.$options = mergeOptions(
  8525. resolveConstructorOptions(vm.constructor),
  8526. options || {},
  8527. vm
  8528. );
  8529. }
  8530. /* istanbul ignore else */
  8531. if (true) {
  8532. initProxy(vm);
  8533. } else {}
  8534. // expose real self
  8535. vm._self = vm;
  8536. initLifecycle(vm);
  8537. initEvents(vm);
  8538. initRender(vm);
  8539. callHook(vm, 'beforeCreate');
  8540. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  8541. initState(vm);
  8542. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  8543. !vm._$fallback && callHook(vm, 'created');
  8544. /* istanbul ignore if */
  8545. if ( true && config.performance && mark) {
  8546. vm._name = formatComponentName(vm, false);
  8547. mark(endTag);
  8548. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  8549. }
  8550. if (vm.$options.el) {
  8551. vm.$mount(vm.$options.el);
  8552. }
  8553. };
  8554. }
  8555. function initInternalComponent (vm, options) {
  8556. var opts = vm.$options = Object.create(vm.constructor.options);
  8557. // doing this because it's faster than dynamic enumeration.
  8558. var parentVnode = options._parentVnode;
  8559. opts.parent = options.parent;
  8560. opts._parentVnode = parentVnode;
  8561. var vnodeComponentOptions = parentVnode.componentOptions;
  8562. opts.propsData = vnodeComponentOptions.propsData;
  8563. opts._parentListeners = vnodeComponentOptions.listeners;
  8564. opts._renderChildren = vnodeComponentOptions.children;
  8565. opts._componentTag = vnodeComponentOptions.tag;
  8566. if (options.render) {
  8567. opts.render = options.render;
  8568. opts.staticRenderFns = options.staticRenderFns;
  8569. }
  8570. }
  8571. function resolveConstructorOptions (Ctor) {
  8572. var options = Ctor.options;
  8573. if (Ctor.super) {
  8574. var superOptions = resolveConstructorOptions(Ctor.super);
  8575. var cachedSuperOptions = Ctor.superOptions;
  8576. if (superOptions !== cachedSuperOptions) {
  8577. // super option changed,
  8578. // need to resolve new options.
  8579. Ctor.superOptions = superOptions;
  8580. // check if there are any late-modified/attached options (#4976)
  8581. var modifiedOptions = resolveModifiedOptions(Ctor);
  8582. // update base extend options
  8583. if (modifiedOptions) {
  8584. extend(Ctor.extendOptions, modifiedOptions);
  8585. }
  8586. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  8587. if (options.name) {
  8588. options.components[options.name] = Ctor;
  8589. }
  8590. }
  8591. }
  8592. return options
  8593. }
  8594. function resolveModifiedOptions (Ctor) {
  8595. var modified;
  8596. var latest = Ctor.options;
  8597. var sealed = Ctor.sealedOptions;
  8598. for (var key in latest) {
  8599. if (latest[key] !== sealed[key]) {
  8600. if (!modified) { modified = {}; }
  8601. modified[key] = latest[key];
  8602. }
  8603. }
  8604. return modified
  8605. }
  8606. function Vue (options) {
  8607. if ( true &&
  8608. !(this instanceof Vue)
  8609. ) {
  8610. warn('Vue is a constructor and should be called with the `new` keyword');
  8611. }
  8612. this._init(options);
  8613. }
  8614. initMixin(Vue);
  8615. stateMixin(Vue);
  8616. eventsMixin(Vue);
  8617. lifecycleMixin(Vue);
  8618. renderMixin(Vue);
  8619. /* */
  8620. function initUse (Vue) {
  8621. Vue.use = function (plugin) {
  8622. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  8623. if (installedPlugins.indexOf(plugin) > -1) {
  8624. return this
  8625. }
  8626. // additional parameters
  8627. var args = toArray(arguments, 1);
  8628. args.unshift(this);
  8629. if (typeof plugin.install === 'function') {
  8630. plugin.install.apply(plugin, args);
  8631. } else if (typeof plugin === 'function') {
  8632. plugin.apply(null, args);
  8633. }
  8634. installedPlugins.push(plugin);
  8635. return this
  8636. };
  8637. }
  8638. /* */
  8639. function initMixin$1 (Vue) {
  8640. Vue.mixin = function (mixin) {
  8641. this.options = mergeOptions(this.options, mixin);
  8642. return this
  8643. };
  8644. }
  8645. /* */
  8646. function initExtend (Vue) {
  8647. /**
  8648. * Each instance constructor, including Vue, has a unique
  8649. * cid. This enables us to create wrapped "child
  8650. * constructors" for prototypal inheritance and cache them.
  8651. */
  8652. Vue.cid = 0;
  8653. var cid = 1;
  8654. /**
  8655. * Class inheritance
  8656. */
  8657. Vue.extend = function (extendOptions) {
  8658. extendOptions = extendOptions || {};
  8659. var Super = this;
  8660. var SuperId = Super.cid;
  8661. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  8662. if (cachedCtors[SuperId]) {
  8663. return cachedCtors[SuperId]
  8664. }
  8665. var name = extendOptions.name || Super.options.name;
  8666. if ( true && name) {
  8667. validateComponentName(name);
  8668. }
  8669. var Sub = function VueComponent (options) {
  8670. this._init(options);
  8671. };
  8672. Sub.prototype = Object.create(Super.prototype);
  8673. Sub.prototype.constructor = Sub;
  8674. Sub.cid = cid++;
  8675. Sub.options = mergeOptions(
  8676. Super.options,
  8677. extendOptions
  8678. );
  8679. Sub['super'] = Super;
  8680. // For props and computed properties, we define the proxy getters on
  8681. // the Vue instances at extension time, on the extended prototype. This
  8682. // avoids Object.defineProperty calls for each instance created.
  8683. if (Sub.options.props) {
  8684. initProps$1(Sub);
  8685. }
  8686. if (Sub.options.computed) {
  8687. initComputed$1(Sub);
  8688. }
  8689. // allow further extension/mixin/plugin usage
  8690. Sub.extend = Super.extend;
  8691. Sub.mixin = Super.mixin;
  8692. Sub.use = Super.use;
  8693. // create asset registers, so extended classes
  8694. // can have their private assets too.
  8695. ASSET_TYPES.forEach(function (type) {
  8696. Sub[type] = Super[type];
  8697. });
  8698. // enable recursive self-lookup
  8699. if (name) {
  8700. Sub.options.components[name] = Sub;
  8701. }
  8702. // keep a reference to the super options at extension time.
  8703. // later at instantiation we can check if Super's options have
  8704. // been updated.
  8705. Sub.superOptions = Super.options;
  8706. Sub.extendOptions = extendOptions;
  8707. Sub.sealedOptions = extend({}, Sub.options);
  8708. // cache constructor
  8709. cachedCtors[SuperId] = Sub;
  8710. return Sub
  8711. };
  8712. }
  8713. function initProps$1 (Comp) {
  8714. var props = Comp.options.props;
  8715. for (var key in props) {
  8716. proxy(Comp.prototype, "_props", key);
  8717. }
  8718. }
  8719. function initComputed$1 (Comp) {
  8720. var computed = Comp.options.computed;
  8721. for (var key in computed) {
  8722. defineComputed(Comp.prototype, key, computed[key]);
  8723. }
  8724. }
  8725. /* */
  8726. function initAssetRegisters (Vue) {
  8727. /**
  8728. * Create asset registration methods.
  8729. */
  8730. ASSET_TYPES.forEach(function (type) {
  8731. Vue[type] = function (
  8732. id,
  8733. definition
  8734. ) {
  8735. if (!definition) {
  8736. return this.options[type + 's'][id]
  8737. } else {
  8738. /* istanbul ignore if */
  8739. if ( true && type === 'component') {
  8740. validateComponentName(id);
  8741. }
  8742. if (type === 'component' && isPlainObject(definition)) {
  8743. definition.name = definition.name || id;
  8744. definition = this.options._base.extend(definition);
  8745. }
  8746. if (type === 'directive' && typeof definition === 'function') {
  8747. definition = { bind: definition, update: definition };
  8748. }
  8749. this.options[type + 's'][id] = definition;
  8750. return definition
  8751. }
  8752. };
  8753. });
  8754. }
  8755. /* */
  8756. function getComponentName (opts) {
  8757. return opts && (opts.Ctor.options.name || opts.tag)
  8758. }
  8759. function matches (pattern, name) {
  8760. if (Array.isArray(pattern)) {
  8761. return pattern.indexOf(name) > -1
  8762. } else if (typeof pattern === 'string') {
  8763. return pattern.split(',').indexOf(name) > -1
  8764. } else if (isRegExp(pattern)) {
  8765. return pattern.test(name)
  8766. }
  8767. /* istanbul ignore next */
  8768. return false
  8769. }
  8770. function pruneCache (keepAliveInstance, filter) {
  8771. var cache = keepAliveInstance.cache;
  8772. var keys = keepAliveInstance.keys;
  8773. var _vnode = keepAliveInstance._vnode;
  8774. for (var key in cache) {
  8775. var cachedNode = cache[key];
  8776. if (cachedNode) {
  8777. var name = getComponentName(cachedNode.componentOptions);
  8778. if (name && !filter(name)) {
  8779. pruneCacheEntry(cache, key, keys, _vnode);
  8780. }
  8781. }
  8782. }
  8783. }
  8784. function pruneCacheEntry (
  8785. cache,
  8786. key,
  8787. keys,
  8788. current
  8789. ) {
  8790. var cached$$1 = cache[key];
  8791. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8792. cached$$1.componentInstance.$destroy();
  8793. }
  8794. cache[key] = null;
  8795. remove(keys, key);
  8796. }
  8797. var patternTypes = [String, RegExp, Array];
  8798. var KeepAlive = {
  8799. name: 'keep-alive',
  8800. abstract: true,
  8801. props: {
  8802. include: patternTypes,
  8803. exclude: patternTypes,
  8804. max: [String, Number]
  8805. },
  8806. created: function created () {
  8807. this.cache = Object.create(null);
  8808. this.keys = [];
  8809. },
  8810. destroyed: function destroyed () {
  8811. for (var key in this.cache) {
  8812. pruneCacheEntry(this.cache, key, this.keys);
  8813. }
  8814. },
  8815. mounted: function mounted () {
  8816. var this$1 = this;
  8817. this.$watch('include', function (val) {
  8818. pruneCache(this$1, function (name) { return matches(val, name); });
  8819. });
  8820. this.$watch('exclude', function (val) {
  8821. pruneCache(this$1, function (name) { return !matches(val, name); });
  8822. });
  8823. },
  8824. render: function render () {
  8825. var slot = this.$slots.default;
  8826. var vnode = getFirstComponentChild(slot);
  8827. var componentOptions = vnode && vnode.componentOptions;
  8828. if (componentOptions) {
  8829. // check pattern
  8830. var name = getComponentName(componentOptions);
  8831. var ref = this;
  8832. var include = ref.include;
  8833. var exclude = ref.exclude;
  8834. if (
  8835. // not included
  8836. (include && (!name || !matches(include, name))) ||
  8837. // excluded
  8838. (exclude && name && matches(exclude, name))
  8839. ) {
  8840. return vnode
  8841. }
  8842. var ref$1 = this;
  8843. var cache = ref$1.cache;
  8844. var keys = ref$1.keys;
  8845. var key = vnode.key == null
  8846. // same constructor may get registered as different local components
  8847. // so cid alone is not enough (#3269)
  8848. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8849. : vnode.key;
  8850. if (cache[key]) {
  8851. vnode.componentInstance = cache[key].componentInstance;
  8852. // make current key freshest
  8853. remove(keys, key);
  8854. keys.push(key);
  8855. } else {
  8856. cache[key] = vnode;
  8857. keys.push(key);
  8858. // prune oldest entry
  8859. if (this.max && keys.length > parseInt(this.max)) {
  8860. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8861. }
  8862. }
  8863. vnode.data.keepAlive = true;
  8864. }
  8865. return vnode || (slot && slot[0])
  8866. }
  8867. };
  8868. var builtInComponents = {
  8869. KeepAlive: KeepAlive
  8870. };
  8871. /* */
  8872. function initGlobalAPI (Vue) {
  8873. // config
  8874. var configDef = {};
  8875. configDef.get = function () { return config; };
  8876. if (true) {
  8877. configDef.set = function () {
  8878. warn(
  8879. 'Do not replace the Vue.config object, set individual fields instead.'
  8880. );
  8881. };
  8882. }
  8883. Object.defineProperty(Vue, 'config', configDef);
  8884. // exposed util methods.
  8885. // NOTE: these are not considered part of the public API - avoid relying on
  8886. // them unless you are aware of the risk.
  8887. Vue.util = {
  8888. warn: warn,
  8889. extend: extend,
  8890. mergeOptions: mergeOptions,
  8891. defineReactive: defineReactive$$1
  8892. };
  8893. Vue.set = set;
  8894. Vue.delete = del;
  8895. Vue.nextTick = nextTick;
  8896. // 2.6 explicit observable API
  8897. Vue.observable = function (obj) {
  8898. observe(obj);
  8899. return obj
  8900. };
  8901. Vue.options = Object.create(null);
  8902. ASSET_TYPES.forEach(function (type) {
  8903. Vue.options[type + 's'] = Object.create(null);
  8904. });
  8905. // this is used to identify the "base" constructor to extend all plain-object
  8906. // components with in Weex's multi-instance scenarios.
  8907. Vue.options._base = Vue;
  8908. extend(Vue.options.components, builtInComponents);
  8909. initUse(Vue);
  8910. initMixin$1(Vue);
  8911. initExtend(Vue);
  8912. initAssetRegisters(Vue);
  8913. }
  8914. initGlobalAPI(Vue);
  8915. Object.defineProperty(Vue.prototype, '$isServer', {
  8916. get: isServerRendering
  8917. });
  8918. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8919. get: function get () {
  8920. /* istanbul ignore next */
  8921. return this.$vnode && this.$vnode.ssrContext
  8922. }
  8923. });
  8924. // expose FunctionalRenderContext for ssr runtime helper installation
  8925. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8926. value: FunctionalRenderContext
  8927. });
  8928. Vue.version = '2.6.11';
  8929. /**
  8930. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8931. */
  8932. var ARRAYTYPE = '[object Array]';
  8933. var OBJECTTYPE = '[object Object]';
  8934. var NULLTYPE = '[object Null]';
  8935. var UNDEFINEDTYPE = '[object Undefined]';
  8936. // const FUNCTIONTYPE = '[object Function]'
  8937. function diff(current, pre) {
  8938. var result = {};
  8939. syncKeys(current, pre);
  8940. _diff(current, pre, '', result);
  8941. return result
  8942. }
  8943. function syncKeys(current, pre) {
  8944. if (current === pre) { return }
  8945. var rootCurrentType = type(current);
  8946. var rootPreType = type(pre);
  8947. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8948. if(Object.keys(current).length >= Object.keys(pre).length){
  8949. for (var key in pre) {
  8950. var currentValue = current[key];
  8951. if (currentValue === undefined) {
  8952. current[key] = null;
  8953. } else {
  8954. syncKeys(currentValue, pre[key]);
  8955. }
  8956. }
  8957. }
  8958. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8959. if (current.length >= pre.length) {
  8960. pre.forEach(function (item, index) {
  8961. syncKeys(current[index], item);
  8962. });
  8963. }
  8964. }
  8965. }
  8966. function nullOrUndefined(currentType, preType) {
  8967. if(
  8968. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8969. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8970. ) {
  8971. return false
  8972. }
  8973. return true
  8974. }
  8975. function _diff(current, pre, path, result) {
  8976. if (current === pre) { return }
  8977. var rootCurrentType = type(current);
  8978. var rootPreType = type(pre);
  8979. if (rootCurrentType == OBJECTTYPE) {
  8980. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8981. setResult(result, path, current);
  8982. } else {
  8983. var loop = function ( key ) {
  8984. var currentValue = current[key];
  8985. var preValue = pre[key];
  8986. var currentType = type(currentValue);
  8987. var preType = type(preValue);
  8988. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8989. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8990. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8991. }
  8992. } else if (currentType == ARRAYTYPE) {
  8993. if (preType != ARRAYTYPE) {
  8994. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8995. } else {
  8996. if (currentValue.length < preValue.length) {
  8997. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8998. } else {
  8999. currentValue.forEach(function (item, index) {
  9000. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  9001. });
  9002. }
  9003. }
  9004. } else if (currentType == OBJECTTYPE) {
  9005. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  9006. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9007. } else {
  9008. for (var subKey in currentValue) {
  9009. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  9010. }
  9011. }
  9012. }
  9013. };
  9014. for (var key in current) loop( key );
  9015. }
  9016. } else if (rootCurrentType == ARRAYTYPE) {
  9017. if (rootPreType != ARRAYTYPE) {
  9018. setResult(result, path, current);
  9019. } else {
  9020. if (current.length < pre.length) {
  9021. setResult(result, path, current);
  9022. } else {
  9023. current.forEach(function (item, index) {
  9024. _diff(item, pre[index], path + '[' + index + ']', result);
  9025. });
  9026. }
  9027. }
  9028. } else {
  9029. setResult(result, path, current);
  9030. }
  9031. }
  9032. function setResult(result, k, v) {
  9033. // if (type(v) != FUNCTIONTYPE) {
  9034. result[k] = v;
  9035. // }
  9036. }
  9037. function type(obj) {
  9038. return Object.prototype.toString.call(obj)
  9039. }
  9040. /* */
  9041. function flushCallbacks$1(vm) {
  9042. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  9043. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"project_order","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG) {
  9044. var mpInstance = vm.$scope;
  9045. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9046. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  9047. }
  9048. var copies = vm.__next_tick_callbacks.slice(0);
  9049. vm.__next_tick_callbacks.length = 0;
  9050. for (var i = 0; i < copies.length; i++) {
  9051. copies[i]();
  9052. }
  9053. }
  9054. }
  9055. function hasRenderWatcher(vm) {
  9056. return queue.find(function (watcher) { return vm._watcher === watcher; })
  9057. }
  9058. function nextTick$1(vm, cb) {
  9059. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  9060. //2.nextTick 之前存在 render watcher
  9061. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  9062. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"project_order","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG){
  9063. var mpInstance = vm.$scope;
  9064. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9065. ']:nextVueTick');
  9066. }
  9067. return nextTick(cb, vm)
  9068. }else{
  9069. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"project_order","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG){
  9070. var mpInstance$1 = vm.$scope;
  9071. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  9072. ']:nextMPTick');
  9073. }
  9074. }
  9075. var _resolve;
  9076. if (!vm.__next_tick_callbacks) {
  9077. vm.__next_tick_callbacks = [];
  9078. }
  9079. vm.__next_tick_callbacks.push(function () {
  9080. if (cb) {
  9081. try {
  9082. cb.call(vm);
  9083. } catch (e) {
  9084. handleError(e, vm, 'nextTick');
  9085. }
  9086. } else if (_resolve) {
  9087. _resolve(vm);
  9088. }
  9089. });
  9090. // $flow-disable-line
  9091. if (!cb && typeof Promise !== 'undefined') {
  9092. return new Promise(function (resolve) {
  9093. _resolve = resolve;
  9094. })
  9095. }
  9096. }
  9097. /* */
  9098. function clearInstance(key, value) {
  9099. // 简易去除 Vue 和小程序组件实例
  9100. if (value) {
  9101. if (value._isVue || value.__v_isMPComponent) {
  9102. return {}
  9103. }
  9104. }
  9105. return value
  9106. }
  9107. function cloneWithData(vm) {
  9108. // 确保当前 vm 所有数据被同步
  9109. var ret = Object.create(null);
  9110. var dataKeys = [].concat(
  9111. Object.keys(vm._data || {}),
  9112. Object.keys(vm._computedWatchers || {}));
  9113. dataKeys.reduce(function(ret, key) {
  9114. ret[key] = vm[key];
  9115. return ret
  9116. }, ret);
  9117. // vue-composition-api
  9118. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  9119. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  9120. if (rawBindings) {
  9121. Object.keys(rawBindings).forEach(function (key) {
  9122. ret[key] = vm[key];
  9123. });
  9124. }
  9125. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  9126. Object.assign(ret, vm.$mp.data || {});
  9127. if (
  9128. Array.isArray(vm.$options.behaviors) &&
  9129. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9130. ) { //form-field
  9131. ret['name'] = vm.name;
  9132. ret['value'] = vm.value;
  9133. }
  9134. return JSON.parse(JSON.stringify(ret, clearInstance))
  9135. }
  9136. var patch = function(oldVnode, vnode) {
  9137. var this$1 = this;
  9138. if (vnode === null) { //destroy
  9139. return
  9140. }
  9141. if (this.mpType === 'page' || this.mpType === 'component') {
  9142. var mpInstance = this.$scope;
  9143. var data = Object.create(null);
  9144. try {
  9145. data = cloneWithData(this);
  9146. } catch (err) {
  9147. console.error(err);
  9148. }
  9149. data.__webviewId__ = mpInstance.data.__webviewId__;
  9150. var mpData = Object.create(null);
  9151. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  9152. mpData[key] = mpInstance.data[key];
  9153. });
  9154. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  9155. if (Object.keys(diffData).length) {
  9156. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"project_order","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}).VUE_APP_DEBUG) {
  9157. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  9158. ']差量更新',
  9159. JSON.stringify(diffData));
  9160. }
  9161. this.__next_tick_pending = true;
  9162. mpInstance.setData(diffData, function () {
  9163. this$1.__next_tick_pending = false;
  9164. flushCallbacks$1(this$1);
  9165. });
  9166. } else {
  9167. flushCallbacks$1(this);
  9168. }
  9169. }
  9170. };
  9171. /* */
  9172. function createEmptyRender() {
  9173. }
  9174. function mountComponent$1(
  9175. vm,
  9176. el,
  9177. hydrating
  9178. ) {
  9179. if (!vm.mpType) {//main.js 中的 new Vue
  9180. return vm
  9181. }
  9182. if (vm.mpType === 'app') {
  9183. vm.$options.render = createEmptyRender;
  9184. }
  9185. if (!vm.$options.render) {
  9186. vm.$options.render = createEmptyRender;
  9187. if (true) {
  9188. /* istanbul ignore if */
  9189. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  9190. vm.$options.el || el) {
  9191. warn(
  9192. 'You are using the runtime-only build of Vue where the template ' +
  9193. 'compiler is not available. Either pre-compile the templates into ' +
  9194. 'render functions, or use the compiler-included build.',
  9195. vm
  9196. );
  9197. } else {
  9198. warn(
  9199. 'Failed to mount component: template or render function not defined.',
  9200. vm
  9201. );
  9202. }
  9203. }
  9204. }
  9205. !vm._$fallback && callHook(vm, 'beforeMount');
  9206. var updateComponent = function () {
  9207. vm._update(vm._render(), hydrating);
  9208. };
  9209. // we set this to vm._watcher inside the watcher's constructor
  9210. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  9211. // component's mounted hook), which relies on vm._watcher being already defined
  9212. new Watcher(vm, updateComponent, noop, {
  9213. before: function before() {
  9214. if (vm._isMounted && !vm._isDestroyed) {
  9215. callHook(vm, 'beforeUpdate');
  9216. }
  9217. }
  9218. }, true /* isRenderWatcher */);
  9219. hydrating = false;
  9220. return vm
  9221. }
  9222. /* */
  9223. function renderClass (
  9224. staticClass,
  9225. dynamicClass
  9226. ) {
  9227. if (isDef(staticClass) || isDef(dynamicClass)) {
  9228. return concat(staticClass, stringifyClass(dynamicClass))
  9229. }
  9230. /* istanbul ignore next */
  9231. return ''
  9232. }
  9233. function concat (a, b) {
  9234. return a ? b ? (a + ' ' + b) : a : (b || '')
  9235. }
  9236. function stringifyClass (value) {
  9237. if (Array.isArray(value)) {
  9238. return stringifyArray(value)
  9239. }
  9240. if (isObject(value)) {
  9241. return stringifyObject(value)
  9242. }
  9243. if (typeof value === 'string') {
  9244. return value
  9245. }
  9246. /* istanbul ignore next */
  9247. return ''
  9248. }
  9249. function stringifyArray (value) {
  9250. var res = '';
  9251. var stringified;
  9252. for (var i = 0, l = value.length; i < l; i++) {
  9253. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  9254. if (res) { res += ' '; }
  9255. res += stringified;
  9256. }
  9257. }
  9258. return res
  9259. }
  9260. function stringifyObject (value) {
  9261. var res = '';
  9262. for (var key in value) {
  9263. if (value[key]) {
  9264. if (res) { res += ' '; }
  9265. res += key;
  9266. }
  9267. }
  9268. return res
  9269. }
  9270. /* */
  9271. var parseStyleText = cached(function (cssText) {
  9272. var res = {};
  9273. var listDelimiter = /;(?![^(]*\))/g;
  9274. var propertyDelimiter = /:(.+)/;
  9275. cssText.split(listDelimiter).forEach(function (item) {
  9276. if (item) {
  9277. var tmp = item.split(propertyDelimiter);
  9278. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  9279. }
  9280. });
  9281. return res
  9282. });
  9283. // normalize possible array / string values into Object
  9284. function normalizeStyleBinding (bindingStyle) {
  9285. if (Array.isArray(bindingStyle)) {
  9286. return toObject(bindingStyle)
  9287. }
  9288. if (typeof bindingStyle === 'string') {
  9289. return parseStyleText(bindingStyle)
  9290. }
  9291. return bindingStyle
  9292. }
  9293. /* */
  9294. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  9295. function getTarget(obj, path) {
  9296. var parts = path.split('.');
  9297. var key = parts[0];
  9298. if (key.indexOf('__$n') === 0) { //number index
  9299. key = parseInt(key.replace('__$n', ''));
  9300. }
  9301. if (parts.length === 1) {
  9302. return obj[key]
  9303. }
  9304. return getTarget(obj[key], parts.slice(1).join('.'))
  9305. }
  9306. function internalMixin(Vue) {
  9307. Vue.config.errorHandler = function(err, vm, info) {
  9308. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  9309. console.error(err);
  9310. /* eslint-disable no-undef */
  9311. var app = typeof getApp === 'function' && getApp();
  9312. if (app && app.onError) {
  9313. app.onError(err);
  9314. }
  9315. };
  9316. var oldEmit = Vue.prototype.$emit;
  9317. Vue.prototype.$emit = function(event) {
  9318. if (this.$scope && event) {
  9319. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  9320. if (triggerEvent) {
  9321. try {
  9322. triggerEvent.call(this.$scope, event, {
  9323. __args__: toArray(arguments, 1)
  9324. });
  9325. } catch (error) {
  9326. }
  9327. }
  9328. }
  9329. return oldEmit.apply(this, arguments)
  9330. };
  9331. Vue.prototype.$nextTick = function(fn) {
  9332. return nextTick$1(this, fn)
  9333. };
  9334. MP_METHODS.forEach(function (method) {
  9335. Vue.prototype[method] = function(args) {
  9336. if (this.$scope && this.$scope[method]) {
  9337. return this.$scope[method](args)
  9338. }
  9339. // mp-alipay
  9340. if (typeof my === 'undefined') {
  9341. return
  9342. }
  9343. if (method === 'createSelectorQuery') {
  9344. /* eslint-disable no-undef */
  9345. return my.createSelectorQuery(args)
  9346. } else if (method === 'createIntersectionObserver') {
  9347. /* eslint-disable no-undef */
  9348. return my.createIntersectionObserver(args)
  9349. }
  9350. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  9351. };
  9352. });
  9353. Vue.prototype.__init_provide = initProvide;
  9354. Vue.prototype.__init_injections = initInjections;
  9355. Vue.prototype.__call_hook = function(hook, args) {
  9356. var vm = this;
  9357. // #7573 disable dep collection when invoking lifecycle hooks
  9358. pushTarget();
  9359. var handlers = vm.$options[hook];
  9360. var info = hook + " hook";
  9361. var ret;
  9362. if (handlers) {
  9363. for (var i = 0, j = handlers.length; i < j; i++) {
  9364. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  9365. }
  9366. }
  9367. if (vm._hasHookEvent) {
  9368. vm.$emit('hook:' + hook, args);
  9369. }
  9370. popTarget();
  9371. return ret
  9372. };
  9373. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  9374. if (Array.isArray(modifiers)) {
  9375. if (modifiers.indexOf('trim') !== -1) {
  9376. value = value.trim();
  9377. }
  9378. if (modifiers.indexOf('number') !== -1) {
  9379. value = this._n(value);
  9380. }
  9381. }
  9382. if (!target) {
  9383. target = this;
  9384. }
  9385. // 解决动态属性添加
  9386. Vue.set(target, key, value);
  9387. };
  9388. Vue.prototype.__set_sync = function(target, key, value) {
  9389. if (!target) {
  9390. target = this;
  9391. }
  9392. // 解决动态属性添加
  9393. Vue.set(target, key, value);
  9394. };
  9395. Vue.prototype.__get_orig = function(item) {
  9396. if (isPlainObject(item)) {
  9397. return item['$orig'] || item
  9398. }
  9399. return item
  9400. };
  9401. Vue.prototype.__get_value = function(dataPath, target) {
  9402. return getTarget(target || this, dataPath)
  9403. };
  9404. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  9405. return renderClass(staticClass, dynamicClass)
  9406. };
  9407. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  9408. if (!dynamicStyle && !staticStyle) {
  9409. return ''
  9410. }
  9411. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  9412. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  9413. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  9414. };
  9415. Vue.prototype.__map = function(val, iteratee) {
  9416. //TODO 暂不考虑 string
  9417. var ret, i, l, keys, key;
  9418. if (Array.isArray(val)) {
  9419. ret = new Array(val.length);
  9420. for (i = 0, l = val.length; i < l; i++) {
  9421. ret[i] = iteratee(val[i], i);
  9422. }
  9423. return ret
  9424. } else if (isObject(val)) {
  9425. keys = Object.keys(val);
  9426. ret = Object.create(null);
  9427. for (i = 0, l = keys.length; i < l; i++) {
  9428. key = keys[i];
  9429. ret[key] = iteratee(val[key], key, i);
  9430. }
  9431. return ret
  9432. } else if (typeof val === 'number') {
  9433. ret = new Array(val);
  9434. for (i = 0, l = val; i < l; i++) {
  9435. // 第一个参数暂时仍和小程序一致
  9436. ret[i] = iteratee(i, i);
  9437. }
  9438. return ret
  9439. }
  9440. return []
  9441. };
  9442. }
  9443. /* */
  9444. var LIFECYCLE_HOOKS$1 = [
  9445. //App
  9446. 'onLaunch',
  9447. 'onShow',
  9448. 'onHide',
  9449. 'onUniNViewMessage',
  9450. 'onPageNotFound',
  9451. 'onThemeChange',
  9452. 'onError',
  9453. 'onUnhandledRejection',
  9454. //Page
  9455. 'onInit',
  9456. 'onLoad',
  9457. // 'onShow',
  9458. 'onReady',
  9459. // 'onHide',
  9460. 'onUnload',
  9461. 'onPullDownRefresh',
  9462. 'onReachBottom',
  9463. 'onTabItemTap',
  9464. 'onAddToFavorites',
  9465. 'onShareTimeline',
  9466. 'onShareAppMessage',
  9467. 'onResize',
  9468. 'onPageScroll',
  9469. 'onNavigationBarButtonTap',
  9470. 'onBackPress',
  9471. 'onNavigationBarSearchInputChanged',
  9472. 'onNavigationBarSearchInputConfirmed',
  9473. 'onNavigationBarSearchInputClicked',
  9474. //Component
  9475. // 'onReady', // 兼容旧版本,应该移除该事件
  9476. 'onPageShow',
  9477. 'onPageHide',
  9478. 'onPageResize',
  9479. 'onUploadDouyinVideo'
  9480. ];
  9481. function lifecycleMixin$1(Vue) {
  9482. //fixed vue-class-component
  9483. var oldExtend = Vue.extend;
  9484. Vue.extend = function(extendOptions) {
  9485. extendOptions = extendOptions || {};
  9486. var methods = extendOptions.methods;
  9487. if (methods) {
  9488. Object.keys(methods).forEach(function (methodName) {
  9489. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  9490. extendOptions[methodName] = methods[methodName];
  9491. delete methods[methodName];
  9492. }
  9493. });
  9494. }
  9495. return oldExtend.call(this, extendOptions)
  9496. };
  9497. var strategies = Vue.config.optionMergeStrategies;
  9498. var mergeHook = strategies.created;
  9499. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  9500. strategies[hook] = mergeHook;
  9501. });
  9502. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  9503. }
  9504. /* */
  9505. // install platform patch function
  9506. Vue.prototype.__patch__ = patch;
  9507. // public mount method
  9508. Vue.prototype.$mount = function(
  9509. el ,
  9510. hydrating
  9511. ) {
  9512. return mountComponent$1(this, el, hydrating)
  9513. };
  9514. lifecycleMixin$1(Vue);
  9515. internalMixin(Vue);
  9516. /* */
  9517. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  9518. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  9519. /***/ }),
  9520. /* 22 */
  9521. /*!***************************************!*\
  9522. !*** E:/工作1/project_order/pages.json ***!
  9523. \***************************************/
  9524. /*! no static exports found */
  9525. /***/ (function(module, exports) {
  9526. /***/ }),
  9527. /* 23 */,
  9528. /* 24 */,
  9529. /* 25 */,
  9530. /* 26 */,
  9531. /* 27 */,
  9532. /* 28 */
  9533. /*!**********************************************************************************************************!*\
  9534. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  9535. \**********************************************************************************************************/
  9536. /*! exports provided: default */
  9537. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9538. "use strict";
  9539. __webpack_require__.r(__webpack_exports__);
  9540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  9541. /* globals __VUE_SSR_CONTEXT__ */
  9542. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  9543. // This module is a runtime utility for cleaner component module output and will
  9544. // be included in the final webpack user bundle.
  9545. function normalizeComponent (
  9546. scriptExports,
  9547. render,
  9548. staticRenderFns,
  9549. functionalTemplate,
  9550. injectStyles,
  9551. scopeId,
  9552. moduleIdentifier, /* server only */
  9553. shadowMode, /* vue-cli only */
  9554. components, // fixed by xxxxxx auto components
  9555. renderjs // fixed by xxxxxx renderjs
  9556. ) {
  9557. // Vue.extend constructor export interop
  9558. var options = typeof scriptExports === 'function'
  9559. ? scriptExports.options
  9560. : scriptExports
  9561. // fixed by xxxxxx auto components
  9562. if (components) {
  9563. if (!options.components) {
  9564. options.components = {}
  9565. }
  9566. var hasOwn = Object.prototype.hasOwnProperty
  9567. for (var name in components) {
  9568. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  9569. options.components[name] = components[name]
  9570. }
  9571. }
  9572. }
  9573. // fixed by xxxxxx renderjs
  9574. if (renderjs) {
  9575. if(typeof renderjs.beforeCreate === 'function'){
  9576. renderjs.beforeCreate = [renderjs.beforeCreate]
  9577. }
  9578. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  9579. this[renderjs.__module] = this
  9580. });
  9581. (options.mixins || (options.mixins = [])).push(renderjs)
  9582. }
  9583. // render functions
  9584. if (render) {
  9585. options.render = render
  9586. options.staticRenderFns = staticRenderFns
  9587. options._compiled = true
  9588. }
  9589. // functional template
  9590. if (functionalTemplate) {
  9591. options.functional = true
  9592. }
  9593. // scopedId
  9594. if (scopeId) {
  9595. options._scopeId = 'data-v-' + scopeId
  9596. }
  9597. var hook
  9598. if (moduleIdentifier) { // server build
  9599. hook = function (context) {
  9600. // 2.3 injection
  9601. context =
  9602. context || // cached call
  9603. (this.$vnode && this.$vnode.ssrContext) || // stateful
  9604. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  9605. // 2.2 with runInNewContext: true
  9606. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  9607. context = __VUE_SSR_CONTEXT__
  9608. }
  9609. // inject component styles
  9610. if (injectStyles) {
  9611. injectStyles.call(this, context)
  9612. }
  9613. // register component module identifier for async chunk inferrence
  9614. if (context && context._registeredComponents) {
  9615. context._registeredComponents.add(moduleIdentifier)
  9616. }
  9617. }
  9618. // used by ssr in case component is cached and beforeCreate
  9619. // never gets called
  9620. options._ssrRegister = hook
  9621. } else if (injectStyles) {
  9622. hook = shadowMode
  9623. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  9624. : injectStyles
  9625. }
  9626. if (hook) {
  9627. if (options.functional) {
  9628. // for template-only hot-reload because in that case the render fn doesn't
  9629. // go through the normalizer
  9630. options._injectStyles = hook
  9631. // register for functioal component in vue file
  9632. var originalRender = options.render
  9633. options.render = function renderWithStyleInjection (h, context) {
  9634. hook.call(context)
  9635. return originalRender(h, context)
  9636. }
  9637. } else {
  9638. // inject component registration as beforeCreate hook
  9639. var existing = options.beforeCreate
  9640. options.beforeCreate = existing
  9641. ? [].concat(existing, hook)
  9642. : [hook]
  9643. }
  9644. }
  9645. return {
  9646. exports: scriptExports,
  9647. options: options
  9648. }
  9649. }
  9650. /***/ }),
  9651. /* 29 */
  9652. /*!*****************************************************!*\
  9653. !*** E:/工作1/project_order/uni.promisify.adaptor.js ***!
  9654. \*****************************************************/
  9655. /*! no static exports found */
  9656. /***/ (function(module, exports, __webpack_require__) {
  9657. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 12);
  9658. uni.addInterceptor({
  9659. returnValue: function returnValue(res) {
  9660. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  9661. return res;
  9662. }
  9663. return new Promise(function (resolve, reject) {
  9664. res.then(function (res) {
  9665. return res[0] ? reject(res[0]) : resolve(res[1]);
  9666. });
  9667. });
  9668. }
  9669. });
  9670. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  9671. /***/ }),
  9672. /* 30 */
  9673. /*!**********************************************************!*\
  9674. !*** E:/工作1/project_order/uni_modules/uview-ui/index.js ***!
  9675. \**********************************************************/
  9676. /*! no static exports found */
  9677. /***/ (function(module, exports, __webpack_require__) {
  9678. "use strict";
  9679. /* WEBPACK VAR INJECTION */(function(uni) {
  9680. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9681. Object.defineProperty(exports, "__esModule", {
  9682. value: true
  9683. });
  9684. exports.default = void 0;
  9685. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9686. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 31));
  9687. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 32));
  9688. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 33));
  9689. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 51));
  9690. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 55));
  9691. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 56));
  9692. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 57));
  9693. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 58));
  9694. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 59));
  9695. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 62));
  9696. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 63));
  9697. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 153));
  9698. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 111));
  9699. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 154));
  9700. 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; }
  9701. 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; }
  9702. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9703. var pleaseSetTranspileDependencies = {},
  9704. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9705. // 引入全局mixin
  9706. var $u = _objectSpread(_objectSpread({
  9707. route: _route.default,
  9708. date: _index.default.timeFormat,
  9709. // 另名date
  9710. colorGradient: _colorGradient.default.colorGradient,
  9711. hexToRgb: _colorGradient.default.hexToRgb,
  9712. rgbToHex: _colorGradient.default.rgbToHex,
  9713. colorToRgba: _colorGradient.default.colorToRgba,
  9714. test: _test.default,
  9715. type: ['primary', 'success', 'error', 'warning', 'info'],
  9716. http: new _luchRequest.default(),
  9717. config: _config.default,
  9718. // uView配置信息相关,比如版本号
  9719. zIndex: _zIndex.default,
  9720. debounce: _debounce.default,
  9721. throttle: _throttle.default,
  9722. mixin: _mixin.default,
  9723. mpMixin: _mpMixin.default,
  9724. props: _props.default
  9725. }, _index.default), {}, {
  9726. color: _color.default,
  9727. platform: _platform.default
  9728. });
  9729. // $u挂载到uni对象上
  9730. uni.$u = $u;
  9731. var install = function install(Vue) {
  9732. // 时间格式化,同时两个名称,date和timeFormat
  9733. Vue.filter('timeFormat', function (timestamp, format) {
  9734. return uni.$u.timeFormat(timestamp, format);
  9735. });
  9736. Vue.filter('date', function (timestamp, format) {
  9737. return uni.$u.timeFormat(timestamp, format);
  9738. });
  9739. // 将多久以前的方法,注入到全局过滤器
  9740. Vue.filter('timeFrom', function (timestamp, format) {
  9741. return uni.$u.timeFrom(timestamp, format);
  9742. });
  9743. // 同时挂载到uni和Vue.prototype中
  9744. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9745. Vue.prototype.$u = $u;
  9746. Vue.mixin(_mixin.default);
  9747. };
  9748. var _default = {
  9749. install: install
  9750. };
  9751. exports.default = _default;
  9752. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  9753. /***/ }),
  9754. /* 31 */
  9755. /*!*********************************************************************!*\
  9756. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9757. \*********************************************************************/
  9758. /*! no static exports found */
  9759. /***/ (function(module, exports, __webpack_require__) {
  9760. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9761. // 定义每个组件都可能需要用到的外部样式以及类名
  9762. props: {
  9763. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9764. customStyle: {
  9765. type: [Object, String],
  9766. default: function _default() {
  9767. return {};
  9768. }
  9769. },
  9770. customClass: {
  9771. type: String,
  9772. default: ''
  9773. },
  9774. // 跳转的页面路径
  9775. url: {
  9776. type: String,
  9777. default: ''
  9778. },
  9779. // 页面跳转的类型
  9780. linkType: {
  9781. type: String,
  9782. default: 'navigateTo'
  9783. }
  9784. },
  9785. data: function data() {
  9786. return {};
  9787. },
  9788. onLoad: function onLoad() {
  9789. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9790. this.$u.getRect = this.$uGetRect;
  9791. },
  9792. created: function created() {
  9793. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9794. this.$u.getRect = this.$uGetRect;
  9795. },
  9796. computed: {
  9797. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9798. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9799. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9800. $u: function $u() {
  9801. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9802. return uni.$u.deepMerge(uni.$u, {
  9803. props: undefined,
  9804. http: undefined,
  9805. mixin: undefined
  9806. });
  9807. },
  9808. /**
  9809. * 生成bem规则类名
  9810. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9811. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9812. * @param {String} name 组件名称
  9813. * @param {Array} fixed 一直会存在的类名
  9814. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9815. * @returns {Array|string}
  9816. */
  9817. bem: function bem() {
  9818. return function (name, fixed, change) {
  9819. var _this = this;
  9820. // 类名前缀
  9821. var prefix = "u-".concat(name, "--");
  9822. var classes = {};
  9823. if (fixed) {
  9824. fixed.map(function (item) {
  9825. // 这里的类名,会一直存在
  9826. classes[prefix + _this[item]] = true;
  9827. });
  9828. }
  9829. if (change) {
  9830. change.map(function (item) {
  9831. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9832. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9833. });
  9834. }
  9835. return Object.keys(classes)
  9836. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9837. .join(' ');
  9838. };
  9839. }
  9840. },
  9841. methods: {
  9842. // 跳转某一个页面
  9843. openPage: function openPage() {
  9844. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9845. var url = this[urlKey];
  9846. if (url) {
  9847. // 执行类似uni.navigateTo的方法
  9848. uni[this.linkType]({
  9849. url: url
  9850. });
  9851. }
  9852. },
  9853. // 查询节点信息
  9854. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9855. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9856. $uGetRect: function $uGetRect(selector, all) {
  9857. var _this2 = this;
  9858. return new Promise(function (resolve) {
  9859. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9860. if (all && Array.isArray(rect) && rect.length) {
  9861. resolve(rect);
  9862. }
  9863. if (!all && rect) {
  9864. resolve(rect);
  9865. }
  9866. }).exec();
  9867. });
  9868. },
  9869. getParentData: function getParentData() {
  9870. var _this3 = this;
  9871. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9872. // 避免在created中去定义parent变量
  9873. if (!this.parent) this.parent = {};
  9874. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9875. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9876. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9877. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9878. this.parent = uni.$u.$parent.call(this, parentName);
  9879. if (this.parent.children) {
  9880. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9881. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9882. }
  9883. if (this.parent && this.parentData) {
  9884. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9885. Object.keys(this.parentData).map(function (key) {
  9886. _this3.parentData[key] = _this3.parent[key];
  9887. });
  9888. }
  9889. },
  9890. // 阻止事件冒泡
  9891. preventEvent: function preventEvent(e) {
  9892. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9893. },
  9894. // 空操作
  9895. noop: function noop(e) {
  9896. this.preventEvent(e);
  9897. }
  9898. },
  9899. onReachBottom: function onReachBottom() {
  9900. uni.$emit('uOnReachBottom');
  9901. },
  9902. beforeDestroy: function beforeDestroy() {
  9903. var _this4 = this;
  9904. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9905. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9906. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9907. // 组件销毁时,移除父组件中的children数组中对应的实例
  9908. var childrenList = this.parent.children;
  9909. childrenList.map(function (child, index) {
  9910. // 如果相等,则移除
  9911. if (child === _this4) {
  9912. childrenList.splice(index, 1);
  9913. }
  9914. });
  9915. }
  9916. }
  9917. };
  9918. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  9919. /***/ }),
  9920. /* 32 */
  9921. /*!***********************************************************************!*\
  9922. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9923. \***********************************************************************/
  9924. /*! no static exports found */
  9925. /***/ (function(module, exports, __webpack_require__) {
  9926. "use strict";
  9927. Object.defineProperty(exports, "__esModule", {
  9928. value: true
  9929. });
  9930. exports.default = void 0;
  9931. var _default = {};
  9932. exports.default = _default;
  9933. /***/ }),
  9934. /* 33 */
  9935. /*!****************************************************************************!*\
  9936. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9937. \****************************************************************************/
  9938. /*! no static exports found */
  9939. /***/ (function(module, exports, __webpack_require__) {
  9940. "use strict";
  9941. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9942. Object.defineProperty(exports, "__esModule", {
  9943. value: true
  9944. });
  9945. exports.default = void 0;
  9946. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 34));
  9947. var _default = _Request.default;
  9948. exports.default = _default;
  9949. /***/ }),
  9950. /* 34 */
  9951. /*!***********************************************************************************!*\
  9952. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9953. \***********************************************************************************/
  9954. /*! no static exports found */
  9955. /***/ (function(module, exports, __webpack_require__) {
  9956. "use strict";
  9957. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9958. Object.defineProperty(exports, "__esModule", {
  9959. value: true
  9960. });
  9961. exports.default = void 0;
  9962. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9963. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 14));
  9964. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 15));
  9965. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 35));
  9966. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 43));
  9967. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 44));
  9968. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 45));
  9969. var _utils = __webpack_require__(/*! ../utils */ 38);
  9970. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 46));
  9971. 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; }
  9972. 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; }
  9973. var Request = /*#__PURE__*/function () {
  9974. /**
  9975. * @param {Object} arg - 全局配置
  9976. * @param {String} arg.baseURL - 全局根路径
  9977. * @param {Object} arg.header - 全局header
  9978. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9979. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9980. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9981. * @param {Object} arg.custom - 全局默认的自定义参数
  9982. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9983. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9984. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9985. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9986. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9987. */
  9988. function Request() {
  9989. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9990. (0, _classCallCheck2.default)(this, Request);
  9991. if (!(0, _utils.isPlainObject)(arg)) {
  9992. arg = {};
  9993. console.warn('设置全局参数必须接收一个Object');
  9994. }
  9995. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9996. this.interceptors = {
  9997. request: new _InterceptorManager.default(),
  9998. response: new _InterceptorManager.default()
  9999. };
  10000. }
  10001. /**
  10002. * @Function
  10003. * @param {Request~setConfigCallback} f - 设置全局默认配置
  10004. */
  10005. (0, _createClass2.default)(Request, [{
  10006. key: "setConfig",
  10007. value: function setConfig(f) {
  10008. this.config = f(this.config);
  10009. }
  10010. }, {
  10011. key: "middleware",
  10012. value: function middleware(config) {
  10013. config = (0, _mergeConfig.default)(this.config, config);
  10014. var chain = [_dispatchRequest.default, undefined];
  10015. var promise = Promise.resolve(config);
  10016. this.interceptors.request.forEach(function (interceptor) {
  10017. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  10018. });
  10019. this.interceptors.response.forEach(function (interceptor) {
  10020. chain.push(interceptor.fulfilled, interceptor.rejected);
  10021. });
  10022. while (chain.length) {
  10023. promise = promise.then(chain.shift(), chain.shift());
  10024. }
  10025. return promise;
  10026. }
  10027. /**
  10028. * @Function
  10029. * @param {Object} config - 请求配置项
  10030. * @prop {String} options.url - 请求路径
  10031. * @prop {Object} options.data - 请求参数
  10032. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  10033. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  10034. * @prop {Object} [options.header = config.header] - 请求header
  10035. * @prop {Object} [options.method = config.method] - 请求方法
  10036. * @returns {Promise<unknown>}
  10037. */
  10038. }, {
  10039. key: "request",
  10040. value: function request() {
  10041. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  10042. return this.middleware(config);
  10043. }
  10044. }, {
  10045. key: "get",
  10046. value: function get(url) {
  10047. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10048. return this.middleware(_objectSpread({
  10049. url: url,
  10050. method: 'GET'
  10051. }, options));
  10052. }
  10053. }, {
  10054. key: "post",
  10055. value: function post(url, data) {
  10056. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10057. return this.middleware(_objectSpread({
  10058. url: url,
  10059. data: data,
  10060. method: 'POST'
  10061. }, options));
  10062. }
  10063. }, {
  10064. key: "upload",
  10065. value: function upload(url) {
  10066. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10067. config.url = url;
  10068. config.method = 'UPLOAD';
  10069. return this.middleware(config);
  10070. }
  10071. }, {
  10072. key: "download",
  10073. value: function download(url) {
  10074. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10075. config.url = url;
  10076. config.method = 'DOWNLOAD';
  10077. return this.middleware(config);
  10078. }
  10079. }]);
  10080. return Request;
  10081. }();
  10082. /**
  10083. * setConfig回调
  10084. * @return {Object} - 返回操作后的config
  10085. * @callback Request~setConfigCallback
  10086. * @param {Object} config - 全局默认config
  10087. */
  10088. exports.default = Request;
  10089. /***/ }),
  10090. /* 35 */
  10091. /*!*******************************************************************************************!*\
  10092. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  10093. \*******************************************************************************************/
  10094. /*! no static exports found */
  10095. /***/ (function(module, exports, __webpack_require__) {
  10096. "use strict";
  10097. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10098. Object.defineProperty(exports, "__esModule", {
  10099. value: true
  10100. });
  10101. exports.default = void 0;
  10102. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 36));
  10103. var _default = function _default(config) {
  10104. return (0, _index.default)(config);
  10105. };
  10106. exports.default = _default;
  10107. /***/ }),
  10108. /* 36 */
  10109. /*!*************************************************************************************!*\
  10110. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  10111. \*************************************************************************************/
  10112. /*! no static exports found */
  10113. /***/ (function(module, exports, __webpack_require__) {
  10114. "use strict";
  10115. /* WEBPACK VAR INJECTION */(function(uni) {
  10116. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10117. Object.defineProperty(exports, "__esModule", {
  10118. value: true
  10119. });
  10120. exports.default = void 0;
  10121. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  10122. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 37));
  10123. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 39));
  10124. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 42));
  10125. var _utils = __webpack_require__(/*! ../utils */ 38);
  10126. 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; }
  10127. 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; }
  10128. /**
  10129. * 返回可选值存在的配置
  10130. * @param {Array} keys - 可选值数组
  10131. * @param {Object} config2 - 配置
  10132. * @return {{}} - 存在的配置项
  10133. */
  10134. var mergeKeys = function mergeKeys(keys, config2) {
  10135. var config = {};
  10136. keys.forEach(function (prop) {
  10137. if (!(0, _utils.isUndefined)(config2[prop])) {
  10138. config[prop] = config2[prop];
  10139. }
  10140. });
  10141. return config;
  10142. };
  10143. var _default = function _default(config) {
  10144. return new Promise(function (resolve, reject) {
  10145. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  10146. var _config = {
  10147. url: fullPath,
  10148. header: config.header,
  10149. complete: function complete(response) {
  10150. config.fullPath = fullPath;
  10151. response.config = config;
  10152. try {
  10153. // 对可能字符串不是json 的情况容错
  10154. if (typeof response.data === 'string') {
  10155. response.data = JSON.parse(response.data);
  10156. }
  10157. // eslint-disable-next-line no-empty
  10158. } catch (e) {}
  10159. (0, _settle.default)(resolve, reject, response);
  10160. }
  10161. };
  10162. var requestTask;
  10163. if (config.method === 'UPLOAD') {
  10164. delete _config.header['content-type'];
  10165. delete _config.header['Content-Type'];
  10166. var otherConfig = {
  10167. fileType: config.fileType,
  10168. filePath: config.filePath,
  10169. name: config.name
  10170. };
  10171. var optionalKeys = ['formData'];
  10172. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  10173. } else if (config.method === 'DOWNLOAD') {
  10174. requestTask = uni.downloadFile(_config);
  10175. } else {
  10176. var _optionalKeys = ['data', 'method', 'timeout', 'dataType'];
  10177. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  10178. }
  10179. if (config.getTask) {
  10180. config.getTask(requestTask, config);
  10181. }
  10182. });
  10183. };
  10184. exports.default = _default;
  10185. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  10186. /***/ }),
  10187. /* 37 */
  10188. /*!***************************************************************************************!*\
  10189. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  10190. \***************************************************************************************/
  10191. /*! no static exports found */
  10192. /***/ (function(module, exports, __webpack_require__) {
  10193. "use strict";
  10194. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 12);
  10195. Object.defineProperty(exports, "__esModule", {
  10196. value: true
  10197. });
  10198. exports.default = buildURL;
  10199. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 38));
  10200. 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); }
  10201. 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; }
  10202. function encode(val) {
  10203. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  10204. }
  10205. /**
  10206. * Build a URL by appending params to the end
  10207. *
  10208. * @param {string} url The base of the url (e.g., http://www.google.com)
  10209. * @param {object} [params] The params to be appended
  10210. * @returns {string} The formatted url
  10211. */
  10212. function buildURL(url, params) {
  10213. /* eslint no-param-reassign:0 */
  10214. if (!params) {
  10215. return url;
  10216. }
  10217. var serializedParams;
  10218. if (utils.isURLSearchParams(params)) {
  10219. serializedParams = params.toString();
  10220. } else {
  10221. var parts = [];
  10222. utils.forEach(params, function (val, key) {
  10223. if (val === null || typeof val === 'undefined') {
  10224. return;
  10225. }
  10226. if (utils.isArray(val)) {
  10227. key = "".concat(key, "[]");
  10228. } else {
  10229. val = [val];
  10230. }
  10231. utils.forEach(val, function (v) {
  10232. if (utils.isDate(v)) {
  10233. v = v.toISOString();
  10234. } else if (utils.isObject(v)) {
  10235. v = JSON.stringify(v);
  10236. }
  10237. parts.push("".concat(encode(key), "=").concat(encode(v)));
  10238. });
  10239. });
  10240. serializedParams = parts.join('&');
  10241. }
  10242. if (serializedParams) {
  10243. var hashmarkIndex = url.indexOf('#');
  10244. if (hashmarkIndex !== -1) {
  10245. url = url.slice(0, hashmarkIndex);
  10246. }
  10247. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  10248. }
  10249. return url;
  10250. }
  10251. /***/ }),
  10252. /* 38 */
  10253. /*!****************************************************************************!*\
  10254. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  10255. \****************************************************************************/
  10256. /*! no static exports found */
  10257. /***/ (function(module, exports, __webpack_require__) {
  10258. "use strict";
  10259. // utils is a library of generic helper functions non-specific to axios
  10260. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10261. Object.defineProperty(exports, "__esModule", {
  10262. value: true
  10263. });
  10264. exports.deepMerge = deepMerge;
  10265. exports.forEach = forEach;
  10266. exports.isArray = isArray;
  10267. exports.isBoolean = isBoolean;
  10268. exports.isDate = isDate;
  10269. exports.isObject = isObject;
  10270. exports.isPlainObject = isPlainObject;
  10271. exports.isURLSearchParams = isURLSearchParams;
  10272. exports.isUndefined = isUndefined;
  10273. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  10274. var toString = Object.prototype.toString;
  10275. /**
  10276. * Determine if a value is an Array
  10277. *
  10278. * @param {Object} val The value to test
  10279. * @returns {boolean} True if value is an Array, otherwise false
  10280. */
  10281. function isArray(val) {
  10282. return toString.call(val) === '[object Array]';
  10283. }
  10284. /**
  10285. * Determine if a value is an Object
  10286. *
  10287. * @param {Object} val The value to test
  10288. * @returns {boolean} True if value is an Object, otherwise false
  10289. */
  10290. function isObject(val) {
  10291. return val !== null && (0, _typeof2.default)(val) === 'object';
  10292. }
  10293. /**
  10294. * Determine if a value is a Date
  10295. *
  10296. * @param {Object} val The value to test
  10297. * @returns {boolean} True if value is a Date, otherwise false
  10298. */
  10299. function isDate(val) {
  10300. return toString.call(val) === '[object Date]';
  10301. }
  10302. /**
  10303. * Determine if a value is a URLSearchParams object
  10304. *
  10305. * @param {Object} val The value to test
  10306. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  10307. */
  10308. function isURLSearchParams(val) {
  10309. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  10310. }
  10311. /**
  10312. * Iterate over an Array or an Object invoking a function for each item.
  10313. *
  10314. * If `obj` is an Array callback will be called passing
  10315. * the value, index, and complete array for each item.
  10316. *
  10317. * If 'obj' is an Object callback will be called passing
  10318. * the value, key, and complete object for each property.
  10319. *
  10320. * @param {Object|Array} obj The object to iterate
  10321. * @param {Function} fn The callback to invoke for each item
  10322. */
  10323. function forEach(obj, fn) {
  10324. // Don't bother if no value provided
  10325. if (obj === null || typeof obj === 'undefined') {
  10326. return;
  10327. }
  10328. // Force an array if not already something iterable
  10329. if ((0, _typeof2.default)(obj) !== 'object') {
  10330. /* eslint no-param-reassign:0 */
  10331. obj = [obj];
  10332. }
  10333. if (isArray(obj)) {
  10334. // Iterate over array values
  10335. for (var i = 0, l = obj.length; i < l; i++) {
  10336. fn.call(null, obj[i], i, obj);
  10337. }
  10338. } else {
  10339. // Iterate over object keys
  10340. for (var key in obj) {
  10341. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  10342. fn.call(null, obj[key], key, obj);
  10343. }
  10344. }
  10345. }
  10346. }
  10347. /**
  10348. * 是否为boolean 值
  10349. * @param val
  10350. * @returns {boolean}
  10351. */
  10352. function isBoolean(val) {
  10353. return typeof val === 'boolean';
  10354. }
  10355. /**
  10356. * 是否为真正的对象{} new Object
  10357. * @param {any} obj - 检测的对象
  10358. * @returns {boolean}
  10359. */
  10360. function isPlainObject(obj) {
  10361. return Object.prototype.toString.call(obj) === '[object Object]';
  10362. }
  10363. /**
  10364. * Function equal to merge with the difference being that no reference
  10365. * to original objects is kept.
  10366. *
  10367. * @see merge
  10368. * @param {Object} obj1 Object to merge
  10369. * @returns {Object} Result of all merge properties
  10370. */
  10371. function deepMerge( /* obj1, obj2, obj3, ... */
  10372. ) {
  10373. var result = {};
  10374. function assignValue(val, key) {
  10375. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  10376. result[key] = deepMerge(result[key], val);
  10377. } else if ((0, _typeof2.default)(val) === 'object') {
  10378. result[key] = deepMerge({}, val);
  10379. } else {
  10380. result[key] = val;
  10381. }
  10382. }
  10383. for (var i = 0, l = arguments.length; i < l; i++) {
  10384. forEach(arguments[i], assignValue);
  10385. }
  10386. return result;
  10387. }
  10388. function isUndefined(val) {
  10389. return typeof val === 'undefined';
  10390. }
  10391. /***/ }),
  10392. /* 39 */
  10393. /*!*****************************************************************************************!*\
  10394. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10395. \*****************************************************************************************/
  10396. /*! no static exports found */
  10397. /***/ (function(module, exports, __webpack_require__) {
  10398. "use strict";
  10399. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10400. Object.defineProperty(exports, "__esModule", {
  10401. value: true
  10402. });
  10403. exports.default = buildFullPath;
  10404. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 40));
  10405. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 41));
  10406. /**
  10407. * Creates a new URL by combining the baseURL with the requestedURL,
  10408. * only when the requestedURL is not already an absolute URL.
  10409. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10410. *
  10411. * @param {string} baseURL The base URL
  10412. * @param {string} requestedURL Absolute or relative URL to combine
  10413. * @returns {string} The combined full path
  10414. */
  10415. function buildFullPath(baseURL, requestedURL) {
  10416. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10417. return (0, _combineURLs.default)(baseURL, requestedURL);
  10418. }
  10419. return requestedURL;
  10420. }
  10421. /***/ }),
  10422. /* 40 */
  10423. /*!********************************************************************************************!*\
  10424. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10425. \********************************************************************************************/
  10426. /*! no static exports found */
  10427. /***/ (function(module, exports, __webpack_require__) {
  10428. "use strict";
  10429. /**
  10430. * Determines whether the specified URL is absolute
  10431. *
  10432. * @param {string} url The URL to test
  10433. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10434. */
  10435. Object.defineProperty(exports, "__esModule", {
  10436. value: true
  10437. });
  10438. exports.default = isAbsoluteURL;
  10439. function isAbsoluteURL(url) {
  10440. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10441. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10442. // by any combination of letters, digits, plus, period, or hyphen.
  10443. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10444. }
  10445. /***/ }),
  10446. /* 41 */
  10447. /*!******************************************************************************************!*\
  10448. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10449. \******************************************************************************************/
  10450. /*! no static exports found */
  10451. /***/ (function(module, exports, __webpack_require__) {
  10452. "use strict";
  10453. /**
  10454. * Creates a new URL by combining the specified URLs
  10455. *
  10456. * @param {string} baseURL The base URL
  10457. * @param {string} relativeURL The relative URL
  10458. * @returns {string} The combined URL
  10459. */
  10460. Object.defineProperty(exports, "__esModule", {
  10461. value: true
  10462. });
  10463. exports.default = combineURLs;
  10464. function combineURLs(baseURL, relativeURL) {
  10465. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  10466. }
  10467. /***/ }),
  10468. /* 42 */
  10469. /*!**********************************************************************************!*\
  10470. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10471. \**********************************************************************************/
  10472. /*! no static exports found */
  10473. /***/ (function(module, exports, __webpack_require__) {
  10474. "use strict";
  10475. Object.defineProperty(exports, "__esModule", {
  10476. value: true
  10477. });
  10478. exports.default = settle;
  10479. /**
  10480. * Resolve or reject a Promise based on response status.
  10481. *
  10482. * @param {Function} resolve A function that resolves the promise.
  10483. * @param {Function} reject A function that rejects the promise.
  10484. * @param {object} response The response.
  10485. */
  10486. function settle(resolve, reject, response) {
  10487. var validateStatus = response.config.validateStatus;
  10488. var status = response.statusCode;
  10489. if (status && (!validateStatus || validateStatus(status))) {
  10490. resolve(response);
  10491. } else {
  10492. reject(response);
  10493. }
  10494. }
  10495. /***/ }),
  10496. /* 43 */
  10497. /*!**********************************************************************************************!*\
  10498. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10499. \**********************************************************************************************/
  10500. /*! no static exports found */
  10501. /***/ (function(module, exports, __webpack_require__) {
  10502. "use strict";
  10503. Object.defineProperty(exports, "__esModule", {
  10504. value: true
  10505. });
  10506. exports.default = void 0;
  10507. function InterceptorManager() {
  10508. this.handlers = [];
  10509. }
  10510. /**
  10511. * Add a new interceptor to the stack
  10512. *
  10513. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10514. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10515. *
  10516. * @return {Number} An ID used to remove interceptor later
  10517. */
  10518. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10519. this.handlers.push({
  10520. fulfilled: fulfilled,
  10521. rejected: rejected
  10522. });
  10523. return this.handlers.length - 1;
  10524. };
  10525. /**
  10526. * Remove an interceptor from the stack
  10527. *
  10528. * @param {Number} id The ID that was returned by `use`
  10529. */
  10530. InterceptorManager.prototype.eject = function eject(id) {
  10531. if (this.handlers[id]) {
  10532. this.handlers[id] = null;
  10533. }
  10534. };
  10535. /**
  10536. * Iterate over all the registered interceptors
  10537. *
  10538. * This method is particularly useful for skipping over any
  10539. * interceptors that may have become `null` calling `eject`.
  10540. *
  10541. * @param {Function} fn The function to call for each interceptor
  10542. */
  10543. InterceptorManager.prototype.forEach = function forEach(fn) {
  10544. this.handlers.forEach(function (h) {
  10545. if (h !== null) {
  10546. fn(h);
  10547. }
  10548. });
  10549. };
  10550. var _default = InterceptorManager;
  10551. exports.default = _default;
  10552. /***/ }),
  10553. /* 44 */
  10554. /*!***************************************************************************************!*\
  10555. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10556. \***************************************************************************************/
  10557. /*! no static exports found */
  10558. /***/ (function(module, exports, __webpack_require__) {
  10559. "use strict";
  10560. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10561. Object.defineProperty(exports, "__esModule", {
  10562. value: true
  10563. });
  10564. exports.default = void 0;
  10565. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  10566. var _utils = __webpack_require__(/*! ../utils */ 38);
  10567. 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; }
  10568. 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; }
  10569. /**
  10570. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10571. * @param {Array} keys - 配置项
  10572. * @param {Object} globalsConfig - 当前的全局配置
  10573. * @param {Object} config2 - 局部配置
  10574. * @return {{}}
  10575. */
  10576. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10577. var config = {};
  10578. keys.forEach(function (prop) {
  10579. if (!(0, _utils.isUndefined)(config2[prop])) {
  10580. config[prop] = config2[prop];
  10581. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10582. config[prop] = globalsConfig[prop];
  10583. }
  10584. });
  10585. return config;
  10586. };
  10587. /**
  10588. *
  10589. * @param globalsConfig - 当前实例的全局配置
  10590. * @param config2 - 当前的局部配置
  10591. * @return - 合并后的配置
  10592. */
  10593. var _default = function _default(globalsConfig) {
  10594. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10595. var method = config2.method || globalsConfig.method || 'GET';
  10596. var config = {
  10597. baseURL: globalsConfig.baseURL || '',
  10598. method: method,
  10599. url: config2.url || '',
  10600. params: config2.params || {},
  10601. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10602. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10603. };
  10604. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10605. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10606. // eslint-disable-next-line no-empty
  10607. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10608. delete config.header['content-type'];
  10609. delete config.header['Content-Type'];
  10610. var uploadKeys = ['fileType', 'filePath', 'name', 'formData'];
  10611. uploadKeys.forEach(function (prop) {
  10612. if (!(0, _utils.isUndefined)(config2[prop])) {
  10613. config[prop] = config2[prop];
  10614. }
  10615. });
  10616. } else {
  10617. var defaultsKeys = ['data', 'timeout', 'dataType'];
  10618. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10619. }
  10620. return config;
  10621. };
  10622. exports.default = _default;
  10623. /***/ }),
  10624. /* 45 */
  10625. /*!************************************************************************************!*\
  10626. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10627. \************************************************************************************/
  10628. /*! no static exports found */
  10629. /***/ (function(module, exports, __webpack_require__) {
  10630. "use strict";
  10631. Object.defineProperty(exports, "__esModule", {
  10632. value: true
  10633. });
  10634. exports.default = void 0;
  10635. /**
  10636. * 默认的全局配置
  10637. */
  10638. var _default = {
  10639. baseURL: '',
  10640. header: {},
  10641. method: 'GET',
  10642. dataType: 'json',
  10643. custom: {},
  10644. timeout: 60000,
  10645. validateStatus: function validateStatus(status) {
  10646. return status >= 200 && status < 300;
  10647. }
  10648. };
  10649. exports.default = _default;
  10650. /***/ }),
  10651. /* 46 */
  10652. /*!**********************************************************************************!*\
  10653. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10654. \**********************************************************************************/
  10655. /*! no static exports found */
  10656. /***/ (function(module, exports, __webpack_require__) {
  10657. "use strict";
  10658. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10659. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10660. Object.defineProperty(exports, "__esModule", {
  10661. value: true
  10662. });
  10663. exports.default = void 0;
  10664. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  10665. /* eslint-disable */
  10666. var clone = function () {
  10667. 'use strict';
  10668. function _instanceof(obj, type) {
  10669. return type != null && obj instanceof type;
  10670. }
  10671. var nativeMap;
  10672. try {
  10673. nativeMap = Map;
  10674. } catch (_) {
  10675. // maybe a reference error because no `Map`. Give it a dummy value that no
  10676. // value will ever be an instanceof.
  10677. nativeMap = function nativeMap() {};
  10678. }
  10679. var nativeSet;
  10680. try {
  10681. nativeSet = Set;
  10682. } catch (_) {
  10683. nativeSet = function nativeSet() {};
  10684. }
  10685. var nativePromise;
  10686. try {
  10687. nativePromise = Promise;
  10688. } catch (_) {
  10689. nativePromise = function nativePromise() {};
  10690. }
  10691. /**
  10692. * Clones (copies) an Object using deep copying.
  10693. *
  10694. * This function supports circular references by default, but if you are certain
  10695. * there are no circular references in your object, you can save some CPU time
  10696. * by calling clone(obj, false).
  10697. *
  10698. * Caution: if `circular` is false and `parent` contains circular references,
  10699. * your program may enter an infinite loop and crash.
  10700. *
  10701. * @param `parent` - the object to be cloned
  10702. * @param `circular` - set to true if the object to be cloned may contain
  10703. * circular references. (optional - true by default)
  10704. * @param `depth` - set to a number if the object is only to be cloned to
  10705. * a particular depth. (optional - defaults to Infinity)
  10706. * @param `prototype` - sets the prototype to be used when cloning an object.
  10707. * (optional - defaults to parent prototype).
  10708. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10709. * should be cloned as well. Non-enumerable properties on the prototype
  10710. * chain will be ignored. (optional - false by default)
  10711. */
  10712. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10713. if ((0, _typeof2.default)(circular) === 'object') {
  10714. depth = circular.depth;
  10715. prototype = circular.prototype;
  10716. includeNonEnumerable = circular.includeNonEnumerable;
  10717. circular = circular.circular;
  10718. }
  10719. // maintain two arrays for circular references, where corresponding parents
  10720. // and children have the same index
  10721. var allParents = [];
  10722. var allChildren = [];
  10723. var useBuffer = typeof Buffer != 'undefined';
  10724. if (typeof circular == 'undefined') circular = true;
  10725. if (typeof depth == 'undefined') depth = Infinity;
  10726. // recurse this function so we don't reset allParents and allChildren
  10727. function _clone(parent, depth) {
  10728. // cloning null always returns null
  10729. if (parent === null) return null;
  10730. if (depth === 0) return parent;
  10731. var child;
  10732. var proto;
  10733. if ((0, _typeof2.default)(parent) != 'object') {
  10734. return parent;
  10735. }
  10736. if (_instanceof(parent, nativeMap)) {
  10737. child = new nativeMap();
  10738. } else if (_instanceof(parent, nativeSet)) {
  10739. child = new nativeSet();
  10740. } else if (_instanceof(parent, nativePromise)) {
  10741. child = new nativePromise(function (resolve, reject) {
  10742. parent.then(function (value) {
  10743. resolve(_clone(value, depth - 1));
  10744. }, function (err) {
  10745. reject(_clone(err, depth - 1));
  10746. });
  10747. });
  10748. } else if (clone.__isArray(parent)) {
  10749. child = [];
  10750. } else if (clone.__isRegExp(parent)) {
  10751. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10752. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10753. } else if (clone.__isDate(parent)) {
  10754. child = new Date(parent.getTime());
  10755. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10756. if (Buffer.from) {
  10757. // Node.js >= 5.10.0
  10758. child = Buffer.from(parent);
  10759. } else {
  10760. // Older Node.js versions
  10761. child = new Buffer(parent.length);
  10762. parent.copy(child);
  10763. }
  10764. return child;
  10765. } else if (_instanceof(parent, Error)) {
  10766. child = Object.create(parent);
  10767. } else {
  10768. if (typeof prototype == 'undefined') {
  10769. proto = Object.getPrototypeOf(parent);
  10770. child = Object.create(proto);
  10771. } else {
  10772. child = Object.create(prototype);
  10773. proto = prototype;
  10774. }
  10775. }
  10776. if (circular) {
  10777. var index = allParents.indexOf(parent);
  10778. if (index != -1) {
  10779. return allChildren[index];
  10780. }
  10781. allParents.push(parent);
  10782. allChildren.push(child);
  10783. }
  10784. if (_instanceof(parent, nativeMap)) {
  10785. parent.forEach(function (value, key) {
  10786. var keyChild = _clone(key, depth - 1);
  10787. var valueChild = _clone(value, depth - 1);
  10788. child.set(keyChild, valueChild);
  10789. });
  10790. }
  10791. if (_instanceof(parent, nativeSet)) {
  10792. parent.forEach(function (value) {
  10793. var entryChild = _clone(value, depth - 1);
  10794. child.add(entryChild);
  10795. });
  10796. }
  10797. for (var i in parent) {
  10798. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10799. if (attrs) {
  10800. child[i] = _clone(parent[i], depth - 1);
  10801. }
  10802. try {
  10803. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10804. if (objProperty.set === 'undefined') {
  10805. // no setter defined. Skip cloning this property
  10806. continue;
  10807. }
  10808. child[i] = _clone(parent[i], depth - 1);
  10809. } catch (e) {
  10810. if (e instanceof TypeError) {
  10811. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10812. // we can't do anything about this, other than inform the user that this property cannot be set.
  10813. continue;
  10814. } else if (e instanceof ReferenceError) {
  10815. //this may happen in non strict mode
  10816. continue;
  10817. }
  10818. }
  10819. }
  10820. if (Object.getOwnPropertySymbols) {
  10821. var symbols = Object.getOwnPropertySymbols(parent);
  10822. for (var i = 0; i < symbols.length; i++) {
  10823. // Don't need to worry about cloning a symbol because it is a primitive,
  10824. // like a number or string.
  10825. var symbol = symbols[i];
  10826. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10827. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10828. continue;
  10829. }
  10830. child[symbol] = _clone(parent[symbol], depth - 1);
  10831. Object.defineProperty(child, symbol, descriptor);
  10832. }
  10833. }
  10834. if (includeNonEnumerable) {
  10835. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10836. for (var i = 0; i < allPropertyNames.length; i++) {
  10837. var propertyName = allPropertyNames[i];
  10838. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10839. if (descriptor && descriptor.enumerable) {
  10840. continue;
  10841. }
  10842. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10843. Object.defineProperty(child, propertyName, descriptor);
  10844. }
  10845. }
  10846. return child;
  10847. }
  10848. return _clone(parent, depth);
  10849. }
  10850. /**
  10851. * Simple flat clone using prototype, accepts only objects, usefull for property
  10852. * override on FLAT configuration object (no nested props).
  10853. *
  10854. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10855. * works.
  10856. */
  10857. clone.clonePrototype = function clonePrototype(parent) {
  10858. if (parent === null) return null;
  10859. var c = function c() {};
  10860. c.prototype = parent;
  10861. return new c();
  10862. };
  10863. // private utility functions
  10864. function __objToStr(o) {
  10865. return Object.prototype.toString.call(o);
  10866. }
  10867. clone.__objToStr = __objToStr;
  10868. function __isDate(o) {
  10869. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10870. }
  10871. clone.__isDate = __isDate;
  10872. function __isArray(o) {
  10873. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10874. }
  10875. clone.__isArray = __isArray;
  10876. function __isRegExp(o) {
  10877. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10878. }
  10879. clone.__isRegExp = __isRegExp;
  10880. function __getRegExpFlags(re) {
  10881. var flags = '';
  10882. if (re.global) flags += 'g';
  10883. if (re.ignoreCase) flags += 'i';
  10884. if (re.multiline) flags += 'm';
  10885. return flags;
  10886. }
  10887. clone.__getRegExpFlags = __getRegExpFlags;
  10888. return clone;
  10889. }();
  10890. var _default = clone;
  10891. exports.default = _default;
  10892. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 47).Buffer))
  10893. /***/ }),
  10894. /* 47 */
  10895. /*!**************************************!*\
  10896. !*** ./node_modules/buffer/index.js ***!
  10897. \**************************************/
  10898. /*! no static exports found */
  10899. /***/ (function(module, exports, __webpack_require__) {
  10900. "use strict";
  10901. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10902. * The buffer module from node.js, for the browser.
  10903. *
  10904. * @author Feross Aboukhadijeh <http://feross.org>
  10905. * @license MIT
  10906. */
  10907. /* eslint-disable no-proto */
  10908. var base64 = __webpack_require__(/*! base64-js */ 48)
  10909. var ieee754 = __webpack_require__(/*! ieee754 */ 49)
  10910. var isArray = __webpack_require__(/*! isarray */ 50)
  10911. exports.Buffer = Buffer
  10912. exports.SlowBuffer = SlowBuffer
  10913. exports.INSPECT_MAX_BYTES = 50
  10914. /**
  10915. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10916. * === true Use Uint8Array implementation (fastest)
  10917. * === false Use Object implementation (most compatible, even IE6)
  10918. *
  10919. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10920. * Opera 11.6+, iOS 4.2+.
  10921. *
  10922. * Due to various browser bugs, sometimes the Object implementation will be used even
  10923. * when the browser supports typed arrays.
  10924. *
  10925. * Note:
  10926. *
  10927. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10928. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10929. *
  10930. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10931. *
  10932. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10933. * incorrect length in some situations.
  10934. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10935. * get the Object implementation, which is slower but behaves correctly.
  10936. */
  10937. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10938. ? global.TYPED_ARRAY_SUPPORT
  10939. : typedArraySupport()
  10940. /*
  10941. * Export kMaxLength after typed array support is determined.
  10942. */
  10943. exports.kMaxLength = kMaxLength()
  10944. function typedArraySupport () {
  10945. try {
  10946. var arr = new Uint8Array(1)
  10947. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10948. return arr.foo() === 42 && // typed array instances can be augmented
  10949. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10950. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10951. } catch (e) {
  10952. return false
  10953. }
  10954. }
  10955. function kMaxLength () {
  10956. return Buffer.TYPED_ARRAY_SUPPORT
  10957. ? 0x7fffffff
  10958. : 0x3fffffff
  10959. }
  10960. function createBuffer (that, length) {
  10961. if (kMaxLength() < length) {
  10962. throw new RangeError('Invalid typed array length')
  10963. }
  10964. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10965. // Return an augmented `Uint8Array` instance, for best performance
  10966. that = new Uint8Array(length)
  10967. that.__proto__ = Buffer.prototype
  10968. } else {
  10969. // Fallback: Return an object instance of the Buffer class
  10970. if (that === null) {
  10971. that = new Buffer(length)
  10972. }
  10973. that.length = length
  10974. }
  10975. return that
  10976. }
  10977. /**
  10978. * The Buffer constructor returns instances of `Uint8Array` that have their
  10979. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10980. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10981. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10982. * returns a single octet.
  10983. *
  10984. * The `Uint8Array` prototype remains unmodified.
  10985. */
  10986. function Buffer (arg, encodingOrOffset, length) {
  10987. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10988. return new Buffer(arg, encodingOrOffset, length)
  10989. }
  10990. // Common case.
  10991. if (typeof arg === 'number') {
  10992. if (typeof encodingOrOffset === 'string') {
  10993. throw new Error(
  10994. 'If encoding is specified then the first argument must be a string'
  10995. )
  10996. }
  10997. return allocUnsafe(this, arg)
  10998. }
  10999. return from(this, arg, encodingOrOffset, length)
  11000. }
  11001. Buffer.poolSize = 8192 // not used by this implementation
  11002. // TODO: Legacy, not needed anymore. Remove in next major version.
  11003. Buffer._augment = function (arr) {
  11004. arr.__proto__ = Buffer.prototype
  11005. return arr
  11006. }
  11007. function from (that, value, encodingOrOffset, length) {
  11008. if (typeof value === 'number') {
  11009. throw new TypeError('"value" argument must not be a number')
  11010. }
  11011. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  11012. return fromArrayBuffer(that, value, encodingOrOffset, length)
  11013. }
  11014. if (typeof value === 'string') {
  11015. return fromString(that, value, encodingOrOffset)
  11016. }
  11017. return fromObject(that, value)
  11018. }
  11019. /**
  11020. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  11021. * if value is a number.
  11022. * Buffer.from(str[, encoding])
  11023. * Buffer.from(array)
  11024. * Buffer.from(buffer)
  11025. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  11026. **/
  11027. Buffer.from = function (value, encodingOrOffset, length) {
  11028. return from(null, value, encodingOrOffset, length)
  11029. }
  11030. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11031. Buffer.prototype.__proto__ = Uint8Array.prototype
  11032. Buffer.__proto__ = Uint8Array
  11033. if (typeof Symbol !== 'undefined' && Symbol.species &&
  11034. Buffer[Symbol.species] === Buffer) {
  11035. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  11036. Object.defineProperty(Buffer, Symbol.species, {
  11037. value: null,
  11038. configurable: true
  11039. })
  11040. }
  11041. }
  11042. function assertSize (size) {
  11043. if (typeof size !== 'number') {
  11044. throw new TypeError('"size" argument must be a number')
  11045. } else if (size < 0) {
  11046. throw new RangeError('"size" argument must not be negative')
  11047. }
  11048. }
  11049. function alloc (that, size, fill, encoding) {
  11050. assertSize(size)
  11051. if (size <= 0) {
  11052. return createBuffer(that, size)
  11053. }
  11054. if (fill !== undefined) {
  11055. // Only pay attention to encoding if it's a string. This
  11056. // prevents accidentally sending in a number that would
  11057. // be interpretted as a start offset.
  11058. return typeof encoding === 'string'
  11059. ? createBuffer(that, size).fill(fill, encoding)
  11060. : createBuffer(that, size).fill(fill)
  11061. }
  11062. return createBuffer(that, size)
  11063. }
  11064. /**
  11065. * Creates a new filled Buffer instance.
  11066. * alloc(size[, fill[, encoding]])
  11067. **/
  11068. Buffer.alloc = function (size, fill, encoding) {
  11069. return alloc(null, size, fill, encoding)
  11070. }
  11071. function allocUnsafe (that, size) {
  11072. assertSize(size)
  11073. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  11074. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  11075. for (var i = 0; i < size; ++i) {
  11076. that[i] = 0
  11077. }
  11078. }
  11079. return that
  11080. }
  11081. /**
  11082. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  11083. * */
  11084. Buffer.allocUnsafe = function (size) {
  11085. return allocUnsafe(null, size)
  11086. }
  11087. /**
  11088. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  11089. */
  11090. Buffer.allocUnsafeSlow = function (size) {
  11091. return allocUnsafe(null, size)
  11092. }
  11093. function fromString (that, string, encoding) {
  11094. if (typeof encoding !== 'string' || encoding === '') {
  11095. encoding = 'utf8'
  11096. }
  11097. if (!Buffer.isEncoding(encoding)) {
  11098. throw new TypeError('"encoding" must be a valid string encoding')
  11099. }
  11100. var length = byteLength(string, encoding) | 0
  11101. that = createBuffer(that, length)
  11102. var actual = that.write(string, encoding)
  11103. if (actual !== length) {
  11104. // Writing a hex string, for example, that contains invalid characters will
  11105. // cause everything after the first invalid character to be ignored. (e.g.
  11106. // 'abxxcd' will be treated as 'ab')
  11107. that = that.slice(0, actual)
  11108. }
  11109. return that
  11110. }
  11111. function fromArrayLike (that, array) {
  11112. var length = array.length < 0 ? 0 : checked(array.length) | 0
  11113. that = createBuffer(that, length)
  11114. for (var i = 0; i < length; i += 1) {
  11115. that[i] = array[i] & 255
  11116. }
  11117. return that
  11118. }
  11119. function fromArrayBuffer (that, array, byteOffset, length) {
  11120. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  11121. if (byteOffset < 0 || array.byteLength < byteOffset) {
  11122. throw new RangeError('\'offset\' is out of bounds')
  11123. }
  11124. if (array.byteLength < byteOffset + (length || 0)) {
  11125. throw new RangeError('\'length\' is out of bounds')
  11126. }
  11127. if (byteOffset === undefined && length === undefined) {
  11128. array = new Uint8Array(array)
  11129. } else if (length === undefined) {
  11130. array = new Uint8Array(array, byteOffset)
  11131. } else {
  11132. array = new Uint8Array(array, byteOffset, length)
  11133. }
  11134. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11135. // Return an augmented `Uint8Array` instance, for best performance
  11136. that = array
  11137. that.__proto__ = Buffer.prototype
  11138. } else {
  11139. // Fallback: Return an object instance of the Buffer class
  11140. that = fromArrayLike(that, array)
  11141. }
  11142. return that
  11143. }
  11144. function fromObject (that, obj) {
  11145. if (Buffer.isBuffer(obj)) {
  11146. var len = checked(obj.length) | 0
  11147. that = createBuffer(that, len)
  11148. if (that.length === 0) {
  11149. return that
  11150. }
  11151. obj.copy(that, 0, 0, len)
  11152. return that
  11153. }
  11154. if (obj) {
  11155. if ((typeof ArrayBuffer !== 'undefined' &&
  11156. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  11157. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  11158. return createBuffer(that, 0)
  11159. }
  11160. return fromArrayLike(that, obj)
  11161. }
  11162. if (obj.type === 'Buffer' && isArray(obj.data)) {
  11163. return fromArrayLike(that, obj.data)
  11164. }
  11165. }
  11166. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  11167. }
  11168. function checked (length) {
  11169. // Note: cannot use `length < kMaxLength()` here because that fails when
  11170. // length is NaN (which is otherwise coerced to zero.)
  11171. if (length >= kMaxLength()) {
  11172. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  11173. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  11174. }
  11175. return length | 0
  11176. }
  11177. function SlowBuffer (length) {
  11178. if (+length != length) { // eslint-disable-line eqeqeq
  11179. length = 0
  11180. }
  11181. return Buffer.alloc(+length)
  11182. }
  11183. Buffer.isBuffer = function isBuffer (b) {
  11184. return !!(b != null && b._isBuffer)
  11185. }
  11186. Buffer.compare = function compare (a, b) {
  11187. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  11188. throw new TypeError('Arguments must be Buffers')
  11189. }
  11190. if (a === b) return 0
  11191. var x = a.length
  11192. var y = b.length
  11193. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  11194. if (a[i] !== b[i]) {
  11195. x = a[i]
  11196. y = b[i]
  11197. break
  11198. }
  11199. }
  11200. if (x < y) return -1
  11201. if (y < x) return 1
  11202. return 0
  11203. }
  11204. Buffer.isEncoding = function isEncoding (encoding) {
  11205. switch (String(encoding).toLowerCase()) {
  11206. case 'hex':
  11207. case 'utf8':
  11208. case 'utf-8':
  11209. case 'ascii':
  11210. case 'latin1':
  11211. case 'binary':
  11212. case 'base64':
  11213. case 'ucs2':
  11214. case 'ucs-2':
  11215. case 'utf16le':
  11216. case 'utf-16le':
  11217. return true
  11218. default:
  11219. return false
  11220. }
  11221. }
  11222. Buffer.concat = function concat (list, length) {
  11223. if (!isArray(list)) {
  11224. throw new TypeError('"list" argument must be an Array of Buffers')
  11225. }
  11226. if (list.length === 0) {
  11227. return Buffer.alloc(0)
  11228. }
  11229. var i
  11230. if (length === undefined) {
  11231. length = 0
  11232. for (i = 0; i < list.length; ++i) {
  11233. length += list[i].length
  11234. }
  11235. }
  11236. var buffer = Buffer.allocUnsafe(length)
  11237. var pos = 0
  11238. for (i = 0; i < list.length; ++i) {
  11239. var buf = list[i]
  11240. if (!Buffer.isBuffer(buf)) {
  11241. throw new TypeError('"list" argument must be an Array of Buffers')
  11242. }
  11243. buf.copy(buffer, pos)
  11244. pos += buf.length
  11245. }
  11246. return buffer
  11247. }
  11248. function byteLength (string, encoding) {
  11249. if (Buffer.isBuffer(string)) {
  11250. return string.length
  11251. }
  11252. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  11253. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  11254. return string.byteLength
  11255. }
  11256. if (typeof string !== 'string') {
  11257. string = '' + string
  11258. }
  11259. var len = string.length
  11260. if (len === 0) return 0
  11261. // Use a for loop to avoid recursion
  11262. var loweredCase = false
  11263. for (;;) {
  11264. switch (encoding) {
  11265. case 'ascii':
  11266. case 'latin1':
  11267. case 'binary':
  11268. return len
  11269. case 'utf8':
  11270. case 'utf-8':
  11271. case undefined:
  11272. return utf8ToBytes(string).length
  11273. case 'ucs2':
  11274. case 'ucs-2':
  11275. case 'utf16le':
  11276. case 'utf-16le':
  11277. return len * 2
  11278. case 'hex':
  11279. return len >>> 1
  11280. case 'base64':
  11281. return base64ToBytes(string).length
  11282. default:
  11283. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  11284. encoding = ('' + encoding).toLowerCase()
  11285. loweredCase = true
  11286. }
  11287. }
  11288. }
  11289. Buffer.byteLength = byteLength
  11290. function slowToString (encoding, start, end) {
  11291. var loweredCase = false
  11292. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  11293. // property of a typed array.
  11294. // This behaves neither like String nor Uint8Array in that we set start/end
  11295. // to their upper/lower bounds if the value passed is out of range.
  11296. // undefined is handled specially as per ECMA-262 6th Edition,
  11297. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  11298. if (start === undefined || start < 0) {
  11299. start = 0
  11300. }
  11301. // Return early if start > this.length. Done here to prevent potential uint32
  11302. // coercion fail below.
  11303. if (start > this.length) {
  11304. return ''
  11305. }
  11306. if (end === undefined || end > this.length) {
  11307. end = this.length
  11308. }
  11309. if (end <= 0) {
  11310. return ''
  11311. }
  11312. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  11313. end >>>= 0
  11314. start >>>= 0
  11315. if (end <= start) {
  11316. return ''
  11317. }
  11318. if (!encoding) encoding = 'utf8'
  11319. while (true) {
  11320. switch (encoding) {
  11321. case 'hex':
  11322. return hexSlice(this, start, end)
  11323. case 'utf8':
  11324. case 'utf-8':
  11325. return utf8Slice(this, start, end)
  11326. case 'ascii':
  11327. return asciiSlice(this, start, end)
  11328. case 'latin1':
  11329. case 'binary':
  11330. return latin1Slice(this, start, end)
  11331. case 'base64':
  11332. return base64Slice(this, start, end)
  11333. case 'ucs2':
  11334. case 'ucs-2':
  11335. case 'utf16le':
  11336. case 'utf-16le':
  11337. return utf16leSlice(this, start, end)
  11338. default:
  11339. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11340. encoding = (encoding + '').toLowerCase()
  11341. loweredCase = true
  11342. }
  11343. }
  11344. }
  11345. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  11346. // Buffer instances.
  11347. Buffer.prototype._isBuffer = true
  11348. function swap (b, n, m) {
  11349. var i = b[n]
  11350. b[n] = b[m]
  11351. b[m] = i
  11352. }
  11353. Buffer.prototype.swap16 = function swap16 () {
  11354. var len = this.length
  11355. if (len % 2 !== 0) {
  11356. throw new RangeError('Buffer size must be a multiple of 16-bits')
  11357. }
  11358. for (var i = 0; i < len; i += 2) {
  11359. swap(this, i, i + 1)
  11360. }
  11361. return this
  11362. }
  11363. Buffer.prototype.swap32 = function swap32 () {
  11364. var len = this.length
  11365. if (len % 4 !== 0) {
  11366. throw new RangeError('Buffer size must be a multiple of 32-bits')
  11367. }
  11368. for (var i = 0; i < len; i += 4) {
  11369. swap(this, i, i + 3)
  11370. swap(this, i + 1, i + 2)
  11371. }
  11372. return this
  11373. }
  11374. Buffer.prototype.swap64 = function swap64 () {
  11375. var len = this.length
  11376. if (len % 8 !== 0) {
  11377. throw new RangeError('Buffer size must be a multiple of 64-bits')
  11378. }
  11379. for (var i = 0; i < len; i += 8) {
  11380. swap(this, i, i + 7)
  11381. swap(this, i + 1, i + 6)
  11382. swap(this, i + 2, i + 5)
  11383. swap(this, i + 3, i + 4)
  11384. }
  11385. return this
  11386. }
  11387. Buffer.prototype.toString = function toString () {
  11388. var length = this.length | 0
  11389. if (length === 0) return ''
  11390. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11391. return slowToString.apply(this, arguments)
  11392. }
  11393. Buffer.prototype.equals = function equals (b) {
  11394. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11395. if (this === b) return true
  11396. return Buffer.compare(this, b) === 0
  11397. }
  11398. Buffer.prototype.inspect = function inspect () {
  11399. var str = ''
  11400. var max = exports.INSPECT_MAX_BYTES
  11401. if (this.length > 0) {
  11402. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11403. if (this.length > max) str += ' ... '
  11404. }
  11405. return '<Buffer ' + str + '>'
  11406. }
  11407. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11408. if (!Buffer.isBuffer(target)) {
  11409. throw new TypeError('Argument must be a Buffer')
  11410. }
  11411. if (start === undefined) {
  11412. start = 0
  11413. }
  11414. if (end === undefined) {
  11415. end = target ? target.length : 0
  11416. }
  11417. if (thisStart === undefined) {
  11418. thisStart = 0
  11419. }
  11420. if (thisEnd === undefined) {
  11421. thisEnd = this.length
  11422. }
  11423. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11424. throw new RangeError('out of range index')
  11425. }
  11426. if (thisStart >= thisEnd && start >= end) {
  11427. return 0
  11428. }
  11429. if (thisStart >= thisEnd) {
  11430. return -1
  11431. }
  11432. if (start >= end) {
  11433. return 1
  11434. }
  11435. start >>>= 0
  11436. end >>>= 0
  11437. thisStart >>>= 0
  11438. thisEnd >>>= 0
  11439. if (this === target) return 0
  11440. var x = thisEnd - thisStart
  11441. var y = end - start
  11442. var len = Math.min(x, y)
  11443. var thisCopy = this.slice(thisStart, thisEnd)
  11444. var targetCopy = target.slice(start, end)
  11445. for (var i = 0; i < len; ++i) {
  11446. if (thisCopy[i] !== targetCopy[i]) {
  11447. x = thisCopy[i]
  11448. y = targetCopy[i]
  11449. break
  11450. }
  11451. }
  11452. if (x < y) return -1
  11453. if (y < x) return 1
  11454. return 0
  11455. }
  11456. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11457. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11458. //
  11459. // Arguments:
  11460. // - buffer - a Buffer to search
  11461. // - val - a string, Buffer, or number
  11462. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11463. // - encoding - an optional encoding, relevant is val is a string
  11464. // - dir - true for indexOf, false for lastIndexOf
  11465. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11466. // Empty buffer means no match
  11467. if (buffer.length === 0) return -1
  11468. // Normalize byteOffset
  11469. if (typeof byteOffset === 'string') {
  11470. encoding = byteOffset
  11471. byteOffset = 0
  11472. } else if (byteOffset > 0x7fffffff) {
  11473. byteOffset = 0x7fffffff
  11474. } else if (byteOffset < -0x80000000) {
  11475. byteOffset = -0x80000000
  11476. }
  11477. byteOffset = +byteOffset // Coerce to Number.
  11478. if (isNaN(byteOffset)) {
  11479. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  11480. byteOffset = dir ? 0 : (buffer.length - 1)
  11481. }
  11482. // Normalize byteOffset: negative offsets start from the end of the buffer
  11483. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11484. if (byteOffset >= buffer.length) {
  11485. if (dir) return -1
  11486. else byteOffset = buffer.length - 1
  11487. } else if (byteOffset < 0) {
  11488. if (dir) byteOffset = 0
  11489. else return -1
  11490. }
  11491. // Normalize val
  11492. if (typeof val === 'string') {
  11493. val = Buffer.from(val, encoding)
  11494. }
  11495. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11496. if (Buffer.isBuffer(val)) {
  11497. // Special case: looking for empty string/buffer always fails
  11498. if (val.length === 0) {
  11499. return -1
  11500. }
  11501. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11502. } else if (typeof val === 'number') {
  11503. val = val & 0xFF // Search for a byte value [0-255]
  11504. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11505. typeof Uint8Array.prototype.indexOf === 'function') {
  11506. if (dir) {
  11507. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11508. } else {
  11509. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11510. }
  11511. }
  11512. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11513. }
  11514. throw new TypeError('val must be string, number or Buffer')
  11515. }
  11516. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11517. var indexSize = 1
  11518. var arrLength = arr.length
  11519. var valLength = val.length
  11520. if (encoding !== undefined) {
  11521. encoding = String(encoding).toLowerCase()
  11522. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11523. encoding === 'utf16le' || encoding === 'utf-16le') {
  11524. if (arr.length < 2 || val.length < 2) {
  11525. return -1
  11526. }
  11527. indexSize = 2
  11528. arrLength /= 2
  11529. valLength /= 2
  11530. byteOffset /= 2
  11531. }
  11532. }
  11533. function read (buf, i) {
  11534. if (indexSize === 1) {
  11535. return buf[i]
  11536. } else {
  11537. return buf.readUInt16BE(i * indexSize)
  11538. }
  11539. }
  11540. var i
  11541. if (dir) {
  11542. var foundIndex = -1
  11543. for (i = byteOffset; i < arrLength; i++) {
  11544. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11545. if (foundIndex === -1) foundIndex = i
  11546. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11547. } else {
  11548. if (foundIndex !== -1) i -= i - foundIndex
  11549. foundIndex = -1
  11550. }
  11551. }
  11552. } else {
  11553. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11554. for (i = byteOffset; i >= 0; i--) {
  11555. var found = true
  11556. for (var j = 0; j < valLength; j++) {
  11557. if (read(arr, i + j) !== read(val, j)) {
  11558. found = false
  11559. break
  11560. }
  11561. }
  11562. if (found) return i
  11563. }
  11564. }
  11565. return -1
  11566. }
  11567. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11568. return this.indexOf(val, byteOffset, encoding) !== -1
  11569. }
  11570. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11571. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11572. }
  11573. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11574. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11575. }
  11576. function hexWrite (buf, string, offset, length) {
  11577. offset = Number(offset) || 0
  11578. var remaining = buf.length - offset
  11579. if (!length) {
  11580. length = remaining
  11581. } else {
  11582. length = Number(length)
  11583. if (length > remaining) {
  11584. length = remaining
  11585. }
  11586. }
  11587. // must be an even number of digits
  11588. var strLen = string.length
  11589. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11590. if (length > strLen / 2) {
  11591. length = strLen / 2
  11592. }
  11593. for (var i = 0; i < length; ++i) {
  11594. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11595. if (isNaN(parsed)) return i
  11596. buf[offset + i] = parsed
  11597. }
  11598. return i
  11599. }
  11600. function utf8Write (buf, string, offset, length) {
  11601. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11602. }
  11603. function asciiWrite (buf, string, offset, length) {
  11604. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11605. }
  11606. function latin1Write (buf, string, offset, length) {
  11607. return asciiWrite(buf, string, offset, length)
  11608. }
  11609. function base64Write (buf, string, offset, length) {
  11610. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11611. }
  11612. function ucs2Write (buf, string, offset, length) {
  11613. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11614. }
  11615. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11616. // Buffer#write(string)
  11617. if (offset === undefined) {
  11618. encoding = 'utf8'
  11619. length = this.length
  11620. offset = 0
  11621. // Buffer#write(string, encoding)
  11622. } else if (length === undefined && typeof offset === 'string') {
  11623. encoding = offset
  11624. length = this.length
  11625. offset = 0
  11626. // Buffer#write(string, offset[, length][, encoding])
  11627. } else if (isFinite(offset)) {
  11628. offset = offset | 0
  11629. if (isFinite(length)) {
  11630. length = length | 0
  11631. if (encoding === undefined) encoding = 'utf8'
  11632. } else {
  11633. encoding = length
  11634. length = undefined
  11635. }
  11636. // legacy write(string, encoding, offset, length) - remove in v0.13
  11637. } else {
  11638. throw new Error(
  11639. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11640. )
  11641. }
  11642. var remaining = this.length - offset
  11643. if (length === undefined || length > remaining) length = remaining
  11644. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11645. throw new RangeError('Attempt to write outside buffer bounds')
  11646. }
  11647. if (!encoding) encoding = 'utf8'
  11648. var loweredCase = false
  11649. for (;;) {
  11650. switch (encoding) {
  11651. case 'hex':
  11652. return hexWrite(this, string, offset, length)
  11653. case 'utf8':
  11654. case 'utf-8':
  11655. return utf8Write(this, string, offset, length)
  11656. case 'ascii':
  11657. return asciiWrite(this, string, offset, length)
  11658. case 'latin1':
  11659. case 'binary':
  11660. return latin1Write(this, string, offset, length)
  11661. case 'base64':
  11662. // Warning: maxLength not taken into account in base64Write
  11663. return base64Write(this, string, offset, length)
  11664. case 'ucs2':
  11665. case 'ucs-2':
  11666. case 'utf16le':
  11667. case 'utf-16le':
  11668. return ucs2Write(this, string, offset, length)
  11669. default:
  11670. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11671. encoding = ('' + encoding).toLowerCase()
  11672. loweredCase = true
  11673. }
  11674. }
  11675. }
  11676. Buffer.prototype.toJSON = function toJSON () {
  11677. return {
  11678. type: 'Buffer',
  11679. data: Array.prototype.slice.call(this._arr || this, 0)
  11680. }
  11681. }
  11682. function base64Slice (buf, start, end) {
  11683. if (start === 0 && end === buf.length) {
  11684. return base64.fromByteArray(buf)
  11685. } else {
  11686. return base64.fromByteArray(buf.slice(start, end))
  11687. }
  11688. }
  11689. function utf8Slice (buf, start, end) {
  11690. end = Math.min(buf.length, end)
  11691. var res = []
  11692. var i = start
  11693. while (i < end) {
  11694. var firstByte = buf[i]
  11695. var codePoint = null
  11696. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11697. : (firstByte > 0xDF) ? 3
  11698. : (firstByte > 0xBF) ? 2
  11699. : 1
  11700. if (i + bytesPerSequence <= end) {
  11701. var secondByte, thirdByte, fourthByte, tempCodePoint
  11702. switch (bytesPerSequence) {
  11703. case 1:
  11704. if (firstByte < 0x80) {
  11705. codePoint = firstByte
  11706. }
  11707. break
  11708. case 2:
  11709. secondByte = buf[i + 1]
  11710. if ((secondByte & 0xC0) === 0x80) {
  11711. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11712. if (tempCodePoint > 0x7F) {
  11713. codePoint = tempCodePoint
  11714. }
  11715. }
  11716. break
  11717. case 3:
  11718. secondByte = buf[i + 1]
  11719. thirdByte = buf[i + 2]
  11720. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11721. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11722. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11723. codePoint = tempCodePoint
  11724. }
  11725. }
  11726. break
  11727. case 4:
  11728. secondByte = buf[i + 1]
  11729. thirdByte = buf[i + 2]
  11730. fourthByte = buf[i + 3]
  11731. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11732. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11733. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11734. codePoint = tempCodePoint
  11735. }
  11736. }
  11737. }
  11738. }
  11739. if (codePoint === null) {
  11740. // we did not generate a valid codePoint so insert a
  11741. // replacement char (U+FFFD) and advance only 1 byte
  11742. codePoint = 0xFFFD
  11743. bytesPerSequence = 1
  11744. } else if (codePoint > 0xFFFF) {
  11745. // encode to utf16 (surrogate pair dance)
  11746. codePoint -= 0x10000
  11747. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11748. codePoint = 0xDC00 | codePoint & 0x3FF
  11749. }
  11750. res.push(codePoint)
  11751. i += bytesPerSequence
  11752. }
  11753. return decodeCodePointsArray(res)
  11754. }
  11755. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11756. // the lowest limit is Chrome, with 0x10000 args.
  11757. // We go 1 magnitude less, for safety
  11758. var MAX_ARGUMENTS_LENGTH = 0x1000
  11759. function decodeCodePointsArray (codePoints) {
  11760. var len = codePoints.length
  11761. if (len <= MAX_ARGUMENTS_LENGTH) {
  11762. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11763. }
  11764. // Decode in chunks to avoid "call stack size exceeded".
  11765. var res = ''
  11766. var i = 0
  11767. while (i < len) {
  11768. res += String.fromCharCode.apply(
  11769. String,
  11770. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11771. )
  11772. }
  11773. return res
  11774. }
  11775. function asciiSlice (buf, start, end) {
  11776. var ret = ''
  11777. end = Math.min(buf.length, end)
  11778. for (var i = start; i < end; ++i) {
  11779. ret += String.fromCharCode(buf[i] & 0x7F)
  11780. }
  11781. return ret
  11782. }
  11783. function latin1Slice (buf, start, end) {
  11784. var ret = ''
  11785. end = Math.min(buf.length, end)
  11786. for (var i = start; i < end; ++i) {
  11787. ret += String.fromCharCode(buf[i])
  11788. }
  11789. return ret
  11790. }
  11791. function hexSlice (buf, start, end) {
  11792. var len = buf.length
  11793. if (!start || start < 0) start = 0
  11794. if (!end || end < 0 || end > len) end = len
  11795. var out = ''
  11796. for (var i = start; i < end; ++i) {
  11797. out += toHex(buf[i])
  11798. }
  11799. return out
  11800. }
  11801. function utf16leSlice (buf, start, end) {
  11802. var bytes = buf.slice(start, end)
  11803. var res = ''
  11804. for (var i = 0; i < bytes.length; i += 2) {
  11805. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11806. }
  11807. return res
  11808. }
  11809. Buffer.prototype.slice = function slice (start, end) {
  11810. var len = this.length
  11811. start = ~~start
  11812. end = end === undefined ? len : ~~end
  11813. if (start < 0) {
  11814. start += len
  11815. if (start < 0) start = 0
  11816. } else if (start > len) {
  11817. start = len
  11818. }
  11819. if (end < 0) {
  11820. end += len
  11821. if (end < 0) end = 0
  11822. } else if (end > len) {
  11823. end = len
  11824. }
  11825. if (end < start) end = start
  11826. var newBuf
  11827. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11828. newBuf = this.subarray(start, end)
  11829. newBuf.__proto__ = Buffer.prototype
  11830. } else {
  11831. var sliceLen = end - start
  11832. newBuf = new Buffer(sliceLen, undefined)
  11833. for (var i = 0; i < sliceLen; ++i) {
  11834. newBuf[i] = this[i + start]
  11835. }
  11836. }
  11837. return newBuf
  11838. }
  11839. /*
  11840. * Need to make sure that buffer isn't trying to write out of bounds.
  11841. */
  11842. function checkOffset (offset, ext, length) {
  11843. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11844. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11845. }
  11846. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11847. offset = offset | 0
  11848. byteLength = byteLength | 0
  11849. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11850. var val = this[offset]
  11851. var mul = 1
  11852. var i = 0
  11853. while (++i < byteLength && (mul *= 0x100)) {
  11854. val += this[offset + i] * mul
  11855. }
  11856. return val
  11857. }
  11858. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11859. offset = offset | 0
  11860. byteLength = byteLength | 0
  11861. if (!noAssert) {
  11862. checkOffset(offset, byteLength, this.length)
  11863. }
  11864. var val = this[offset + --byteLength]
  11865. var mul = 1
  11866. while (byteLength > 0 && (mul *= 0x100)) {
  11867. val += this[offset + --byteLength] * mul
  11868. }
  11869. return val
  11870. }
  11871. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11872. if (!noAssert) checkOffset(offset, 1, this.length)
  11873. return this[offset]
  11874. }
  11875. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11876. if (!noAssert) checkOffset(offset, 2, this.length)
  11877. return this[offset] | (this[offset + 1] << 8)
  11878. }
  11879. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11880. if (!noAssert) checkOffset(offset, 2, this.length)
  11881. return (this[offset] << 8) | this[offset + 1]
  11882. }
  11883. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11884. if (!noAssert) checkOffset(offset, 4, this.length)
  11885. return ((this[offset]) |
  11886. (this[offset + 1] << 8) |
  11887. (this[offset + 2] << 16)) +
  11888. (this[offset + 3] * 0x1000000)
  11889. }
  11890. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11891. if (!noAssert) checkOffset(offset, 4, this.length)
  11892. return (this[offset] * 0x1000000) +
  11893. ((this[offset + 1] << 16) |
  11894. (this[offset + 2] << 8) |
  11895. this[offset + 3])
  11896. }
  11897. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11898. offset = offset | 0
  11899. byteLength = byteLength | 0
  11900. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11901. var val = this[offset]
  11902. var mul = 1
  11903. var i = 0
  11904. while (++i < byteLength && (mul *= 0x100)) {
  11905. val += this[offset + i] * mul
  11906. }
  11907. mul *= 0x80
  11908. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11909. return val
  11910. }
  11911. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11912. offset = offset | 0
  11913. byteLength = byteLength | 0
  11914. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11915. var i = byteLength
  11916. var mul = 1
  11917. var val = this[offset + --i]
  11918. while (i > 0 && (mul *= 0x100)) {
  11919. val += this[offset + --i] * mul
  11920. }
  11921. mul *= 0x80
  11922. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11923. return val
  11924. }
  11925. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11926. if (!noAssert) checkOffset(offset, 1, this.length)
  11927. if (!(this[offset] & 0x80)) return (this[offset])
  11928. return ((0xff - this[offset] + 1) * -1)
  11929. }
  11930. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11931. if (!noAssert) checkOffset(offset, 2, this.length)
  11932. var val = this[offset] | (this[offset + 1] << 8)
  11933. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11934. }
  11935. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11936. if (!noAssert) checkOffset(offset, 2, this.length)
  11937. var val = this[offset + 1] | (this[offset] << 8)
  11938. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11939. }
  11940. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11941. if (!noAssert) checkOffset(offset, 4, this.length)
  11942. return (this[offset]) |
  11943. (this[offset + 1] << 8) |
  11944. (this[offset + 2] << 16) |
  11945. (this[offset + 3] << 24)
  11946. }
  11947. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11948. if (!noAssert) checkOffset(offset, 4, this.length)
  11949. return (this[offset] << 24) |
  11950. (this[offset + 1] << 16) |
  11951. (this[offset + 2] << 8) |
  11952. (this[offset + 3])
  11953. }
  11954. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11955. if (!noAssert) checkOffset(offset, 4, this.length)
  11956. return ieee754.read(this, offset, true, 23, 4)
  11957. }
  11958. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11959. if (!noAssert) checkOffset(offset, 4, this.length)
  11960. return ieee754.read(this, offset, false, 23, 4)
  11961. }
  11962. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11963. if (!noAssert) checkOffset(offset, 8, this.length)
  11964. return ieee754.read(this, offset, true, 52, 8)
  11965. }
  11966. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11967. if (!noAssert) checkOffset(offset, 8, this.length)
  11968. return ieee754.read(this, offset, false, 52, 8)
  11969. }
  11970. function checkInt (buf, value, offset, ext, max, min) {
  11971. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11972. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11973. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11974. }
  11975. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11976. value = +value
  11977. offset = offset | 0
  11978. byteLength = byteLength | 0
  11979. if (!noAssert) {
  11980. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11981. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11982. }
  11983. var mul = 1
  11984. var i = 0
  11985. this[offset] = value & 0xFF
  11986. while (++i < byteLength && (mul *= 0x100)) {
  11987. this[offset + i] = (value / mul) & 0xFF
  11988. }
  11989. return offset + byteLength
  11990. }
  11991. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11992. value = +value
  11993. offset = offset | 0
  11994. byteLength = byteLength | 0
  11995. if (!noAssert) {
  11996. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11997. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11998. }
  11999. var i = byteLength - 1
  12000. var mul = 1
  12001. this[offset + i] = value & 0xFF
  12002. while (--i >= 0 && (mul *= 0x100)) {
  12003. this[offset + i] = (value / mul) & 0xFF
  12004. }
  12005. return offset + byteLength
  12006. }
  12007. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  12008. value = +value
  12009. offset = offset | 0
  12010. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  12011. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  12012. this[offset] = (value & 0xff)
  12013. return offset + 1
  12014. }
  12015. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  12016. if (value < 0) value = 0xffff + value + 1
  12017. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  12018. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  12019. (littleEndian ? i : 1 - i) * 8
  12020. }
  12021. }
  12022. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  12023. value = +value
  12024. offset = offset | 0
  12025. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12026. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12027. this[offset] = (value & 0xff)
  12028. this[offset + 1] = (value >>> 8)
  12029. } else {
  12030. objectWriteUInt16(this, value, offset, true)
  12031. }
  12032. return offset + 2
  12033. }
  12034. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  12035. value = +value
  12036. offset = offset | 0
  12037. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12038. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12039. this[offset] = (value >>> 8)
  12040. this[offset + 1] = (value & 0xff)
  12041. } else {
  12042. objectWriteUInt16(this, value, offset, false)
  12043. }
  12044. return offset + 2
  12045. }
  12046. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  12047. if (value < 0) value = 0xffffffff + value + 1
  12048. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  12049. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  12050. }
  12051. }
  12052. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  12053. value = +value
  12054. offset = offset | 0
  12055. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12056. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12057. this[offset + 3] = (value >>> 24)
  12058. this[offset + 2] = (value >>> 16)
  12059. this[offset + 1] = (value >>> 8)
  12060. this[offset] = (value & 0xff)
  12061. } else {
  12062. objectWriteUInt32(this, value, offset, true)
  12063. }
  12064. return offset + 4
  12065. }
  12066. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  12067. value = +value
  12068. offset = offset | 0
  12069. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12070. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12071. this[offset] = (value >>> 24)
  12072. this[offset + 1] = (value >>> 16)
  12073. this[offset + 2] = (value >>> 8)
  12074. this[offset + 3] = (value & 0xff)
  12075. } else {
  12076. objectWriteUInt32(this, value, offset, false)
  12077. }
  12078. return offset + 4
  12079. }
  12080. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  12081. value = +value
  12082. offset = offset | 0
  12083. if (!noAssert) {
  12084. var limit = Math.pow(2, 8 * byteLength - 1)
  12085. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12086. }
  12087. var i = 0
  12088. var mul = 1
  12089. var sub = 0
  12090. this[offset] = value & 0xFF
  12091. while (++i < byteLength && (mul *= 0x100)) {
  12092. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  12093. sub = 1
  12094. }
  12095. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12096. }
  12097. return offset + byteLength
  12098. }
  12099. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  12100. value = +value
  12101. offset = offset | 0
  12102. if (!noAssert) {
  12103. var limit = Math.pow(2, 8 * byteLength - 1)
  12104. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12105. }
  12106. var i = byteLength - 1
  12107. var mul = 1
  12108. var sub = 0
  12109. this[offset + i] = value & 0xFF
  12110. while (--i >= 0 && (mul *= 0x100)) {
  12111. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  12112. sub = 1
  12113. }
  12114. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12115. }
  12116. return offset + byteLength
  12117. }
  12118. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  12119. value = +value
  12120. offset = offset | 0
  12121. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  12122. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  12123. if (value < 0) value = 0xff + value + 1
  12124. this[offset] = (value & 0xff)
  12125. return offset + 1
  12126. }
  12127. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  12128. value = +value
  12129. offset = offset | 0
  12130. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12131. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12132. this[offset] = (value & 0xff)
  12133. this[offset + 1] = (value >>> 8)
  12134. } else {
  12135. objectWriteUInt16(this, value, offset, true)
  12136. }
  12137. return offset + 2
  12138. }
  12139. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  12140. value = +value
  12141. offset = offset | 0
  12142. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12143. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12144. this[offset] = (value >>> 8)
  12145. this[offset + 1] = (value & 0xff)
  12146. } else {
  12147. objectWriteUInt16(this, value, offset, false)
  12148. }
  12149. return offset + 2
  12150. }
  12151. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  12152. value = +value
  12153. offset = offset | 0
  12154. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12155. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12156. this[offset] = (value & 0xff)
  12157. this[offset + 1] = (value >>> 8)
  12158. this[offset + 2] = (value >>> 16)
  12159. this[offset + 3] = (value >>> 24)
  12160. } else {
  12161. objectWriteUInt32(this, value, offset, true)
  12162. }
  12163. return offset + 4
  12164. }
  12165. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  12166. value = +value
  12167. offset = offset | 0
  12168. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12169. if (value < 0) value = 0xffffffff + value + 1
  12170. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12171. this[offset] = (value >>> 24)
  12172. this[offset + 1] = (value >>> 16)
  12173. this[offset + 2] = (value >>> 8)
  12174. this[offset + 3] = (value & 0xff)
  12175. } else {
  12176. objectWriteUInt32(this, value, offset, false)
  12177. }
  12178. return offset + 4
  12179. }
  12180. function checkIEEE754 (buf, value, offset, ext, max, min) {
  12181. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  12182. if (offset < 0) throw new RangeError('Index out of range')
  12183. }
  12184. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  12185. if (!noAssert) {
  12186. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  12187. }
  12188. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  12189. return offset + 4
  12190. }
  12191. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  12192. return writeFloat(this, value, offset, true, noAssert)
  12193. }
  12194. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  12195. return writeFloat(this, value, offset, false, noAssert)
  12196. }
  12197. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  12198. if (!noAssert) {
  12199. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  12200. }
  12201. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  12202. return offset + 8
  12203. }
  12204. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  12205. return writeDouble(this, value, offset, true, noAssert)
  12206. }
  12207. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  12208. return writeDouble(this, value, offset, false, noAssert)
  12209. }
  12210. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  12211. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  12212. if (!start) start = 0
  12213. if (!end && end !== 0) end = this.length
  12214. if (targetStart >= target.length) targetStart = target.length
  12215. if (!targetStart) targetStart = 0
  12216. if (end > 0 && end < start) end = start
  12217. // Copy 0 bytes; we're done
  12218. if (end === start) return 0
  12219. if (target.length === 0 || this.length === 0) return 0
  12220. // Fatal error conditions
  12221. if (targetStart < 0) {
  12222. throw new RangeError('targetStart out of bounds')
  12223. }
  12224. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  12225. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  12226. // Are we oob?
  12227. if (end > this.length) end = this.length
  12228. if (target.length - targetStart < end - start) {
  12229. end = target.length - targetStart + start
  12230. }
  12231. var len = end - start
  12232. var i
  12233. if (this === target && start < targetStart && targetStart < end) {
  12234. // descending copy from end
  12235. for (i = len - 1; i >= 0; --i) {
  12236. target[i + targetStart] = this[i + start]
  12237. }
  12238. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  12239. // ascending copy from start
  12240. for (i = 0; i < len; ++i) {
  12241. target[i + targetStart] = this[i + start]
  12242. }
  12243. } else {
  12244. Uint8Array.prototype.set.call(
  12245. target,
  12246. this.subarray(start, start + len),
  12247. targetStart
  12248. )
  12249. }
  12250. return len
  12251. }
  12252. // Usage:
  12253. // buffer.fill(number[, offset[, end]])
  12254. // buffer.fill(buffer[, offset[, end]])
  12255. // buffer.fill(string[, offset[, end]][, encoding])
  12256. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  12257. // Handle string cases:
  12258. if (typeof val === 'string') {
  12259. if (typeof start === 'string') {
  12260. encoding = start
  12261. start = 0
  12262. end = this.length
  12263. } else if (typeof end === 'string') {
  12264. encoding = end
  12265. end = this.length
  12266. }
  12267. if (val.length === 1) {
  12268. var code = val.charCodeAt(0)
  12269. if (code < 256) {
  12270. val = code
  12271. }
  12272. }
  12273. if (encoding !== undefined && typeof encoding !== 'string') {
  12274. throw new TypeError('encoding must be a string')
  12275. }
  12276. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  12277. throw new TypeError('Unknown encoding: ' + encoding)
  12278. }
  12279. } else if (typeof val === 'number') {
  12280. val = val & 255
  12281. }
  12282. // Invalid ranges are not set to a default, so can range check early.
  12283. if (start < 0 || this.length < start || this.length < end) {
  12284. throw new RangeError('Out of range index')
  12285. }
  12286. if (end <= start) {
  12287. return this
  12288. }
  12289. start = start >>> 0
  12290. end = end === undefined ? this.length : end >>> 0
  12291. if (!val) val = 0
  12292. var i
  12293. if (typeof val === 'number') {
  12294. for (i = start; i < end; ++i) {
  12295. this[i] = val
  12296. }
  12297. } else {
  12298. var bytes = Buffer.isBuffer(val)
  12299. ? val
  12300. : utf8ToBytes(new Buffer(val, encoding).toString())
  12301. var len = bytes.length
  12302. for (i = 0; i < end - start; ++i) {
  12303. this[i + start] = bytes[i % len]
  12304. }
  12305. }
  12306. return this
  12307. }
  12308. // HELPER FUNCTIONS
  12309. // ================
  12310. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  12311. function base64clean (str) {
  12312. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  12313. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  12314. // Node converts strings with length < 2 to ''
  12315. if (str.length < 2) return ''
  12316. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  12317. while (str.length % 4 !== 0) {
  12318. str = str + '='
  12319. }
  12320. return str
  12321. }
  12322. function stringtrim (str) {
  12323. if (str.trim) return str.trim()
  12324. return str.replace(/^\s+|\s+$/g, '')
  12325. }
  12326. function toHex (n) {
  12327. if (n < 16) return '0' + n.toString(16)
  12328. return n.toString(16)
  12329. }
  12330. function utf8ToBytes (string, units) {
  12331. units = units || Infinity
  12332. var codePoint
  12333. var length = string.length
  12334. var leadSurrogate = null
  12335. var bytes = []
  12336. for (var i = 0; i < length; ++i) {
  12337. codePoint = string.charCodeAt(i)
  12338. // is surrogate component
  12339. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  12340. // last char was a lead
  12341. if (!leadSurrogate) {
  12342. // no lead yet
  12343. if (codePoint > 0xDBFF) {
  12344. // unexpected trail
  12345. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12346. continue
  12347. } else if (i + 1 === length) {
  12348. // unpaired lead
  12349. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12350. continue
  12351. }
  12352. // valid lead
  12353. leadSurrogate = codePoint
  12354. continue
  12355. }
  12356. // 2 leads in a row
  12357. if (codePoint < 0xDC00) {
  12358. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12359. leadSurrogate = codePoint
  12360. continue
  12361. }
  12362. // valid surrogate pair
  12363. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  12364. } else if (leadSurrogate) {
  12365. // valid bmp char, but last char was a lead
  12366. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12367. }
  12368. leadSurrogate = null
  12369. // encode utf8
  12370. if (codePoint < 0x80) {
  12371. if ((units -= 1) < 0) break
  12372. bytes.push(codePoint)
  12373. } else if (codePoint < 0x800) {
  12374. if ((units -= 2) < 0) break
  12375. bytes.push(
  12376. codePoint >> 0x6 | 0xC0,
  12377. codePoint & 0x3F | 0x80
  12378. )
  12379. } else if (codePoint < 0x10000) {
  12380. if ((units -= 3) < 0) break
  12381. bytes.push(
  12382. codePoint >> 0xC | 0xE0,
  12383. codePoint >> 0x6 & 0x3F | 0x80,
  12384. codePoint & 0x3F | 0x80
  12385. )
  12386. } else if (codePoint < 0x110000) {
  12387. if ((units -= 4) < 0) break
  12388. bytes.push(
  12389. codePoint >> 0x12 | 0xF0,
  12390. codePoint >> 0xC & 0x3F | 0x80,
  12391. codePoint >> 0x6 & 0x3F | 0x80,
  12392. codePoint & 0x3F | 0x80
  12393. )
  12394. } else {
  12395. throw new Error('Invalid code point')
  12396. }
  12397. }
  12398. return bytes
  12399. }
  12400. function asciiToBytes (str) {
  12401. var byteArray = []
  12402. for (var i = 0; i < str.length; ++i) {
  12403. // Node's code seems to be doing this and not & 0x7F..
  12404. byteArray.push(str.charCodeAt(i) & 0xFF)
  12405. }
  12406. return byteArray
  12407. }
  12408. function utf16leToBytes (str, units) {
  12409. var c, hi, lo
  12410. var byteArray = []
  12411. for (var i = 0; i < str.length; ++i) {
  12412. if ((units -= 2) < 0) break
  12413. c = str.charCodeAt(i)
  12414. hi = c >> 8
  12415. lo = c % 256
  12416. byteArray.push(lo)
  12417. byteArray.push(hi)
  12418. }
  12419. return byteArray
  12420. }
  12421. function base64ToBytes (str) {
  12422. return base64.toByteArray(base64clean(str))
  12423. }
  12424. function blitBuffer (src, dst, offset, length) {
  12425. for (var i = 0; i < length; ++i) {
  12426. if ((i + offset >= dst.length) || (i >= src.length)) break
  12427. dst[i + offset] = src[i]
  12428. }
  12429. return i
  12430. }
  12431. function isnan (val) {
  12432. return val !== val // eslint-disable-line no-self-compare
  12433. }
  12434. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 2)))
  12435. /***/ }),
  12436. /* 48 */
  12437. /*!*****************************************!*\
  12438. !*** ./node_modules/base64-js/index.js ***!
  12439. \*****************************************/
  12440. /*! no static exports found */
  12441. /***/ (function(module, exports, __webpack_require__) {
  12442. "use strict";
  12443. exports.byteLength = byteLength
  12444. exports.toByteArray = toByteArray
  12445. exports.fromByteArray = fromByteArray
  12446. var lookup = []
  12447. var revLookup = []
  12448. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12449. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12450. for (var i = 0, len = code.length; i < len; ++i) {
  12451. lookup[i] = code[i]
  12452. revLookup[code.charCodeAt(i)] = i
  12453. }
  12454. // Support decoding URL-safe base64 strings, as Node.js does.
  12455. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12456. revLookup['-'.charCodeAt(0)] = 62
  12457. revLookup['_'.charCodeAt(0)] = 63
  12458. function getLens (b64) {
  12459. var len = b64.length
  12460. if (len % 4 > 0) {
  12461. throw new Error('Invalid string. Length must be a multiple of 4')
  12462. }
  12463. // Trim off extra bytes after placeholder bytes are found
  12464. // See: https://github.com/beatgammit/base64-js/issues/42
  12465. var validLen = b64.indexOf('=')
  12466. if (validLen === -1) validLen = len
  12467. var placeHoldersLen = validLen === len
  12468. ? 0
  12469. : 4 - (validLen % 4)
  12470. return [validLen, placeHoldersLen]
  12471. }
  12472. // base64 is 4/3 + up to two characters of the original data
  12473. function byteLength (b64) {
  12474. var lens = getLens(b64)
  12475. var validLen = lens[0]
  12476. var placeHoldersLen = lens[1]
  12477. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12478. }
  12479. function _byteLength (b64, validLen, placeHoldersLen) {
  12480. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12481. }
  12482. function toByteArray (b64) {
  12483. var tmp
  12484. var lens = getLens(b64)
  12485. var validLen = lens[0]
  12486. var placeHoldersLen = lens[1]
  12487. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12488. var curByte = 0
  12489. // if there are placeholders, only get up to the last complete 4 chars
  12490. var len = placeHoldersLen > 0
  12491. ? validLen - 4
  12492. : validLen
  12493. var i
  12494. for (i = 0; i < len; i += 4) {
  12495. tmp =
  12496. (revLookup[b64.charCodeAt(i)] << 18) |
  12497. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12498. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12499. revLookup[b64.charCodeAt(i + 3)]
  12500. arr[curByte++] = (tmp >> 16) & 0xFF
  12501. arr[curByte++] = (tmp >> 8) & 0xFF
  12502. arr[curByte++] = tmp & 0xFF
  12503. }
  12504. if (placeHoldersLen === 2) {
  12505. tmp =
  12506. (revLookup[b64.charCodeAt(i)] << 2) |
  12507. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12508. arr[curByte++] = tmp & 0xFF
  12509. }
  12510. if (placeHoldersLen === 1) {
  12511. tmp =
  12512. (revLookup[b64.charCodeAt(i)] << 10) |
  12513. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12514. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12515. arr[curByte++] = (tmp >> 8) & 0xFF
  12516. arr[curByte++] = tmp & 0xFF
  12517. }
  12518. return arr
  12519. }
  12520. function tripletToBase64 (num) {
  12521. return lookup[num >> 18 & 0x3F] +
  12522. lookup[num >> 12 & 0x3F] +
  12523. lookup[num >> 6 & 0x3F] +
  12524. lookup[num & 0x3F]
  12525. }
  12526. function encodeChunk (uint8, start, end) {
  12527. var tmp
  12528. var output = []
  12529. for (var i = start; i < end; i += 3) {
  12530. tmp =
  12531. ((uint8[i] << 16) & 0xFF0000) +
  12532. ((uint8[i + 1] << 8) & 0xFF00) +
  12533. (uint8[i + 2] & 0xFF)
  12534. output.push(tripletToBase64(tmp))
  12535. }
  12536. return output.join('')
  12537. }
  12538. function fromByteArray (uint8) {
  12539. var tmp
  12540. var len = uint8.length
  12541. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12542. var parts = []
  12543. var maxChunkLength = 16383 // must be multiple of 3
  12544. // go through the array every three bytes, we'll deal with trailing stuff later
  12545. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12546. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12547. }
  12548. // pad the end with zeros, but make sure to not forget the extra bytes
  12549. if (extraBytes === 1) {
  12550. tmp = uint8[len - 1]
  12551. parts.push(
  12552. lookup[tmp >> 2] +
  12553. lookup[(tmp << 4) & 0x3F] +
  12554. '=='
  12555. )
  12556. } else if (extraBytes === 2) {
  12557. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12558. parts.push(
  12559. lookup[tmp >> 10] +
  12560. lookup[(tmp >> 4) & 0x3F] +
  12561. lookup[(tmp << 2) & 0x3F] +
  12562. '='
  12563. )
  12564. }
  12565. return parts.join('')
  12566. }
  12567. /***/ }),
  12568. /* 49 */
  12569. /*!***************************************!*\
  12570. !*** ./node_modules/ieee754/index.js ***!
  12571. \***************************************/
  12572. /*! no static exports found */
  12573. /***/ (function(module, exports) {
  12574. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12575. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12576. var e, m
  12577. var eLen = (nBytes * 8) - mLen - 1
  12578. var eMax = (1 << eLen) - 1
  12579. var eBias = eMax >> 1
  12580. var nBits = -7
  12581. var i = isLE ? (nBytes - 1) : 0
  12582. var d = isLE ? -1 : 1
  12583. var s = buffer[offset + i]
  12584. i += d
  12585. e = s & ((1 << (-nBits)) - 1)
  12586. s >>= (-nBits)
  12587. nBits += eLen
  12588. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12589. m = e & ((1 << (-nBits)) - 1)
  12590. e >>= (-nBits)
  12591. nBits += mLen
  12592. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12593. if (e === 0) {
  12594. e = 1 - eBias
  12595. } else if (e === eMax) {
  12596. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12597. } else {
  12598. m = m + Math.pow(2, mLen)
  12599. e = e - eBias
  12600. }
  12601. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12602. }
  12603. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12604. var e, m, c
  12605. var eLen = (nBytes * 8) - mLen - 1
  12606. var eMax = (1 << eLen) - 1
  12607. var eBias = eMax >> 1
  12608. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12609. var i = isLE ? 0 : (nBytes - 1)
  12610. var d = isLE ? 1 : -1
  12611. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12612. value = Math.abs(value)
  12613. if (isNaN(value) || value === Infinity) {
  12614. m = isNaN(value) ? 1 : 0
  12615. e = eMax
  12616. } else {
  12617. e = Math.floor(Math.log(value) / Math.LN2)
  12618. if (value * (c = Math.pow(2, -e)) < 1) {
  12619. e--
  12620. c *= 2
  12621. }
  12622. if (e + eBias >= 1) {
  12623. value += rt / c
  12624. } else {
  12625. value += rt * Math.pow(2, 1 - eBias)
  12626. }
  12627. if (value * c >= 2) {
  12628. e++
  12629. c /= 2
  12630. }
  12631. if (e + eBias >= eMax) {
  12632. m = 0
  12633. e = eMax
  12634. } else if (e + eBias >= 1) {
  12635. m = ((value * c) - 1) * Math.pow(2, mLen)
  12636. e = e + eBias
  12637. } else {
  12638. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12639. e = 0
  12640. }
  12641. }
  12642. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12643. e = (e << mLen) | m
  12644. eLen += mLen
  12645. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12646. buffer[offset + i - d] |= s * 128
  12647. }
  12648. /***/ }),
  12649. /* 50 */
  12650. /*!***************************************!*\
  12651. !*** ./node_modules/isarray/index.js ***!
  12652. \***************************************/
  12653. /*! no static exports found */
  12654. /***/ (function(module, exports) {
  12655. var toString = {}.toString;
  12656. module.exports = Array.isArray || function (arr) {
  12657. return toString.call(arr) == '[object Array]';
  12658. };
  12659. /***/ }),
  12660. /* 51 */
  12661. /*!********************************************************************!*\
  12662. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/util/route.js ***!
  12663. \********************************************************************/
  12664. /*! no static exports found */
  12665. /***/ (function(module, exports, __webpack_require__) {
  12666. "use strict";
  12667. /* WEBPACK VAR INJECTION */(function(uni) {
  12668. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  12669. Object.defineProperty(exports, "__esModule", {
  12670. value: true
  12671. });
  12672. exports.default = void 0;
  12673. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 52));
  12674. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 54));
  12675. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 14));
  12676. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 15));
  12677. /**
  12678. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12679. * 并且带有路由拦截功能
  12680. */
  12681. var Router = /*#__PURE__*/function () {
  12682. function Router() {
  12683. (0, _classCallCheck2.default)(this, Router);
  12684. // 原始属性定义
  12685. this.config = {
  12686. type: 'navigateTo',
  12687. url: '',
  12688. delta: 1,
  12689. // navigateBack页面后退时,回退的层数
  12690. params: {},
  12691. // 传递的参数
  12692. animationType: 'pop-in',
  12693. // 窗口动画,只在APP有效
  12694. animationDuration: 300,
  12695. // 窗口动画持续时间,单位毫秒,只在APP有效
  12696. intercept: false // 是否需要拦截
  12697. };
  12698. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12699. // 这里在构造函数中进行this绑定
  12700. this.route = this.route.bind(this);
  12701. }
  12702. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12703. (0, _createClass2.default)(Router, [{
  12704. key: "addRootPath",
  12705. value: function addRootPath(url) {
  12706. return url[0] === '/' ? url : "/".concat(url);
  12707. }
  12708. // 整合路由参数
  12709. }, {
  12710. key: "mixinParam",
  12711. value: function mixinParam(url, params) {
  12712. url = url && this.addRootPath(url);
  12713. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12714. // 如果有url中有get参数,转换后无需带上"?"
  12715. var query = '';
  12716. if (/.*\/.*\?.*=.*/.test(url)) {
  12717. // object对象转为get类型的参数
  12718. query = uni.$u.queryParams(params, false);
  12719. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12720. return url += "&".concat(query);
  12721. }
  12722. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12723. query = uni.$u.queryParams(params);
  12724. return url += query;
  12725. }
  12726. // 对外的方法名称
  12727. }, {
  12728. key: "route",
  12729. value: function () {
  12730. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12731. var options,
  12732. params,
  12733. mergeConfig,
  12734. isNext,
  12735. _args = arguments;
  12736. return _regenerator.default.wrap(function _callee$(_context) {
  12737. while (1) {
  12738. switch (_context.prev = _context.next) {
  12739. case 0:
  12740. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12741. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12742. // 合并用户的配置和内部的默认配置
  12743. mergeConfig = {};
  12744. if (typeof options === 'string') {
  12745. // 如果options为字符串,则为route(url, params)的形式
  12746. mergeConfig.url = this.mixinParam(options, params);
  12747. mergeConfig.type = 'navigateTo';
  12748. } else {
  12749. mergeConfig = uni.$u.deepMerge(this.config, options);
  12750. // 否则正常使用mergeConfig中的url和params进行拼接
  12751. mergeConfig.url = this.mixinParam(options.url, options.params);
  12752. }
  12753. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12754. if (!(mergeConfig.url === uni.$u.page())) {
  12755. _context.next = 6;
  12756. break;
  12757. }
  12758. return _context.abrupt("return");
  12759. case 6:
  12760. if (params.intercept) {
  12761. this.config.intercept = params.intercept;
  12762. }
  12763. // params参数也带给拦截器
  12764. mergeConfig.params = params;
  12765. // 合并内外部参数
  12766. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12767. // 判断用户是否定义了拦截器
  12768. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12769. _context.next = 16;
  12770. break;
  12771. }
  12772. _context.next = 12;
  12773. return new Promise(function (resolve, reject) {
  12774. uni.$u.routeIntercept(mergeConfig, resolve);
  12775. });
  12776. case 12:
  12777. isNext = _context.sent;
  12778. // 如果isNext为true,则执行路由跳转
  12779. isNext && this.openPage(mergeConfig);
  12780. _context.next = 17;
  12781. break;
  12782. case 16:
  12783. this.openPage(mergeConfig);
  12784. case 17:
  12785. case "end":
  12786. return _context.stop();
  12787. }
  12788. }
  12789. }, _callee, this);
  12790. }));
  12791. function route() {
  12792. return _route.apply(this, arguments);
  12793. }
  12794. return route;
  12795. }() // 执行路由跳转
  12796. }, {
  12797. key: "openPage",
  12798. value: function openPage(config) {
  12799. // 解构参数
  12800. var url = config.url,
  12801. type = config.type,
  12802. delta = config.delta,
  12803. animationType = config.animationType,
  12804. animationDuration = config.animationDuration;
  12805. if (config.type == 'navigateTo' || config.type == 'to') {
  12806. uni.navigateTo({
  12807. url: url,
  12808. animationType: animationType,
  12809. animationDuration: animationDuration
  12810. });
  12811. }
  12812. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12813. uni.redirectTo({
  12814. url: url
  12815. });
  12816. }
  12817. if (config.type == 'switchTab' || config.type == 'tab') {
  12818. uni.switchTab({
  12819. url: url
  12820. });
  12821. }
  12822. if (config.type == 'reLaunch' || config.type == 'launch') {
  12823. uni.reLaunch({
  12824. url: url
  12825. });
  12826. }
  12827. if (config.type == 'navigateBack' || config.type == 'back') {
  12828. uni.navigateBack({
  12829. delta: delta
  12830. });
  12831. }
  12832. }
  12833. }]);
  12834. return Router;
  12835. }();
  12836. var _default = new Router().route;
  12837. exports.default = _default;
  12838. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  12839. /***/ }),
  12840. /* 52 */
  12841. /*!************************************************************************************************!*\
  12842. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12843. \************************************************************************************************/
  12844. /*! no static exports found */
  12845. /***/ (function(module, exports, __webpack_require__) {
  12846. // TODO(Babel 8): Remove this file.
  12847. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 53)();
  12848. module.exports = runtime;
  12849. /***/ }),
  12850. /* 53 */
  12851. /*!*******************************************************************!*\
  12852. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12853. \*******************************************************************/
  12854. /*! no static exports found */
  12855. /***/ (function(module, exports, __webpack_require__) {
  12856. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  12857. function _regeneratorRuntime() {
  12858. "use strict";
  12859. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12860. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12861. return exports;
  12862. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12863. var exports = {},
  12864. Op = Object.prototype,
  12865. hasOwn = Op.hasOwnProperty,
  12866. defineProperty = Object.defineProperty || function (obj, key, desc) {
  12867. obj[key] = desc.value;
  12868. },
  12869. $Symbol = "function" == typeof Symbol ? Symbol : {},
  12870. iteratorSymbol = $Symbol.iterator || "@@iterator",
  12871. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  12872. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12873. function define(obj, key, value) {
  12874. return Object.defineProperty(obj, key, {
  12875. value: value,
  12876. enumerable: !0,
  12877. configurable: !0,
  12878. writable: !0
  12879. }), obj[key];
  12880. }
  12881. try {
  12882. define({}, "");
  12883. } catch (err) {
  12884. define = function define(obj, key, value) {
  12885. return obj[key] = value;
  12886. };
  12887. }
  12888. function wrap(innerFn, outerFn, self, tryLocsList) {
  12889. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  12890. generator = Object.create(protoGenerator.prototype),
  12891. context = new Context(tryLocsList || []);
  12892. return defineProperty(generator, "_invoke", {
  12893. value: makeInvokeMethod(innerFn, self, context)
  12894. }), generator;
  12895. }
  12896. function tryCatch(fn, obj, arg) {
  12897. try {
  12898. return {
  12899. type: "normal",
  12900. arg: fn.call(obj, arg)
  12901. };
  12902. } catch (err) {
  12903. return {
  12904. type: "throw",
  12905. arg: err
  12906. };
  12907. }
  12908. }
  12909. exports.wrap = wrap;
  12910. var ContinueSentinel = {};
  12911. function Generator() {}
  12912. function GeneratorFunction() {}
  12913. function GeneratorFunctionPrototype() {}
  12914. var IteratorPrototype = {};
  12915. define(IteratorPrototype, iteratorSymbol, function () {
  12916. return this;
  12917. });
  12918. var getProto = Object.getPrototypeOf,
  12919. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12920. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  12921. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  12922. function defineIteratorMethods(prototype) {
  12923. ["next", "throw", "return"].forEach(function (method) {
  12924. define(prototype, method, function (arg) {
  12925. return this._invoke(method, arg);
  12926. });
  12927. });
  12928. }
  12929. function AsyncIterator(generator, PromiseImpl) {
  12930. function invoke(method, arg, resolve, reject) {
  12931. var record = tryCatch(generator[method], generator, arg);
  12932. if ("throw" !== record.type) {
  12933. var result = record.arg,
  12934. value = result.value;
  12935. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  12936. invoke("next", value, resolve, reject);
  12937. }, function (err) {
  12938. invoke("throw", err, resolve, reject);
  12939. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  12940. result.value = unwrapped, resolve(result);
  12941. }, function (error) {
  12942. return invoke("throw", error, resolve, reject);
  12943. });
  12944. }
  12945. reject(record.arg);
  12946. }
  12947. var previousPromise;
  12948. defineProperty(this, "_invoke", {
  12949. value: function value(method, arg) {
  12950. function callInvokeWithMethodAndArg() {
  12951. return new PromiseImpl(function (resolve, reject) {
  12952. invoke(method, arg, resolve, reject);
  12953. });
  12954. }
  12955. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12956. }
  12957. });
  12958. }
  12959. function makeInvokeMethod(innerFn, self, context) {
  12960. var state = "suspendedStart";
  12961. return function (method, arg) {
  12962. if ("executing" === state) throw new Error("Generator is already running");
  12963. if ("completed" === state) {
  12964. if ("throw" === method) throw arg;
  12965. return doneResult();
  12966. }
  12967. for (context.method = method, context.arg = arg;;) {
  12968. var delegate = context.delegate;
  12969. if (delegate) {
  12970. var delegateResult = maybeInvokeDelegate(delegate, context);
  12971. if (delegateResult) {
  12972. if (delegateResult === ContinueSentinel) continue;
  12973. return delegateResult;
  12974. }
  12975. }
  12976. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  12977. if ("suspendedStart" === state) throw state = "completed", context.arg;
  12978. context.dispatchException(context.arg);
  12979. } else "return" === context.method && context.abrupt("return", context.arg);
  12980. state = "executing";
  12981. var record = tryCatch(innerFn, self, context);
  12982. if ("normal" === record.type) {
  12983. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  12984. return {
  12985. value: record.arg,
  12986. done: context.done
  12987. };
  12988. }
  12989. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  12990. }
  12991. };
  12992. }
  12993. function maybeInvokeDelegate(delegate, context) {
  12994. var methodName = context.method,
  12995. method = delegate.iterator[methodName];
  12996. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  12997. var record = tryCatch(method, delegate.iterator, context.arg);
  12998. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  12999. var info = record.arg;
  13000. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  13001. }
  13002. function pushTryEntry(locs) {
  13003. var entry = {
  13004. tryLoc: locs[0]
  13005. };
  13006. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  13007. }
  13008. function resetTryEntry(entry) {
  13009. var record = entry.completion || {};
  13010. record.type = "normal", delete record.arg, entry.completion = record;
  13011. }
  13012. function Context(tryLocsList) {
  13013. this.tryEntries = [{
  13014. tryLoc: "root"
  13015. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  13016. }
  13017. function values(iterable) {
  13018. if (iterable) {
  13019. var iteratorMethod = iterable[iteratorSymbol];
  13020. if (iteratorMethod) return iteratorMethod.call(iterable);
  13021. if ("function" == typeof iterable.next) return iterable;
  13022. if (!isNaN(iterable.length)) {
  13023. var i = -1,
  13024. next = function next() {
  13025. for (; ++i < iterable.length;) {
  13026. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  13027. }
  13028. return next.value = undefined, next.done = !0, next;
  13029. };
  13030. return next.next = next;
  13031. }
  13032. }
  13033. return {
  13034. next: doneResult
  13035. };
  13036. }
  13037. function doneResult() {
  13038. return {
  13039. value: undefined,
  13040. done: !0
  13041. };
  13042. }
  13043. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  13044. value: GeneratorFunctionPrototype,
  13045. configurable: !0
  13046. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  13047. value: GeneratorFunction,
  13048. configurable: !0
  13049. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  13050. var ctor = "function" == typeof genFun && genFun.constructor;
  13051. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  13052. }, exports.mark = function (genFun) {
  13053. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  13054. }, exports.awrap = function (arg) {
  13055. return {
  13056. __await: arg
  13057. };
  13058. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  13059. return this;
  13060. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  13061. void 0 === PromiseImpl && (PromiseImpl = Promise);
  13062. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  13063. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  13064. return result.done ? result.value : iter.next();
  13065. });
  13066. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  13067. return this;
  13068. }), define(Gp, "toString", function () {
  13069. return "[object Generator]";
  13070. }), exports.keys = function (val) {
  13071. var object = Object(val),
  13072. keys = [];
  13073. for (var key in object) {
  13074. keys.push(key);
  13075. }
  13076. return keys.reverse(), function next() {
  13077. for (; keys.length;) {
  13078. var key = keys.pop();
  13079. if (key in object) return next.value = key, next.done = !1, next;
  13080. }
  13081. return next.done = !0, next;
  13082. };
  13083. }, exports.values = values, Context.prototype = {
  13084. constructor: Context,
  13085. reset: function reset(skipTempReset) {
  13086. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  13087. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  13088. }
  13089. },
  13090. stop: function stop() {
  13091. this.done = !0;
  13092. var rootRecord = this.tryEntries[0].completion;
  13093. if ("throw" === rootRecord.type) throw rootRecord.arg;
  13094. return this.rval;
  13095. },
  13096. dispatchException: function dispatchException(exception) {
  13097. if (this.done) throw exception;
  13098. var context = this;
  13099. function handle(loc, caught) {
  13100. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  13101. }
  13102. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13103. var entry = this.tryEntries[i],
  13104. record = entry.completion;
  13105. if ("root" === entry.tryLoc) return handle("end");
  13106. if (entry.tryLoc <= this.prev) {
  13107. var hasCatch = hasOwn.call(entry, "catchLoc"),
  13108. hasFinally = hasOwn.call(entry, "finallyLoc");
  13109. if (hasCatch && hasFinally) {
  13110. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  13111. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  13112. } else if (hasCatch) {
  13113. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  13114. } else {
  13115. if (!hasFinally) throw new Error("try statement without catch or finally");
  13116. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  13117. }
  13118. }
  13119. }
  13120. },
  13121. abrupt: function abrupt(type, arg) {
  13122. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13123. var entry = this.tryEntries[i];
  13124. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  13125. var finallyEntry = entry;
  13126. break;
  13127. }
  13128. }
  13129. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  13130. var record = finallyEntry ? finallyEntry.completion : {};
  13131. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  13132. },
  13133. complete: function complete(record, afterLoc) {
  13134. if ("throw" === record.type) throw record.arg;
  13135. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  13136. },
  13137. finish: function finish(finallyLoc) {
  13138. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13139. var entry = this.tryEntries[i];
  13140. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  13141. }
  13142. },
  13143. "catch": function _catch(tryLoc) {
  13144. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13145. var entry = this.tryEntries[i];
  13146. if (entry.tryLoc === tryLoc) {
  13147. var record = entry.completion;
  13148. if ("throw" === record.type) {
  13149. var thrown = record.arg;
  13150. resetTryEntry(entry);
  13151. }
  13152. return thrown;
  13153. }
  13154. }
  13155. throw new Error("illegal catch attempt");
  13156. },
  13157. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  13158. return this.delegate = {
  13159. iterator: values(iterable),
  13160. resultName: resultName,
  13161. nextLoc: nextLoc
  13162. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  13163. }
  13164. }, exports;
  13165. }
  13166. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13167. /***/ }),
  13168. /* 54 */
  13169. /*!*****************************************************************!*\
  13170. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  13171. \*****************************************************************/
  13172. /*! no static exports found */
  13173. /***/ (function(module, exports) {
  13174. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  13175. try {
  13176. var info = gen[key](arg);
  13177. var value = info.value;
  13178. } catch (error) {
  13179. reject(error);
  13180. return;
  13181. }
  13182. if (info.done) {
  13183. resolve(value);
  13184. } else {
  13185. Promise.resolve(value).then(_next, _throw);
  13186. }
  13187. }
  13188. function _asyncToGenerator(fn) {
  13189. return function () {
  13190. var self = this,
  13191. args = arguments;
  13192. return new Promise(function (resolve, reject) {
  13193. var gen = fn.apply(self, args);
  13194. function _next(value) {
  13195. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  13196. }
  13197. function _throw(err) {
  13198. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  13199. }
  13200. _next(undefined);
  13201. });
  13202. };
  13203. }
  13204. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13205. /***/ }),
  13206. /* 55 */
  13207. /*!********************************************************************************!*\
  13208. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  13209. \********************************************************************************/
  13210. /*! no static exports found */
  13211. /***/ (function(module, exports, __webpack_require__) {
  13212. "use strict";
  13213. Object.defineProperty(exports, "__esModule", {
  13214. value: true
  13215. });
  13216. exports.default = void 0;
  13217. /**
  13218. * 求两个颜色之间的渐变值
  13219. * @param {string} startColor 开始的颜色
  13220. * @param {string} endColor 结束的颜色
  13221. * @param {number} step 颜色等分的份额
  13222. * */
  13223. function colorGradient() {
  13224. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  13225. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  13226. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  13227. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  13228. var startR = startRGB[0];
  13229. var startG = startRGB[1];
  13230. var startB = startRGB[2];
  13231. var endRGB = hexToRgb(endColor, false);
  13232. var endR = endRGB[0];
  13233. var endG = endRGB[1];
  13234. var endB = endRGB[2];
  13235. var sR = (endR - startR) / step; // 总差值
  13236. var sG = (endG - startG) / step;
  13237. var sB = (endB - startB) / step;
  13238. var colorArr = [];
  13239. for (var i = 0; i < step; i++) {
  13240. // 计算每一步的hex值
  13241. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  13242. // 确保第一个颜色值为startColor的值
  13243. if (i === 0) hex = rgbToHex(startColor);
  13244. // 确保最后一个颜色值为endColor的值
  13245. if (i === step - 1) hex = rgbToHex(endColor);
  13246. colorArr.push(hex);
  13247. }
  13248. return colorArr;
  13249. }
  13250. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  13251. function hexToRgb(sColor) {
  13252. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13253. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13254. sColor = String(sColor).toLowerCase();
  13255. if (sColor && reg.test(sColor)) {
  13256. if (sColor.length === 4) {
  13257. var sColorNew = '#';
  13258. for (var i = 1; i < 4; i += 1) {
  13259. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13260. }
  13261. sColor = sColorNew;
  13262. }
  13263. // 处理六位的颜色值
  13264. var sColorChange = [];
  13265. for (var _i = 1; _i < 7; _i += 2) {
  13266. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  13267. }
  13268. if (!str) {
  13269. return sColorChange;
  13270. }
  13271. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  13272. }
  13273. if (/^(rgb|RGB)/.test(sColor)) {
  13274. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13275. return arr.map(function (val) {
  13276. return Number(val);
  13277. });
  13278. }
  13279. return sColor;
  13280. }
  13281. // 将rgb表示方式转换为hex表示方式
  13282. function rgbToHex(rgb) {
  13283. var _this = rgb;
  13284. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13285. if (/^(rgb|RGB)/.test(_this)) {
  13286. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13287. var strHex = '#';
  13288. for (var i = 0; i < aColor.length; i++) {
  13289. var hex = Number(aColor[i]).toString(16);
  13290. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  13291. if (hex === '0') {
  13292. hex += hex;
  13293. }
  13294. strHex += hex;
  13295. }
  13296. if (strHex.length !== 7) {
  13297. strHex = _this;
  13298. }
  13299. return strHex;
  13300. }
  13301. if (reg.test(_this)) {
  13302. var aNum = _this.replace(/#/, '').split('');
  13303. if (aNum.length === 6) {
  13304. return _this;
  13305. }
  13306. if (aNum.length === 3) {
  13307. var numHex = '#';
  13308. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  13309. numHex += aNum[_i2] + aNum[_i2];
  13310. }
  13311. return numHex;
  13312. }
  13313. } else {
  13314. return _this;
  13315. }
  13316. }
  13317. /**
  13318. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  13319. * sHex为传入的十六进制的色值
  13320. * alpha为rgba的透明度
  13321. */
  13322. function colorToRgba(color, alpha) {
  13323. color = rgbToHex(color);
  13324. // 十六进制颜色值的正则表达式
  13325. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13326. /* 16进制颜色转为RGB格式 */
  13327. var sColor = String(color).toLowerCase();
  13328. if (sColor && reg.test(sColor)) {
  13329. if (sColor.length === 4) {
  13330. var sColorNew = '#';
  13331. for (var i = 1; i < 4; i += 1) {
  13332. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13333. }
  13334. sColor = sColorNew;
  13335. }
  13336. // 处理六位的颜色值
  13337. var sColorChange = [];
  13338. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  13339. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  13340. }
  13341. // return sColorChange.join(',')
  13342. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  13343. }
  13344. return sColor;
  13345. }
  13346. var _default = {
  13347. colorGradient: colorGradient,
  13348. hexToRgb: hexToRgb,
  13349. rgbToHex: rgbToHex,
  13350. colorToRgba: colorToRgba
  13351. };
  13352. exports.default = _default;
  13353. /***/ }),
  13354. /* 56 */
  13355. /*!***********************************************************************!*\
  13356. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/function/test.js ***!
  13357. \***********************************************************************/
  13358. /*! no static exports found */
  13359. /***/ (function(module, exports, __webpack_require__) {
  13360. "use strict";
  13361. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  13362. Object.defineProperty(exports, "__esModule", {
  13363. value: true
  13364. });
  13365. exports.default = void 0;
  13366. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  13367. /**
  13368. * 验证电子邮箱格式
  13369. */
  13370. function email(value) {
  13371. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  13372. }
  13373. /**
  13374. * 验证手机格式
  13375. */
  13376. function mobile(value) {
  13377. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  13378. }
  13379. /**
  13380. * 验证URL格式
  13381. */
  13382. function url(value) {
  13383. 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);
  13384. }
  13385. /**
  13386. * 验证日期格式
  13387. */
  13388. function date(value) {
  13389. if (!value) return false;
  13390. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13391. if (number(value)) value = +value;
  13392. return !/Invalid|NaN/.test(new Date(value).toString());
  13393. }
  13394. /**
  13395. * 验证ISO类型的日期格式
  13396. */
  13397. function dateISO(value) {
  13398. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13399. }
  13400. /**
  13401. * 验证十进制数字
  13402. */
  13403. function number(value) {
  13404. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13405. }
  13406. /**
  13407. * 验证字符串
  13408. */
  13409. function string(value) {
  13410. return typeof value === 'string';
  13411. }
  13412. /**
  13413. * 验证整数
  13414. */
  13415. function digits(value) {
  13416. return /^\d+$/.test(value);
  13417. }
  13418. /**
  13419. * 验证身份证号码
  13420. */
  13421. function idCard(value) {
  13422. 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);
  13423. }
  13424. /**
  13425. * 是否车牌号
  13426. */
  13427. function carNo(value) {
  13428. // 新能源车牌
  13429. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13430. // 旧车牌
  13431. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13432. if (value.length === 7) {
  13433. return creg.test(value);
  13434. }
  13435. if (value.length === 8) {
  13436. return xreg.test(value);
  13437. }
  13438. return false;
  13439. }
  13440. /**
  13441. * 金额,只允许2位小数
  13442. */
  13443. function amount(value) {
  13444. // 金额,只允许保留两位小数
  13445. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13446. }
  13447. /**
  13448. * 中文
  13449. */
  13450. function chinese(value) {
  13451. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13452. return reg.test(value);
  13453. }
  13454. /**
  13455. * 只能输入字母
  13456. */
  13457. function letter(value) {
  13458. return /^[a-zA-Z]*$/.test(value);
  13459. }
  13460. /**
  13461. * 只能是字母或者数字
  13462. */
  13463. function enOrNum(value) {
  13464. // 英文或者数字
  13465. var reg = /^[0-9a-zA-Z]*$/g;
  13466. return reg.test(value);
  13467. }
  13468. /**
  13469. * 验证是否包含某个值
  13470. */
  13471. function contains(value, param) {
  13472. return value.indexOf(param) >= 0;
  13473. }
  13474. /**
  13475. * 验证一个值范围[min, max]
  13476. */
  13477. function range(value, param) {
  13478. return value >= param[0] && value <= param[1];
  13479. }
  13480. /**
  13481. * 验证一个长度范围[min, max]
  13482. */
  13483. function rangeLength(value, param) {
  13484. return value.length >= param[0] && value.length <= param[1];
  13485. }
  13486. /**
  13487. * 是否固定电话
  13488. */
  13489. function landline(value) {
  13490. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13491. return reg.test(value);
  13492. }
  13493. /**
  13494. * 判断是否为空
  13495. */
  13496. function empty(value) {
  13497. switch ((0, _typeof2.default)(value)) {
  13498. case 'undefined':
  13499. return true;
  13500. case 'string':
  13501. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13502. break;
  13503. case 'boolean':
  13504. if (!value) return true;
  13505. break;
  13506. case 'number':
  13507. if (value === 0 || isNaN(value)) return true;
  13508. break;
  13509. case 'object':
  13510. if (value === null || value.length === 0) return true;
  13511. for (var i in value) {
  13512. return false;
  13513. }
  13514. return true;
  13515. }
  13516. return false;
  13517. }
  13518. /**
  13519. * 是否json字符串
  13520. */
  13521. function jsonString(value) {
  13522. if (typeof value === 'string') {
  13523. try {
  13524. var obj = JSON.parse(value);
  13525. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13526. return true;
  13527. }
  13528. return false;
  13529. } catch (e) {
  13530. return false;
  13531. }
  13532. }
  13533. return false;
  13534. }
  13535. /**
  13536. * 是否数组
  13537. */
  13538. function array(value) {
  13539. if (typeof Array.isArray === 'function') {
  13540. return Array.isArray(value);
  13541. }
  13542. return Object.prototype.toString.call(value) === '[object Array]';
  13543. }
  13544. /**
  13545. * 是否对象
  13546. */
  13547. function object(value) {
  13548. return Object.prototype.toString.call(value) === '[object Object]';
  13549. }
  13550. /**
  13551. * 是否短信验证码
  13552. */
  13553. function code(value) {
  13554. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13555. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13556. }
  13557. /**
  13558. * 是否函数方法
  13559. * @param {Object} value
  13560. */
  13561. function func(value) {
  13562. return typeof value === 'function';
  13563. }
  13564. /**
  13565. * 是否promise对象
  13566. * @param {Object} value
  13567. */
  13568. function promise(value) {
  13569. return object(value) && func(value.then) && func(value.catch);
  13570. }
  13571. /** 是否图片格式
  13572. * @param {Object} value
  13573. */
  13574. function image(value) {
  13575. var newValue = value.split('?')[0];
  13576. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13577. return IMAGE_REGEXP.test(newValue);
  13578. }
  13579. /**
  13580. * 是否视频格式
  13581. * @param {Object} value
  13582. */
  13583. function video(value) {
  13584. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13585. return VIDEO_REGEXP.test(value);
  13586. }
  13587. /**
  13588. * 是否为正则对象
  13589. * @param {Object}
  13590. * @return {Boolean}
  13591. */
  13592. function regExp(o) {
  13593. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13594. }
  13595. var _default = {
  13596. email: email,
  13597. mobile: mobile,
  13598. url: url,
  13599. date: date,
  13600. dateISO: dateISO,
  13601. number: number,
  13602. digits: digits,
  13603. idCard: idCard,
  13604. carNo: carNo,
  13605. amount: amount,
  13606. chinese: chinese,
  13607. letter: letter,
  13608. enOrNum: enOrNum,
  13609. contains: contains,
  13610. range: range,
  13611. rangeLength: rangeLength,
  13612. empty: empty,
  13613. isEmpty: empty,
  13614. jsonString: jsonString,
  13615. landline: landline,
  13616. object: object,
  13617. array: array,
  13618. code: code,
  13619. func: func,
  13620. promise: promise,
  13621. video: video,
  13622. image: image,
  13623. regExp: regExp,
  13624. string: string
  13625. };
  13626. exports.default = _default;
  13627. /***/ }),
  13628. /* 57 */
  13629. /*!***************************************************************************!*\
  13630. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/function/debounce.js ***!
  13631. \***************************************************************************/
  13632. /*! no static exports found */
  13633. /***/ (function(module, exports, __webpack_require__) {
  13634. "use strict";
  13635. Object.defineProperty(exports, "__esModule", {
  13636. value: true
  13637. });
  13638. exports.default = void 0;
  13639. var timeout = null;
  13640. /**
  13641. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13642. *
  13643. * @param {Function} func 要执行的回调函数
  13644. * @param {Number} wait 延时的时间
  13645. * @param {Boolean} immediate 是否立即执行
  13646. * @return null
  13647. */
  13648. function debounce(func) {
  13649. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13650. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13651. // 清除定时器
  13652. if (timeout !== null) clearTimeout(timeout);
  13653. // 立即执行,此类情况一般用不到
  13654. if (immediate) {
  13655. var callNow = !timeout;
  13656. timeout = setTimeout(function () {
  13657. timeout = null;
  13658. }, wait);
  13659. if (callNow) typeof func === 'function' && func();
  13660. } else {
  13661. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13662. timeout = setTimeout(function () {
  13663. typeof func === 'function' && func();
  13664. }, wait);
  13665. }
  13666. }
  13667. var _default = debounce;
  13668. exports.default = _default;
  13669. /***/ }),
  13670. /* 58 */
  13671. /*!***************************************************************************!*\
  13672. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/function/throttle.js ***!
  13673. \***************************************************************************/
  13674. /*! no static exports found */
  13675. /***/ (function(module, exports, __webpack_require__) {
  13676. "use strict";
  13677. Object.defineProperty(exports, "__esModule", {
  13678. value: true
  13679. });
  13680. exports.default = void 0;
  13681. var timer;
  13682. var flag;
  13683. /**
  13684. * 节流原理:在一定时间内,只能触发一次
  13685. *
  13686. * @param {Function} func 要执行的回调函数
  13687. * @param {Number} wait 延时的时间
  13688. * @param {Boolean} immediate 是否立即执行
  13689. * @return null
  13690. */
  13691. function throttle(func) {
  13692. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13693. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13694. if (immediate) {
  13695. if (!flag) {
  13696. flag = true;
  13697. // 如果是立即执行,则在wait毫秒内开始时执行
  13698. typeof func === 'function' && func();
  13699. timer = setTimeout(function () {
  13700. flag = false;
  13701. }, wait);
  13702. }
  13703. } else if (!flag) {
  13704. flag = true;
  13705. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13706. timer = setTimeout(function () {
  13707. flag = false;
  13708. typeof func === 'function' && func();
  13709. }, wait);
  13710. }
  13711. }
  13712. var _default = throttle;
  13713. exports.default = _default;
  13714. /***/ }),
  13715. /* 59 */
  13716. /*!************************************************************************!*\
  13717. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/function/index.js ***!
  13718. \************************************************************************/
  13719. /*! no static exports found */
  13720. /***/ (function(module, exports, __webpack_require__) {
  13721. "use strict";
  13722. /* WEBPACK VAR INJECTION */(function(uni) {
  13723. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  13724. Object.defineProperty(exports, "__esModule", {
  13725. value: true
  13726. });
  13727. exports.default = void 0;
  13728. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  13729. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  13730. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 56));
  13731. var _digit = __webpack_require__(/*! ./digit.js */ 60);
  13732. /**
  13733. * @description 如果value小于min,取min;如果value大于max,取max
  13734. * @param {number} min
  13735. * @param {number} max
  13736. * @param {number} value
  13737. */
  13738. function range() {
  13739. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13740. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13741. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13742. return Math.max(min, Math.min(max, Number(value)));
  13743. }
  13744. /**
  13745. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13746. * @param {number|string} value 用户传递值的px值
  13747. * @param {boolean} unit
  13748. * @returns {number|string}
  13749. */
  13750. function getPx(value) {
  13751. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13752. if (_test.default.number(value)) {
  13753. return unit ? "".concat(value, "px") : Number(value);
  13754. }
  13755. // 如果带有rpx,先取出其数值部分,再转为px值
  13756. if (/(rpx|upx)$/.test(value)) {
  13757. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13758. }
  13759. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13760. }
  13761. /**
  13762. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13763. * @param {number} value 堵塞时间 单位ms 毫秒
  13764. * @returns {Promise} 返回promise
  13765. */
  13766. function sleep() {
  13767. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13768. return new Promise(function (resolve) {
  13769. setTimeout(function () {
  13770. resolve();
  13771. }, value);
  13772. });
  13773. }
  13774. /**
  13775. * @description 运行期判断平台
  13776. * @returns {string} 返回所在平台(小写)
  13777. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13778. */
  13779. function os() {
  13780. return uni.getSystemInfoSync().platform.toLowerCase();
  13781. }
  13782. /**
  13783. * @description 获取系统信息同步接口
  13784. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13785. */
  13786. function sys() {
  13787. return uni.getSystemInfoSync();
  13788. }
  13789. /**
  13790. * @description 取一个区间数
  13791. * @param {Number} min 最小值
  13792. * @param {Number} max 最大值
  13793. */
  13794. function random(min, max) {
  13795. if (min >= 0 && max > 0 && max >= min) {
  13796. var gab = max - min + 1;
  13797. return Math.floor(Math.random() * gab + min);
  13798. }
  13799. return 0;
  13800. }
  13801. /**
  13802. * @param {Number} len uuid的长度
  13803. * @param {Boolean} firstU 将返回的首字母置为"u"
  13804. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13805. */
  13806. function guid() {
  13807. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13808. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13809. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13810. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13811. var uuid = [];
  13812. radix = radix || chars.length;
  13813. if (len) {
  13814. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13815. for (var i = 0; i < len; i++) {
  13816. uuid[i] = chars[0 | Math.random() * radix];
  13817. }
  13818. } else {
  13819. var r;
  13820. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13821. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13822. uuid[14] = '4';
  13823. for (var _i = 0; _i < 36; _i++) {
  13824. if (!uuid[_i]) {
  13825. r = 0 | Math.random() * 16;
  13826. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13827. }
  13828. }
  13829. }
  13830. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13831. if (firstU) {
  13832. uuid.shift();
  13833. return "u".concat(uuid.join(''));
  13834. }
  13835. return uuid.join('');
  13836. }
  13837. /**
  13838. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13839. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13840. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13841. 值(默认为undefined),就是查找最顶层的$parent
  13842. * @param {string|undefined} name 父组件的参数名
  13843. */
  13844. function $parent() {
  13845. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13846. var parent = this.$parent;
  13847. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13848. while (parent) {
  13849. // 父组件
  13850. if (parent.$options && parent.$options.name !== name) {
  13851. // 如果组件的name不相等,继续上一级寻找
  13852. parent = parent.$parent;
  13853. } else {
  13854. return parent;
  13855. }
  13856. }
  13857. return false;
  13858. }
  13859. /**
  13860. * @description 样式转换
  13861. * 对象转字符串,或者字符串转对象
  13862. * @param {object | string} customStyle 需要转换的目标
  13863. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13864. * @returns {object|string}
  13865. */
  13866. function addStyle(customStyle) {
  13867. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13868. // 字符串转字符串,对象转对象情形,直接返回
  13869. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13870. return customStyle;
  13871. }
  13872. // 字符串转对象
  13873. if (target === 'object') {
  13874. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13875. customStyle = trim(customStyle);
  13876. // 根据";"将字符串转为数组形式
  13877. var styleArray = customStyle.split(';');
  13878. var style = {};
  13879. // 历遍数组,拼接成对象
  13880. for (var i = 0; i < styleArray.length; i++) {
  13881. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13882. if (styleArray[i]) {
  13883. var item = styleArray[i].split(':');
  13884. style[trim(item[0])] = trim(item[1]);
  13885. }
  13886. }
  13887. return style;
  13888. }
  13889. // 这里为对象转字符串形式
  13890. var string = '';
  13891. for (var _i2 in customStyle) {
  13892. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13893. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13894. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13895. }
  13896. // 去除两端空格
  13897. return trim(string);
  13898. }
  13899. /**
  13900. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13901. * @param {string|number} value 需要添加单位的值
  13902. * @param {string} unit 添加的单位名 比如px
  13903. */
  13904. function addUnit() {
  13905. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13906. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13907. 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';
  13908. value = String(value);
  13909. // 用uView内置验证规则中的number判断是否为数值
  13910. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13911. }
  13912. /**
  13913. * @description 深度克隆
  13914. * @param {object} obj 需要深度克隆的对象
  13915. * @param cache 缓存
  13916. * @returns {*} 克隆后的对象或者原值(不是对象)
  13917. */
  13918. function deepClone(obj) {
  13919. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13920. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13921. if (cache.has(obj)) return cache.get(obj);
  13922. var clone;
  13923. if (obj instanceof Date) {
  13924. clone = new Date(obj.getTime());
  13925. } else if (obj instanceof RegExp) {
  13926. clone = new RegExp(obj);
  13927. } else if (obj instanceof Map) {
  13928. clone = new Map(Array.from(obj, function (_ref) {
  13929. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13930. key = _ref2[0],
  13931. value = _ref2[1];
  13932. return [key, deepClone(value, cache)];
  13933. }));
  13934. } else if (obj instanceof Set) {
  13935. clone = new Set(Array.from(obj, function (value) {
  13936. return deepClone(value, cache);
  13937. }));
  13938. } else if (Array.isArray(obj)) {
  13939. clone = obj.map(function (value) {
  13940. return deepClone(value, cache);
  13941. });
  13942. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13943. clone = Object.create(Object.getPrototypeOf(obj));
  13944. cache.set(obj, clone);
  13945. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13946. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13947. key = _Object$entries$_i[0],
  13948. value = _Object$entries$_i[1];
  13949. clone[key] = deepClone(value, cache);
  13950. }
  13951. } else {
  13952. clone = Object.assign({}, obj);
  13953. }
  13954. cache.set(obj, clone);
  13955. return clone;
  13956. }
  13957. /**
  13958. * @description JS对象深度合并
  13959. * @param {object} target 需要拷贝的对象
  13960. * @param {object} source 拷贝的来源对象
  13961. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13962. */
  13963. function deepMerge() {
  13964. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13965. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13966. target = deepClone(target);
  13967. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13968. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13969. for (var prop in source) {
  13970. if (!source.hasOwnProperty(prop)) continue;
  13971. var sourceValue = source[prop];
  13972. var targetValue = merged[prop];
  13973. if (sourceValue instanceof Date) {
  13974. merged[prop] = new Date(sourceValue);
  13975. } else if (sourceValue instanceof RegExp) {
  13976. merged[prop] = new RegExp(sourceValue);
  13977. } else if (sourceValue instanceof Map) {
  13978. merged[prop] = new Map(sourceValue);
  13979. } else if (sourceValue instanceof Set) {
  13980. merged[prop] = new Set(sourceValue);
  13981. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13982. merged[prop] = deepMerge(targetValue, sourceValue);
  13983. } else {
  13984. merged[prop] = sourceValue;
  13985. }
  13986. }
  13987. return merged;
  13988. }
  13989. /**
  13990. * @description error提示
  13991. * @param {*} err 错误内容
  13992. */
  13993. function error(err) {
  13994. // 开发环境才提示,生产环境不会提示
  13995. if (true) {
  13996. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13997. }
  13998. }
  13999. /**
  14000. * @description 打乱数组
  14001. * @param {array} array 需要打乱的数组
  14002. * @returns {array} 打乱后的数组
  14003. */
  14004. function randomArray() {
  14005. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  14006. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  14007. return array.sort(function () {
  14008. return Math.random() - 0.5;
  14009. });
  14010. }
  14011. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  14012. // 所以这里做一个兼容polyfill的兼容处理
  14013. if (!String.prototype.padStart) {
  14014. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  14015. String.prototype.padStart = function (maxLength) {
  14016. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  14017. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  14018. throw new TypeError('fillString must be String');
  14019. }
  14020. var str = this;
  14021. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  14022. if (str.length >= maxLength) return String(str);
  14023. var fillLength = maxLength - str.length;
  14024. var times = Math.ceil(fillLength / fillString.length);
  14025. while (times >>= 1) {
  14026. fillString += fillString;
  14027. if (times === 1) {
  14028. fillString += fillString;
  14029. }
  14030. }
  14031. return fillString.slice(0, fillLength) + str;
  14032. };
  14033. }
  14034. /**
  14035. * @description 格式化时间
  14036. * @param {String|Number} dateTime 需要格式化的时间戳
  14037. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  14038. * @returns {string} 返回格式化后的字符串
  14039. */
  14040. function timeFormat() {
  14041. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14042. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  14043. var date;
  14044. // 若传入时间为假值,则取当前时间
  14045. if (!dateTime) {
  14046. date = new Date();
  14047. }
  14048. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  14049. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  14050. date = new Date(dateTime * 1000);
  14051. }
  14052. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  14053. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  14054. date = new Date(Number(dateTime));
  14055. }
  14056. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  14057. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  14058. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  14059. date = new Date(dateTime.replace(/-/g, '/'));
  14060. }
  14061. // 其他都认为符合 RFC 2822 规范
  14062. else {
  14063. date = new Date(dateTime);
  14064. }
  14065. var timeSource = {
  14066. 'y': date.getFullYear().toString(),
  14067. // 年
  14068. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  14069. // 月
  14070. 'd': date.getDate().toString().padStart(2, '0'),
  14071. // 日
  14072. 'h': date.getHours().toString().padStart(2, '0'),
  14073. // 时
  14074. 'M': date.getMinutes().toString().padStart(2, '0'),
  14075. // 分
  14076. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  14077. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  14078. };
  14079. for (var key in timeSource) {
  14080. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  14081. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  14082. ret = _ref4[0];
  14083. if (ret) {
  14084. // 年可能只需展示两位
  14085. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  14086. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  14087. }
  14088. }
  14089. return formatStr;
  14090. }
  14091. /**
  14092. * @description 时间戳转为多久之前
  14093. * @param {String|Number} timestamp 时间戳
  14094. * @param {String|Boolean} format
  14095. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  14096. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  14097. * @returns {string} 转化后的内容
  14098. */
  14099. function timeFrom() {
  14100. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14101. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  14102. if (timestamp == null) timestamp = Number(new Date());
  14103. timestamp = parseInt(timestamp);
  14104. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  14105. if (timestamp.toString().length == 10) timestamp *= 1000;
  14106. var timer = new Date().getTime() - timestamp;
  14107. timer = parseInt(timer / 1000);
  14108. // 如果小于5分钟,则返回"刚刚",其他以此类推
  14109. var tips = '';
  14110. switch (true) {
  14111. case timer < 300:
  14112. tips = '刚刚';
  14113. break;
  14114. case timer >= 300 && timer < 3600:
  14115. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  14116. break;
  14117. case timer >= 3600 && timer < 86400:
  14118. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  14119. break;
  14120. case timer >= 86400 && timer < 2592000:
  14121. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  14122. break;
  14123. default:
  14124. // 如果format为false,则无论什么时间戳,都显示xx之前
  14125. if (format === false) {
  14126. if (timer >= 2592000 && timer < 365 * 86400) {
  14127. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  14128. } else {
  14129. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  14130. }
  14131. } else {
  14132. tips = timeFormat(timestamp, format);
  14133. }
  14134. }
  14135. return tips;
  14136. }
  14137. /**
  14138. * @description 去除空格
  14139. * @param String str 需要去除空格的字符串
  14140. * @param String pos both(左右)|left|right|all 默认both
  14141. */
  14142. function trim(str) {
  14143. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  14144. str = String(str);
  14145. if (pos == 'both') {
  14146. return str.replace(/^\s+|\s+$/g, '');
  14147. }
  14148. if (pos == 'left') {
  14149. return str.replace(/^\s*/, '');
  14150. }
  14151. if (pos == 'right') {
  14152. return str.replace(/(\s*$)/g, '');
  14153. }
  14154. if (pos == 'all') {
  14155. return str.replace(/\s+/g, '');
  14156. }
  14157. return str;
  14158. }
  14159. /**
  14160. * @description 对象转url参数
  14161. * @param {object} data,对象
  14162. * @param {Boolean} isPrefix,是否自动加上"?"
  14163. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  14164. */
  14165. function queryParams() {
  14166. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14167. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14168. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  14169. var prefix = isPrefix ? '?' : '';
  14170. var _result = [];
  14171. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  14172. var _loop = function _loop(key) {
  14173. var value = data[key];
  14174. // 去掉为空的参数
  14175. if (['', undefined, null].indexOf(value) >= 0) {
  14176. return "continue";
  14177. }
  14178. // 如果值为数组,另行处理
  14179. if (value.constructor === Array) {
  14180. // e.g. {ids: [1, 2, 3]}
  14181. switch (arrayFormat) {
  14182. case 'indices':
  14183. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  14184. for (var i = 0; i < value.length; i++) {
  14185. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  14186. }
  14187. break;
  14188. case 'brackets':
  14189. // 结果: ids[]=1&ids[]=2&ids[]=3
  14190. value.forEach(function (_value) {
  14191. _result.push("".concat(key, "[]=").concat(_value));
  14192. });
  14193. break;
  14194. case 'repeat':
  14195. // 结果: ids=1&ids=2&ids=3
  14196. value.forEach(function (_value) {
  14197. _result.push("".concat(key, "=").concat(_value));
  14198. });
  14199. break;
  14200. case 'comma':
  14201. // 结果: ids=1,2,3
  14202. var commaStr = '';
  14203. value.forEach(function (_value) {
  14204. commaStr += (commaStr ? ',' : '') + _value;
  14205. });
  14206. _result.push("".concat(key, "=").concat(commaStr));
  14207. break;
  14208. default:
  14209. value.forEach(function (_value) {
  14210. _result.push("".concat(key, "[]=").concat(_value));
  14211. });
  14212. }
  14213. } else {
  14214. _result.push("".concat(key, "=").concat(value));
  14215. }
  14216. };
  14217. for (var key in data) {
  14218. var _ret = _loop(key);
  14219. if (_ret === "continue") continue;
  14220. }
  14221. return _result.length ? prefix + _result.join('&') : '';
  14222. }
  14223. /**
  14224. * 显示消息提示框
  14225. * @param {String} title 提示的内容,长度与 icon 取值有关。
  14226. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  14227. */
  14228. function toast(title) {
  14229. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  14230. uni.showToast({
  14231. title: String(title),
  14232. icon: 'none',
  14233. duration: duration
  14234. });
  14235. }
  14236. /**
  14237. * @description 根据主题type值,获取对应的图标
  14238. * @param {String} type 主题名称,primary|info|error|warning|success
  14239. * @param {boolean} fill 是否使用fill填充实体的图标
  14240. */
  14241. function type2icon() {
  14242. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  14243. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  14244. // 如果非预置值,默认为success
  14245. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  14246. var iconName = '';
  14247. // 目前(2019-12-12),info和primary使用同一个图标
  14248. switch (type) {
  14249. case 'primary':
  14250. iconName = 'info-circle';
  14251. break;
  14252. case 'info':
  14253. iconName = 'info-circle';
  14254. break;
  14255. case 'error':
  14256. iconName = 'close-circle';
  14257. break;
  14258. case 'warning':
  14259. iconName = 'error-circle';
  14260. break;
  14261. case 'success':
  14262. iconName = 'checkmark-circle';
  14263. break;
  14264. default:
  14265. iconName = 'checkmark-circle';
  14266. }
  14267. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  14268. if (fill) iconName += '-fill';
  14269. return iconName;
  14270. }
  14271. /**
  14272. * @description 数字格式化
  14273. * @param {number|string} number 要格式化的数字
  14274. * @param {number} decimals 保留几位小数
  14275. * @param {string} decimalPoint 小数点符号
  14276. * @param {string} thousandsSeparator 千分位符号
  14277. * @returns {string} 格式化后的数字
  14278. */
  14279. function priceFormat(number) {
  14280. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  14281. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  14282. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  14283. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  14284. var n = !isFinite(+number) ? 0 : +number;
  14285. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  14286. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  14287. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  14288. var s = '';
  14289. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  14290. var re = /(-?\d+)(\d{3})/;
  14291. while (re.test(s[0])) {
  14292. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  14293. }
  14294. if ((s[1] || '').length < prec) {
  14295. s[1] = s[1] || '';
  14296. s[1] += new Array(prec - s[1].length + 1).join('0');
  14297. }
  14298. return s.join(dec);
  14299. }
  14300. /**
  14301. * @description 获取duration值
  14302. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  14303. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  14304. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  14305. * @param {boolean} unit 提示: 如果是false 默认返回number
  14306. * @return {string|number}
  14307. */
  14308. function getDuration(value) {
  14309. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14310. var valueNum = parseInt(value);
  14311. if (unit) {
  14312. if (/s$/.test(value)) return value;
  14313. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  14314. }
  14315. if (/ms$/.test(value)) return valueNum;
  14316. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  14317. return valueNum;
  14318. }
  14319. /**
  14320. * @description 日期的月或日补零操作
  14321. * @param {String} value 需要补零的值
  14322. */
  14323. function padZero(value) {
  14324. return "00".concat(value).slice(-2);
  14325. }
  14326. /**
  14327. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  14328. * @param {*} instance
  14329. * @param {*} event
  14330. */
  14331. function formValidate(instance, event) {
  14332. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  14333. var form = uni.$u.$parent.call(instance, 'u-form');
  14334. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  14335. // 同时将form-item的pros传递给form,让其进行精确对象验证
  14336. if (formItem && form) {
  14337. form.validateField(formItem.prop, function () {}, event);
  14338. }
  14339. }
  14340. /**
  14341. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  14342. * @param {object} obj 对象
  14343. * @param {string} key 需要获取的属性字段
  14344. * @returns {*}
  14345. */
  14346. function getProperty(obj, key) {
  14347. if (!obj) {
  14348. return;
  14349. }
  14350. if (typeof key !== 'string' || key === '') {
  14351. return '';
  14352. }
  14353. if (key.indexOf('.') !== -1) {
  14354. var keys = key.split('.');
  14355. var firstObj = obj[keys[0]] || {};
  14356. for (var i = 1; i < keys.length; i++) {
  14357. if (firstObj) {
  14358. firstObj = firstObj[keys[i]];
  14359. }
  14360. }
  14361. return firstObj;
  14362. }
  14363. return obj[key];
  14364. }
  14365. /**
  14366. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  14367. * @param {object} obj 对象
  14368. * @param {string} key 需要设置的属性
  14369. * @param {string} value 设置的值
  14370. */
  14371. function setProperty(obj, key, value) {
  14372. if (!obj) {
  14373. return;
  14374. }
  14375. // 递归赋值
  14376. var inFn = function inFn(_obj, keys, v) {
  14377. // 最后一个属性key
  14378. if (keys.length === 1) {
  14379. _obj[keys[0]] = v;
  14380. return;
  14381. }
  14382. // 0~length-1个key
  14383. while (keys.length > 1) {
  14384. var k = keys[0];
  14385. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  14386. _obj[k] = {};
  14387. }
  14388. var _key = keys.shift();
  14389. // 自调用判断是否存在属性,不存在则自动创建对象
  14390. inFn(_obj[k], keys, v);
  14391. }
  14392. };
  14393. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  14394. // 支持多层级赋值操作
  14395. var keys = key.split('.');
  14396. inFn(obj, keys, value);
  14397. } else {
  14398. obj[key] = value;
  14399. }
  14400. }
  14401. /**
  14402. * @description 获取当前页面路径
  14403. */
  14404. function page() {
  14405. var _pages$route, _pages;
  14406. var pages = getCurrentPages();
  14407. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  14408. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  14409. }
  14410. /**
  14411. * @description 获取当前路由栈实例数组
  14412. */
  14413. function pages() {
  14414. var pages = getCurrentPages();
  14415. return pages;
  14416. }
  14417. /**
  14418. * 获取页面历史栈指定层实例
  14419. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  14420. */
  14421. function getHistoryPage() {
  14422. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14423. var pages = getCurrentPages();
  14424. var len = pages.length;
  14425. return pages[len - 1 + back];
  14426. }
  14427. /**
  14428. * @description 修改uView内置属性值
  14429. * @param {object} props 修改内置props属性
  14430. * @param {object} config 修改内置config属性
  14431. * @param {object} color 修改内置color属性
  14432. * @param {object} zIndex 修改内置zIndex属性
  14433. */
  14434. function setConfig(_ref5) {
  14435. var _ref5$props = _ref5.props,
  14436. props = _ref5$props === void 0 ? {} : _ref5$props,
  14437. _ref5$config = _ref5.config,
  14438. config = _ref5$config === void 0 ? {} : _ref5$config,
  14439. _ref5$color = _ref5.color,
  14440. color = _ref5$color === void 0 ? {} : _ref5$color,
  14441. _ref5$zIndex = _ref5.zIndex,
  14442. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  14443. var deepMerge = uni.$u.deepMerge;
  14444. uni.$u.config = deepMerge(uni.$u.config, config);
  14445. uni.$u.props = deepMerge(uni.$u.props, props);
  14446. uni.$u.color = deepMerge(uni.$u.color, color);
  14447. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14448. }
  14449. var _default = {
  14450. range: range,
  14451. getPx: getPx,
  14452. sleep: sleep,
  14453. os: os,
  14454. sys: sys,
  14455. random: random,
  14456. guid: guid,
  14457. $parent: $parent,
  14458. addStyle: addStyle,
  14459. addUnit: addUnit,
  14460. deepClone: deepClone,
  14461. deepMerge: deepMerge,
  14462. error: error,
  14463. randomArray: randomArray,
  14464. timeFormat: timeFormat,
  14465. timeFrom: timeFrom,
  14466. trim: trim,
  14467. queryParams: queryParams,
  14468. toast: toast,
  14469. type2icon: type2icon,
  14470. priceFormat: priceFormat,
  14471. getDuration: getDuration,
  14472. padZero: padZero,
  14473. formValidate: formValidate,
  14474. getProperty: getProperty,
  14475. setProperty: setProperty,
  14476. page: page,
  14477. pages: pages,
  14478. getHistoryPage: getHistoryPage,
  14479. setConfig: setConfig
  14480. };
  14481. exports.default = _default;
  14482. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  14483. /***/ }),
  14484. /* 60 */
  14485. /*!************************************************************************!*\
  14486. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/function/digit.js ***!
  14487. \************************************************************************/
  14488. /*! no static exports found */
  14489. /***/ (function(module, exports, __webpack_require__) {
  14490. "use strict";
  14491. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  14492. Object.defineProperty(exports, "__esModule", {
  14493. value: true
  14494. });
  14495. exports.default = void 0;
  14496. exports.divide = divide;
  14497. exports.enableBoundaryChecking = enableBoundaryChecking;
  14498. exports.minus = minus;
  14499. exports.plus = plus;
  14500. exports.round = round;
  14501. exports.times = times;
  14502. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 61));
  14503. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14504. /**
  14505. * 把错误的数据转正
  14506. * @private
  14507. * @example strip(0.09999999999999998)=0.1
  14508. */
  14509. function strip(num) {
  14510. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14511. return +parseFloat(Number(num).toPrecision(precision));
  14512. }
  14513. /**
  14514. * Return digits length of a number
  14515. * @private
  14516. * @param {*number} num Input number
  14517. */
  14518. function digitLength(num) {
  14519. // Get digit length of e
  14520. var eSplit = num.toString().split(/[eE]/);
  14521. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14522. return len > 0 ? len : 0;
  14523. }
  14524. /**
  14525. * 把小数转成整数,如果是小数则放大成整数
  14526. * @private
  14527. * @param {*number} num 输入数
  14528. */
  14529. function float2Fixed(num) {
  14530. if (num.toString().indexOf('e') === -1) {
  14531. return Number(num.toString().replace('.', ''));
  14532. }
  14533. var dLen = digitLength(num);
  14534. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14535. }
  14536. /**
  14537. * 检测数字是否越界,如果越界给出提示
  14538. * @private
  14539. * @param {*number} num 输入数
  14540. */
  14541. function checkBoundary(num) {
  14542. if (_boundaryCheckingState) {
  14543. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14544. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14545. }
  14546. }
  14547. }
  14548. /**
  14549. * 把递归操作扁平迭代化
  14550. * @param {number[]} arr 要操作的数字数组
  14551. * @param {function} operation 迭代操作
  14552. * @private
  14553. */
  14554. function iteratorOperation(arr, operation) {
  14555. var _arr = (0, _toArray2.default)(arr),
  14556. num1 = _arr[0],
  14557. num2 = _arr[1],
  14558. others = _arr.slice(2);
  14559. var res = operation(num1, num2);
  14560. others.forEach(function (num) {
  14561. res = operation(res, num);
  14562. });
  14563. return res;
  14564. }
  14565. /**
  14566. * 高精度乘法
  14567. * @export
  14568. */
  14569. function times() {
  14570. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14571. nums[_key] = arguments[_key];
  14572. }
  14573. if (nums.length > 2) {
  14574. return iteratorOperation(nums, times);
  14575. }
  14576. var num1 = nums[0],
  14577. num2 = nums[1];
  14578. var num1Changed = float2Fixed(num1);
  14579. var num2Changed = float2Fixed(num2);
  14580. var baseNum = digitLength(num1) + digitLength(num2);
  14581. var leftValue = num1Changed * num2Changed;
  14582. checkBoundary(leftValue);
  14583. return leftValue / Math.pow(10, baseNum);
  14584. }
  14585. /**
  14586. * 高精度加法
  14587. * @export
  14588. */
  14589. function plus() {
  14590. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14591. nums[_key2] = arguments[_key2];
  14592. }
  14593. if (nums.length > 2) {
  14594. return iteratorOperation(nums, plus);
  14595. }
  14596. var num1 = nums[0],
  14597. num2 = nums[1];
  14598. // 取最大的小数位
  14599. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14600. // 把小数都转为整数然后再计算
  14601. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14602. }
  14603. /**
  14604. * 高精度减法
  14605. * @export
  14606. */
  14607. function minus() {
  14608. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14609. nums[_key3] = arguments[_key3];
  14610. }
  14611. if (nums.length > 2) {
  14612. return iteratorOperation(nums, minus);
  14613. }
  14614. var num1 = nums[0],
  14615. num2 = nums[1];
  14616. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14617. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14618. }
  14619. /**
  14620. * 高精度除法
  14621. * @export
  14622. */
  14623. function divide() {
  14624. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14625. nums[_key4] = arguments[_key4];
  14626. }
  14627. if (nums.length > 2) {
  14628. return iteratorOperation(nums, divide);
  14629. }
  14630. var num1 = nums[0],
  14631. num2 = nums[1];
  14632. var num1Changed = float2Fixed(num1);
  14633. var num2Changed = float2Fixed(num2);
  14634. checkBoundary(num1Changed);
  14635. checkBoundary(num2Changed);
  14636. // 重要,这里必须用strip进行修正
  14637. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14638. }
  14639. /**
  14640. * 四舍五入
  14641. * @export
  14642. */
  14643. function round(num, ratio) {
  14644. var base = Math.pow(10, ratio);
  14645. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14646. if (num < 0 && result !== 0) {
  14647. result = times(result, -1);
  14648. }
  14649. // 位数不足则补0
  14650. return result;
  14651. }
  14652. /**
  14653. * 是否进行边界检查,默认开启
  14654. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14655. * @export
  14656. */
  14657. function enableBoundaryChecking() {
  14658. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14659. _boundaryCheckingState = flag;
  14660. }
  14661. var _default = {
  14662. times: times,
  14663. plus: plus,
  14664. minus: minus,
  14665. divide: divide,
  14666. round: round,
  14667. enableBoundaryChecking: enableBoundaryChecking
  14668. };
  14669. exports.default = _default;
  14670. /***/ }),
  14671. /* 61 */
  14672. /*!********************************************************!*\
  14673. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14674. \********************************************************/
  14675. /*! no static exports found */
  14676. /***/ (function(module, exports, __webpack_require__) {
  14677. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 5);
  14678. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 18);
  14679. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  14680. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 9);
  14681. function _toArray(arr) {
  14682. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14683. }
  14684. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14685. /***/ }),
  14686. /* 62 */
  14687. /*!***********************************************************************!*\
  14688. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/config.js ***!
  14689. \***********************************************************************/
  14690. /*! no static exports found */
  14691. /***/ (function(module, exports, __webpack_require__) {
  14692. "use strict";
  14693. Object.defineProperty(exports, "__esModule", {
  14694. value: true
  14695. });
  14696. exports.default = void 0;
  14697. // 此版本发布于2023-03-27
  14698. var version = '2.0.36';
  14699. // 开发环境才提示,生产环境不会提示
  14700. if (true) {
  14701. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14702. }
  14703. var _default = {
  14704. v: version,
  14705. version: version,
  14706. // 主题名称
  14707. type: ['primary', 'success', 'info', 'error', 'warning'],
  14708. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14709. color: {
  14710. 'u-primary': '#2979ff',
  14711. 'u-warning': '#ff9900',
  14712. 'u-success': '#19be6b',
  14713. 'u-error': '#fa3534',
  14714. 'u-info': '#909399',
  14715. 'u-main-color': '#303133',
  14716. 'u-content-color': '#606266',
  14717. 'u-tips-color': '#909399',
  14718. 'u-light-color': '#c0c4cc'
  14719. },
  14720. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14721. unit: 'px'
  14722. };
  14723. exports.default = _default;
  14724. /***/ }),
  14725. /* 63 */
  14726. /*!**********************************************************************!*\
  14727. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props.js ***!
  14728. \**********************************************************************/
  14729. /*! no static exports found */
  14730. /***/ (function(module, exports, __webpack_require__) {
  14731. "use strict";
  14732. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  14733. Object.defineProperty(exports, "__esModule", {
  14734. value: true
  14735. });
  14736. exports.default = void 0;
  14737. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  14738. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 62));
  14739. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 64));
  14740. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 65));
  14741. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 66));
  14742. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 67));
  14743. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 68));
  14744. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 69));
  14745. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 70));
  14746. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 71));
  14747. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 72));
  14748. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 73));
  14749. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 74));
  14750. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 75));
  14751. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 76));
  14752. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 77));
  14753. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 78));
  14754. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 79));
  14755. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 80));
  14756. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 81));
  14757. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 82));
  14758. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 83));
  14759. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 84));
  14760. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 85));
  14761. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 86));
  14762. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 87));
  14763. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 88));
  14764. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 89));
  14765. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 90));
  14766. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 91));
  14767. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 92));
  14768. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 93));
  14769. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 94));
  14770. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 95));
  14771. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 96));
  14772. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 97));
  14773. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 98));
  14774. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 99));
  14775. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 100));
  14776. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 101));
  14777. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 102));
  14778. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 103));
  14779. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 104));
  14780. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 105));
  14781. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 106));
  14782. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 107));
  14783. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 108));
  14784. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 109));
  14785. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 110));
  14786. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 112));
  14787. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 113));
  14788. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 114));
  14789. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 115));
  14790. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 116));
  14791. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 117));
  14792. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 118));
  14793. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 119));
  14794. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 120));
  14795. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 121));
  14796. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 122));
  14797. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 123));
  14798. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 124));
  14799. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 125));
  14800. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 126));
  14801. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 127));
  14802. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 128));
  14803. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 129));
  14804. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 130));
  14805. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 131));
  14806. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 132));
  14807. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 133));
  14808. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 134));
  14809. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 135));
  14810. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 136));
  14811. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 137));
  14812. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 138));
  14813. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 139));
  14814. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 140));
  14815. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 141));
  14816. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 142));
  14817. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 143));
  14818. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 144));
  14819. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 145));
  14820. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 146));
  14821. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 147));
  14822. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 148));
  14823. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 149));
  14824. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 150));
  14825. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 151));
  14826. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 152));
  14827. 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; }
  14828. 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; }
  14829. var color = _config.default.color;
  14830. 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);
  14831. exports.default = _default;
  14832. /***/ }),
  14833. /* 64 */
  14834. /*!**********************************************************************************!*\
  14835. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14836. \**********************************************************************************/
  14837. /*! no static exports found */
  14838. /***/ (function(module, exports, __webpack_require__) {
  14839. "use strict";
  14840. Object.defineProperty(exports, "__esModule", {
  14841. value: true
  14842. });
  14843. exports.default = void 0;
  14844. /*
  14845. * @Author : LQ
  14846. * @Description :
  14847. * @version : 1.0
  14848. * @Date : 2021-08-20 16:44:21
  14849. * @LastAuthor : LQ
  14850. * @lastTime : 2021-08-20 16:44:35
  14851. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14852. */
  14853. var _default = {
  14854. // action-sheet组件
  14855. actionSheet: {
  14856. show: false,
  14857. title: '',
  14858. description: '',
  14859. actions: function actions() {
  14860. return [];
  14861. },
  14862. index: '',
  14863. cancelText: '',
  14864. closeOnClickAction: true,
  14865. safeAreaInsetBottom: true,
  14866. openType: '',
  14867. closeOnClickOverlay: true,
  14868. round: 0
  14869. }
  14870. };
  14871. exports.default = _default;
  14872. /***/ }),
  14873. /* 65 */
  14874. /*!****************************************************************************!*\
  14875. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/album.js ***!
  14876. \****************************************************************************/
  14877. /*! no static exports found */
  14878. /***/ (function(module, exports, __webpack_require__) {
  14879. "use strict";
  14880. Object.defineProperty(exports, "__esModule", {
  14881. value: true
  14882. });
  14883. exports.default = void 0;
  14884. /*
  14885. * @Author : LQ
  14886. * @Description :
  14887. * @version : 1.0
  14888. * @Date : 2021-08-20 16:44:21
  14889. * @LastAuthor : LQ
  14890. * @lastTime : 2021-08-20 16:47:24
  14891. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14892. */
  14893. var _default = {
  14894. // album 组件
  14895. album: {
  14896. urls: function urls() {
  14897. return [];
  14898. },
  14899. keyName: '',
  14900. singleSize: 180,
  14901. multipleSize: 70,
  14902. space: 6,
  14903. singleMode: 'scaleToFill',
  14904. multipleMode: 'aspectFill',
  14905. maxCount: 9,
  14906. previewFullImage: true,
  14907. rowCount: 3,
  14908. showMore: true
  14909. }
  14910. };
  14911. exports.default = _default;
  14912. /***/ }),
  14913. /* 66 */
  14914. /*!****************************************************************************!*\
  14915. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14916. \****************************************************************************/
  14917. /*! no static exports found */
  14918. /***/ (function(module, exports, __webpack_require__) {
  14919. "use strict";
  14920. Object.defineProperty(exports, "__esModule", {
  14921. value: true
  14922. });
  14923. exports.default = void 0;
  14924. /*
  14925. * @Author : LQ
  14926. * @Description :
  14927. * @version : 1.0
  14928. * @Date : 2021-08-20 16:44:21
  14929. * @LastAuthor : LQ
  14930. * @lastTime : 2021-08-20 16:48:53
  14931. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14932. */
  14933. var _default = {
  14934. // alert警告组件
  14935. alert: {
  14936. title: '',
  14937. type: 'warning',
  14938. description: '',
  14939. closable: false,
  14940. showIcon: false,
  14941. effect: 'light',
  14942. center: false,
  14943. fontSize: 14
  14944. }
  14945. };
  14946. exports.default = _default;
  14947. /***/ }),
  14948. /* 67 */
  14949. /*!*****************************************************************************!*\
  14950. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14951. \*****************************************************************************/
  14952. /*! no static exports found */
  14953. /***/ (function(module, exports, __webpack_require__) {
  14954. "use strict";
  14955. Object.defineProperty(exports, "__esModule", {
  14956. value: true
  14957. });
  14958. exports.default = void 0;
  14959. /*
  14960. * @Author : LQ
  14961. * @Description :
  14962. * @version : 1.0
  14963. * @Date : 2021-08-20 16:44:21
  14964. * @LastAuthor : LQ
  14965. * @lastTime : 2021-08-20 16:49:22
  14966. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14967. */
  14968. var _default = {
  14969. // avatar 组件
  14970. avatar: {
  14971. src: '',
  14972. shape: 'circle',
  14973. size: 40,
  14974. mode: 'scaleToFill',
  14975. text: '',
  14976. bgColor: '#c0c4cc',
  14977. color: '#ffffff',
  14978. fontSize: 18,
  14979. icon: '',
  14980. mpAvatar: false,
  14981. randomBgColor: false,
  14982. defaultUrl: '',
  14983. colorIndex: '',
  14984. name: ''
  14985. }
  14986. };
  14987. exports.default = _default;
  14988. /***/ }),
  14989. /* 68 */
  14990. /*!**********************************************************************************!*\
  14991. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14992. \**********************************************************************************/
  14993. /*! no static exports found */
  14994. /***/ (function(module, exports, __webpack_require__) {
  14995. "use strict";
  14996. Object.defineProperty(exports, "__esModule", {
  14997. value: true
  14998. });
  14999. exports.default = void 0;
  15000. /*
  15001. * @Author : LQ
  15002. * @Description :
  15003. * @version : 1.0
  15004. * @Date : 2021-08-20 16:44:21
  15005. * @LastAuthor : LQ
  15006. * @lastTime : 2021-08-20 16:49:55
  15007. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  15008. */
  15009. var _default = {
  15010. // avatarGroup 组件
  15011. avatarGroup: {
  15012. urls: function urls() {
  15013. return [];
  15014. },
  15015. maxCount: 5,
  15016. shape: 'circle',
  15017. mode: 'scaleToFill',
  15018. showMore: true,
  15019. size: 40,
  15020. keyName: '',
  15021. gap: 0.5,
  15022. extraValue: 0
  15023. }
  15024. };
  15025. exports.default = _default;
  15026. /***/ }),
  15027. /* 69 */
  15028. /*!******************************************************************************!*\
  15029. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  15030. \******************************************************************************/
  15031. /*! no static exports found */
  15032. /***/ (function(module, exports, __webpack_require__) {
  15033. "use strict";
  15034. Object.defineProperty(exports, "__esModule", {
  15035. value: true
  15036. });
  15037. exports.default = void 0;
  15038. /*
  15039. * @Author : LQ
  15040. * @Description :
  15041. * @version : 1.0
  15042. * @Date : 2021-08-20 16:44:21
  15043. * @LastAuthor : LQ
  15044. * @lastTime : 2021-08-20 16:50:18
  15045. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  15046. */
  15047. var _default = {
  15048. // backtop组件
  15049. backtop: {
  15050. mode: 'circle',
  15051. icon: 'arrow-upward',
  15052. text: '',
  15053. duration: 100,
  15054. scrollTop: 0,
  15055. top: 400,
  15056. bottom: 100,
  15057. right: 20,
  15058. zIndex: 9,
  15059. iconStyle: function iconStyle() {
  15060. return {
  15061. color: '#909399',
  15062. fontSize: '19px'
  15063. };
  15064. }
  15065. }
  15066. };
  15067. exports.default = _default;
  15068. /***/ }),
  15069. /* 70 */
  15070. /*!****************************************************************************!*\
  15071. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/badge.js ***!
  15072. \****************************************************************************/
  15073. /*! no static exports found */
  15074. /***/ (function(module, exports, __webpack_require__) {
  15075. "use strict";
  15076. Object.defineProperty(exports, "__esModule", {
  15077. value: true
  15078. });
  15079. exports.default = void 0;
  15080. /*
  15081. * @Author : LQ
  15082. * @Description :
  15083. * @version : 1.0
  15084. * @Date : 2021-08-20 16:44:21
  15085. * @LastAuthor : LQ
  15086. * @lastTime : 2021-08-23 19:51:50
  15087. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  15088. */
  15089. var _default = {
  15090. // 徽标数组件
  15091. badge: {
  15092. isDot: false,
  15093. value: '',
  15094. show: true,
  15095. max: 999,
  15096. type: 'error',
  15097. showZero: false,
  15098. bgColor: null,
  15099. color: null,
  15100. shape: 'circle',
  15101. numberType: 'overflow',
  15102. offset: function offset() {
  15103. return [];
  15104. },
  15105. inverted: false,
  15106. absolute: false
  15107. }
  15108. };
  15109. exports.default = _default;
  15110. /***/ }),
  15111. /* 71 */
  15112. /*!*****************************************************************************!*\
  15113. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/button.js ***!
  15114. \*****************************************************************************/
  15115. /*! no static exports found */
  15116. /***/ (function(module, exports, __webpack_require__) {
  15117. "use strict";
  15118. Object.defineProperty(exports, "__esModule", {
  15119. value: true
  15120. });
  15121. exports.default = void 0;
  15122. /*
  15123. * @Author : LQ
  15124. * @Description :
  15125. * @version : 1.0
  15126. * @Date : 2021-08-20 16:44:21
  15127. * @LastAuthor : LQ
  15128. * @lastTime : 2021-08-20 16:51:27
  15129. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  15130. */
  15131. var _default = {
  15132. // button组件
  15133. button: {
  15134. hairline: false,
  15135. type: 'info',
  15136. size: 'normal',
  15137. shape: 'square',
  15138. plain: false,
  15139. disabled: false,
  15140. loading: false,
  15141. loadingText: '',
  15142. loadingMode: 'spinner',
  15143. loadingSize: 15,
  15144. openType: '',
  15145. formType: '',
  15146. appParameter: '',
  15147. hoverStopPropagation: true,
  15148. lang: 'en',
  15149. sessionFrom: '',
  15150. sendMessageTitle: '',
  15151. sendMessagePath: '',
  15152. sendMessageImg: '',
  15153. showMessageCard: false,
  15154. dataName: '',
  15155. throttleTime: 0,
  15156. hoverStartTime: 0,
  15157. hoverStayTime: 200,
  15158. text: '',
  15159. icon: '',
  15160. iconColor: '',
  15161. color: ''
  15162. }
  15163. };
  15164. exports.default = _default;
  15165. /***/ }),
  15166. /* 72 */
  15167. /*!*******************************************************************************!*\
  15168. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  15169. \*******************************************************************************/
  15170. /*! no static exports found */
  15171. /***/ (function(module, exports, __webpack_require__) {
  15172. "use strict";
  15173. Object.defineProperty(exports, "__esModule", {
  15174. value: true
  15175. });
  15176. exports.default = void 0;
  15177. /*
  15178. * @Author : LQ
  15179. * @Description :
  15180. * @version : 1.0
  15181. * @Date : 2021-08-20 16:44:21
  15182. * @LastAuthor : LQ
  15183. * @lastTime : 2021-08-20 16:52:43
  15184. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  15185. */
  15186. var _default = {
  15187. // calendar 组件
  15188. calendar: {
  15189. title: '日期选择',
  15190. showTitle: true,
  15191. showSubtitle: true,
  15192. mode: 'single',
  15193. startText: '开始',
  15194. endText: '结束',
  15195. customList: function customList() {
  15196. return [];
  15197. },
  15198. color: '#3c9cff',
  15199. minDate: 0,
  15200. maxDate: 0,
  15201. defaultDate: null,
  15202. maxCount: Number.MAX_SAFE_INTEGER,
  15203. // Infinity
  15204. rowHeight: 56,
  15205. formatter: null,
  15206. showLunar: false,
  15207. showMark: true,
  15208. confirmText: '确定',
  15209. confirmDisabledText: '确定',
  15210. show: false,
  15211. closeOnClickOverlay: false,
  15212. readonly: false,
  15213. showConfirm: true,
  15214. maxRange: Number.MAX_SAFE_INTEGER,
  15215. // Infinity
  15216. rangePrompt: '',
  15217. showRangePrompt: true,
  15218. allowSameDay: false,
  15219. round: 0,
  15220. monthNum: 3
  15221. }
  15222. };
  15223. exports.default = _default;
  15224. /***/ }),
  15225. /* 73 */
  15226. /*!**********************************************************************************!*\
  15227. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  15228. \**********************************************************************************/
  15229. /*! no static exports found */
  15230. /***/ (function(module, exports, __webpack_require__) {
  15231. "use strict";
  15232. Object.defineProperty(exports, "__esModule", {
  15233. value: true
  15234. });
  15235. exports.default = void 0;
  15236. /*
  15237. * @Author : LQ
  15238. * @Description :
  15239. * @version : 1.0
  15240. * @Date : 2021-08-20 16:44:21
  15241. * @LastAuthor : LQ
  15242. * @lastTime : 2021-08-20 16:53:20
  15243. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  15244. */
  15245. var _default = {
  15246. // 车牌号键盘
  15247. carKeyboard: {
  15248. random: false
  15249. }
  15250. };
  15251. exports.default = _default;
  15252. /***/ }),
  15253. /* 74 */
  15254. /*!***************************************************************************!*\
  15255. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/cell.js ***!
  15256. \***************************************************************************/
  15257. /*! no static exports found */
  15258. /***/ (function(module, exports, __webpack_require__) {
  15259. "use strict";
  15260. Object.defineProperty(exports, "__esModule", {
  15261. value: true
  15262. });
  15263. exports.default = void 0;
  15264. /*
  15265. * @Author : LQ
  15266. * @Description :
  15267. * @version : 1.0
  15268. * @Date : 2021-08-20 16:44:21
  15269. * @LastAuthor : LQ
  15270. * @lastTime : 2021-08-23 20:53:09
  15271. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  15272. */
  15273. var _default = {
  15274. // cell组件的props
  15275. cell: {
  15276. customClass: '',
  15277. title: '',
  15278. label: '',
  15279. value: '',
  15280. icon: '',
  15281. disabled: false,
  15282. border: true,
  15283. center: false,
  15284. url: '',
  15285. linkType: 'navigateTo',
  15286. clickable: false,
  15287. isLink: false,
  15288. required: false,
  15289. arrowDirection: '',
  15290. iconStyle: {},
  15291. rightIconStyle: {},
  15292. rightIcon: 'arrow-right',
  15293. titleStyle: {},
  15294. size: '',
  15295. stop: true,
  15296. name: ''
  15297. }
  15298. };
  15299. exports.default = _default;
  15300. /***/ }),
  15301. /* 75 */
  15302. /*!********************************************************************************!*\
  15303. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  15304. \********************************************************************************/
  15305. /*! no static exports found */
  15306. /***/ (function(module, exports, __webpack_require__) {
  15307. "use strict";
  15308. Object.defineProperty(exports, "__esModule", {
  15309. value: true
  15310. });
  15311. exports.default = void 0;
  15312. /*
  15313. * @Author : LQ
  15314. * @Description :
  15315. * @version : 1.0
  15316. * @Date : 2021-08-20 16:44:21
  15317. * @LastAuthor : LQ
  15318. * @lastTime : 2021-08-20 16:54:16
  15319. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  15320. */
  15321. var _default = {
  15322. // cell-group组件的props
  15323. cellGroup: {
  15324. title: '',
  15325. border: true,
  15326. customStyle: {}
  15327. }
  15328. };
  15329. exports.default = _default;
  15330. /***/ }),
  15331. /* 76 */
  15332. /*!*******************************************************************************!*\
  15333. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  15334. \*******************************************************************************/
  15335. /*! no static exports found */
  15336. /***/ (function(module, exports, __webpack_require__) {
  15337. "use strict";
  15338. Object.defineProperty(exports, "__esModule", {
  15339. value: true
  15340. });
  15341. exports.default = void 0;
  15342. /*
  15343. * @Author : LQ
  15344. * @Description :
  15345. * @version : 1.0
  15346. * @Date : 2021-08-20 16:44:21
  15347. * @LastAuthor : LQ
  15348. * @lastTime : 2021-08-23 21:06:59
  15349. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  15350. */
  15351. var _default = {
  15352. // checkbox组件
  15353. checkbox: {
  15354. name: '',
  15355. shape: '',
  15356. size: '',
  15357. checkbox: false,
  15358. disabled: '',
  15359. activeColor: '',
  15360. inactiveColor: '',
  15361. iconSize: '',
  15362. iconColor: '',
  15363. label: '',
  15364. labelSize: '',
  15365. labelColor: '',
  15366. labelDisabled: ''
  15367. }
  15368. };
  15369. exports.default = _default;
  15370. /***/ }),
  15371. /* 77 */
  15372. /*!************************************************************************************!*\
  15373. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  15374. \************************************************************************************/
  15375. /*! no static exports found */
  15376. /***/ (function(module, exports, __webpack_require__) {
  15377. "use strict";
  15378. Object.defineProperty(exports, "__esModule", {
  15379. value: true
  15380. });
  15381. exports.default = void 0;
  15382. /*
  15383. * @Author : LQ
  15384. * @Description :
  15385. * @version : 1.0
  15386. * @Date : 2021-08-20 16:44:21
  15387. * @LastAuthor : LQ
  15388. * @lastTime : 2021-08-20 16:54:47
  15389. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  15390. */
  15391. var _default = {
  15392. // checkbox-group组件
  15393. checkboxGroup: {
  15394. name: '',
  15395. value: function value() {
  15396. return [];
  15397. },
  15398. shape: 'square',
  15399. disabled: false,
  15400. activeColor: '#2979ff',
  15401. inactiveColor: '#c8c9cc',
  15402. size: 18,
  15403. placement: 'row',
  15404. labelSize: 14,
  15405. labelColor: '#303133',
  15406. labelDisabled: false,
  15407. iconColor: '#ffffff',
  15408. iconSize: 12,
  15409. iconPlacement: 'left',
  15410. borderBottom: false
  15411. }
  15412. };
  15413. exports.default = _default;
  15414. /***/ }),
  15415. /* 78 */
  15416. /*!*************************************************************************************!*\
  15417. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  15418. \*************************************************************************************/
  15419. /*! no static exports found */
  15420. /***/ (function(module, exports, __webpack_require__) {
  15421. "use strict";
  15422. Object.defineProperty(exports, "__esModule", {
  15423. value: true
  15424. });
  15425. exports.default = void 0;
  15426. /*
  15427. * @Author : LQ
  15428. * @Description :
  15429. * @version : 1.0
  15430. * @Date : 2021-08-20 16:44:21
  15431. * @LastAuthor : LQ
  15432. * @lastTime : 2021-08-20 16:55:02
  15433. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15434. */
  15435. var _default = {
  15436. // circleProgress 组件
  15437. circleProgress: {
  15438. percentage: 30
  15439. }
  15440. };
  15441. exports.default = _default;
  15442. /***/ }),
  15443. /* 79 */
  15444. /*!***************************************************************************!*\
  15445. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/code.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 16:55:27
  15461. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15462. */
  15463. var _default = {
  15464. // code 组件
  15465. code: {
  15466. seconds: 60,
  15467. startText: '获取验证码',
  15468. changeText: 'X秒重新获取',
  15469. endText: '重新获取',
  15470. keepRunning: false,
  15471. uniqueKey: ''
  15472. }
  15473. };
  15474. exports.default = _default;
  15475. /***/ }),
  15476. /* 80 */
  15477. /*!********************************************************************************!*\
  15478. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  15479. \********************************************************************************/
  15480. /*! no static exports found */
  15481. /***/ (function(module, exports, __webpack_require__) {
  15482. "use strict";
  15483. Object.defineProperty(exports, "__esModule", {
  15484. value: true
  15485. });
  15486. exports.default = void 0;
  15487. /*
  15488. * @Author : LQ
  15489. * @Description :
  15490. * @version : 1.0
  15491. * @Date : 2021-08-20 16:44:21
  15492. * @LastAuthor : LQ
  15493. * @lastTime : 2021-08-20 16:55:58
  15494. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15495. */
  15496. var _default = {
  15497. // codeInput 组件
  15498. codeInput: {
  15499. adjustPosition: true,
  15500. maxlength: 6,
  15501. dot: false,
  15502. mode: 'box',
  15503. hairline: false,
  15504. space: 10,
  15505. value: '',
  15506. focus: false,
  15507. bold: false,
  15508. color: '#606266',
  15509. fontSize: 18,
  15510. size: 35,
  15511. disabledKeyboard: false,
  15512. borderColor: '#c9cacc',
  15513. disabledDot: true
  15514. }
  15515. };
  15516. exports.default = _default;
  15517. /***/ }),
  15518. /* 81 */
  15519. /*!**************************************************************************!*\
  15520. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/col.js ***!
  15521. \**************************************************************************/
  15522. /*! no static exports found */
  15523. /***/ (function(module, exports, __webpack_require__) {
  15524. "use strict";
  15525. Object.defineProperty(exports, "__esModule", {
  15526. value: true
  15527. });
  15528. exports.default = void 0;
  15529. /*
  15530. * @Author : LQ
  15531. * @Description :
  15532. * @version : 1.0
  15533. * @Date : 2021-08-20 16:44:21
  15534. * @LastAuthor : LQ
  15535. * @lastTime : 2021-08-20 16:56:12
  15536. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15537. */
  15538. var _default = {
  15539. // col 组件
  15540. col: {
  15541. span: 12,
  15542. offset: 0,
  15543. justify: 'start',
  15544. align: 'stretch',
  15545. textAlign: 'left'
  15546. }
  15547. };
  15548. exports.default = _default;
  15549. /***/ }),
  15550. /* 82 */
  15551. /*!*******************************************************************************!*\
  15552. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  15553. \*******************************************************************************/
  15554. /*! no static exports found */
  15555. /***/ (function(module, exports, __webpack_require__) {
  15556. "use strict";
  15557. Object.defineProperty(exports, "__esModule", {
  15558. value: true
  15559. });
  15560. exports.default = void 0;
  15561. /*
  15562. * @Author : LQ
  15563. * @Description :
  15564. * @version : 1.0
  15565. * @Date : 2021-08-20 16:44:21
  15566. * @LastAuthor : LQ
  15567. * @lastTime : 2021-08-20 16:56:30
  15568. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15569. */
  15570. var _default = {
  15571. // collapse 组件
  15572. collapse: {
  15573. value: null,
  15574. accordion: false,
  15575. border: true
  15576. }
  15577. };
  15578. exports.default = _default;
  15579. /***/ }),
  15580. /* 83 */
  15581. /*!***********************************************************************************!*\
  15582. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15583. \***********************************************************************************/
  15584. /*! no static exports found */
  15585. /***/ (function(module, exports, __webpack_require__) {
  15586. "use strict";
  15587. Object.defineProperty(exports, "__esModule", {
  15588. value: true
  15589. });
  15590. exports.default = void 0;
  15591. /*
  15592. * @Author : LQ
  15593. * @Description :
  15594. * @version : 1.0
  15595. * @Date : 2021-08-20 16:44:21
  15596. * @LastAuthor : LQ
  15597. * @lastTime : 2021-08-20 16:56:42
  15598. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15599. */
  15600. var _default = {
  15601. // collapseItem 组件
  15602. collapseItem: {
  15603. title: '',
  15604. value: '',
  15605. label: '',
  15606. disabled: false,
  15607. isLink: true,
  15608. clickable: true,
  15609. border: true,
  15610. align: 'left',
  15611. name: '',
  15612. icon: '',
  15613. duration: 300
  15614. }
  15615. };
  15616. exports.default = _default;
  15617. /***/ }),
  15618. /* 84 */
  15619. /*!***********************************************************************************!*\
  15620. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15621. \***********************************************************************************/
  15622. /*! no static exports found */
  15623. /***/ (function(module, exports, __webpack_require__) {
  15624. "use strict";
  15625. Object.defineProperty(exports, "__esModule", {
  15626. value: true
  15627. });
  15628. exports.default = void 0;
  15629. /*
  15630. * @Author : LQ
  15631. * @Description :
  15632. * @version : 1.0
  15633. * @Date : 2021-08-20 16:44:21
  15634. * @LastAuthor : LQ
  15635. * @lastTime : 2021-08-20 16:57:16
  15636. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15637. */
  15638. var _default = {
  15639. // columnNotice 组件
  15640. columnNotice: {
  15641. text: '',
  15642. icon: 'volume',
  15643. mode: '',
  15644. color: '#f9ae3d',
  15645. bgColor: '#fdf6ec',
  15646. fontSize: 14,
  15647. speed: 80,
  15648. step: false,
  15649. duration: 1500,
  15650. disableTouch: true
  15651. }
  15652. };
  15653. exports.default = _default;
  15654. /***/ }),
  15655. /* 85 */
  15656. /*!********************************************************************************!*\
  15657. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  15658. \********************************************************************************/
  15659. /*! no static exports found */
  15660. /***/ (function(module, exports, __webpack_require__) {
  15661. "use strict";
  15662. Object.defineProperty(exports, "__esModule", {
  15663. value: true
  15664. });
  15665. exports.default = void 0;
  15666. /*
  15667. * @Author : LQ
  15668. * @Description :
  15669. * @version : 1.0
  15670. * @Date : 2021-08-20 16:44:21
  15671. * @LastAuthor : LQ
  15672. * @lastTime : 2021-08-20 17:11:29
  15673. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15674. */
  15675. var _default = {
  15676. // u-count-down 计时器组件
  15677. countDown: {
  15678. time: 0,
  15679. format: 'HH:mm:ss',
  15680. autoStart: true,
  15681. millisecond: false
  15682. }
  15683. };
  15684. exports.default = _default;
  15685. /***/ }),
  15686. /* 86 */
  15687. /*!******************************************************************************!*\
  15688. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15689. \******************************************************************************/
  15690. /*! no static exports found */
  15691. /***/ (function(module, exports, __webpack_require__) {
  15692. "use strict";
  15693. Object.defineProperty(exports, "__esModule", {
  15694. value: true
  15695. });
  15696. exports.default = void 0;
  15697. /*
  15698. * @Author : LQ
  15699. * @Description :
  15700. * @version : 1.0
  15701. * @Date : 2021-08-20 16:44:21
  15702. * @LastAuthor : LQ
  15703. * @lastTime : 2021-08-20 16:57:32
  15704. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15705. */
  15706. var _default = {
  15707. // countTo 组件
  15708. countTo: {
  15709. startVal: 0,
  15710. endVal: 0,
  15711. duration: 2000,
  15712. autoplay: true,
  15713. decimals: 0,
  15714. useEasing: true,
  15715. decimal: '.',
  15716. color: '#606266',
  15717. fontSize: 22,
  15718. bold: false,
  15719. separator: ''
  15720. }
  15721. };
  15722. exports.default = _default;
  15723. /***/ }),
  15724. /* 87 */
  15725. /*!*************************************************************************************!*\
  15726. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15727. \*************************************************************************************/
  15728. /*! no static exports found */
  15729. /***/ (function(module, exports, __webpack_require__) {
  15730. "use strict";
  15731. Object.defineProperty(exports, "__esModule", {
  15732. value: true
  15733. });
  15734. exports.default = void 0;
  15735. /*
  15736. * @Author : LQ
  15737. * @Description :
  15738. * @version : 1.0
  15739. * @Date : 2021-08-20 16:44:21
  15740. * @LastAuthor : LQ
  15741. * @lastTime : 2021-08-20 16:57:48
  15742. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15743. */
  15744. var _default = {
  15745. // datetimePicker 组件
  15746. datetimePicker: {
  15747. show: false,
  15748. showToolbar: true,
  15749. value: '',
  15750. title: '',
  15751. mode: 'datetime',
  15752. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15753. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15754. minHour: 0,
  15755. maxHour: 23,
  15756. minMinute: 0,
  15757. maxMinute: 59,
  15758. filter: null,
  15759. formatter: null,
  15760. loading: false,
  15761. itemHeight: 44,
  15762. cancelText: '取消',
  15763. confirmText: '确认',
  15764. cancelColor: '#909193',
  15765. confirmColor: '#3c9cff',
  15766. visibleItemCount: 5,
  15767. closeOnClickOverlay: false,
  15768. defaultIndex: function defaultIndex() {
  15769. return [];
  15770. }
  15771. }
  15772. };
  15773. exports.default = _default;
  15774. /***/ }),
  15775. /* 88 */
  15776. /*!******************************************************************************!*\
  15777. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15778. \******************************************************************************/
  15779. /*! no static exports found */
  15780. /***/ (function(module, exports, __webpack_require__) {
  15781. "use strict";
  15782. Object.defineProperty(exports, "__esModule", {
  15783. value: true
  15784. });
  15785. exports.default = void 0;
  15786. /*
  15787. * @Author : LQ
  15788. * @Description :
  15789. * @version : 1.0
  15790. * @Date : 2021-08-20 16:44:21
  15791. * @LastAuthor : LQ
  15792. * @lastTime : 2021-08-20 16:58:03
  15793. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15794. */
  15795. var _default = {
  15796. // divider组件
  15797. divider: {
  15798. dashed: false,
  15799. hairline: true,
  15800. dot: false,
  15801. textPosition: 'center',
  15802. text: '',
  15803. textSize: 14,
  15804. textColor: '#909399',
  15805. lineColor: '#dcdfe6'
  15806. }
  15807. };
  15808. exports.default = _default;
  15809. /***/ }),
  15810. /* 89 */
  15811. /*!****************************************************************************!*\
  15812. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15813. \****************************************************************************/
  15814. /*! no static exports found */
  15815. /***/ (function(module, exports, __webpack_require__) {
  15816. "use strict";
  15817. Object.defineProperty(exports, "__esModule", {
  15818. value: true
  15819. });
  15820. exports.default = void 0;
  15821. /*
  15822. * @Author : LQ
  15823. * @Description :
  15824. * @version : 1.0
  15825. * @Date : 2021-08-20 16:44:21
  15826. * @LastAuthor : LQ
  15827. * @lastTime : 2021-08-20 17:03:27
  15828. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15829. */
  15830. var _default = {
  15831. // empty组件
  15832. empty: {
  15833. icon: '',
  15834. text: '',
  15835. textColor: '#c0c4cc',
  15836. textSize: 14,
  15837. iconColor: '#c0c4cc',
  15838. iconSize: 90,
  15839. mode: 'data',
  15840. width: 160,
  15841. height: 160,
  15842. show: true,
  15843. marginTop: 0
  15844. }
  15845. };
  15846. exports.default = _default;
  15847. /***/ }),
  15848. /* 90 */
  15849. /*!***************************************************************************!*\
  15850. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/form.js ***!
  15851. \***************************************************************************/
  15852. /*! no static exports found */
  15853. /***/ (function(module, exports, __webpack_require__) {
  15854. "use strict";
  15855. Object.defineProperty(exports, "__esModule", {
  15856. value: true
  15857. });
  15858. exports.default = void 0;
  15859. /*
  15860. * @Author : LQ
  15861. * @Description :
  15862. * @version : 1.0
  15863. * @Date : 2021-08-20 16:44:21
  15864. * @LastAuthor : LQ
  15865. * @lastTime : 2021-08-20 17:03:49
  15866. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15867. */
  15868. var _default = {
  15869. // form 组件
  15870. form: {
  15871. model: function model() {
  15872. return {};
  15873. },
  15874. rules: function rules() {
  15875. return {};
  15876. },
  15877. errorType: 'message',
  15878. borderBottom: true,
  15879. labelPosition: 'left',
  15880. labelWidth: 45,
  15881. labelAlign: 'left',
  15882. labelStyle: function labelStyle() {
  15883. return {};
  15884. }
  15885. }
  15886. };
  15887. exports.default = _default;
  15888. /***/ }),
  15889. /* 91 */
  15890. /*!*******************************************************************************!*\
  15891. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15892. \*******************************************************************************/
  15893. /*! no static exports found */
  15894. /***/ (function(module, exports, __webpack_require__) {
  15895. "use strict";
  15896. Object.defineProperty(exports, "__esModule", {
  15897. value: true
  15898. });
  15899. exports.default = void 0;
  15900. /*
  15901. * @Author : LQ
  15902. * @Description :
  15903. * @version : 1.0
  15904. * @Date : 2021-08-20 16:44:21
  15905. * @LastAuthor : LQ
  15906. * @lastTime : 2021-08-20 17:04:32
  15907. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15908. */
  15909. var _default = {
  15910. // formItem 组件
  15911. formItem: {
  15912. label: '',
  15913. prop: '',
  15914. borderBottom: '',
  15915. labelPosition: '',
  15916. labelWidth: '',
  15917. rightIcon: '',
  15918. leftIcon: '',
  15919. required: false,
  15920. leftIconStyle: ''
  15921. }
  15922. };
  15923. exports.default = _default;
  15924. /***/ }),
  15925. /* 92 */
  15926. /*!**************************************************************************!*\
  15927. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15928. \**************************************************************************/
  15929. /*! no static exports found */
  15930. /***/ (function(module, exports, __webpack_require__) {
  15931. "use strict";
  15932. Object.defineProperty(exports, "__esModule", {
  15933. value: true
  15934. });
  15935. exports.default = void 0;
  15936. /*
  15937. * @Author : LQ
  15938. * @Description :
  15939. * @version : 1.0
  15940. * @Date : 2021-08-20 16:44:21
  15941. * @LastAuthor : LQ
  15942. * @lastTime : 2021-08-20 17:05:25
  15943. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15944. */
  15945. var _default = {
  15946. // gap组件
  15947. gap: {
  15948. bgColor: 'transparent',
  15949. height: 20,
  15950. marginTop: 0,
  15951. marginBottom: 0,
  15952. customStyle: {}
  15953. }
  15954. };
  15955. exports.default = _default;
  15956. /***/ }),
  15957. /* 93 */
  15958. /*!***************************************************************************!*\
  15959. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15960. \***************************************************************************/
  15961. /*! no static exports found */
  15962. /***/ (function(module, exports, __webpack_require__) {
  15963. "use strict";
  15964. Object.defineProperty(exports, "__esModule", {
  15965. value: true
  15966. });
  15967. exports.default = void 0;
  15968. /*
  15969. * @Author : LQ
  15970. * @Description :
  15971. * @version : 1.0
  15972. * @Date : 2021-08-20 16:44:21
  15973. * @LastAuthor : LQ
  15974. * @lastTime : 2021-08-20 17:05:57
  15975. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15976. */
  15977. var _default = {
  15978. // grid组件
  15979. grid: {
  15980. col: 3,
  15981. border: false,
  15982. align: 'left'
  15983. }
  15984. };
  15985. exports.default = _default;
  15986. /***/ }),
  15987. /* 94 */
  15988. /*!*******************************************************************************!*\
  15989. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15990. \*******************************************************************************/
  15991. /*! no static exports found */
  15992. /***/ (function(module, exports, __webpack_require__) {
  15993. "use strict";
  15994. Object.defineProperty(exports, "__esModule", {
  15995. value: true
  15996. });
  15997. exports.default = void 0;
  15998. /*
  15999. * @Author : LQ
  16000. * @Description :
  16001. * @version : 1.0
  16002. * @Date : 2021-08-20 16:44:21
  16003. * @LastAuthor : LQ
  16004. * @lastTime : 2021-08-20 17:06:13
  16005. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  16006. */
  16007. var _default = {
  16008. // grid-item组件
  16009. gridItem: {
  16010. name: null,
  16011. bgColor: 'transparent'
  16012. }
  16013. };
  16014. exports.default = _default;
  16015. /***/ }),
  16016. /* 95 */
  16017. /*!***************************************************************************!*\
  16018. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/icon.js ***!
  16019. \***************************************************************************/
  16020. /*! no static exports found */
  16021. /***/ (function(module, exports, __webpack_require__) {
  16022. "use strict";
  16023. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16024. Object.defineProperty(exports, "__esModule", {
  16025. value: true
  16026. });
  16027. exports.default = void 0;
  16028. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 62));
  16029. /*
  16030. * @Author : LQ
  16031. * @Description :
  16032. * @version : 1.0
  16033. * @Date : 2021-08-20 16:44:21
  16034. * @LastAuthor : LQ
  16035. * @lastTime : 2021-08-20 18:00:14
  16036. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  16037. */
  16038. var color = _config.default.color;
  16039. var _default = {
  16040. // icon组件
  16041. icon: {
  16042. name: '',
  16043. color: color['u-content-color'],
  16044. size: '16px',
  16045. bold: false,
  16046. index: '',
  16047. hoverClass: '',
  16048. customPrefix: 'uicon',
  16049. label: '',
  16050. labelPos: 'right',
  16051. labelSize: '15px',
  16052. labelColor: color['u-content-color'],
  16053. space: '3px',
  16054. imgMode: '',
  16055. width: '',
  16056. height: '',
  16057. top: 0,
  16058. stop: false
  16059. }
  16060. };
  16061. exports.default = _default;
  16062. /***/ }),
  16063. /* 96 */
  16064. /*!****************************************************************************!*\
  16065. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/image.js ***!
  16066. \****************************************************************************/
  16067. /*! no static exports found */
  16068. /***/ (function(module, exports, __webpack_require__) {
  16069. "use strict";
  16070. Object.defineProperty(exports, "__esModule", {
  16071. value: true
  16072. });
  16073. exports.default = void 0;
  16074. /*
  16075. * @Author : LQ
  16076. * @Description :
  16077. * @version : 1.0
  16078. * @Date : 2021-08-20 16:44:21
  16079. * @LastAuthor : LQ
  16080. * @lastTime : 2021-08-20 17:01:51
  16081. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  16082. */
  16083. var _default = {
  16084. // image组件
  16085. image: {
  16086. src: '',
  16087. mode: 'aspectFill',
  16088. width: '300',
  16089. height: '225',
  16090. shape: 'square',
  16091. radius: 0,
  16092. lazyLoad: true,
  16093. showMenuByLongpress: true,
  16094. loadingIcon: 'photo',
  16095. errorIcon: 'error-circle',
  16096. showLoading: true,
  16097. showError: true,
  16098. fade: true,
  16099. webp: false,
  16100. duration: 500,
  16101. bgColor: '#f3f4f6'
  16102. }
  16103. };
  16104. exports.default = _default;
  16105. /***/ }),
  16106. /* 97 */
  16107. /*!**********************************************************************************!*\
  16108. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  16109. \**********************************************************************************/
  16110. /*! no static exports found */
  16111. /***/ (function(module, exports, __webpack_require__) {
  16112. "use strict";
  16113. Object.defineProperty(exports, "__esModule", {
  16114. value: true
  16115. });
  16116. exports.default = void 0;
  16117. /*
  16118. * @Author : LQ
  16119. * @Description :
  16120. * @version : 1.0
  16121. * @Date : 2021-08-20 16:44:21
  16122. * @LastAuthor : LQ
  16123. * @lastTime : 2021-08-20 17:13:15
  16124. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  16125. */
  16126. var _default = {
  16127. // indexAnchor 组件
  16128. indexAnchor: {
  16129. text: '',
  16130. color: '#606266',
  16131. size: 14,
  16132. bgColor: '#dedede',
  16133. height: 32
  16134. }
  16135. };
  16136. exports.default = _default;
  16137. /***/ }),
  16138. /* 98 */
  16139. /*!********************************************************************************!*\
  16140. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  16141. \********************************************************************************/
  16142. /*! no static exports found */
  16143. /***/ (function(module, exports, __webpack_require__) {
  16144. "use strict";
  16145. Object.defineProperty(exports, "__esModule", {
  16146. value: true
  16147. });
  16148. exports.default = void 0;
  16149. /*
  16150. * @Author : LQ
  16151. * @Description :
  16152. * @version : 1.0
  16153. * @Date : 2021-08-20 16:44:21
  16154. * @LastAuthor : LQ
  16155. * @lastTime : 2021-08-20 17:13:35
  16156. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  16157. */
  16158. var _default = {
  16159. // indexList 组件
  16160. indexList: {
  16161. inactiveColor: '#606266',
  16162. activeColor: '#5677fc',
  16163. indexList: function indexList() {
  16164. return [];
  16165. },
  16166. sticky: true,
  16167. customNavHeight: 0
  16168. }
  16169. };
  16170. exports.default = _default;
  16171. /***/ }),
  16172. /* 99 */
  16173. /*!****************************************************************************!*\
  16174. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/input.js ***!
  16175. \****************************************************************************/
  16176. /*! no static exports found */
  16177. /***/ (function(module, exports, __webpack_require__) {
  16178. "use strict";
  16179. Object.defineProperty(exports, "__esModule", {
  16180. value: true
  16181. });
  16182. exports.default = void 0;
  16183. /*
  16184. * @Author : LQ
  16185. * @Description :
  16186. * @version : 1.0
  16187. * @Date : 2021-08-20 16:44:21
  16188. * @LastAuthor : LQ
  16189. * @lastTime : 2021-08-20 17:13:55
  16190. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  16191. */
  16192. var _default = {
  16193. // index 组件
  16194. input: {
  16195. value: '',
  16196. type: 'text',
  16197. fixed: false,
  16198. disabled: false,
  16199. disabledColor: '#f5f7fa',
  16200. clearable: false,
  16201. password: false,
  16202. maxlength: -1,
  16203. placeholder: null,
  16204. placeholderClass: 'input-placeholder',
  16205. placeholderStyle: 'color: #c0c4cc',
  16206. showWordLimit: false,
  16207. confirmType: 'done',
  16208. confirmHold: false,
  16209. holdKeyboard: false,
  16210. focus: false,
  16211. autoBlur: false,
  16212. disableDefaultPadding: false,
  16213. cursor: -1,
  16214. cursorSpacing: 30,
  16215. selectionStart: -1,
  16216. selectionEnd: -1,
  16217. adjustPosition: true,
  16218. inputAlign: 'left',
  16219. fontSize: '15px',
  16220. color: '#303133',
  16221. prefixIcon: '',
  16222. prefixIconStyle: '',
  16223. suffixIcon: '',
  16224. suffixIconStyle: '',
  16225. border: 'surround',
  16226. readonly: false,
  16227. shape: 'square',
  16228. formatter: null
  16229. }
  16230. };
  16231. exports.default = _default;
  16232. /***/ }),
  16233. /* 100 */
  16234. /*!*******************************************************************************!*\
  16235. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  16236. \*******************************************************************************/
  16237. /*! no static exports found */
  16238. /***/ (function(module, exports, __webpack_require__) {
  16239. "use strict";
  16240. Object.defineProperty(exports, "__esModule", {
  16241. value: true
  16242. });
  16243. exports.default = void 0;
  16244. /*
  16245. * @Author : LQ
  16246. * @Description :
  16247. * @version : 1.0
  16248. * @Date : 2021-08-20 16:44:21
  16249. * @LastAuthor : LQ
  16250. * @lastTime : 2021-08-20 17:07:49
  16251. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  16252. */
  16253. var _default = {
  16254. // 键盘组件
  16255. keyboard: {
  16256. mode: 'number',
  16257. dotDisabled: false,
  16258. tooltip: true,
  16259. showTips: true,
  16260. tips: '',
  16261. showCancel: true,
  16262. showConfirm: true,
  16263. random: false,
  16264. safeAreaInsetBottom: true,
  16265. closeOnClickOverlay: true,
  16266. show: false,
  16267. overlay: true,
  16268. zIndex: 10075,
  16269. cancelText: '取消',
  16270. confirmText: '确定',
  16271. autoChange: false
  16272. }
  16273. };
  16274. exports.default = _default;
  16275. /***/ }),
  16276. /* 101 */
  16277. /*!***************************************************************************!*\
  16278. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/line.js ***!
  16279. \***************************************************************************/
  16280. /*! no static exports found */
  16281. /***/ (function(module, exports, __webpack_require__) {
  16282. "use strict";
  16283. Object.defineProperty(exports, "__esModule", {
  16284. value: true
  16285. });
  16286. exports.default = void 0;
  16287. /*
  16288. * @Author : LQ
  16289. * @Description :
  16290. * @version : 1.0
  16291. * @Date : 2021-08-20 16:44:21
  16292. * @LastAuthor : LQ
  16293. * @lastTime : 2021-08-20 17:04:49
  16294. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  16295. */
  16296. var _default = {
  16297. // line组件
  16298. line: {
  16299. color: '#d6d7d9',
  16300. length: '100%',
  16301. direction: 'row',
  16302. hairline: true,
  16303. margin: 0,
  16304. dashed: false
  16305. }
  16306. };
  16307. exports.default = _default;
  16308. /***/ }),
  16309. /* 102 */
  16310. /*!***********************************************************************************!*\
  16311. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  16312. \***********************************************************************************/
  16313. /*! no static exports found */
  16314. /***/ (function(module, exports, __webpack_require__) {
  16315. "use strict";
  16316. Object.defineProperty(exports, "__esModule", {
  16317. value: true
  16318. });
  16319. exports.default = void 0;
  16320. /*
  16321. * @Author : LQ
  16322. * @Description :
  16323. * @version : 1.0
  16324. * @Date : 2021-08-20 16:44:21
  16325. * @LastAuthor : LQ
  16326. * @lastTime : 2021-08-20 17:14:11
  16327. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  16328. */
  16329. var _default = {
  16330. // lineProgress 组件
  16331. lineProgress: {
  16332. activeColor: '#19be6b',
  16333. inactiveColor: '#ececec',
  16334. percentage: 0,
  16335. showText: true,
  16336. height: 12
  16337. }
  16338. };
  16339. exports.default = _default;
  16340. /***/ }),
  16341. /* 103 */
  16342. /*!***************************************************************************!*\
  16343. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/link.js ***!
  16344. \***************************************************************************/
  16345. /*! no static exports found */
  16346. /***/ (function(module, exports, __webpack_require__) {
  16347. "use strict";
  16348. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16349. Object.defineProperty(exports, "__esModule", {
  16350. value: true
  16351. });
  16352. exports.default = void 0;
  16353. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 62));
  16354. /*
  16355. * @Author : LQ
  16356. * @Description :
  16357. * @version : 1.0
  16358. * @Date : 2021-08-20 16:44:21
  16359. * @LastAuthor : LQ
  16360. * @lastTime : 2021-08-20 17:45:36
  16361. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  16362. */
  16363. var color = _config.default.color;
  16364. var _default = {
  16365. // link超链接组件props参数
  16366. link: {
  16367. color: color['u-primary'],
  16368. fontSize: 15,
  16369. underLine: false,
  16370. href: '',
  16371. mpTips: '链接已复制,请在浏览器打开',
  16372. lineColor: '',
  16373. text: ''
  16374. }
  16375. };
  16376. exports.default = _default;
  16377. /***/ }),
  16378. /* 104 */
  16379. /*!***************************************************************************!*\
  16380. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/list.js ***!
  16381. \***************************************************************************/
  16382. /*! no static exports found */
  16383. /***/ (function(module, exports, __webpack_require__) {
  16384. "use strict";
  16385. Object.defineProperty(exports, "__esModule", {
  16386. value: true
  16387. });
  16388. exports.default = void 0;
  16389. /*
  16390. * @Author : LQ
  16391. * @Description :
  16392. * @version : 1.0
  16393. * @Date : 2021-08-20 16:44:21
  16394. * @LastAuthor : LQ
  16395. * @lastTime : 2021-08-20 17:14:53
  16396. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  16397. */
  16398. var _default = {
  16399. // list 组件
  16400. list: {
  16401. showScrollbar: false,
  16402. lowerThreshold: 50,
  16403. upperThreshold: 0,
  16404. scrollTop: 0,
  16405. offsetAccuracy: 10,
  16406. enableFlex: false,
  16407. pagingEnabled: false,
  16408. scrollable: true,
  16409. scrollIntoView: '',
  16410. scrollWithAnimation: false,
  16411. enableBackToTop: false,
  16412. height: 0,
  16413. width: 0,
  16414. preLoadScreen: 1
  16415. }
  16416. };
  16417. exports.default = _default;
  16418. /***/ }),
  16419. /* 105 */
  16420. /*!*******************************************************************************!*\
  16421. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  16422. \*******************************************************************************/
  16423. /*! no static exports found */
  16424. /***/ (function(module, exports, __webpack_require__) {
  16425. "use strict";
  16426. Object.defineProperty(exports, "__esModule", {
  16427. value: true
  16428. });
  16429. exports.default = void 0;
  16430. /*
  16431. * @Author : LQ
  16432. * @Description :
  16433. * @version : 1.0
  16434. * @Date : 2021-08-20 16:44:21
  16435. * @LastAuthor : LQ
  16436. * @lastTime : 2021-08-20 17:15:40
  16437. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  16438. */
  16439. var _default = {
  16440. // listItem 组件
  16441. listItem: {
  16442. anchor: ''
  16443. }
  16444. };
  16445. exports.default = _default;
  16446. /***/ }),
  16447. /* 106 */
  16448. /*!**********************************************************************************!*\
  16449. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  16450. \**********************************************************************************/
  16451. /*! no static exports found */
  16452. /***/ (function(module, exports, __webpack_require__) {
  16453. "use strict";
  16454. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16455. Object.defineProperty(exports, "__esModule", {
  16456. value: true
  16457. });
  16458. exports.default = void 0;
  16459. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 62));
  16460. /*
  16461. * @Author : LQ
  16462. * @Description :
  16463. * @version : 1.0
  16464. * @Date : 2021-08-20 16:44:21
  16465. * @LastAuthor : LQ
  16466. * @lastTime : 2021-08-20 17:45:47
  16467. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  16468. */
  16469. var color = _config.default.color;
  16470. var _default = {
  16471. // loading-icon加载中图标组件
  16472. loadingIcon: {
  16473. show: true,
  16474. color: color['u-tips-color'],
  16475. textColor: color['u-tips-color'],
  16476. vertical: false,
  16477. mode: 'spinner',
  16478. size: 24,
  16479. textSize: 15,
  16480. text: '',
  16481. timingFunction: 'ease-in-out',
  16482. duration: 1200,
  16483. inactiveColor: ''
  16484. }
  16485. };
  16486. exports.default = _default;
  16487. /***/ }),
  16488. /* 107 */
  16489. /*!**********************************************************************************!*\
  16490. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  16491. \**********************************************************************************/
  16492. /*! no static exports found */
  16493. /***/ (function(module, exports, __webpack_require__) {
  16494. "use strict";
  16495. Object.defineProperty(exports, "__esModule", {
  16496. value: true
  16497. });
  16498. exports.default = void 0;
  16499. /*
  16500. * @Author : LQ
  16501. * @Description :
  16502. * @version : 1.0
  16503. * @Date : 2021-08-20 16:44:21
  16504. * @LastAuthor : LQ
  16505. * @lastTime : 2021-08-20 17:00:23
  16506. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16507. */
  16508. var _default = {
  16509. // loading-page组件
  16510. loadingPage: {
  16511. loadingText: '正在加载',
  16512. image: '',
  16513. loadingMode: 'circle',
  16514. loading: false,
  16515. bgColor: '#ffffff',
  16516. color: '#C8C8C8',
  16517. fontSize: 19,
  16518. iconSize: 28,
  16519. loadingColor: '#C8C8C8'
  16520. }
  16521. };
  16522. exports.default = _default;
  16523. /***/ }),
  16524. /* 108 */
  16525. /*!*******************************************************************************!*\
  16526. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  16527. \*******************************************************************************/
  16528. /*! no static exports found */
  16529. /***/ (function(module, exports, __webpack_require__) {
  16530. "use strict";
  16531. Object.defineProperty(exports, "__esModule", {
  16532. value: true
  16533. });
  16534. exports.default = void 0;
  16535. /*
  16536. * @Author : LQ
  16537. * @Description :
  16538. * @version : 1.0
  16539. * @Date : 2021-08-20 16:44:21
  16540. * @LastAuthor : LQ
  16541. * @lastTime : 2021-08-20 17:15:26
  16542. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16543. */
  16544. var _default = {
  16545. // loadmore 组件
  16546. loadmore: {
  16547. status: 'loadmore',
  16548. bgColor: 'transparent',
  16549. icon: true,
  16550. fontSize: 14,
  16551. iconSize: 17,
  16552. color: '#606266',
  16553. loadingIcon: 'spinner',
  16554. loadmoreText: '加载更多',
  16555. loadingText: '正在加载...',
  16556. nomoreText: '没有更多了',
  16557. isDot: false,
  16558. iconColor: '#b7b7b7',
  16559. marginTop: 10,
  16560. marginBottom: 10,
  16561. height: 'auto',
  16562. line: false,
  16563. lineColor: '#E6E8EB',
  16564. dashed: false
  16565. }
  16566. };
  16567. exports.default = _default;
  16568. /***/ }),
  16569. /* 109 */
  16570. /*!****************************************************************************!*\
  16571. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/modal.js ***!
  16572. \****************************************************************************/
  16573. /*! no static exports found */
  16574. /***/ (function(module, exports, __webpack_require__) {
  16575. "use strict";
  16576. Object.defineProperty(exports, "__esModule", {
  16577. value: true
  16578. });
  16579. exports.default = void 0;
  16580. /*
  16581. * @Author : LQ
  16582. * @Description :
  16583. * @version : 1.0
  16584. * @Date : 2021-08-20 16:44:21
  16585. * @LastAuthor : LQ
  16586. * @lastTime : 2021-08-20 17:15:59
  16587. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16588. */
  16589. var _default = {
  16590. // modal 组件
  16591. modal: {
  16592. show: false,
  16593. title: '',
  16594. content: '',
  16595. confirmText: '确认',
  16596. cancelText: '取消',
  16597. showConfirmButton: true,
  16598. showCancelButton: false,
  16599. confirmColor: '#2979ff',
  16600. cancelColor: '#606266',
  16601. buttonReverse: false,
  16602. zoom: true,
  16603. asyncClose: false,
  16604. closeOnClickOverlay: false,
  16605. negativeTop: 0,
  16606. width: '650rpx',
  16607. confirmButtonShape: ''
  16608. }
  16609. };
  16610. exports.default = _default;
  16611. /***/ }),
  16612. /* 110 */
  16613. /*!*****************************************************************************!*\
  16614. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  16615. \*****************************************************************************/
  16616. /*! no static exports found */
  16617. /***/ (function(module, exports, __webpack_require__) {
  16618. "use strict";
  16619. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16620. Object.defineProperty(exports, "__esModule", {
  16621. value: true
  16622. });
  16623. exports.default = void 0;
  16624. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 111));
  16625. /*
  16626. * @Author : LQ
  16627. * @Description :
  16628. * @version : 1.0
  16629. * @Date : 2021-08-20 16:44:21
  16630. * @LastAuthor : LQ
  16631. * @lastTime : 2021-08-20 17:16:18
  16632. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16633. */
  16634. var _default = {
  16635. // navbar 组件
  16636. navbar: {
  16637. safeAreaInsetTop: true,
  16638. placeholder: false,
  16639. fixed: true,
  16640. border: false,
  16641. leftIcon: 'arrow-left',
  16642. leftText: '',
  16643. rightText: '',
  16644. rightIcon: '',
  16645. title: '',
  16646. bgColor: '#ffffff',
  16647. titleWidth: '400rpx',
  16648. height: '44px',
  16649. leftIconSize: 20,
  16650. leftIconColor: _color.default.mainColor,
  16651. autoBack: false,
  16652. titleStyle: ''
  16653. }
  16654. };
  16655. exports.default = _default;
  16656. /***/ }),
  16657. /* 111 */
  16658. /*!**********************************************************************!*\
  16659. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/color.js ***!
  16660. \**********************************************************************/
  16661. /*! no static exports found */
  16662. /***/ (function(module, exports, __webpack_require__) {
  16663. "use strict";
  16664. Object.defineProperty(exports, "__esModule", {
  16665. value: true
  16666. });
  16667. exports.default = void 0;
  16668. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16669. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16670. var color = {
  16671. primary: '#3c9cff',
  16672. info: '#909399',
  16673. default: '#909399',
  16674. warning: '#f9ae3d',
  16675. error: '#f56c6c',
  16676. success: '#5ac725',
  16677. mainColor: '#303133',
  16678. contentColor: '#606266',
  16679. tipsColor: '#909399',
  16680. lightColor: '#c0c4cc',
  16681. borderColor: '#e4e7ed'
  16682. };
  16683. var _default = color;
  16684. exports.default = _default;
  16685. /***/ }),
  16686. /* 112 */
  16687. /*!********************************************************************************!*\
  16688. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16689. \********************************************************************************/
  16690. /*! no static exports found */
  16691. /***/ (function(module, exports, __webpack_require__) {
  16692. "use strict";
  16693. Object.defineProperty(exports, "__esModule", {
  16694. value: true
  16695. });
  16696. exports.default = void 0;
  16697. /*
  16698. * @Author : LQ
  16699. * @Description :
  16700. * @version : 1.0
  16701. * @Date : 2021-08-20 16:44:21
  16702. * @LastAuthor : LQ
  16703. * @lastTime : 2021-08-20 17:16:39
  16704. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16705. */
  16706. var _default = {
  16707. // noNetwork
  16708. noNetwork: {
  16709. tips: '哎呀,网络信号丢失',
  16710. zIndex: '',
  16711. 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'
  16712. }
  16713. };
  16714. exports.default = _default;
  16715. /***/ }),
  16716. /* 113 */
  16717. /*!********************************************************************************!*\
  16718. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16719. \********************************************************************************/
  16720. /*! no static exports found */
  16721. /***/ (function(module, exports, __webpack_require__) {
  16722. "use strict";
  16723. Object.defineProperty(exports, "__esModule", {
  16724. value: true
  16725. });
  16726. exports.default = void 0;
  16727. /*
  16728. * @Author : LQ
  16729. * @Description :
  16730. * @version : 1.0
  16731. * @Date : 2021-08-20 16:44:21
  16732. * @LastAuthor : LQ
  16733. * @lastTime : 2021-08-20 17:17:13
  16734. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16735. */
  16736. var _default = {
  16737. // noticeBar
  16738. noticeBar: {
  16739. text: function text() {
  16740. return [];
  16741. },
  16742. direction: 'row',
  16743. step: false,
  16744. icon: 'volume',
  16745. mode: '',
  16746. color: '#f9ae3d',
  16747. bgColor: '#fdf6ec',
  16748. speed: 80,
  16749. fontSize: 14,
  16750. duration: 2000,
  16751. disableTouch: true,
  16752. url: '',
  16753. linkType: 'navigateTo'
  16754. }
  16755. };
  16756. exports.default = _default;
  16757. /***/ }),
  16758. /* 114 */
  16759. /*!*****************************************************************************!*\
  16760. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16761. \*****************************************************************************/
  16762. /*! no static exports found */
  16763. /***/ (function(module, exports, __webpack_require__) {
  16764. "use strict";
  16765. Object.defineProperty(exports, "__esModule", {
  16766. value: true
  16767. });
  16768. exports.default = void 0;
  16769. /*
  16770. * @Author : LQ
  16771. * @Description :
  16772. * @version : 1.0
  16773. * @Date : 2021-08-20 16:44:21
  16774. * @LastAuthor : LQ
  16775. * @lastTime : 2021-08-20 17:10:21
  16776. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16777. */
  16778. var _default = {
  16779. // notify组件
  16780. notify: {
  16781. top: 0,
  16782. type: 'primary',
  16783. color: '#ffffff',
  16784. bgColor: '',
  16785. message: '',
  16786. duration: 3000,
  16787. fontSize: 15,
  16788. safeAreaInsetTop: false
  16789. }
  16790. };
  16791. exports.default = _default;
  16792. /***/ }),
  16793. /* 115 */
  16794. /*!********************************************************************************!*\
  16795. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16796. \********************************************************************************/
  16797. /*! no static exports found */
  16798. /***/ (function(module, exports, __webpack_require__) {
  16799. "use strict";
  16800. Object.defineProperty(exports, "__esModule", {
  16801. value: true
  16802. });
  16803. exports.default = void 0;
  16804. /*
  16805. * @Author : LQ
  16806. * @Description :
  16807. * @version : 1.0
  16808. * @Date : 2021-08-20 16:44:21
  16809. * @LastAuthor : LQ
  16810. * @lastTime : 2021-08-20 17:11:46
  16811. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16812. */
  16813. var _default = {
  16814. // 步进器组件
  16815. numberBox: {
  16816. name: '',
  16817. value: 0,
  16818. min: 1,
  16819. max: Number.MAX_SAFE_INTEGER,
  16820. step: 1,
  16821. integer: false,
  16822. disabled: false,
  16823. disabledInput: false,
  16824. asyncChange: false,
  16825. inputWidth: 35,
  16826. showMinus: true,
  16827. showPlus: true,
  16828. decimalLength: null,
  16829. longPress: true,
  16830. color: '#323233',
  16831. buttonSize: 30,
  16832. bgColor: '#EBECEE',
  16833. cursorSpacing: 100,
  16834. disableMinus: false,
  16835. disablePlus: false,
  16836. iconStyle: ''
  16837. }
  16838. };
  16839. exports.default = _default;
  16840. /***/ }),
  16841. /* 116 */
  16842. /*!*************************************************************************************!*\
  16843. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16844. \*************************************************************************************/
  16845. /*! no static exports found */
  16846. /***/ (function(module, exports, __webpack_require__) {
  16847. "use strict";
  16848. Object.defineProperty(exports, "__esModule", {
  16849. value: true
  16850. });
  16851. exports.default = void 0;
  16852. /*
  16853. * @Author : LQ
  16854. * @Description :
  16855. * @version : 1.0
  16856. * @Date : 2021-08-20 16:44:21
  16857. * @LastAuthor : LQ
  16858. * @lastTime : 2021-08-20 17:08:05
  16859. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16860. */
  16861. var _default = {
  16862. // 数字键盘
  16863. numberKeyboard: {
  16864. mode: 'number',
  16865. dotDisabled: false,
  16866. random: false
  16867. }
  16868. };
  16869. exports.default = _default;
  16870. /***/ }),
  16871. /* 117 */
  16872. /*!******************************************************************************!*\
  16873. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16874. \******************************************************************************/
  16875. /*! no static exports found */
  16876. /***/ (function(module, exports, __webpack_require__) {
  16877. "use strict";
  16878. Object.defineProperty(exports, "__esModule", {
  16879. value: true
  16880. });
  16881. exports.default = void 0;
  16882. /*
  16883. * @Author : LQ
  16884. * @Description :
  16885. * @version : 1.0
  16886. * @Date : 2021-08-20 16:44:21
  16887. * @LastAuthor : LQ
  16888. * @lastTime : 2021-08-20 17:06:50
  16889. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16890. */
  16891. var _default = {
  16892. // overlay组件
  16893. overlay: {
  16894. show: false,
  16895. zIndex: 10070,
  16896. duration: 300,
  16897. opacity: 0.5
  16898. }
  16899. };
  16900. exports.default = _default;
  16901. /***/ }),
  16902. /* 118 */
  16903. /*!****************************************************************************!*\
  16904. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16905. \****************************************************************************/
  16906. /*! no static exports found */
  16907. /***/ (function(module, exports, __webpack_require__) {
  16908. "use strict";
  16909. Object.defineProperty(exports, "__esModule", {
  16910. value: true
  16911. });
  16912. exports.default = void 0;
  16913. /*
  16914. * @Author : LQ
  16915. * @Description :
  16916. * @version : 1.0
  16917. * @Date : 2021-08-20 16:44:21
  16918. * @LastAuthor : LQ
  16919. * @lastTime : 2021-08-20 17:17:33
  16920. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16921. */
  16922. var _default = {
  16923. // parse
  16924. parse: {
  16925. copyLink: true,
  16926. errorImg: '',
  16927. lazyLoad: false,
  16928. loadingImg: '',
  16929. pauseVideo: true,
  16930. previewImg: true,
  16931. setTitle: true,
  16932. showImgMenu: true
  16933. }
  16934. };
  16935. exports.default = _default;
  16936. /***/ }),
  16937. /* 119 */
  16938. /*!*****************************************************************************!*\
  16939. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16940. \*****************************************************************************/
  16941. /*! no static exports found */
  16942. /***/ (function(module, exports, __webpack_require__) {
  16943. "use strict";
  16944. Object.defineProperty(exports, "__esModule", {
  16945. value: true
  16946. });
  16947. exports.default = void 0;
  16948. /*
  16949. * @Author : LQ
  16950. * @Description :
  16951. * @version : 1.0
  16952. * @Date : 2021-08-20 16:44:21
  16953. * @LastAuthor : LQ
  16954. * @lastTime : 2021-08-20 17:18:20
  16955. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16956. */
  16957. var _default = {
  16958. // picker
  16959. picker: {
  16960. show: false,
  16961. showToolbar: true,
  16962. title: '',
  16963. columns: function columns() {
  16964. return [];
  16965. },
  16966. loading: false,
  16967. itemHeight: 44,
  16968. cancelText: '取消',
  16969. confirmText: '确定',
  16970. cancelColor: '#909193',
  16971. confirmColor: '#3c9cff',
  16972. visibleItemCount: 5,
  16973. keyName: 'text',
  16974. closeOnClickOverlay: false,
  16975. defaultIndex: function defaultIndex() {
  16976. return [];
  16977. },
  16978. immediateChange: false
  16979. }
  16980. };
  16981. exports.default = _default;
  16982. /***/ }),
  16983. /* 120 */
  16984. /*!****************************************************************************!*\
  16985. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16986. \****************************************************************************/
  16987. /*! no static exports found */
  16988. /***/ (function(module, exports, __webpack_require__) {
  16989. "use strict";
  16990. Object.defineProperty(exports, "__esModule", {
  16991. value: true
  16992. });
  16993. exports.default = void 0;
  16994. /*
  16995. * @Author : LQ
  16996. * @Description :
  16997. * @version : 1.0
  16998. * @Date : 2021-08-20 16:44:21
  16999. * @LastAuthor : LQ
  17000. * @lastTime : 2021-08-20 17:06:33
  17001. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  17002. */
  17003. var _default = {
  17004. // popup组件
  17005. popup: {
  17006. show: false,
  17007. overlay: true,
  17008. mode: 'bottom',
  17009. duration: 300,
  17010. closeable: false,
  17011. overlayStyle: function overlayStyle() {},
  17012. closeOnClickOverlay: true,
  17013. zIndex: 10075,
  17014. safeAreaInsetBottom: true,
  17015. safeAreaInsetTop: false,
  17016. closeIconPos: 'top-right',
  17017. round: 0,
  17018. zoom: true,
  17019. bgColor: '',
  17020. overlayOpacity: 0.5
  17021. }
  17022. };
  17023. exports.default = _default;
  17024. /***/ }),
  17025. /* 121 */
  17026. /*!****************************************************************************!*\
  17027. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/radio.js ***!
  17028. \****************************************************************************/
  17029. /*! no static exports found */
  17030. /***/ (function(module, exports, __webpack_require__) {
  17031. "use strict";
  17032. Object.defineProperty(exports, "__esModule", {
  17033. value: true
  17034. });
  17035. exports.default = void 0;
  17036. /*
  17037. * @Author : LQ
  17038. * @Description :
  17039. * @version : 1.0
  17040. * @Date : 2021-08-20 16:44:21
  17041. * @LastAuthor : LQ
  17042. * @lastTime : 2021-08-20 17:02:34
  17043. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  17044. */
  17045. var _default = {
  17046. // radio组件
  17047. radio: {
  17048. name: '',
  17049. shape: '',
  17050. disabled: '',
  17051. labelDisabled: '',
  17052. activeColor: '',
  17053. inactiveColor: '',
  17054. iconSize: '',
  17055. labelSize: '',
  17056. label: '',
  17057. labelColor: '',
  17058. size: '',
  17059. iconColor: '',
  17060. placement: ''
  17061. }
  17062. };
  17063. exports.default = _default;
  17064. /***/ }),
  17065. /* 122 */
  17066. /*!*********************************************************************************!*\
  17067. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  17068. \*********************************************************************************/
  17069. /*! no static exports found */
  17070. /***/ (function(module, exports, __webpack_require__) {
  17071. "use strict";
  17072. Object.defineProperty(exports, "__esModule", {
  17073. value: true
  17074. });
  17075. exports.default = void 0;
  17076. /*
  17077. * @Author : LQ
  17078. * @Description :
  17079. * @version : 1.0
  17080. * @Date : 2021-08-20 16:44:21
  17081. * @LastAuthor : LQ
  17082. * @lastTime : 2021-08-20 17:03:12
  17083. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  17084. */
  17085. var _default = {
  17086. // radio-group组件
  17087. radioGroup: {
  17088. value: '',
  17089. disabled: false,
  17090. shape: 'circle',
  17091. activeColor: '#2979ff',
  17092. inactiveColor: '#c8c9cc',
  17093. name: '',
  17094. size: 18,
  17095. placement: 'row',
  17096. label: '',
  17097. labelColor: '#303133',
  17098. labelSize: 14,
  17099. labelDisabled: false,
  17100. iconColor: '#ffffff',
  17101. iconSize: 12,
  17102. borderBottom: false,
  17103. iconPlacement: 'left'
  17104. }
  17105. };
  17106. exports.default = _default;
  17107. /***/ }),
  17108. /* 123 */
  17109. /*!***************************************************************************!*\
  17110. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/rate.js ***!
  17111. \***************************************************************************/
  17112. /*! no static exports found */
  17113. /***/ (function(module, exports, __webpack_require__) {
  17114. "use strict";
  17115. Object.defineProperty(exports, "__esModule", {
  17116. value: true
  17117. });
  17118. exports.default = void 0;
  17119. /*
  17120. * @Author : LQ
  17121. * @Description :
  17122. * @version : 1.0
  17123. * @Date : 2021-08-20 16:44:21
  17124. * @LastAuthor : LQ
  17125. * @lastTime : 2021-08-20 17:05:09
  17126. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  17127. */
  17128. var _default = {
  17129. // rate组件
  17130. rate: {
  17131. value: 1,
  17132. count: 5,
  17133. disabled: false,
  17134. size: 18,
  17135. inactiveColor: '#b2b2b2',
  17136. activeColor: '#FA3534',
  17137. gutter: 4,
  17138. minCount: 1,
  17139. allowHalf: false,
  17140. activeIcon: 'star-fill',
  17141. inactiveIcon: 'star',
  17142. touchable: true
  17143. }
  17144. };
  17145. exports.default = _default;
  17146. /***/ }),
  17147. /* 124 */
  17148. /*!*******************************************************************************!*\
  17149. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  17150. \*******************************************************************************/
  17151. /*! no static exports found */
  17152. /***/ (function(module, exports, __webpack_require__) {
  17153. "use strict";
  17154. Object.defineProperty(exports, "__esModule", {
  17155. value: true
  17156. });
  17157. exports.default = void 0;
  17158. /*
  17159. * @Author : LQ
  17160. * @Description :
  17161. * @version : 1.0
  17162. * @Date : 2021-08-20 16:44:21
  17163. * @LastAuthor : LQ
  17164. * @lastTime : 2021-08-20 17:18:41
  17165. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  17166. */
  17167. var _default = {
  17168. // readMore
  17169. readMore: {
  17170. showHeight: 400,
  17171. toggle: false,
  17172. closeText: '展开阅读全文',
  17173. openText: '收起',
  17174. color: '#2979ff',
  17175. fontSize: 14,
  17176. textIndent: '2em',
  17177. name: ''
  17178. }
  17179. };
  17180. exports.default = _default;
  17181. /***/ }),
  17182. /* 125 */
  17183. /*!**************************************************************************!*\
  17184. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/row.js ***!
  17185. \**************************************************************************/
  17186. /*! no static exports found */
  17187. /***/ (function(module, exports, __webpack_require__) {
  17188. "use strict";
  17189. Object.defineProperty(exports, "__esModule", {
  17190. value: true
  17191. });
  17192. exports.default = void 0;
  17193. /*
  17194. * @Author : LQ
  17195. * @Description :
  17196. * @version : 1.0
  17197. * @Date : 2021-08-20 16:44:21
  17198. * @LastAuthor : LQ
  17199. * @lastTime : 2021-08-20 17:18:58
  17200. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  17201. */
  17202. var _default = {
  17203. // row
  17204. row: {
  17205. gutter: 0,
  17206. justify: 'start',
  17207. align: 'center'
  17208. }
  17209. };
  17210. exports.default = _default;
  17211. /***/ }),
  17212. /* 126 */
  17213. /*!********************************************************************************!*\
  17214. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  17215. \********************************************************************************/
  17216. /*! no static exports found */
  17217. /***/ (function(module, exports, __webpack_require__) {
  17218. "use strict";
  17219. Object.defineProperty(exports, "__esModule", {
  17220. value: true
  17221. });
  17222. exports.default = void 0;
  17223. /*
  17224. * @Author : LQ
  17225. * @Description :
  17226. * @version : 1.0
  17227. * @Date : 2021-08-20 16:44:21
  17228. * @LastAuthor : LQ
  17229. * @lastTime : 2021-08-20 17:19:13
  17230. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  17231. */
  17232. var _default = {
  17233. // rowNotice
  17234. rowNotice: {
  17235. text: '',
  17236. icon: 'volume',
  17237. mode: '',
  17238. color: '#f9ae3d',
  17239. bgColor: '#fdf6ec',
  17240. fontSize: 14,
  17241. speed: 80
  17242. }
  17243. };
  17244. exports.default = _default;
  17245. /***/ }),
  17246. /* 127 */
  17247. /*!*********************************************************************************!*\
  17248. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  17249. \*********************************************************************************/
  17250. /*! no static exports found */
  17251. /***/ (function(module, exports, __webpack_require__) {
  17252. "use strict";
  17253. Object.defineProperty(exports, "__esModule", {
  17254. value: true
  17255. });
  17256. exports.default = void 0;
  17257. /*
  17258. * @Author : LQ
  17259. * @Description :
  17260. * @version : 1.0
  17261. * @Date : 2021-08-20 16:44:21
  17262. * @LastAuthor : LQ
  17263. * @lastTime : 2021-08-20 17:19:28
  17264. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  17265. */
  17266. var _default = {
  17267. // scrollList
  17268. scrollList: {
  17269. indicatorWidth: 50,
  17270. indicatorBarWidth: 20,
  17271. indicator: true,
  17272. indicatorColor: '#f2f2f2',
  17273. indicatorActiveColor: '#3c9cff',
  17274. indicatorStyle: ''
  17275. }
  17276. };
  17277. exports.default = _default;
  17278. /***/ }),
  17279. /* 128 */
  17280. /*!*****************************************************************************!*\
  17281. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/search.js ***!
  17282. \*****************************************************************************/
  17283. /*! no static exports found */
  17284. /***/ (function(module, exports, __webpack_require__) {
  17285. "use strict";
  17286. Object.defineProperty(exports, "__esModule", {
  17287. value: true
  17288. });
  17289. exports.default = void 0;
  17290. /*
  17291. * @Author : LQ
  17292. * @Description :
  17293. * @version : 1.0
  17294. * @Date : 2021-08-20 16:44:21
  17295. * @LastAuthor : LQ
  17296. * @lastTime : 2021-08-20 17:19:45
  17297. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  17298. */
  17299. var _default = {
  17300. // search
  17301. search: {
  17302. shape: 'round',
  17303. bgColor: '#f2f2f2',
  17304. placeholder: '请输入关键字',
  17305. clearabled: true,
  17306. focus: false,
  17307. showAction: true,
  17308. actionStyle: function actionStyle() {
  17309. return {};
  17310. },
  17311. actionText: '搜索',
  17312. inputAlign: 'left',
  17313. inputStyle: function inputStyle() {
  17314. return {};
  17315. },
  17316. disabled: false,
  17317. borderColor: 'transparent',
  17318. searchIconColor: '#909399',
  17319. searchIconSize: 22,
  17320. color: '#606266',
  17321. placeholderColor: '#909399',
  17322. searchIcon: 'search',
  17323. margin: '0',
  17324. animation: false,
  17325. value: '',
  17326. maxlength: '-1',
  17327. height: 32,
  17328. label: null
  17329. }
  17330. };
  17331. exports.default = _default;
  17332. /***/ }),
  17333. /* 129 */
  17334. /*!******************************************************************************!*\
  17335. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/section.js ***!
  17336. \******************************************************************************/
  17337. /*! no static exports found */
  17338. /***/ (function(module, exports, __webpack_require__) {
  17339. "use strict";
  17340. Object.defineProperty(exports, "__esModule", {
  17341. value: true
  17342. });
  17343. exports.default = void 0;
  17344. /*
  17345. * @Author : LQ
  17346. * @Description :
  17347. * @version : 1.0
  17348. * @Date : 2021-08-20 16:44:21
  17349. * @LastAuthor : LQ
  17350. * @lastTime : 2021-08-20 17:07:33
  17351. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  17352. */
  17353. var _default = {
  17354. // u-section组件
  17355. section: {
  17356. title: '',
  17357. subTitle: '更多',
  17358. right: true,
  17359. fontSize: 15,
  17360. bold: true,
  17361. color: '#303133',
  17362. subColor: '#909399',
  17363. showLine: true,
  17364. lineColor: '',
  17365. arrow: true
  17366. }
  17367. };
  17368. exports.default = _default;
  17369. /***/ }),
  17370. /* 130 */
  17371. /*!*******************************************************************************!*\
  17372. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  17373. \*******************************************************************************/
  17374. /*! no static exports found */
  17375. /***/ (function(module, exports, __webpack_require__) {
  17376. "use strict";
  17377. Object.defineProperty(exports, "__esModule", {
  17378. value: true
  17379. });
  17380. exports.default = void 0;
  17381. /*
  17382. * @Author : LQ
  17383. * @Description :
  17384. * @version : 1.0
  17385. * @Date : 2021-08-20 16:44:21
  17386. * @LastAuthor : LQ
  17387. * @lastTime : 2021-08-20 17:20:14
  17388. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  17389. */
  17390. var _default = {
  17391. // skeleton
  17392. skeleton: {
  17393. loading: true,
  17394. animate: true,
  17395. rows: 0,
  17396. rowsWidth: '100%',
  17397. rowsHeight: 18,
  17398. title: true,
  17399. titleWidth: '50%',
  17400. titleHeight: 18,
  17401. avatar: false,
  17402. avatarSize: 32,
  17403. avatarShape: 'circle'
  17404. }
  17405. };
  17406. exports.default = _default;
  17407. /***/ }),
  17408. /* 131 */
  17409. /*!*****************************************************************************!*\
  17410. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/slider.js ***!
  17411. \*****************************************************************************/
  17412. /*! no static exports found */
  17413. /***/ (function(module, exports, __webpack_require__) {
  17414. "use strict";
  17415. Object.defineProperty(exports, "__esModule", {
  17416. value: true
  17417. });
  17418. exports.default = void 0;
  17419. /*
  17420. * @Author : LQ
  17421. * @Description :
  17422. * @version : 1.0
  17423. * @Date : 2021-08-20 16:44:21
  17424. * @LastAuthor : LQ
  17425. * @lastTime : 2021-08-20 17:08:25
  17426. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  17427. */
  17428. var _default = {
  17429. // slider组件
  17430. slider: {
  17431. value: 0,
  17432. blockSize: 18,
  17433. min: 0,
  17434. max: 100,
  17435. step: 1,
  17436. activeColor: '#2979ff',
  17437. inactiveColor: '#c0c4cc',
  17438. blockColor: '#ffffff',
  17439. showValue: false,
  17440. disabled: false,
  17441. blockStyle: function blockStyle() {}
  17442. }
  17443. };
  17444. exports.default = _default;
  17445. /***/ }),
  17446. /* 132 */
  17447. /*!********************************************************************************!*\
  17448. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  17449. \********************************************************************************/
  17450. /*! no static exports found */
  17451. /***/ (function(module, exports, __webpack_require__) {
  17452. "use strict";
  17453. Object.defineProperty(exports, "__esModule", {
  17454. value: true
  17455. });
  17456. exports.default = void 0;
  17457. /*
  17458. * @Author : LQ
  17459. * @Description :
  17460. * @version : 1.0
  17461. * @Date : 2021-08-20 16:44:21
  17462. * @LastAuthor : LQ
  17463. * @lastTime : 2021-08-20 17:20:39
  17464. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  17465. */
  17466. var _default = {
  17467. // statusBar
  17468. statusBar: {
  17469. bgColor: 'transparent'
  17470. }
  17471. };
  17472. exports.default = _default;
  17473. /***/ }),
  17474. /* 133 */
  17475. /*!****************************************************************************!*\
  17476. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/steps.js ***!
  17477. \****************************************************************************/
  17478. /*! no static exports found */
  17479. /***/ (function(module, exports, __webpack_require__) {
  17480. "use strict";
  17481. Object.defineProperty(exports, "__esModule", {
  17482. value: true
  17483. });
  17484. exports.default = void 0;
  17485. /*
  17486. * @Author : LQ
  17487. * @Description :
  17488. * @version : 1.0
  17489. * @Date : 2021-08-20 16:44:21
  17490. * @LastAuthor : LQ
  17491. * @lastTime : 2021-08-20 17:12:37
  17492. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  17493. */
  17494. var _default = {
  17495. // steps组件
  17496. steps: {
  17497. direction: 'row',
  17498. current: 0,
  17499. activeColor: '#3c9cff',
  17500. inactiveColor: '#969799',
  17501. activeIcon: '',
  17502. inactiveIcon: '',
  17503. dot: false
  17504. }
  17505. };
  17506. exports.default = _default;
  17507. /***/ }),
  17508. /* 134 */
  17509. /*!********************************************************************************!*\
  17510. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17511. \********************************************************************************/
  17512. /*! no static exports found */
  17513. /***/ (function(module, exports, __webpack_require__) {
  17514. "use strict";
  17515. Object.defineProperty(exports, "__esModule", {
  17516. value: true
  17517. });
  17518. exports.default = void 0;
  17519. /*
  17520. * @Author : LQ
  17521. * @Description :
  17522. * @version : 1.0
  17523. * @Date : 2021-08-20 16:44:21
  17524. * @LastAuthor : LQ
  17525. * @lastTime : 2021-08-20 17:12:55
  17526. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17527. */
  17528. var _default = {
  17529. // steps-item组件
  17530. stepsItem: {
  17531. title: '',
  17532. desc: '',
  17533. iconSize: 17,
  17534. error: false
  17535. }
  17536. };
  17537. exports.default = _default;
  17538. /***/ }),
  17539. /* 135 */
  17540. /*!*****************************************************************************!*\
  17541. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  17542. \*****************************************************************************/
  17543. /*! no static exports found */
  17544. /***/ (function(module, exports, __webpack_require__) {
  17545. "use strict";
  17546. Object.defineProperty(exports, "__esModule", {
  17547. value: true
  17548. });
  17549. exports.default = void 0;
  17550. /*
  17551. * @Author : LQ
  17552. * @Description :
  17553. * @version : 1.0
  17554. * @Date : 2021-08-20 16:44:21
  17555. * @LastAuthor : LQ
  17556. * @lastTime : 2021-08-20 17:01:30
  17557. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17558. */
  17559. var _default = {
  17560. // sticky组件
  17561. sticky: {
  17562. offsetTop: 0,
  17563. customNavHeight: 0,
  17564. disabled: false,
  17565. bgColor: 'transparent',
  17566. zIndex: '',
  17567. index: ''
  17568. }
  17569. };
  17570. exports.default = _default;
  17571. /***/ }),
  17572. /* 136 */
  17573. /*!*********************************************************************************!*\
  17574. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  17575. \*********************************************************************************/
  17576. /*! no static exports found */
  17577. /***/ (function(module, exports, __webpack_require__) {
  17578. "use strict";
  17579. Object.defineProperty(exports, "__esModule", {
  17580. value: true
  17581. });
  17582. exports.default = void 0;
  17583. /*
  17584. * @Author : LQ
  17585. * @Description :
  17586. * @version : 1.0
  17587. * @Date : 2021-08-20 16:44:21
  17588. * @LastAuthor : LQ
  17589. * @lastTime : 2021-08-20 17:12:20
  17590. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17591. */
  17592. var _default = {
  17593. // subsection组件
  17594. subsection: {
  17595. list: [],
  17596. current: 0,
  17597. activeColor: '#3c9cff',
  17598. inactiveColor: '#303133',
  17599. mode: 'button',
  17600. fontSize: 12,
  17601. bold: true,
  17602. bgColor: '#eeeeef',
  17603. keyName: 'name'
  17604. }
  17605. };
  17606. exports.default = _default;
  17607. /***/ }),
  17608. /* 137 */
  17609. /*!**********************************************************************************!*\
  17610. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17611. \**********************************************************************************/
  17612. /*! no static exports found */
  17613. /***/ (function(module, exports, __webpack_require__) {
  17614. "use strict";
  17615. Object.defineProperty(exports, "__esModule", {
  17616. value: true
  17617. });
  17618. exports.default = void 0;
  17619. /*
  17620. * @Author : LQ
  17621. * @Description :
  17622. * @version : 1.0
  17623. * @Date : 2021-08-20 16:44:21
  17624. * @LastAuthor : LQ
  17625. * @lastTime : 2021-08-20 17:00:42
  17626. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17627. */
  17628. var _default = {
  17629. // swipe-action组件
  17630. swipeAction: {
  17631. autoClose: true
  17632. }
  17633. };
  17634. exports.default = _default;
  17635. /***/ }),
  17636. /* 138 */
  17637. /*!**************************************************************************************!*\
  17638. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17639. \**************************************************************************************/
  17640. /*! no static exports found */
  17641. /***/ (function(module, exports, __webpack_require__) {
  17642. "use strict";
  17643. Object.defineProperty(exports, "__esModule", {
  17644. value: true
  17645. });
  17646. exports.default = void 0;
  17647. /*
  17648. * @Author : LQ
  17649. * @Description :
  17650. * @version : 1.0
  17651. * @Date : 2021-08-20 16:44:21
  17652. * @LastAuthor : LQ
  17653. * @lastTime : 2021-08-20 17:01:13
  17654. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17655. */
  17656. var _default = {
  17657. // swipeActionItem 组件
  17658. swipeActionItem: {
  17659. show: false,
  17660. name: '',
  17661. disabled: false,
  17662. threshold: 20,
  17663. autoClose: true,
  17664. options: [],
  17665. duration: 300
  17666. }
  17667. };
  17668. exports.default = _default;
  17669. /***/ }),
  17670. /* 139 */
  17671. /*!*****************************************************************************!*\
  17672. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  17673. \*****************************************************************************/
  17674. /*! no static exports found */
  17675. /***/ (function(module, exports, __webpack_require__) {
  17676. "use strict";
  17677. Object.defineProperty(exports, "__esModule", {
  17678. value: true
  17679. });
  17680. exports.default = void 0;
  17681. /*
  17682. * @Author : LQ
  17683. * @Description :
  17684. * @version : 1.0
  17685. * @Date : 2021-08-20 16:44:21
  17686. * @LastAuthor : LQ
  17687. * @lastTime : 2021-08-20 17:21:38
  17688. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17689. */
  17690. var _default = {
  17691. // swiper 组件
  17692. swiper: {
  17693. list: function list() {
  17694. return [];
  17695. },
  17696. indicator: false,
  17697. indicatorActiveColor: '#FFFFFF',
  17698. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17699. indicatorStyle: '',
  17700. indicatorMode: 'line',
  17701. autoplay: true,
  17702. current: 0,
  17703. currentItemId: '',
  17704. interval: 3000,
  17705. duration: 300,
  17706. circular: false,
  17707. previousMargin: 0,
  17708. nextMargin: 0,
  17709. acceleration: false,
  17710. displayMultipleItems: 1,
  17711. easingFunction: 'default',
  17712. keyName: 'url',
  17713. imgMode: 'aspectFill',
  17714. height: 130,
  17715. bgColor: '#f3f4f6',
  17716. radius: 4,
  17717. loading: false,
  17718. showTitle: false
  17719. }
  17720. };
  17721. exports.default = _default;
  17722. /***/ }),
  17723. /* 140 */
  17724. /*!***************************************************************************************!*\
  17725. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17726. \***************************************************************************************/
  17727. /*! no static exports found */
  17728. /***/ (function(module, exports, __webpack_require__) {
  17729. "use strict";
  17730. Object.defineProperty(exports, "__esModule", {
  17731. value: true
  17732. });
  17733. exports.default = void 0;
  17734. /*
  17735. * @Author : LQ
  17736. * @Description :
  17737. * @version : 1.0
  17738. * @Date : 2021-08-20 16:44:21
  17739. * @LastAuthor : LQ
  17740. * @lastTime : 2021-08-20 17:22:07
  17741. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17742. */
  17743. var _default = {
  17744. // swiperIndicator 组件
  17745. swiperIndicator: {
  17746. length: 0,
  17747. current: 0,
  17748. indicatorActiveColor: '',
  17749. indicatorInactiveColor: '',
  17750. indicatorMode: 'line'
  17751. }
  17752. };
  17753. exports.default = _default;
  17754. /***/ }),
  17755. /* 141 */
  17756. /*!*****************************************************************************!*\
  17757. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17758. \*****************************************************************************/
  17759. /*! no static exports found */
  17760. /***/ (function(module, exports, __webpack_require__) {
  17761. "use strict";
  17762. Object.defineProperty(exports, "__esModule", {
  17763. value: true
  17764. });
  17765. exports.default = void 0;
  17766. /*
  17767. * @Author : LQ
  17768. * @Description :
  17769. * @version : 1.0
  17770. * @Date : 2021-08-20 16:44:21
  17771. * @LastAuthor : LQ
  17772. * @lastTime : 2021-08-20 17:22:24
  17773. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17774. */
  17775. var _default = {
  17776. // switch
  17777. switch: {
  17778. loading: false,
  17779. disabled: false,
  17780. size: 25,
  17781. activeColor: '#2979ff',
  17782. inactiveColor: '#ffffff',
  17783. value: false,
  17784. activeValue: true,
  17785. inactiveValue: false,
  17786. asyncChange: false,
  17787. space: 0
  17788. }
  17789. };
  17790. exports.default = _default;
  17791. /***/ }),
  17792. /* 142 */
  17793. /*!*****************************************************************************!*\
  17794. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17795. \*****************************************************************************/
  17796. /*! no static exports found */
  17797. /***/ (function(module, exports, __webpack_require__) {
  17798. "use strict";
  17799. Object.defineProperty(exports, "__esModule", {
  17800. value: true
  17801. });
  17802. exports.default = void 0;
  17803. /*
  17804. * @Author : LQ
  17805. * @Description :
  17806. * @version : 1.0
  17807. * @Date : 2021-08-20 16:44:21
  17808. * @LastAuthor : LQ
  17809. * @lastTime : 2021-08-20 17:22:40
  17810. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17811. */
  17812. var _default = {
  17813. // tabbar
  17814. tabbar: {
  17815. value: null,
  17816. safeAreaInsetBottom: true,
  17817. border: true,
  17818. zIndex: 1,
  17819. activeColor: '#1989fa',
  17820. inactiveColor: '#7d7e80',
  17821. fixed: true,
  17822. placeholder: true
  17823. }
  17824. };
  17825. exports.default = _default;
  17826. /***/ }),
  17827. /* 143 */
  17828. /*!*********************************************************************************!*\
  17829. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17830. \*********************************************************************************/
  17831. /*! no static exports found */
  17832. /***/ (function(module, exports, __webpack_require__) {
  17833. "use strict";
  17834. Object.defineProperty(exports, "__esModule", {
  17835. value: true
  17836. });
  17837. exports.default = void 0;
  17838. /*
  17839. * @Author : LQ
  17840. * @Description :
  17841. * @version : 1.0
  17842. * @Date : 2021-08-20 16:44:21
  17843. * @LastAuthor : LQ
  17844. * @lastTime : 2021-08-20 17:22:55
  17845. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17846. */
  17847. var _default = {
  17848. //
  17849. tabbarItem: {
  17850. name: null,
  17851. icon: '',
  17852. badge: null,
  17853. dot: false,
  17854. text: '',
  17855. badgeStyle: 'top: 6px;right:2px;'
  17856. }
  17857. };
  17858. exports.default = _default;
  17859. /***/ }),
  17860. /* 144 */
  17861. /*!***************************************************************************!*\
  17862. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17863. \***************************************************************************/
  17864. /*! no static exports found */
  17865. /***/ (function(module, exports, __webpack_require__) {
  17866. "use strict";
  17867. Object.defineProperty(exports, "__esModule", {
  17868. value: true
  17869. });
  17870. exports.default = void 0;
  17871. /*
  17872. * @Author : LQ
  17873. * @Description :
  17874. * @version : 1.0
  17875. * @Date : 2021-08-20 16:44:21
  17876. * @LastAuthor : LQ
  17877. * @lastTime : 2021-08-20 17:23:14
  17878. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17879. */
  17880. var _default = {
  17881. //
  17882. tabs: {
  17883. duration: 300,
  17884. list: function list() {
  17885. return [];
  17886. },
  17887. lineColor: '#3c9cff',
  17888. activeStyle: function activeStyle() {
  17889. return {
  17890. color: '#303133'
  17891. };
  17892. },
  17893. inactiveStyle: function inactiveStyle() {
  17894. return {
  17895. color: '#606266'
  17896. };
  17897. },
  17898. lineWidth: 20,
  17899. lineHeight: 3,
  17900. lineBgSize: 'cover',
  17901. itemStyle: function itemStyle() {
  17902. return {
  17903. height: '44px'
  17904. };
  17905. },
  17906. scrollable: true,
  17907. current: 0,
  17908. keyName: 'name'
  17909. }
  17910. };
  17911. exports.default = _default;
  17912. /***/ }),
  17913. /* 145 */
  17914. /*!**************************************************************************!*\
  17915. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17916. \**************************************************************************/
  17917. /*! no static exports found */
  17918. /***/ (function(module, exports, __webpack_require__) {
  17919. "use strict";
  17920. Object.defineProperty(exports, "__esModule", {
  17921. value: true
  17922. });
  17923. exports.default = void 0;
  17924. /*
  17925. * @Author : LQ
  17926. * @Description :
  17927. * @version : 1.0
  17928. * @Date : 2021-08-20 16:44:21
  17929. * @LastAuthor : LQ
  17930. * @lastTime : 2021-08-20 17:23:37
  17931. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17932. */
  17933. var _default = {
  17934. // tag 组件
  17935. tag: {
  17936. type: 'primary',
  17937. disabled: false,
  17938. size: 'medium',
  17939. shape: 'square',
  17940. text: '',
  17941. bgColor: '',
  17942. color: '',
  17943. borderColor: '',
  17944. closeColor: '#C6C7CB',
  17945. name: '',
  17946. plainFill: false,
  17947. plain: false,
  17948. closable: false,
  17949. show: true,
  17950. icon: ''
  17951. }
  17952. };
  17953. exports.default = _default;
  17954. /***/ }),
  17955. /* 146 */
  17956. /*!***************************************************************************!*\
  17957. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/text.js ***!
  17958. \***************************************************************************/
  17959. /*! no static exports found */
  17960. /***/ (function(module, exports, __webpack_require__) {
  17961. "use strict";
  17962. Object.defineProperty(exports, "__esModule", {
  17963. value: true
  17964. });
  17965. exports.default = void 0;
  17966. /*
  17967. * @Author : LQ
  17968. * @Description :
  17969. * @version : 1.0
  17970. * @Date : 2021-08-20 16:44:21
  17971. * @LastAuthor : LQ
  17972. * @lastTime : 2021-08-20 17:23:58
  17973. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17974. */
  17975. var _default = {
  17976. // text 组件
  17977. text: {
  17978. type: '',
  17979. show: true,
  17980. text: '',
  17981. prefixIcon: '',
  17982. suffixIcon: '',
  17983. mode: '',
  17984. href: '',
  17985. format: '',
  17986. call: false,
  17987. openType: '',
  17988. bold: false,
  17989. block: false,
  17990. lines: '',
  17991. color: '#303133',
  17992. size: 15,
  17993. iconStyle: function iconStyle() {
  17994. return {
  17995. fontSize: '15px'
  17996. };
  17997. },
  17998. decoration: 'none',
  17999. margin: 0,
  18000. lineHeight: '',
  18001. align: 'left',
  18002. wordWrap: 'normal'
  18003. }
  18004. };
  18005. exports.default = _default;
  18006. /***/ }),
  18007. /* 147 */
  18008. /*!*******************************************************************************!*\
  18009. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  18010. \*******************************************************************************/
  18011. /*! no static exports found */
  18012. /***/ (function(module, exports, __webpack_require__) {
  18013. "use strict";
  18014. Object.defineProperty(exports, "__esModule", {
  18015. value: true
  18016. });
  18017. exports.default = void 0;
  18018. /*
  18019. * @Author : LQ
  18020. * @Description :
  18021. * @version : 1.0
  18022. * @Date : 2021-08-20 16:44:21
  18023. * @LastAuthor : LQ
  18024. * @lastTime : 2021-08-20 17:24:32
  18025. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  18026. */
  18027. var _default = {
  18028. // textarea 组件
  18029. textarea: {
  18030. value: '',
  18031. placeholder: '',
  18032. placeholderClass: 'textarea-placeholder',
  18033. placeholderStyle: 'color: #c0c4cc',
  18034. height: 70,
  18035. confirmType: 'done',
  18036. disabled: false,
  18037. count: false,
  18038. focus: false,
  18039. autoHeight: false,
  18040. fixed: false,
  18041. cursorSpacing: 0,
  18042. cursor: '',
  18043. showConfirmBar: true,
  18044. selectionStart: -1,
  18045. selectionEnd: -1,
  18046. adjustPosition: true,
  18047. disableDefaultPadding: false,
  18048. holdKeyboard: false,
  18049. maxlength: 140,
  18050. border: 'surround',
  18051. formatter: null
  18052. }
  18053. };
  18054. exports.default = _default;
  18055. /***/ }),
  18056. /* 148 */
  18057. /*!****************************************************************************!*\
  18058. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/toast.js ***!
  18059. \****************************************************************************/
  18060. /*! no static exports found */
  18061. /***/ (function(module, exports, __webpack_require__) {
  18062. "use strict";
  18063. Object.defineProperty(exports, "__esModule", {
  18064. value: true
  18065. });
  18066. exports.default = void 0;
  18067. /*
  18068. * @Author : LQ
  18069. * @Description :
  18070. * @version : 1.0
  18071. * @Date : 2021-08-20 16:44:21
  18072. * @LastAuthor : LQ
  18073. * @lastTime : 2021-08-20 17:07:07
  18074. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  18075. */
  18076. var _default = {
  18077. // toast组件
  18078. toast: {
  18079. zIndex: 10090,
  18080. loading: false,
  18081. text: '',
  18082. icon: '',
  18083. type: '',
  18084. loadingMode: '',
  18085. show: '',
  18086. overlay: false,
  18087. position: 'center',
  18088. params: function params() {},
  18089. duration: 2000,
  18090. isTab: false,
  18091. url: '',
  18092. callback: null,
  18093. back: false
  18094. }
  18095. };
  18096. exports.default = _default;
  18097. /***/ }),
  18098. /* 149 */
  18099. /*!******************************************************************************!*\
  18100. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  18101. \******************************************************************************/
  18102. /*! no static exports found */
  18103. /***/ (function(module, exports, __webpack_require__) {
  18104. "use strict";
  18105. Object.defineProperty(exports, "__esModule", {
  18106. value: true
  18107. });
  18108. exports.default = void 0;
  18109. /*
  18110. * @Author : LQ
  18111. * @Description :
  18112. * @version : 1.0
  18113. * @Date : 2021-08-20 16:44:21
  18114. * @LastAuthor : LQ
  18115. * @lastTime : 2021-08-20 17:24:55
  18116. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  18117. */
  18118. var _default = {
  18119. // toolbar 组件
  18120. toolbar: {
  18121. show: true,
  18122. cancelText: '取消',
  18123. confirmText: '确认',
  18124. cancelColor: '#909193',
  18125. confirmColor: '#3c9cff',
  18126. title: ''
  18127. }
  18128. };
  18129. exports.default = _default;
  18130. /***/ }),
  18131. /* 150 */
  18132. /*!******************************************************************************!*\
  18133. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  18134. \******************************************************************************/
  18135. /*! no static exports found */
  18136. /***/ (function(module, exports, __webpack_require__) {
  18137. "use strict";
  18138. Object.defineProperty(exports, "__esModule", {
  18139. value: true
  18140. });
  18141. exports.default = void 0;
  18142. /*
  18143. * @Author : LQ
  18144. * @Description :
  18145. * @version : 1.0
  18146. * @Date : 2021-08-20 16:44:21
  18147. * @LastAuthor : LQ
  18148. * @lastTime : 2021-08-20 17:25:14
  18149. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  18150. */
  18151. var _default = {
  18152. // tooltip 组件
  18153. tooltip: {
  18154. text: '',
  18155. copyText: '',
  18156. size: 14,
  18157. color: '#606266',
  18158. bgColor: 'transparent',
  18159. direction: 'top',
  18160. zIndex: 10071,
  18161. showCopy: true,
  18162. buttons: function buttons() {
  18163. return [];
  18164. },
  18165. overlay: true,
  18166. showToast: true
  18167. }
  18168. };
  18169. exports.default = _default;
  18170. /***/ }),
  18171. /* 151 */
  18172. /*!*********************************************************************************!*\
  18173. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/transition.js ***!
  18174. \*********************************************************************************/
  18175. /*! no static exports found */
  18176. /***/ (function(module, exports, __webpack_require__) {
  18177. "use strict";
  18178. Object.defineProperty(exports, "__esModule", {
  18179. value: true
  18180. });
  18181. exports.default = void 0;
  18182. /*
  18183. * @Author : LQ
  18184. * @Description :
  18185. * @version : 1.0
  18186. * @Date : 2021-08-20 16:44:21
  18187. * @LastAuthor : LQ
  18188. * @lastTime : 2021-08-20 16:59:00
  18189. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  18190. */
  18191. var _default = {
  18192. // transition动画组件的props
  18193. transition: {
  18194. show: false,
  18195. mode: 'fade',
  18196. duration: '300',
  18197. timingFunction: 'ease-out'
  18198. }
  18199. };
  18200. exports.default = _default;
  18201. /***/ }),
  18202. /* 152 */
  18203. /*!*****************************************************************************!*\
  18204. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/props/upload.js ***!
  18205. \*****************************************************************************/
  18206. /*! no static exports found */
  18207. /***/ (function(module, exports, __webpack_require__) {
  18208. "use strict";
  18209. Object.defineProperty(exports, "__esModule", {
  18210. value: true
  18211. });
  18212. exports.default = void 0;
  18213. /*
  18214. * @Author : LQ
  18215. * @Description :
  18216. * @version : 1.0
  18217. * @Date : 2021-08-20 16:44:21
  18218. * @LastAuthor : LQ
  18219. * @lastTime : 2021-08-20 17:09:50
  18220. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  18221. */
  18222. var _default = {
  18223. // upload组件
  18224. upload: {
  18225. accept: 'image',
  18226. capture: function capture() {
  18227. return ['album', 'camera'];
  18228. },
  18229. compressed: true,
  18230. camera: 'back',
  18231. maxDuration: 60,
  18232. uploadIcon: 'camera-fill',
  18233. uploadIconColor: '#D3D4D6',
  18234. useBeforeRead: false,
  18235. previewFullImage: true,
  18236. maxCount: 52,
  18237. disabled: false,
  18238. imageMode: 'aspectFill',
  18239. name: '',
  18240. sizeType: function sizeType() {
  18241. return ['original', 'compressed'];
  18242. },
  18243. multiple: false,
  18244. deletable: true,
  18245. maxSize: Number.MAX_VALUE,
  18246. fileList: function fileList() {
  18247. return [];
  18248. },
  18249. uploadText: '',
  18250. width: 80,
  18251. height: 80,
  18252. previewImage: true
  18253. }
  18254. };
  18255. exports.default = _default;
  18256. /***/ }),
  18257. /* 153 */
  18258. /*!***********************************************************************!*\
  18259. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/config/zIndex.js ***!
  18260. \***********************************************************************/
  18261. /*! no static exports found */
  18262. /***/ (function(module, exports, __webpack_require__) {
  18263. "use strict";
  18264. Object.defineProperty(exports, "__esModule", {
  18265. value: true
  18266. });
  18267. exports.default = void 0;
  18268. // uniapp在H5中各API的z-index值如下:
  18269. /**
  18270. * actionsheet: 999
  18271. * modal: 999
  18272. * navigate: 998
  18273. * tabbar: 998
  18274. * toast: 999
  18275. */
  18276. var _default = {
  18277. toast: 10090,
  18278. noNetwork: 10080,
  18279. // popup包含popup,actionsheet,keyboard,picker的值
  18280. popup: 10075,
  18281. mask: 10070,
  18282. navbar: 980,
  18283. topTips: 975,
  18284. sticky: 970,
  18285. indexListSticky: 965
  18286. };
  18287. exports.default = _default;
  18288. /***/ }),
  18289. /* 154 */
  18290. /*!***************************************************************************!*\
  18291. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/function/platform.js ***!
  18292. \***************************************************************************/
  18293. /*! no static exports found */
  18294. /***/ (function(module, exports, __webpack_require__) {
  18295. "use strict";
  18296. Object.defineProperty(exports, "__esModule", {
  18297. value: true
  18298. });
  18299. exports.default = void 0;
  18300. /**
  18301. * 注意:
  18302. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  18303. * module.exports = {
  18304. * transpileDependencies: ['uview-v2']
  18305. * }
  18306. */
  18307. var platform = 'none';
  18308. platform = 'vue2';
  18309. platform = 'alipay';
  18310. platform = 'mp';
  18311. var _default = platform;
  18312. exports.default = _default;
  18313. /***/ }),
  18314. /* 155 */,
  18315. /* 156 */,
  18316. /* 157 */,
  18317. /* 158 */,
  18318. /* 159 */,
  18319. /* 160 */,
  18320. /* 161 */,
  18321. /* 162 */,
  18322. /* 163 */,
  18323. /* 164 */,
  18324. /* 165 */,
  18325. /* 166 */,
  18326. /* 167 */,
  18327. /* 168 */,
  18328. /* 169 */,
  18329. /* 170 */,
  18330. /* 171 */,
  18331. /* 172 */,
  18332. /* 173 */,
  18333. /* 174 */,
  18334. /* 175 */,
  18335. /* 176 */,
  18336. /* 177 */
  18337. /*!*****************************************!*\
  18338. !*** E:/工作1/project_order/api/login.js ***!
  18339. \*****************************************/
  18340. /*! no static exports found */
  18341. /***/ (function(module, exports, __webpack_require__) {
  18342. "use strict";
  18343. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  18344. Object.defineProperty(exports, "__esModule", {
  18345. value: true
  18346. });
  18347. exports.login = void 0;
  18348. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request.js */ 178));
  18349. var login = function login(data) {
  18350. return (0, _request.default)('https://api.weixin.qq.com/sns/jscode2session', data, 'GET');
  18351. };
  18352. exports.login = login;
  18353. /***/ }),
  18354. /* 178 */
  18355. /*!*********************************************!*\
  18356. !*** E:/工作1/project_order/utils/request.js ***!
  18357. \*********************************************/
  18358. /*! no static exports found */
  18359. /***/ (function(module, exports, __webpack_require__) {
  18360. /* WEBPACK VAR INJECTION */(function(uni) {var $request = function $request(url, data) {
  18361. var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'POST';
  18362. var headers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "application/json;";
  18363. return new Promise(function (resolve, reject) {
  18364. uni.showLoading({
  18365. title: '数据加载中',
  18366. icon: 'loading',
  18367. mask: true
  18368. });
  18369. uni.request({
  18370. // url: '11111' + url,
  18371. url: url,
  18372. method: method,
  18373. data: data,
  18374. header: {
  18375. 'Content-Type': headers
  18376. },
  18377. success: function success(res) {
  18378. resolve(res);
  18379. uni.hideLoading(); //关闭loading
  18380. },
  18381. fail: function fail(error) {
  18382. reject(error);
  18383. // throw new Error(error);
  18384. uni.hideLoading(); //关闭loading
  18385. },
  18386. complete: function complete() {
  18387. uni.hideLoading(); //关闭loading
  18388. }
  18389. });
  18390. });
  18391. };
  18392. //get请求
  18393. var $get = function $get(url, data) {
  18394. return $request(url, data, 'GET');
  18395. };
  18396. //post请求
  18397. var $post = function $post(url, data) {
  18398. return $request(url, data, 'POST');
  18399. };
  18400. //给uniapp原生的requset赋值
  18401. //记得要在mian.js中引用
  18402. uni.$request = $request;
  18403. uni.$get = $get;
  18404. uni.$post = $post;
  18405. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  18406. /***/ }),
  18407. /* 179 */,
  18408. /* 180 */,
  18409. /* 181 */,
  18410. /* 182 */,
  18411. /* 183 */,
  18412. /* 184 */,
  18413. /* 185 */,
  18414. /* 186 */,
  18415. /* 187 */,
  18416. /* 188 */,
  18417. /* 189 */,
  18418. /* 190 */,
  18419. /* 191 */,
  18420. /* 192 */,
  18421. /* 193 */,
  18422. /* 194 */,
  18423. /* 195 */,
  18424. /* 196 */,
  18425. /* 197 */,
  18426. /* 198 */,
  18427. /* 199 */,
  18428. /* 200 */,
  18429. /* 201 */,
  18430. /* 202 */,
  18431. /* 203 */,
  18432. /* 204 */,
  18433. /* 205 */,
  18434. /* 206 */,
  18435. /* 207 */,
  18436. /* 208 */,
  18437. /* 209 */,
  18438. /* 210 */,
  18439. /* 211 */,
  18440. /* 212 */,
  18441. /* 213 */,
  18442. /* 214 */,
  18443. /* 215 */,
  18444. /* 216 */,
  18445. /* 217 */,
  18446. /* 218 */,
  18447. /* 219 */,
  18448. /* 220 */,
  18449. /* 221 */,
  18450. /* 222 */,
  18451. /* 223 */,
  18452. /* 224 */,
  18453. /* 225 */,
  18454. /* 226 */,
  18455. /* 227 */,
  18456. /* 228 */,
  18457. /* 229 */,
  18458. /* 230 */,
  18459. /* 231 */,
  18460. /* 232 */,
  18461. /* 233 */,
  18462. /* 234 */,
  18463. /* 235 */,
  18464. /* 236 */,
  18465. /* 237 */,
  18466. /* 238 */,
  18467. /* 239 */,
  18468. /* 240 */,
  18469. /* 241 */,
  18470. /* 242 */,
  18471. /* 243 */,
  18472. /* 244 */,
  18473. /* 245 */,
  18474. /* 246 */,
  18475. /* 247 */,
  18476. /* 248 */,
  18477. /* 249 */,
  18478. /* 250 */
  18479. /*!****************************************************************************!*\
  18480. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-icon/icons.js ***!
  18481. \****************************************************************************/
  18482. /*! no static exports found */
  18483. /***/ (function(module, exports, __webpack_require__) {
  18484. "use strict";
  18485. Object.defineProperty(exports, "__esModule", {
  18486. value: true
  18487. });
  18488. exports.default = void 0;
  18489. var _default = {
  18490. 'uicon-level': "\uE693",
  18491. 'uicon-column-line': "\uE68E",
  18492. 'uicon-checkbox-mark': "\uE807",
  18493. 'uicon-folder': "\uE7F5",
  18494. 'uicon-movie': "\uE7F6",
  18495. 'uicon-star-fill': "\uE669",
  18496. 'uicon-star': "\uE65F",
  18497. 'uicon-phone-fill': "\uE64F",
  18498. 'uicon-phone': "\uE622",
  18499. 'uicon-apple-fill': "\uE881",
  18500. 'uicon-chrome-circle-fill': "\uE885",
  18501. 'uicon-backspace': "\uE67B",
  18502. 'uicon-attach': "\uE632",
  18503. 'uicon-cut': "\uE948",
  18504. 'uicon-empty-car': "\uE602",
  18505. 'uicon-empty-coupon': "\uE682",
  18506. 'uicon-empty-address': "\uE646",
  18507. 'uicon-empty-favor': "\uE67C",
  18508. 'uicon-empty-permission': "\uE686",
  18509. 'uicon-empty-news': "\uE687",
  18510. 'uicon-empty-search': "\uE664",
  18511. 'uicon-github-circle-fill': "\uE887",
  18512. 'uicon-rmb': "\uE608",
  18513. 'uicon-person-delete-fill': "\uE66A",
  18514. 'uicon-reload': "\uE788",
  18515. 'uicon-order': "\uE68F",
  18516. 'uicon-server-man': "\uE6BC",
  18517. 'uicon-search': "\uE62A",
  18518. 'uicon-fingerprint': "\uE955",
  18519. 'uicon-more-dot-fill': "\uE630",
  18520. 'uicon-scan': "\uE662",
  18521. 'uicon-share-square': "\uE60B",
  18522. 'uicon-map': "\uE61D",
  18523. 'uicon-map-fill': "\uE64E",
  18524. 'uicon-tags': "\uE629",
  18525. 'uicon-tags-fill': "\uE651",
  18526. 'uicon-bookmark-fill': "\uE63B",
  18527. 'uicon-bookmark': "\uE60A",
  18528. 'uicon-eye': "\uE613",
  18529. 'uicon-eye-fill': "\uE641",
  18530. 'uicon-mic': "\uE64A",
  18531. 'uicon-mic-off': "\uE649",
  18532. 'uicon-calendar': "\uE66E",
  18533. 'uicon-calendar-fill': "\uE634",
  18534. 'uicon-trash': "\uE623",
  18535. 'uicon-trash-fill': "\uE658",
  18536. 'uicon-play-left': "\uE66D",
  18537. 'uicon-play-right': "\uE610",
  18538. 'uicon-minus': "\uE618",
  18539. 'uicon-plus': "\uE62D",
  18540. 'uicon-info': "\uE653",
  18541. 'uicon-info-circle': "\uE7D2",
  18542. 'uicon-info-circle-fill': "\uE64B",
  18543. 'uicon-question': "\uE715",
  18544. 'uicon-error': "\uE6D3",
  18545. 'uicon-close': "\uE685",
  18546. 'uicon-checkmark': "\uE6A8",
  18547. 'uicon-android-circle-fill': "\uE67E",
  18548. 'uicon-android-fill': "\uE67D",
  18549. 'uicon-ie': "\uE87B",
  18550. 'uicon-IE-circle-fill': "\uE889",
  18551. 'uicon-google': "\uE87A",
  18552. 'uicon-google-circle-fill': "\uE88A",
  18553. 'uicon-setting-fill': "\uE872",
  18554. 'uicon-setting': "\uE61F",
  18555. 'uicon-minus-square-fill': "\uE855",
  18556. 'uicon-plus-square-fill': "\uE856",
  18557. 'uicon-heart': "\uE7DF",
  18558. 'uicon-heart-fill': "\uE851",
  18559. 'uicon-camera': "\uE7D7",
  18560. 'uicon-camera-fill': "\uE870",
  18561. 'uicon-more-circle': "\uE63E",
  18562. 'uicon-more-circle-fill': "\uE645",
  18563. 'uicon-chat': "\uE620",
  18564. 'uicon-chat-fill': "\uE61E",
  18565. 'uicon-bag-fill': "\uE617",
  18566. 'uicon-bag': "\uE619",
  18567. 'uicon-error-circle-fill': "\uE62C",
  18568. 'uicon-error-circle': "\uE624",
  18569. 'uicon-close-circle': "\uE63F",
  18570. 'uicon-close-circle-fill': "\uE637",
  18571. 'uicon-checkmark-circle': "\uE63D",
  18572. 'uicon-checkmark-circle-fill': "\uE635",
  18573. 'uicon-question-circle-fill': "\uE666",
  18574. 'uicon-question-circle': "\uE625",
  18575. 'uicon-share': "\uE631",
  18576. 'uicon-share-fill': "\uE65E",
  18577. 'uicon-shopping-cart': "\uE621",
  18578. 'uicon-shopping-cart-fill': "\uE65D",
  18579. 'uicon-bell': "\uE609",
  18580. 'uicon-bell-fill': "\uE640",
  18581. 'uicon-list': "\uE650",
  18582. 'uicon-list-dot': "\uE616",
  18583. 'uicon-zhihu': "\uE6BA",
  18584. 'uicon-zhihu-circle-fill': "\uE709",
  18585. 'uicon-zhifubao': "\uE6B9",
  18586. 'uicon-zhifubao-circle-fill': "\uE6B8",
  18587. 'uicon-weixin-circle-fill': "\uE6B1",
  18588. 'uicon-weixin-fill': "\uE6B2",
  18589. 'uicon-twitter-circle-fill': "\uE6AB",
  18590. 'uicon-twitter': "\uE6AA",
  18591. 'uicon-taobao-circle-fill': "\uE6A7",
  18592. 'uicon-taobao': "\uE6A6",
  18593. 'uicon-weibo-circle-fill': "\uE6A5",
  18594. 'uicon-weibo': "\uE6A4",
  18595. 'uicon-qq-fill': "\uE6A1",
  18596. 'uicon-qq-circle-fill': "\uE6A0",
  18597. 'uicon-moments-circel-fill': "\uE69A",
  18598. 'uicon-moments': "\uE69B",
  18599. 'uicon-qzone': "\uE695",
  18600. 'uicon-qzone-circle-fill': "\uE696",
  18601. 'uicon-baidu-circle-fill': "\uE680",
  18602. 'uicon-baidu': "\uE681",
  18603. 'uicon-facebook-circle-fill': "\uE68A",
  18604. 'uicon-facebook': "\uE689",
  18605. 'uicon-car': "\uE60C",
  18606. 'uicon-car-fill': "\uE636",
  18607. 'uicon-warning-fill': "\uE64D",
  18608. 'uicon-warning': "\uE694",
  18609. 'uicon-clock-fill': "\uE638",
  18610. 'uicon-clock': "\uE60F",
  18611. 'uicon-edit-pen': "\uE612",
  18612. 'uicon-edit-pen-fill': "\uE66B",
  18613. 'uicon-email': "\uE611",
  18614. 'uicon-email-fill': "\uE642",
  18615. 'uicon-minus-circle': "\uE61B",
  18616. 'uicon-minus-circle-fill': "\uE652",
  18617. 'uicon-plus-circle': "\uE62E",
  18618. 'uicon-plus-circle-fill': "\uE661",
  18619. 'uicon-file-text': "\uE663",
  18620. 'uicon-file-text-fill': "\uE665",
  18621. 'uicon-pushpin': "\uE7E3",
  18622. 'uicon-pushpin-fill': "\uE86E",
  18623. 'uicon-grid': "\uE673",
  18624. 'uicon-grid-fill': "\uE678",
  18625. 'uicon-play-circle': "\uE647",
  18626. 'uicon-play-circle-fill': "\uE655",
  18627. 'uicon-pause-circle-fill': "\uE654",
  18628. 'uicon-pause': "\uE8FA",
  18629. 'uicon-pause-circle': "\uE643",
  18630. 'uicon-eye-off': "\uE648",
  18631. 'uicon-eye-off-outline': "\uE62B",
  18632. 'uicon-gift-fill': "\uE65C",
  18633. 'uicon-gift': "\uE65B",
  18634. 'uicon-rmb-circle-fill': "\uE657",
  18635. 'uicon-rmb-circle': "\uE677",
  18636. 'uicon-kefu-ermai': "\uE656",
  18637. 'uicon-server-fill': "\uE751",
  18638. 'uicon-coupon-fill': "\uE8C4",
  18639. 'uicon-coupon': "\uE8AE",
  18640. 'uicon-integral': "\uE704",
  18641. 'uicon-integral-fill': "\uE703",
  18642. 'uicon-home-fill': "\uE964",
  18643. 'uicon-home': "\uE965",
  18644. 'uicon-hourglass-half-fill': "\uE966",
  18645. 'uicon-hourglass': "\uE967",
  18646. 'uicon-account': "\uE628",
  18647. 'uicon-plus-people-fill': "\uE626",
  18648. 'uicon-minus-people-fill': "\uE615",
  18649. 'uicon-account-fill': "\uE614",
  18650. 'uicon-thumb-down-fill': "\uE726",
  18651. 'uicon-thumb-down': "\uE727",
  18652. 'uicon-thumb-up': "\uE733",
  18653. 'uicon-thumb-up-fill': "\uE72F",
  18654. 'uicon-lock-fill': "\uE979",
  18655. 'uicon-lock-open': "\uE973",
  18656. 'uicon-lock-opened-fill': "\uE974",
  18657. 'uicon-lock': "\uE97A",
  18658. 'uicon-red-packet-fill': "\uE690",
  18659. 'uicon-photo-fill': "\uE98B",
  18660. 'uicon-photo': "\uE98D",
  18661. 'uicon-volume-off-fill': "\uE659",
  18662. 'uicon-volume-off': "\uE644",
  18663. 'uicon-volume-fill': "\uE670",
  18664. 'uicon-volume': "\uE633",
  18665. 'uicon-red-packet': "\uE691",
  18666. 'uicon-download': "\uE63C",
  18667. 'uicon-arrow-up-fill': "\uE6B0",
  18668. 'uicon-arrow-down-fill': "\uE600",
  18669. 'uicon-play-left-fill': "\uE675",
  18670. 'uicon-play-right-fill': "\uE676",
  18671. 'uicon-rewind-left-fill': "\uE679",
  18672. 'uicon-rewind-right-fill': "\uE67A",
  18673. 'uicon-arrow-downward': "\uE604",
  18674. 'uicon-arrow-leftward': "\uE601",
  18675. 'uicon-arrow-rightward': "\uE603",
  18676. 'uicon-arrow-upward': "\uE607",
  18677. 'uicon-arrow-down': "\uE60D",
  18678. 'uicon-arrow-right': "\uE605",
  18679. 'uicon-arrow-left': "\uE60E",
  18680. 'uicon-arrow-up': "\uE606",
  18681. 'uicon-skip-back-left': "\uE674",
  18682. 'uicon-skip-forward-right': "\uE672",
  18683. 'uicon-rewind-right': "\uE66F",
  18684. 'uicon-rewind-left': "\uE671",
  18685. 'uicon-arrow-right-double': "\uE68D",
  18686. 'uicon-arrow-left-double': "\uE68C",
  18687. 'uicon-wifi-off': "\uE668",
  18688. 'uicon-wifi': "\uE667",
  18689. 'uicon-empty-data': "\uE62F",
  18690. 'uicon-empty-history': "\uE684",
  18691. 'uicon-empty-list': "\uE68B",
  18692. 'uicon-empty-page': "\uE627",
  18693. 'uicon-empty-order': "\uE639",
  18694. 'uicon-man': "\uE697",
  18695. 'uicon-woman': "\uE69C",
  18696. 'uicon-man-add': "\uE61C",
  18697. 'uicon-man-add-fill': "\uE64C",
  18698. 'uicon-man-delete': "\uE61A",
  18699. 'uicon-man-delete-fill': "\uE66A",
  18700. 'uicon-zh': "\uE70A",
  18701. 'uicon-en': "\uE692"
  18702. };
  18703. exports.default = _default;
  18704. /***/ }),
  18705. /* 251 */
  18706. /*!****************************************************************************!*\
  18707. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-icon/props.js ***!
  18708. \****************************************************************************/
  18709. /*! no static exports found */
  18710. /***/ (function(module, exports, __webpack_require__) {
  18711. "use strict";
  18712. /* WEBPACK VAR INJECTION */(function(uni) {
  18713. Object.defineProperty(exports, "__esModule", {
  18714. value: true
  18715. });
  18716. exports.default = void 0;
  18717. var _default = {
  18718. props: {
  18719. // 图标类名
  18720. name: {
  18721. type: String,
  18722. default: uni.$u.props.icon.name
  18723. },
  18724. // 图标颜色,可接受主题色
  18725. color: {
  18726. type: String,
  18727. default: uni.$u.props.icon.color
  18728. },
  18729. // 字体大小,单位px
  18730. size: {
  18731. type: [String, Number],
  18732. default: uni.$u.props.icon.size
  18733. },
  18734. // 是否显示粗体
  18735. bold: {
  18736. type: Boolean,
  18737. default: uni.$u.props.icon.bold
  18738. },
  18739. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18740. index: {
  18741. type: [String, Number],
  18742. default: uni.$u.props.icon.index
  18743. },
  18744. // 触摸图标时的类名
  18745. hoverClass: {
  18746. type: String,
  18747. default: uni.$u.props.icon.hoverClass
  18748. },
  18749. // 自定义扩展前缀,方便用户扩展自己的图标库
  18750. customPrefix: {
  18751. type: String,
  18752. default: uni.$u.props.icon.customPrefix
  18753. },
  18754. // 图标右边或者下面的文字
  18755. label: {
  18756. type: [String, Number],
  18757. default: uni.$u.props.icon.label
  18758. },
  18759. // label的位置,只能右边或者下边
  18760. labelPos: {
  18761. type: String,
  18762. default: uni.$u.props.icon.labelPos
  18763. },
  18764. // label的大小
  18765. labelSize: {
  18766. type: [String, Number],
  18767. default: uni.$u.props.icon.labelSize
  18768. },
  18769. // label的颜色
  18770. labelColor: {
  18771. type: String,
  18772. default: uni.$u.props.icon.labelColor
  18773. },
  18774. // label与图标的距离
  18775. space: {
  18776. type: [String, Number],
  18777. default: uni.$u.props.icon.space
  18778. },
  18779. // 图片的mode
  18780. imgMode: {
  18781. type: String,
  18782. default: uni.$u.props.icon.imgMode
  18783. },
  18784. // 用于显示图片小图标时,图片的宽度
  18785. width: {
  18786. type: [String, Number],
  18787. default: uni.$u.props.icon.width
  18788. },
  18789. // 用于显示图片小图标时,图片的高度
  18790. height: {
  18791. type: [String, Number],
  18792. default: uni.$u.props.icon.height
  18793. },
  18794. // 用于解决某些情况下,让图标垂直居中的用途
  18795. top: {
  18796. type: [String, Number],
  18797. default: uni.$u.props.icon.top
  18798. },
  18799. // 是否阻止事件传播
  18800. stop: {
  18801. type: Boolean,
  18802. default: uni.$u.props.icon.stop
  18803. }
  18804. }
  18805. };
  18806. exports.default = _default;
  18807. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  18808. /***/ }),
  18809. /* 252 */,
  18810. /* 253 */,
  18811. /* 254 */,
  18812. /* 255 */,
  18813. /* 256 */,
  18814. /* 257 */,
  18815. /* 258 */,
  18816. /* 259 */
  18817. /*!********************************************************************************!*\
  18818. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-loadmore/props.js ***!
  18819. \********************************************************************************/
  18820. /*! no static exports found */
  18821. /***/ (function(module, exports, __webpack_require__) {
  18822. "use strict";
  18823. /* WEBPACK VAR INJECTION */(function(uni) {
  18824. Object.defineProperty(exports, "__esModule", {
  18825. value: true
  18826. });
  18827. exports.default = void 0;
  18828. var _default = {
  18829. props: {
  18830. // 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
  18831. status: {
  18832. type: String,
  18833. default: uni.$u.props.loadmore.status
  18834. },
  18835. // 组件背景色
  18836. bgColor: {
  18837. type: String,
  18838. default: uni.$u.props.loadmore.bgColor
  18839. },
  18840. // 是否显示加载中的图标
  18841. icon: {
  18842. type: Boolean,
  18843. default: uni.$u.props.loadmore.icon
  18844. },
  18845. // 字体大小
  18846. fontSize: {
  18847. type: [String, Number],
  18848. default: uni.$u.props.loadmore.fontSize
  18849. },
  18850. // 图标大小
  18851. iconSize: {
  18852. type: [String, Number],
  18853. default: uni.$u.props.loadmore.iconSize
  18854. },
  18855. // 字体颜色
  18856. color: {
  18857. type: String,
  18858. default: uni.$u.props.loadmore.color
  18859. },
  18860. // 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
  18861. loadingIcon: {
  18862. type: String,
  18863. default: uni.$u.props.loadmore.loadingIcon
  18864. },
  18865. // 加载前的提示语
  18866. loadmoreText: {
  18867. type: String,
  18868. default: uni.$u.props.loadmore.loadmoreText
  18869. },
  18870. // 加载中提示语
  18871. loadingText: {
  18872. type: String,
  18873. default: uni.$u.props.loadmore.loadingText
  18874. },
  18875. // 没有更多的提示语
  18876. nomoreText: {
  18877. type: String,
  18878. default: uni.$u.props.loadmore.nomoreText
  18879. },
  18880. // 在“没有更多”状态下,是否显示粗点
  18881. isDot: {
  18882. type: Boolean,
  18883. default: uni.$u.props.loadmore.isDot
  18884. },
  18885. // 加载中图标的颜色
  18886. iconColor: {
  18887. type: String,
  18888. default: uni.$u.props.loadmore.iconColor
  18889. },
  18890. // 上边距
  18891. marginTop: {
  18892. type: [String, Number],
  18893. default: uni.$u.props.loadmore.marginTop
  18894. },
  18895. // 下边距
  18896. marginBottom: {
  18897. type: [String, Number],
  18898. default: uni.$u.props.loadmore.marginBottom
  18899. },
  18900. // 高度,单位px
  18901. height: {
  18902. type: [String, Number],
  18903. default: uni.$u.props.loadmore.height
  18904. },
  18905. // 是否显示左边分割线
  18906. line: {
  18907. type: Boolean,
  18908. default: uni.$u.props.loadmore.line
  18909. },
  18910. // 线条颜色
  18911. lineColor: {
  18912. type: String,
  18913. default: uni.$u.props.loadmore.lineColor
  18914. },
  18915. // 是否虚线,true-虚线,false-实线
  18916. dashed: {
  18917. type: Boolean,
  18918. default: uni.$u.props.loadmore.dashed
  18919. }
  18920. }
  18921. };
  18922. exports.default = _default;
  18923. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  18924. /***/ }),
  18925. /* 260 */,
  18926. /* 261 */,
  18927. /* 262 */,
  18928. /* 263 */,
  18929. /* 264 */,
  18930. /* 265 */,
  18931. /* 266 */,
  18932. /* 267 */
  18933. /*!****************************************************************************!*\
  18934. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-form/props.js ***!
  18935. \****************************************************************************/
  18936. /*! no static exports found */
  18937. /***/ (function(module, exports, __webpack_require__) {
  18938. "use strict";
  18939. /* WEBPACK VAR INJECTION */(function(uni) {
  18940. Object.defineProperty(exports, "__esModule", {
  18941. value: true
  18942. });
  18943. exports.default = void 0;
  18944. var _default = {
  18945. props: {
  18946. // 当前form的需要验证字段的集合
  18947. model: {
  18948. type: Object,
  18949. default: uni.$u.props.form.model
  18950. },
  18951. // 验证规则
  18952. rules: {
  18953. type: [Object, Function, Array],
  18954. default: uni.$u.props.form.rules
  18955. },
  18956. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  18957. // border-bottom-下边框呈现红色,none-无提示
  18958. errorType: {
  18959. type: String,
  18960. default: uni.$u.props.form.errorType
  18961. },
  18962. // 是否显示表单域的下划线边框
  18963. borderBottom: {
  18964. type: Boolean,
  18965. default: uni.$u.props.form.borderBottom
  18966. },
  18967. // label的位置,left-左边,top-上边
  18968. labelPosition: {
  18969. type: String,
  18970. default: uni.$u.props.form.labelPosition
  18971. },
  18972. // label的宽度,单位px
  18973. labelWidth: {
  18974. type: [String, Number],
  18975. default: uni.$u.props.form.labelWidth
  18976. },
  18977. // lable字体的对齐方式
  18978. labelAlign: {
  18979. type: String,
  18980. default: uni.$u.props.form.labelAlign
  18981. },
  18982. // lable的样式,对象形式
  18983. labelStyle: {
  18984. type: Object,
  18985. default: uni.$u.props.form.labelStyle
  18986. }
  18987. }
  18988. };
  18989. exports.default = _default;
  18990. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  18991. /***/ }),
  18992. /* 268 */,
  18993. /* 269 */,
  18994. /* 270 */,
  18995. /* 271 */,
  18996. /* 272 */,
  18997. /* 273 */
  18998. /*!*********************************************************************************!*\
  18999. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-form-item/props.js ***!
  19000. \*********************************************************************************/
  19001. /*! no static exports found */
  19002. /***/ (function(module, exports, __webpack_require__) {
  19003. "use strict";
  19004. /* WEBPACK VAR INJECTION */(function(uni) {
  19005. Object.defineProperty(exports, "__esModule", {
  19006. value: true
  19007. });
  19008. exports.default = void 0;
  19009. var _default = {
  19010. props: {
  19011. // input的label提示语
  19012. label: {
  19013. type: String,
  19014. default: uni.$u.props.formItem.label
  19015. },
  19016. // 绑定的值
  19017. prop: {
  19018. type: String,
  19019. default: uni.$u.props.formItem.prop
  19020. },
  19021. // 是否显示表单域的下划线边框
  19022. borderBottom: {
  19023. type: [String, Boolean],
  19024. default: uni.$u.props.formItem.borderBottom
  19025. },
  19026. // label的位置,left-左边,top-上边
  19027. labelPosition: {
  19028. type: String,
  19029. default: uni.$u.props.formItem.labelPosition
  19030. },
  19031. // label的宽度,单位px
  19032. labelWidth: {
  19033. type: [String, Number],
  19034. default: uni.$u.props.formItem.labelWidth
  19035. },
  19036. // 右侧图标
  19037. rightIcon: {
  19038. type: String,
  19039. default: uni.$u.props.formItem.rightIcon
  19040. },
  19041. // 左侧图标
  19042. leftIcon: {
  19043. type: String,
  19044. default: uni.$u.props.formItem.leftIcon
  19045. },
  19046. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  19047. required: {
  19048. type: Boolean,
  19049. default: uni.$u.props.formItem.required
  19050. },
  19051. leftIconStyle: {
  19052. type: [String, Object],
  19053. default: uni.$u.props.formItem.leftIconStyle
  19054. }
  19055. }
  19056. };
  19057. exports.default = _default;
  19058. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  19059. /***/ }),
  19060. /* 274 */,
  19061. /* 275 */,
  19062. /* 276 */,
  19063. /* 277 */,
  19064. /* 278 */,
  19065. /* 279 */,
  19066. /* 280 */,
  19067. /* 281 */
  19068. /*!*****************************************************************************!*\
  19069. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-input/props.js ***!
  19070. \*****************************************************************************/
  19071. /*! no static exports found */
  19072. /***/ (function(module, exports, __webpack_require__) {
  19073. "use strict";
  19074. /* WEBPACK VAR INJECTION */(function(uni) {
  19075. Object.defineProperty(exports, "__esModule", {
  19076. value: true
  19077. });
  19078. exports.default = void 0;
  19079. var _default = {
  19080. props: {
  19081. // 输入的值
  19082. value: {
  19083. type: [String, Number],
  19084. default: uni.$u.props.input.value
  19085. },
  19086. // 输入框类型
  19087. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  19088. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  19089. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  19090. // text-文本输入键盘
  19091. type: {
  19092. type: String,
  19093. default: uni.$u.props.input.type
  19094. },
  19095. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  19096. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  19097. fixed: {
  19098. type: Boolean,
  19099. default: uni.$u.props.input.fixed
  19100. },
  19101. // 是否禁用输入框
  19102. disabled: {
  19103. type: Boolean,
  19104. default: uni.$u.props.input.disabled
  19105. },
  19106. // 禁用状态时的背景色
  19107. disabledColor: {
  19108. type: String,
  19109. default: uni.$u.props.input.disabledColor
  19110. },
  19111. // 是否显示清除控件
  19112. clearable: {
  19113. type: Boolean,
  19114. default: uni.$u.props.input.clearable
  19115. },
  19116. // 是否密码类型
  19117. password: {
  19118. type: Boolean,
  19119. default: uni.$u.props.input.password
  19120. },
  19121. // 最大输入长度,设置为 -1 的时候不限制最大长度
  19122. maxlength: {
  19123. type: [String, Number],
  19124. default: uni.$u.props.input.maxlength
  19125. },
  19126. // 输入框为空时的占位符
  19127. placeholder: {
  19128. type: String,
  19129. default: uni.$u.props.input.placeholder
  19130. },
  19131. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  19132. placeholderClass: {
  19133. type: String,
  19134. default: uni.$u.props.input.placeholderClass
  19135. },
  19136. // 指定placeholder的样式
  19137. placeholderStyle: {
  19138. type: [String, Object],
  19139. default: uni.$u.props.input.placeholderStyle
  19140. },
  19141. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  19142. showWordLimit: {
  19143. type: Boolean,
  19144. default: uni.$u.props.input.showWordLimit
  19145. },
  19146. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  19147. // https://uniapp.dcloud.io/component/input
  19148. // https://uniapp.dcloud.io/component/textarea
  19149. confirmType: {
  19150. type: String,
  19151. default: uni.$u.props.input.confirmType
  19152. },
  19153. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  19154. confirmHold: {
  19155. type: Boolean,
  19156. default: uni.$u.props.input.confirmHold
  19157. },
  19158. // focus时,点击页面的时候不收起键盘,微信小程序有效
  19159. holdKeyboard: {
  19160. type: Boolean,
  19161. default: uni.$u.props.input.holdKeyboard
  19162. },
  19163. // 自动获取焦点
  19164. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  19165. focus: {
  19166. type: Boolean,
  19167. default: uni.$u.props.input.focus
  19168. },
  19169. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  19170. autoBlur: {
  19171. type: Boolean,
  19172. default: uni.$u.props.input.autoBlur
  19173. },
  19174. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  19175. disableDefaultPadding: {
  19176. type: Boolean,
  19177. default: uni.$u.props.input.disableDefaultPadding
  19178. },
  19179. // 指定focus时光标的位置
  19180. cursor: {
  19181. type: [String, Number],
  19182. default: uni.$u.props.input.cursor
  19183. },
  19184. // 输入框聚焦时底部与键盘的距离
  19185. cursorSpacing: {
  19186. type: [String, Number],
  19187. default: uni.$u.props.input.cursorSpacing
  19188. },
  19189. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  19190. selectionStart: {
  19191. type: [String, Number],
  19192. default: uni.$u.props.input.selectionStart
  19193. },
  19194. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  19195. selectionEnd: {
  19196. type: [String, Number],
  19197. default: uni.$u.props.input.selectionEnd
  19198. },
  19199. // 键盘弹起时,是否自动上推页面
  19200. adjustPosition: {
  19201. type: Boolean,
  19202. default: uni.$u.props.input.adjustPosition
  19203. },
  19204. // 输入框内容对齐方式,可选值为:left|center|right
  19205. inputAlign: {
  19206. type: String,
  19207. default: uni.$u.props.input.inputAlign
  19208. },
  19209. // 输入框字体的大小
  19210. fontSize: {
  19211. type: [String, Number],
  19212. default: uni.$u.props.input.fontSize
  19213. },
  19214. // 输入框字体颜色
  19215. color: {
  19216. type: String,
  19217. default: uni.$u.props.input.color
  19218. },
  19219. // 输入框前置图标
  19220. prefixIcon: {
  19221. type: String,
  19222. default: uni.$u.props.input.prefixIcon
  19223. },
  19224. // 前置图标样式,对象或字符串
  19225. prefixIconStyle: {
  19226. type: [String, Object],
  19227. default: uni.$u.props.input.prefixIconStyle
  19228. },
  19229. // 输入框后置图标
  19230. suffixIcon: {
  19231. type: String,
  19232. default: uni.$u.props.input.suffixIcon
  19233. },
  19234. // 后置图标样式,对象或字符串
  19235. suffixIconStyle: {
  19236. type: [String, Object],
  19237. default: uni.$u.props.input.suffixIconStyle
  19238. },
  19239. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  19240. border: {
  19241. type: String,
  19242. default: uni.$u.props.input.border
  19243. },
  19244. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  19245. readonly: {
  19246. type: Boolean,
  19247. default: uni.$u.props.input.readonly
  19248. },
  19249. // 输入框形状,circle-圆形,square-方形
  19250. shape: {
  19251. type: String,
  19252. default: uni.$u.props.input.shape
  19253. },
  19254. // 用于处理或者过滤输入框内容的方法
  19255. formatter: {
  19256. type: [Function, null],
  19257. default: uni.$u.props.input.formatter
  19258. },
  19259. // 是否忽略组件内对文本合成系统事件的处理
  19260. ignoreCompositionEvent: {
  19261. type: Boolean,
  19262. default: true
  19263. }
  19264. }
  19265. };
  19266. exports.default = _default;
  19267. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  19268. /***/ }),
  19269. /* 282 */,
  19270. /* 283 */,
  19271. /* 284 */,
  19272. /* 285 */,
  19273. /* 286 */,
  19274. /* 287 */
  19275. /*!**********************************************************************!*\
  19276. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/mixin/button.js ***!
  19277. \**********************************************************************/
  19278. /*! no static exports found */
  19279. /***/ (function(module, exports, __webpack_require__) {
  19280. "use strict";
  19281. Object.defineProperty(exports, "__esModule", {
  19282. value: true
  19283. });
  19284. exports.default = void 0;
  19285. var _default = {
  19286. props: {
  19287. lang: String,
  19288. sessionFrom: String,
  19289. sendMessageTitle: String,
  19290. sendMessagePath: String,
  19291. sendMessageImg: String,
  19292. showMessageCard: Boolean,
  19293. appParameter: String,
  19294. formType: String,
  19295. openType: String
  19296. }
  19297. };
  19298. exports.default = _default;
  19299. /***/ }),
  19300. /* 288 */
  19301. /*!************************************************************************!*\
  19302. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/mixin/openType.js ***!
  19303. \************************************************************************/
  19304. /*! no static exports found */
  19305. /***/ (function(module, exports, __webpack_require__) {
  19306. "use strict";
  19307. Object.defineProperty(exports, "__esModule", {
  19308. value: true
  19309. });
  19310. exports.default = void 0;
  19311. var _default = {
  19312. props: {
  19313. openType: String
  19314. },
  19315. methods: {
  19316. onGetUserInfo: function onGetUserInfo(event) {
  19317. this.$emit('getuserinfo', event.detail);
  19318. },
  19319. onContact: function onContact(event) {
  19320. this.$emit('contact', event.detail);
  19321. },
  19322. onGetPhoneNumber: function onGetPhoneNumber(event) {
  19323. this.$emit('getphonenumber', event.detail);
  19324. },
  19325. onError: function onError(event) {
  19326. this.$emit('error', event.detail);
  19327. },
  19328. onLaunchApp: function onLaunchApp(event) {
  19329. this.$emit('launchapp', event.detail);
  19330. },
  19331. onOpenSetting: function onOpenSetting(event) {
  19332. this.$emit('opensetting', event.detail);
  19333. }
  19334. }
  19335. };
  19336. exports.default = _default;
  19337. /***/ }),
  19338. /* 289 */
  19339. /*!******************************************************************************!*\
  19340. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-button/props.js ***!
  19341. \******************************************************************************/
  19342. /*! no static exports found */
  19343. /***/ (function(module, exports, __webpack_require__) {
  19344. "use strict";
  19345. /* WEBPACK VAR INJECTION */(function(uni) {
  19346. Object.defineProperty(exports, "__esModule", {
  19347. value: true
  19348. });
  19349. exports.default = void 0;
  19350. /*
  19351. * @Author : LQ
  19352. * @Description :
  19353. * @version : 1.0
  19354. * @Date : 2021-08-16 10:04:04
  19355. * @LastAuthor : LQ
  19356. * @lastTime : 2021-08-16 10:04:24
  19357. * @FilePath : /u-view2.0/uview-ui/components/u-button/props.js
  19358. */
  19359. var _default = {
  19360. props: {
  19361. // 是否细边框
  19362. hairline: {
  19363. type: Boolean,
  19364. default: uni.$u.props.button.hairline
  19365. },
  19366. // 按钮的预置样式,info,primary,error,warning,success
  19367. type: {
  19368. type: String,
  19369. default: uni.$u.props.button.type
  19370. },
  19371. // 按钮尺寸,large,normal,small,mini
  19372. size: {
  19373. type: String,
  19374. default: uni.$u.props.button.size
  19375. },
  19376. // 按钮形状,circle(两边为半圆),square(带圆角)
  19377. shape: {
  19378. type: String,
  19379. default: uni.$u.props.button.shape
  19380. },
  19381. // 按钮是否镂空
  19382. plain: {
  19383. type: Boolean,
  19384. default: uni.$u.props.button.plain
  19385. },
  19386. // 是否禁止状态
  19387. disabled: {
  19388. type: Boolean,
  19389. default: uni.$u.props.button.disabled
  19390. },
  19391. // 是否加载中
  19392. loading: {
  19393. type: Boolean,
  19394. default: uni.$u.props.button.loading
  19395. },
  19396. // 加载中提示文字
  19397. loadingText: {
  19398. type: [String, Number],
  19399. default: uni.$u.props.button.loadingText
  19400. },
  19401. // 加载状态图标类型
  19402. loadingMode: {
  19403. type: String,
  19404. default: uni.$u.props.button.loadingMode
  19405. },
  19406. // 加载图标大小
  19407. loadingSize: {
  19408. type: [String, Number],
  19409. default: uni.$u.props.button.loadingSize
  19410. },
  19411. // 开放能力,具体请看uniapp稳定关于button组件部分说明
  19412. // https://uniapp.dcloud.io/component/button
  19413. openType: {
  19414. type: String,
  19415. default: uni.$u.props.button.openType
  19416. },
  19417. // 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
  19418. // 取值为submit(提交表单),reset(重置表单)
  19419. formType: {
  19420. type: String,
  19421. default: uni.$u.props.button.formType
  19422. },
  19423. // 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
  19424. // 只微信小程序、QQ小程序有效
  19425. appParameter: {
  19426. type: String,
  19427. default: uni.$u.props.button.appParameter
  19428. },
  19429. // 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
  19430. hoverStopPropagation: {
  19431. type: Boolean,
  19432. default: uni.$u.props.button.hoverStopPropagation
  19433. },
  19434. // 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效
  19435. lang: {
  19436. type: String,
  19437. default: uni.$u.props.button.lang
  19438. },
  19439. // 会话来源,open-type="contact"时有效。只微信小程序有效
  19440. sessionFrom: {
  19441. type: String,
  19442. default: uni.$u.props.button.sessionFrom
  19443. },
  19444. // 会话内消息卡片标题,open-type="contact"时有效
  19445. // 默认当前标题,只微信小程序有效
  19446. sendMessageTitle: {
  19447. type: String,
  19448. default: uni.$u.props.button.sendMessageTitle
  19449. },
  19450. // 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
  19451. // 默认当前分享路径,只微信小程序有效
  19452. sendMessagePath: {
  19453. type: String,
  19454. default: uni.$u.props.button.sendMessagePath
  19455. },
  19456. // 会话内消息卡片图片,open-type="contact"时有效
  19457. // 默认当前页面截图,只微信小程序有效
  19458. sendMessageImg: {
  19459. type: String,
  19460. default: uni.$u.props.button.sendMessageImg
  19461. },
  19462. // 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
  19463. // 用户点击后可以快速发送小程序消息,open-type="contact"时有效
  19464. showMessageCard: {
  19465. type: Boolean,
  19466. default: uni.$u.props.button.showMessageCard
  19467. },
  19468. // 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
  19469. dataName: {
  19470. type: String,
  19471. default: uni.$u.props.button.dataName
  19472. },
  19473. // 节流,一定时间内只能触发一次
  19474. throttleTime: {
  19475. type: [String, Number],
  19476. default: uni.$u.props.button.throttleTime
  19477. },
  19478. // 按住后多久出现点击态,单位毫秒
  19479. hoverStartTime: {
  19480. type: [String, Number],
  19481. default: uni.$u.props.button.hoverStartTime
  19482. },
  19483. // 手指松开后点击态保留时间,单位毫秒
  19484. hoverStayTime: {
  19485. type: [String, Number],
  19486. default: uni.$u.props.button.hoverStayTime
  19487. },
  19488. // 按钮文字,之所以通过props传入,是因为slot传入的话
  19489. // nvue中无法控制文字的样式
  19490. text: {
  19491. type: [String, Number],
  19492. default: uni.$u.props.button.text
  19493. },
  19494. // 按钮图标
  19495. icon: {
  19496. type: String,
  19497. default: uni.$u.props.button.icon
  19498. },
  19499. // 按钮图标
  19500. iconColor: {
  19501. type: String,
  19502. default: uni.$u.props.button.icon
  19503. },
  19504. // 按钮颜色,支持传入linear-gradient渐变色
  19505. color: {
  19506. type: String,
  19507. default: uni.$u.props.button.color
  19508. }
  19509. }
  19510. };
  19511. exports.default = _default;
  19512. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  19513. /***/ }),
  19514. /* 290 */,
  19515. /* 291 */,
  19516. /* 292 */,
  19517. /* 293 */,
  19518. /* 294 */,
  19519. /* 295 */,
  19520. /* 296 */,
  19521. /* 297 */
  19522. /*!**********************************************************************************!*\
  19523. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-cell-group/props.js ***!
  19524. \**********************************************************************************/
  19525. /*! no static exports found */
  19526. /***/ (function(module, exports, __webpack_require__) {
  19527. "use strict";
  19528. /* WEBPACK VAR INJECTION */(function(uni) {
  19529. Object.defineProperty(exports, "__esModule", {
  19530. value: true
  19531. });
  19532. exports.default = void 0;
  19533. var _default = {
  19534. props: {
  19535. // 分组标题
  19536. title: {
  19537. type: String,
  19538. default: uni.$u.props.cellGroup.title
  19539. },
  19540. // 是否显示外边框
  19541. border: {
  19542. type: Boolean,
  19543. default: uni.$u.props.cellGroup.border
  19544. }
  19545. }
  19546. };
  19547. exports.default = _default;
  19548. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  19549. /***/ }),
  19550. /* 298 */,
  19551. /* 299 */,
  19552. /* 300 */,
  19553. /* 301 */,
  19554. /* 302 */,
  19555. /* 303 */,
  19556. /* 304 */,
  19557. /* 305 */
  19558. /*!****************************************************************************!*\
  19559. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-cell/props.js ***!
  19560. \****************************************************************************/
  19561. /*! no static exports found */
  19562. /***/ (function(module, exports, __webpack_require__) {
  19563. "use strict";
  19564. /* WEBPACK VAR INJECTION */(function(uni) {
  19565. Object.defineProperty(exports, "__esModule", {
  19566. value: true
  19567. });
  19568. exports.default = void 0;
  19569. var _default2 = {
  19570. props: {
  19571. // 标题
  19572. title: {
  19573. type: [String, Number],
  19574. default: uni.$u.props.cell.title
  19575. },
  19576. // 标题下方的描述信息
  19577. label: {
  19578. type: [String, Number],
  19579. default: uni.$u.props.cell.label
  19580. },
  19581. // 右侧的内容
  19582. value: {
  19583. type: [String, Number],
  19584. default: uni.$u.props.cell.value
  19585. },
  19586. // 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
  19587. icon: {
  19588. type: String,
  19589. default: uni.$u.props.cell.icon
  19590. },
  19591. // 是否禁用cell
  19592. disabled: {
  19593. type: Boolean,
  19594. default: uni.$u.props.cell.disabled
  19595. },
  19596. // 是否显示下边框
  19597. border: {
  19598. type: Boolean,
  19599. default: uni.$u.props.cell.border
  19600. },
  19601. // 内容是否垂直居中(主要是针对右侧的value部分)
  19602. center: {
  19603. type: Boolean,
  19604. default: uni.$u.props.cell.center
  19605. },
  19606. // 点击后跳转的URL地址
  19607. url: {
  19608. type: String,
  19609. default: uni.$u.props.cell.url
  19610. },
  19611. // 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
  19612. linkType: {
  19613. type: String,
  19614. default: uni.$u.props.cell.linkType
  19615. },
  19616. // 是否开启点击反馈(表现为点击时加上灰色背景)
  19617. clickable: {
  19618. type: Boolean,
  19619. default: uni.$u.props.cell.clickable
  19620. },
  19621. // 是否展示右侧箭头并开启点击反馈
  19622. isLink: {
  19623. type: Boolean,
  19624. default: uni.$u.props.cell.isLink
  19625. },
  19626. // 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
  19627. required: {
  19628. type: Boolean,
  19629. default: uni.$u.props.cell.required
  19630. },
  19631. // 右侧的图标箭头
  19632. rightIcon: {
  19633. type: String,
  19634. default: uni.$u.props.cell.rightIcon
  19635. },
  19636. // 右侧箭头的方向,可选值为:left,up,down
  19637. arrowDirection: {
  19638. type: String,
  19639. default: uni.$u.props.cell.arrowDirection
  19640. },
  19641. // 左侧图标样式
  19642. iconStyle: {
  19643. type: [Object, String],
  19644. default: function _default() {
  19645. return uni.$u.props.cell.iconStyle;
  19646. }
  19647. },
  19648. // 右侧箭头图标的样式
  19649. rightIconStyle: {
  19650. type: [Object, String],
  19651. default: function _default() {
  19652. return uni.$u.props.cell.rightIconStyle;
  19653. }
  19654. },
  19655. // 标题的样式
  19656. titleStyle: {
  19657. type: [Object, String],
  19658. default: function _default() {
  19659. return uni.$u.props.cell.titleStyle;
  19660. }
  19661. },
  19662. // 单位元的大小,可选值为large
  19663. size: {
  19664. type: String,
  19665. default: uni.$u.props.cell.size
  19666. },
  19667. // 点击cell是否阻止事件传播
  19668. stop: {
  19669. type: Boolean,
  19670. default: uni.$u.props.cell.stop
  19671. },
  19672. // 标识符,cell被点击时返回
  19673. name: {
  19674. type: [Number, String],
  19675. default: uni.$u.props.cell.name
  19676. }
  19677. }
  19678. };
  19679. exports.default = _default2;
  19680. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  19681. /***/ }),
  19682. /* 306 */,
  19683. /* 307 */,
  19684. /* 308 */,
  19685. /* 309 */,
  19686. /* 310 */,
  19687. /* 311 */,
  19688. /* 312 */,
  19689. /* 313 */
  19690. /*!****************************************************************************!*\
  19691. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-tabs/props.js ***!
  19692. \****************************************************************************/
  19693. /*! no static exports found */
  19694. /***/ (function(module, exports, __webpack_require__) {
  19695. "use strict";
  19696. /* WEBPACK VAR INJECTION */(function(uni) {
  19697. Object.defineProperty(exports, "__esModule", {
  19698. value: true
  19699. });
  19700. exports.default = void 0;
  19701. var _default = {
  19702. props: {
  19703. // 滑块的移动过渡时间,单位ms
  19704. duration: {
  19705. type: Number,
  19706. default: uni.$u.props.tabs.duration
  19707. },
  19708. // tabs标签数组
  19709. list: {
  19710. type: Array,
  19711. default: uni.$u.props.tabs.list
  19712. },
  19713. // 滑块颜色
  19714. lineColor: {
  19715. type: String,
  19716. default: uni.$u.props.tabs.lineColor
  19717. },
  19718. // 菜单选择中时的样式
  19719. activeStyle: {
  19720. type: [String, Object],
  19721. default: uni.$u.props.tabs.activeStyle
  19722. },
  19723. // 菜单非选中时的样式
  19724. inactiveStyle: {
  19725. type: [String, Object],
  19726. default: uni.$u.props.tabs.inactiveStyle
  19727. },
  19728. // 滑块长度
  19729. lineWidth: {
  19730. type: [String, Number],
  19731. default: uni.$u.props.tabs.lineWidth
  19732. },
  19733. // 滑块高度
  19734. lineHeight: {
  19735. type: [String, Number],
  19736. default: uni.$u.props.tabs.lineHeight
  19737. },
  19738. // 滑块背景显示大小,当滑块背景设置为图片时使用
  19739. lineBgSize: {
  19740. type: String,
  19741. default: uni.$u.props.tabs.lineBgSize
  19742. },
  19743. // 菜单item的样式
  19744. itemStyle: {
  19745. type: [String, Object],
  19746. default: uni.$u.props.tabs.itemStyle
  19747. },
  19748. // 菜单是否可滚动
  19749. scrollable: {
  19750. type: Boolean,
  19751. default: uni.$u.props.tabs.scrollable
  19752. },
  19753. // 当前选中标签的索引
  19754. current: {
  19755. type: [Number, String],
  19756. default: uni.$u.props.tabs.current
  19757. },
  19758. // 默认读取的键名
  19759. keyName: {
  19760. type: String,
  19761. default: uni.$u.props.tabs.keyName
  19762. }
  19763. }
  19764. };
  19765. exports.default = _default;
  19766. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  19767. /***/ }),
  19768. /* 314 */,
  19769. /* 315 */,
  19770. /* 316 */,
  19771. /* 317 */,
  19772. /* 318 */,
  19773. /* 319 */,
  19774. /* 320 */,
  19775. /* 321 */
  19776. /*!******************************************************************************!*\
  19777. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-search/props.js ***!
  19778. \******************************************************************************/
  19779. /*! no static exports found */
  19780. /***/ (function(module, exports, __webpack_require__) {
  19781. "use strict";
  19782. /* WEBPACK VAR INJECTION */(function(uni) {
  19783. Object.defineProperty(exports, "__esModule", {
  19784. value: true
  19785. });
  19786. exports.default = void 0;
  19787. var _default = {
  19788. props: {
  19789. // 搜索框形状,round-圆形,square-方形
  19790. shape: {
  19791. type: String,
  19792. default: uni.$u.props.search.shape
  19793. },
  19794. // 搜索框背景色,默认值#f2f2f2
  19795. bgColor: {
  19796. type: String,
  19797. default: uni.$u.props.search.bgColor
  19798. },
  19799. // 占位提示文字
  19800. placeholder: {
  19801. type: String,
  19802. default: uni.$u.props.search.placeholder
  19803. },
  19804. // 是否启用清除控件
  19805. clearabled: {
  19806. type: Boolean,
  19807. default: uni.$u.props.search.clearabled
  19808. },
  19809. // 是否自动聚焦
  19810. focus: {
  19811. type: Boolean,
  19812. default: uni.$u.props.search.focus
  19813. },
  19814. // 是否在搜索框右侧显示取消按钮
  19815. showAction: {
  19816. type: Boolean,
  19817. default: uni.$u.props.search.showAction
  19818. },
  19819. // 右边控件的样式
  19820. actionStyle: {
  19821. type: Object,
  19822. default: uni.$u.props.search.actionStyle
  19823. },
  19824. // 取消按钮文字
  19825. actionText: {
  19826. type: String,
  19827. default: uni.$u.props.search.actionText
  19828. },
  19829. // 输入框内容对齐方式,可选值为 left|center|right
  19830. inputAlign: {
  19831. type: String,
  19832. default: uni.$u.props.search.inputAlign
  19833. },
  19834. // input输入框的样式,可以定义文字颜色,大小等,对象形式
  19835. inputStyle: {
  19836. type: Object,
  19837. default: uni.$u.props.search.inputStyle
  19838. },
  19839. // 是否启用输入框
  19840. disabled: {
  19841. type: Boolean,
  19842. default: uni.$u.props.search.disabled
  19843. },
  19844. // 边框颜色
  19845. borderColor: {
  19846. type: String,
  19847. default: uni.$u.props.search.borderColor
  19848. },
  19849. // 搜索图标的颜色,默认同输入框字体颜色
  19850. searchIconColor: {
  19851. type: String,
  19852. default: uni.$u.props.search.searchIconColor
  19853. },
  19854. // 输入框字体颜色
  19855. color: {
  19856. type: String,
  19857. default: uni.$u.props.search.color
  19858. },
  19859. // placeholder的颜色
  19860. placeholderColor: {
  19861. type: String,
  19862. default: uni.$u.props.search.placeholderColor
  19863. },
  19864. // 左边输入框的图标,可以为uView图标名称或图片路径
  19865. searchIcon: {
  19866. type: String,
  19867. default: uni.$u.props.search.searchIcon
  19868. },
  19869. searchIconSize: {
  19870. type: [Number, String],
  19871. default: uni.$u.props.search.searchIconSize
  19872. },
  19873. // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
  19874. margin: {
  19875. type: String,
  19876. default: uni.$u.props.search.margin
  19877. },
  19878. // 开启showAction时,是否在input获取焦点时才显示
  19879. animation: {
  19880. type: Boolean,
  19881. default: uni.$u.props.search.animation
  19882. },
  19883. // 输入框的初始化内容
  19884. value: {
  19885. type: String,
  19886. default: uni.$u.props.search.value
  19887. },
  19888. // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
  19889. maxlength: {
  19890. type: [String, Number],
  19891. default: uni.$u.props.search.maxlength
  19892. },
  19893. // 搜索框高度,单位px
  19894. height: {
  19895. type: [String, Number],
  19896. default: uni.$u.props.search.height
  19897. },
  19898. // 搜索框左侧文本
  19899. label: {
  19900. type: [String, Number, null],
  19901. default: uni.$u.props.search.label
  19902. }
  19903. }
  19904. };
  19905. exports.default = _default;
  19906. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  19907. /***/ }),
  19908. /* 322 */,
  19909. /* 323 */,
  19910. /* 324 */,
  19911. /* 325 */,
  19912. /* 326 */,
  19913. /* 327 */,
  19914. /* 328 */,
  19915. /* 329 */
  19916. /*!**********************************************************************************!*\
  19917. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-number-box/props.js ***!
  19918. \**********************************************************************************/
  19919. /*! no static exports found */
  19920. /***/ (function(module, exports, __webpack_require__) {
  19921. "use strict";
  19922. /* WEBPACK VAR INJECTION */(function(uni) {
  19923. Object.defineProperty(exports, "__esModule", {
  19924. value: true
  19925. });
  19926. exports.default = void 0;
  19927. var _default = {
  19928. props: {
  19929. // 步进器标识符,在change回调返回
  19930. name: {
  19931. type: [String, Number],
  19932. default: uni.$u.props.numberBox.name
  19933. },
  19934. // 用于双向绑定的值,初始化时设置设为默认min值(最小值)
  19935. value: {
  19936. type: [String, Number],
  19937. default: uni.$u.props.numberBox.value
  19938. },
  19939. // 最小值
  19940. min: {
  19941. type: [String, Number],
  19942. default: uni.$u.props.numberBox.min
  19943. },
  19944. // 最大值
  19945. max: {
  19946. type: [String, Number],
  19947. default: uni.$u.props.numberBox.max
  19948. },
  19949. // 加减的步长,可为小数
  19950. step: {
  19951. type: [String, Number],
  19952. default: uni.$u.props.numberBox.step
  19953. },
  19954. // 是否只允许输入整数
  19955. integer: {
  19956. type: Boolean,
  19957. default: uni.$u.props.numberBox.integer
  19958. },
  19959. // 是否禁用,包括输入框,加减按钮
  19960. disabled: {
  19961. type: Boolean,
  19962. default: uni.$u.props.numberBox.disabled
  19963. },
  19964. // 是否禁用输入框
  19965. disabledInput: {
  19966. type: Boolean,
  19967. default: uni.$u.props.numberBox.disabledInput
  19968. },
  19969. // 是否开启异步变更,开启后需要手动控制输入值
  19970. asyncChange: {
  19971. type: Boolean,
  19972. default: uni.$u.props.numberBox.asyncChange
  19973. },
  19974. // 输入框宽度,单位为px
  19975. inputWidth: {
  19976. type: [String, Number],
  19977. default: uni.$u.props.numberBox.inputWidth
  19978. },
  19979. // 是否显示减少按钮
  19980. showMinus: {
  19981. type: Boolean,
  19982. default: uni.$u.props.numberBox.showMinus
  19983. },
  19984. // 是否显示增加按钮
  19985. showPlus: {
  19986. type: Boolean,
  19987. default: uni.$u.props.numberBox.showPlus
  19988. },
  19989. // 显示的小数位数
  19990. decimalLength: {
  19991. type: [String, Number, null],
  19992. default: uni.$u.props.numberBox.decimalLength
  19993. },
  19994. // 是否开启长按加减手势
  19995. longPress: {
  19996. type: Boolean,
  19997. default: uni.$u.props.numberBox.longPress
  19998. },
  19999. // 输入框文字和加减按钮图标的颜色
  20000. color: {
  20001. type: String,
  20002. default: uni.$u.props.numberBox.color
  20003. },
  20004. // 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
  20005. buttonSize: {
  20006. type: [String, Number],
  20007. default: uni.$u.props.numberBox.buttonSize
  20008. },
  20009. // 输入框和按钮的背景颜色
  20010. bgColor: {
  20011. type: String,
  20012. default: uni.$u.props.numberBox.bgColor
  20013. },
  20014. // 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
  20015. cursorSpacing: {
  20016. type: [String, Number],
  20017. default: uni.$u.props.numberBox.cursorSpacing
  20018. },
  20019. // 是否禁用增加按钮
  20020. disablePlus: {
  20021. type: Boolean,
  20022. default: uni.$u.props.numberBox.disablePlus
  20023. },
  20024. // 是否禁用减少按钮
  20025. disableMinus: {
  20026. type: Boolean,
  20027. default: uni.$u.props.numberBox.disableMinus
  20028. },
  20029. // 加减按钮图标的样式
  20030. iconStyle: {
  20031. type: [Object, String],
  20032. default: uni.$u.props.numberBox.iconStyle
  20033. }
  20034. }
  20035. };
  20036. exports.default = _default;
  20037. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20038. /***/ }),
  20039. /* 330 */,
  20040. /* 331 */,
  20041. /* 332 */,
  20042. /* 333 */,
  20043. /* 334 */,
  20044. /* 335 */,
  20045. /* 336 */,
  20046. /* 337 */
  20047. /*!***********************************************************************************!*\
  20048. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-radio-group/props.js ***!
  20049. \***********************************************************************************/
  20050. /*! no static exports found */
  20051. /***/ (function(module, exports, __webpack_require__) {
  20052. "use strict";
  20053. /* WEBPACK VAR INJECTION */(function(uni) {
  20054. Object.defineProperty(exports, "__esModule", {
  20055. value: true
  20056. });
  20057. exports.default = void 0;
  20058. var _default = {
  20059. props: {
  20060. // 绑定的值
  20061. value: {
  20062. type: [String, Number, Boolean],
  20063. default: uni.$u.props.radioGroup.value
  20064. },
  20065. // 是否禁用全部radio
  20066. disabled: {
  20067. type: Boolean,
  20068. default: uni.$u.props.radioGroup.disabled
  20069. },
  20070. // 形状,circle-圆形,square-方形
  20071. shape: {
  20072. type: String,
  20073. default: uni.$u.props.radioGroup.shape
  20074. },
  20075. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  20076. activeColor: {
  20077. type: String,
  20078. default: uni.$u.props.radioGroup.activeColor
  20079. },
  20080. // 未选中的颜色
  20081. inactiveColor: {
  20082. type: String,
  20083. default: uni.$u.props.radioGroup.inactiveColor
  20084. },
  20085. // 标识符
  20086. name: {
  20087. type: String,
  20088. default: uni.$u.props.radioGroup.name
  20089. },
  20090. // 整个组件的尺寸,默认px
  20091. size: {
  20092. type: [String, Number],
  20093. default: uni.$u.props.radioGroup.size
  20094. },
  20095. // 布局方式,row-横向,column-纵向
  20096. placement: {
  20097. type: String,
  20098. default: uni.$u.props.radioGroup.placement
  20099. },
  20100. // label的文本
  20101. label: {
  20102. type: [String],
  20103. default: uni.$u.props.radioGroup.label
  20104. },
  20105. // label的颜色 (默认 '#303133' )
  20106. labelColor: {
  20107. type: [String],
  20108. default: uni.$u.props.radioGroup.labelColor
  20109. },
  20110. // label的字体大小,px单位
  20111. labelSize: {
  20112. type: [String, Number],
  20113. default: uni.$u.props.radioGroup.labelSize
  20114. },
  20115. // 是否禁止点击文本操作checkbox(默认 false )
  20116. labelDisabled: {
  20117. type: Boolean,
  20118. default: uni.$u.props.radioGroup.labelDisabled
  20119. },
  20120. // 图标颜色
  20121. iconColor: {
  20122. type: String,
  20123. default: uni.$u.props.radioGroup.iconColor
  20124. },
  20125. // 图标的大小,单位px
  20126. iconSize: {
  20127. type: [String, Number],
  20128. default: uni.$u.props.radioGroup.iconSize
  20129. },
  20130. // 竖向配列时,是否显示下划线
  20131. borderBottom: {
  20132. type: Boolean,
  20133. default: uni.$u.props.radioGroup.borderBottom
  20134. },
  20135. // 图标与文字的对齐方式
  20136. iconPlacement: {
  20137. type: String,
  20138. default: uni.$u.props.radio.iconPlacement
  20139. }
  20140. }
  20141. };
  20142. exports.default = _default;
  20143. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20144. /***/ }),
  20145. /* 338 */,
  20146. /* 339 */,
  20147. /* 340 */,
  20148. /* 341 */,
  20149. /* 342 */,
  20150. /* 343 */,
  20151. /* 344 */,
  20152. /* 345 */
  20153. /*!*****************************************************************************!*\
  20154. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-radio/props.js ***!
  20155. \*****************************************************************************/
  20156. /*! no static exports found */
  20157. /***/ (function(module, exports, __webpack_require__) {
  20158. "use strict";
  20159. /* WEBPACK VAR INJECTION */(function(uni) {
  20160. Object.defineProperty(exports, "__esModule", {
  20161. value: true
  20162. });
  20163. exports.default = void 0;
  20164. var _default = {
  20165. props: {
  20166. // radio的名称
  20167. name: {
  20168. type: [String, Number, Boolean],
  20169. default: uni.$u.props.radio.name
  20170. },
  20171. // 形状,square为方形,circle为圆型
  20172. shape: {
  20173. type: String,
  20174. default: uni.$u.props.radio.shape
  20175. },
  20176. // 是否禁用
  20177. disabled: {
  20178. type: [String, Boolean],
  20179. default: uni.$u.props.radio.disabled
  20180. },
  20181. // 是否禁止点击提示语选中单选框
  20182. labelDisabled: {
  20183. type: [String, Boolean],
  20184. default: uni.$u.props.radio.labelDisabled
  20185. },
  20186. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  20187. activeColor: {
  20188. type: String,
  20189. default: uni.$u.props.radio.activeColor
  20190. },
  20191. // 未选中的颜色
  20192. inactiveColor: {
  20193. type: String,
  20194. default: uni.$u.props.radio.inactiveColor
  20195. },
  20196. // 图标的大小,单位px
  20197. iconSize: {
  20198. type: [String, Number],
  20199. default: uni.$u.props.radio.iconSize
  20200. },
  20201. // label的字体大小,px单位
  20202. labelSize: {
  20203. type: [String, Number],
  20204. default: uni.$u.props.radio.labelSize
  20205. },
  20206. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  20207. label: {
  20208. type: [String, Number],
  20209. default: uni.$u.props.radio.label
  20210. },
  20211. // 整体的大小
  20212. size: {
  20213. type: [String, Number],
  20214. default: uni.$u.props.radio.size
  20215. },
  20216. // 图标颜色
  20217. color: {
  20218. type: String,
  20219. default: uni.$u.props.radio.color
  20220. },
  20221. // label的颜色
  20222. labelColor: {
  20223. type: String,
  20224. default: uni.$u.props.radio.labelColor
  20225. }
  20226. }
  20227. };
  20228. exports.default = _default;
  20229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20230. /***/ }),
  20231. /* 346 */,
  20232. /* 347 */,
  20233. /* 348 */,
  20234. /* 349 */,
  20235. /* 350 */,
  20236. /* 351 */,
  20237. /* 352 */,
  20238. /* 353 */
  20239. /*!*****************************************************************************!*\
  20240. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-popup/props.js ***!
  20241. \*****************************************************************************/
  20242. /*! no static exports found */
  20243. /***/ (function(module, exports, __webpack_require__) {
  20244. "use strict";
  20245. /* WEBPACK VAR INJECTION */(function(uni) {
  20246. Object.defineProperty(exports, "__esModule", {
  20247. value: true
  20248. });
  20249. exports.default = void 0;
  20250. var _default = {
  20251. props: {
  20252. // 是否展示弹窗
  20253. show: {
  20254. type: Boolean,
  20255. default: uni.$u.props.popup.show
  20256. },
  20257. // 是否显示遮罩
  20258. overlay: {
  20259. type: Boolean,
  20260. default: uni.$u.props.popup.overlay
  20261. },
  20262. // 弹出的方向,可选值为 top bottom right left center
  20263. mode: {
  20264. type: String,
  20265. default: uni.$u.props.popup.mode
  20266. },
  20267. // 动画时长,单位ms
  20268. duration: {
  20269. type: [String, Number],
  20270. default: uni.$u.props.popup.duration
  20271. },
  20272. // 是否显示关闭图标
  20273. closeable: {
  20274. type: Boolean,
  20275. default: uni.$u.props.popup.closeable
  20276. },
  20277. // 自定义遮罩的样式
  20278. overlayStyle: {
  20279. type: [Object, String],
  20280. default: uni.$u.props.popup.overlayStyle
  20281. },
  20282. // 点击遮罩是否关闭弹窗
  20283. closeOnClickOverlay: {
  20284. type: Boolean,
  20285. default: uni.$u.props.popup.closeOnClickOverlay
  20286. },
  20287. // 层级
  20288. zIndex: {
  20289. type: [String, Number],
  20290. default: uni.$u.props.popup.zIndex
  20291. },
  20292. // 是否为iPhoneX留出底部安全距离
  20293. safeAreaInsetBottom: {
  20294. type: Boolean,
  20295. default: uni.$u.props.popup.safeAreaInsetBottom
  20296. },
  20297. // 是否留出顶部安全距离(状态栏高度)
  20298. safeAreaInsetTop: {
  20299. type: Boolean,
  20300. default: uni.$u.props.popup.safeAreaInsetTop
  20301. },
  20302. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  20303. closeIconPos: {
  20304. type: String,
  20305. default: uni.$u.props.popup.closeIconPos
  20306. },
  20307. // 是否显示圆角
  20308. round: {
  20309. type: [Boolean, String, Number],
  20310. default: uni.$u.props.popup.round
  20311. },
  20312. // mode=center,也即中部弹出时,是否使用缩放模式
  20313. zoom: {
  20314. type: Boolean,
  20315. default: uni.$u.props.popup.zoom
  20316. },
  20317. // 弹窗背景色,设置为transparent可去除白色背景
  20318. bgColor: {
  20319. type: String,
  20320. default: uni.$u.props.popup.bgColor
  20321. },
  20322. // 遮罩的透明度,0-1之间
  20323. overlayOpacity: {
  20324. type: [Number, String],
  20325. default: uni.$u.props.popup.overlayOpacity
  20326. }
  20327. }
  20328. };
  20329. exports.default = _default;
  20330. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20331. /***/ }),
  20332. /* 354 */,
  20333. /* 355 */,
  20334. /* 356 */,
  20335. /* 357 */,
  20336. /* 358 */,
  20337. /* 359 */,
  20338. /* 360 */,
  20339. /* 361 */,
  20340. /* 362 */,
  20341. /* 363 */,
  20342. /* 364 */,
  20343. /* 365 */,
  20344. /* 366 */,
  20345. /* 367 */,
  20346. /* 368 */,
  20347. /* 369 */,
  20348. /* 370 */,
  20349. /* 371 */,
  20350. /* 372 */,
  20351. /* 373 */,
  20352. /* 374 */,
  20353. /* 375 */
  20354. /*!****************************************************************************!*\
  20355. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-list/props.js ***!
  20356. \****************************************************************************/
  20357. /*! no static exports found */
  20358. /***/ (function(module, exports, __webpack_require__) {
  20359. "use strict";
  20360. /* WEBPACK VAR INJECTION */(function(uni) {
  20361. Object.defineProperty(exports, "__esModule", {
  20362. value: true
  20363. });
  20364. exports.default = void 0;
  20365. var _default = {
  20366. props: {
  20367. // 控制是否出现滚动条,仅nvue有效
  20368. showScrollbar: {
  20369. type: Boolean,
  20370. default: uni.$u.props.list.showScrollbar
  20371. },
  20372. // 距底部多少时触发scrolltolower事件
  20373. lowerThreshold: {
  20374. type: [String, Number],
  20375. default: uni.$u.props.list.lowerThreshold
  20376. },
  20377. // 距顶部多少时触发scrolltoupper事件,非nvue有效
  20378. upperThreshold: {
  20379. type: [String, Number],
  20380. default: uni.$u.props.list.upperThreshold
  20381. },
  20382. // 设置竖向滚动条位置
  20383. scrollTop: {
  20384. type: [String, Number],
  20385. default: uni.$u.props.list.scrollTop
  20386. },
  20387. // 控制 onscroll 事件触发的频率,仅nvue有效
  20388. offsetAccuracy: {
  20389. type: [String, Number],
  20390. default: uni.$u.props.list.offsetAccuracy
  20391. },
  20392. // 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
  20393. enableFlex: {
  20394. type: Boolean,
  20395. default: uni.$u.props.list.enableFlex
  20396. },
  20397. // 是否按分页模式显示List,默认值false
  20398. pagingEnabled: {
  20399. type: Boolean,
  20400. default: uni.$u.props.list.pagingEnabled
  20401. },
  20402. // 是否允许List滚动
  20403. scrollable: {
  20404. type: Boolean,
  20405. default: uni.$u.props.list.scrollable
  20406. },
  20407. // 值应为某子元素id(id不能以数字开头)
  20408. scrollIntoView: {
  20409. type: String,
  20410. default: uni.$u.props.list.scrollIntoView
  20411. },
  20412. // 在设置滚动条位置时使用动画过渡
  20413. scrollWithAnimation: {
  20414. type: Boolean,
  20415. default: uni.$u.props.list.scrollWithAnimation
  20416. },
  20417. // iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
  20418. enableBackToTop: {
  20419. type: Boolean,
  20420. default: uni.$u.props.list.enableBackToTop
  20421. },
  20422. // 列表的高度
  20423. height: {
  20424. type: [String, Number],
  20425. default: uni.$u.props.list.height
  20426. },
  20427. // 列表宽度
  20428. width: {
  20429. type: [String, Number],
  20430. default: uni.$u.props.list.width
  20431. },
  20432. // 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
  20433. preLoadScreen: {
  20434. type: [String, Number],
  20435. default: uni.$u.props.list.preLoadScreen
  20436. }
  20437. // vue下,是否开启虚拟列表
  20438. }
  20439. };
  20440. exports.default = _default;
  20441. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20442. /***/ }),
  20443. /* 376 */,
  20444. /* 377 */,
  20445. /* 378 */,
  20446. /* 379 */,
  20447. /* 380 */,
  20448. /* 381 */,
  20449. /* 382 */,
  20450. /* 383 */
  20451. /*!*********************************************************************************!*\
  20452. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-list-item/props.js ***!
  20453. \*********************************************************************************/
  20454. /*! no static exports found */
  20455. /***/ (function(module, exports, __webpack_require__) {
  20456. "use strict";
  20457. /* WEBPACK VAR INJECTION */(function(uni) {
  20458. Object.defineProperty(exports, "__esModule", {
  20459. value: true
  20460. });
  20461. exports.default = void 0;
  20462. var _default = {
  20463. props: {
  20464. // 用于滚动到指定item
  20465. anchor: {
  20466. type: [String, Number],
  20467. default: uni.$u.props.listItem.anchor
  20468. }
  20469. }
  20470. };
  20471. exports.default = _default;
  20472. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20473. /***/ }),
  20474. /* 384 */,
  20475. /* 385 */,
  20476. /* 386 */,
  20477. /* 387 */,
  20478. /* 388 */,
  20479. /* 389 */,
  20480. /* 390 */,
  20481. /* 391 */
  20482. /*!****************************************************************************!*\
  20483. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-line/props.js ***!
  20484. \****************************************************************************/
  20485. /*! no static exports found */
  20486. /***/ (function(module, exports, __webpack_require__) {
  20487. "use strict";
  20488. /* WEBPACK VAR INJECTION */(function(uni) {
  20489. Object.defineProperty(exports, "__esModule", {
  20490. value: true
  20491. });
  20492. exports.default = void 0;
  20493. var _default = {
  20494. props: {
  20495. color: {
  20496. type: String,
  20497. default: uni.$u.props.line.color
  20498. },
  20499. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  20500. length: {
  20501. type: [String, Number],
  20502. default: uni.$u.props.line.length
  20503. },
  20504. // 线条方向,col-竖向,row-横向
  20505. direction: {
  20506. type: String,
  20507. default: uni.$u.props.line.direction
  20508. },
  20509. // 是否显示细边框
  20510. hairline: {
  20511. type: Boolean,
  20512. default: uni.$u.props.line.hairline
  20513. },
  20514. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  20515. margin: {
  20516. type: [String, Number],
  20517. default: uni.$u.props.line.margin
  20518. },
  20519. // 是否虚线,true-虚线,false-实线
  20520. dashed: {
  20521. type: Boolean,
  20522. default: uni.$u.props.line.dashed
  20523. }
  20524. }
  20525. };
  20526. exports.default = _default;
  20527. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20528. /***/ }),
  20529. /* 392 */,
  20530. /* 393 */,
  20531. /* 394 */,
  20532. /* 395 */,
  20533. /* 396 */,
  20534. /* 397 */,
  20535. /* 398 */,
  20536. /* 399 */
  20537. /*!************************************************************************************!*\
  20538. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  20539. \************************************************************************************/
  20540. /*! no static exports found */
  20541. /***/ (function(module, exports, __webpack_require__) {
  20542. "use strict";
  20543. /* WEBPACK VAR INJECTION */(function(uni) {
  20544. Object.defineProperty(exports, "__esModule", {
  20545. value: true
  20546. });
  20547. exports.default = void 0;
  20548. var _default = {
  20549. props: {
  20550. // 是否显示组件
  20551. show: {
  20552. type: Boolean,
  20553. default: uni.$u.props.loadingIcon.show
  20554. },
  20555. // 颜色
  20556. color: {
  20557. type: String,
  20558. default: uni.$u.props.loadingIcon.color
  20559. },
  20560. // 提示文字颜色
  20561. textColor: {
  20562. type: String,
  20563. default: uni.$u.props.loadingIcon.textColor
  20564. },
  20565. // 文字和图标是否垂直排列
  20566. vertical: {
  20567. type: Boolean,
  20568. default: uni.$u.props.loadingIcon.vertical
  20569. },
  20570. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  20571. mode: {
  20572. type: String,
  20573. default: uni.$u.props.loadingIcon.mode
  20574. },
  20575. // 图标大小,单位默认px
  20576. size: {
  20577. type: [String, Number],
  20578. default: uni.$u.props.loadingIcon.size
  20579. },
  20580. // 文字大小
  20581. textSize: {
  20582. type: [String, Number],
  20583. default: uni.$u.props.loadingIcon.textSize
  20584. },
  20585. // 文字内容
  20586. text: {
  20587. type: [String, Number],
  20588. default: uni.$u.props.loadingIcon.text
  20589. },
  20590. // 动画模式
  20591. timingFunction: {
  20592. type: String,
  20593. default: uni.$u.props.loadingIcon.timingFunction
  20594. },
  20595. // 动画执行周期时间
  20596. duration: {
  20597. type: [String, Number],
  20598. default: uni.$u.props.loadingIcon.duration
  20599. },
  20600. // mode=circle时的暗边颜色
  20601. inactiveColor: {
  20602. type: String,
  20603. default: uni.$u.props.loadingIcon.inactiveColor
  20604. }
  20605. }
  20606. };
  20607. exports.default = _default;
  20608. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  20609. /***/ }),
  20610. /* 400 */,
  20611. /* 401 */,
  20612. /* 402 */,
  20613. /* 403 */,
  20614. /* 404 */,
  20615. /* 405 */,
  20616. /* 406 */,
  20617. /* 407 */
  20618. /*!******************************************************************************!*\
  20619. !*** E:/工作1/project_order/uni_modules/uview-ui/libs/util/async-validator.js ***!
  20620. \******************************************************************************/
  20621. /*! no static exports found */
  20622. /***/ (function(module, exports, __webpack_require__) {
  20623. "use strict";
  20624. /* WEBPACK VAR INJECTION */(function(process) {
  20625. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  20626. Object.defineProperty(exports, "__esModule", {
  20627. value: true
  20628. });
  20629. exports.default = void 0;
  20630. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  20631. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  20632. 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; }
  20633. 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; }
  20634. function _extends() {
  20635. _extends = Object.assign || function (target) {
  20636. for (var i = 1; i < arguments.length; i++) {
  20637. var source = arguments[i];
  20638. for (var key in source) {
  20639. if (Object.prototype.hasOwnProperty.call(source, key)) {
  20640. target[key] = source[key];
  20641. }
  20642. }
  20643. }
  20644. return target;
  20645. };
  20646. return _extends.apply(this, arguments);
  20647. }
  20648. /* eslint no-console:0 */
  20649. var formatRegExp = /%[sdj%]/g;
  20650. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  20651. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"project_order","VUE_APP_PLATFORM":"mp-alipay","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  20652. warning = function warning(type, errors) {
  20653. if (typeof console !== 'undefined' && console.warn) {
  20654. if (errors.every(function (e) {
  20655. return typeof e === 'string';
  20656. })) {
  20657. console.warn(type, errors);
  20658. }
  20659. }
  20660. };
  20661. }
  20662. function convertFieldsError(errors) {
  20663. if (!errors || !errors.length) return null;
  20664. var fields = {};
  20665. errors.forEach(function (error) {
  20666. var field = error.field;
  20667. fields[field] = fields[field] || [];
  20668. fields[field].push(error);
  20669. });
  20670. return fields;
  20671. }
  20672. function format() {
  20673. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  20674. args[_key] = arguments[_key];
  20675. }
  20676. var i = 1;
  20677. var f = args[0];
  20678. var len = args.length;
  20679. if (typeof f === 'function') {
  20680. return f.apply(null, args.slice(1));
  20681. }
  20682. if (typeof f === 'string') {
  20683. var str = String(f).replace(formatRegExp, function (x) {
  20684. if (x === '%%') {
  20685. return '%';
  20686. }
  20687. if (i >= len) {
  20688. return x;
  20689. }
  20690. switch (x) {
  20691. case '%s':
  20692. return String(args[i++]);
  20693. case '%d':
  20694. return Number(args[i++]);
  20695. case '%j':
  20696. try {
  20697. return JSON.stringify(args[i++]);
  20698. } catch (_) {
  20699. return '[Circular]';
  20700. }
  20701. break;
  20702. default:
  20703. return x;
  20704. }
  20705. });
  20706. for (var arg = args[i]; i < len; arg = args[++i]) {
  20707. str += " ".concat(arg);
  20708. }
  20709. return str;
  20710. }
  20711. return f;
  20712. }
  20713. function isNativeStringType(type) {
  20714. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  20715. }
  20716. function isEmptyValue(value, type) {
  20717. if (value === undefined || value === null) {
  20718. return true;
  20719. }
  20720. if (type === 'array' && Array.isArray(value) && !value.length) {
  20721. return true;
  20722. }
  20723. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  20724. return true;
  20725. }
  20726. return false;
  20727. }
  20728. function asyncParallelArray(arr, func, callback) {
  20729. var results = [];
  20730. var total = 0;
  20731. var arrLength = arr.length;
  20732. function count(errors) {
  20733. results.push.apply(results, errors);
  20734. total++;
  20735. if (total === arrLength) {
  20736. callback(results);
  20737. }
  20738. }
  20739. arr.forEach(function (a) {
  20740. func(a, count);
  20741. });
  20742. }
  20743. function asyncSerialArray(arr, func, callback) {
  20744. var index = 0;
  20745. var arrLength = arr.length;
  20746. function next(errors) {
  20747. if (errors && errors.length) {
  20748. callback(errors);
  20749. return;
  20750. }
  20751. var original = index;
  20752. index += 1;
  20753. if (original < arrLength) {
  20754. func(arr[original], next);
  20755. } else {
  20756. callback([]);
  20757. }
  20758. }
  20759. next([]);
  20760. }
  20761. function flattenObjArr(objArr) {
  20762. var ret = [];
  20763. Object.keys(objArr).forEach(function (k) {
  20764. ret.push.apply(ret, objArr[k]);
  20765. });
  20766. return ret;
  20767. }
  20768. function asyncMap(objArr, option, func, callback) {
  20769. if (option.first) {
  20770. var _pending = new Promise(function (resolve, reject) {
  20771. var next = function next(errors) {
  20772. callback(errors);
  20773. return errors.length ? reject({
  20774. errors: errors,
  20775. fields: convertFieldsError(errors)
  20776. }) : resolve();
  20777. };
  20778. var flattenArr = flattenObjArr(objArr);
  20779. asyncSerialArray(flattenArr, func, next);
  20780. });
  20781. _pending.catch(function (e) {
  20782. return e;
  20783. });
  20784. return _pending;
  20785. }
  20786. var firstFields = option.firstFields || [];
  20787. if (firstFields === true) {
  20788. firstFields = Object.keys(objArr);
  20789. }
  20790. var objArrKeys = Object.keys(objArr);
  20791. var objArrLength = objArrKeys.length;
  20792. var total = 0;
  20793. var results = [];
  20794. var pending = new Promise(function (resolve, reject) {
  20795. var next = function next(errors) {
  20796. results.push.apply(results, errors);
  20797. total++;
  20798. if (total === objArrLength) {
  20799. callback(results);
  20800. return results.length ? reject({
  20801. errors: results,
  20802. fields: convertFieldsError(results)
  20803. }) : resolve();
  20804. }
  20805. };
  20806. if (!objArrKeys.length) {
  20807. callback(results);
  20808. resolve();
  20809. }
  20810. objArrKeys.forEach(function (key) {
  20811. var arr = objArr[key];
  20812. if (firstFields.indexOf(key) !== -1) {
  20813. asyncSerialArray(arr, func, next);
  20814. } else {
  20815. asyncParallelArray(arr, func, next);
  20816. }
  20817. });
  20818. });
  20819. pending.catch(function (e) {
  20820. return e;
  20821. });
  20822. return pending;
  20823. }
  20824. function complementError(rule) {
  20825. return function (oe) {
  20826. if (oe && oe.message) {
  20827. oe.field = oe.field || rule.fullField;
  20828. return oe;
  20829. }
  20830. return {
  20831. message: typeof oe === 'function' ? oe() : oe,
  20832. field: oe.field || rule.fullField
  20833. };
  20834. };
  20835. }
  20836. function deepMerge(target, source) {
  20837. if (source) {
  20838. for (var s in source) {
  20839. if (source.hasOwnProperty(s)) {
  20840. var value = source[s];
  20841. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  20842. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  20843. } else {
  20844. target[s] = value;
  20845. }
  20846. }
  20847. }
  20848. }
  20849. return target;
  20850. }
  20851. /**
  20852. * Rule for validating required fields.
  20853. *
  20854. * @param rule The validation rule.
  20855. * @param value The value of the field on the source object.
  20856. * @param source The source object being validated.
  20857. * @param errors An array of errors that this rule may add
  20858. * validation errors to.
  20859. * @param options The validation options.
  20860. * @param options.messages The validation messages.
  20861. */
  20862. function required(rule, value, source, errors, options, type) {
  20863. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  20864. errors.push(format(options.messages.required, rule.fullField));
  20865. }
  20866. }
  20867. /**
  20868. * Rule for validating whitespace.
  20869. *
  20870. * @param rule The validation rule.
  20871. * @param value The value of the field on the source object.
  20872. * @param source The source object being validated.
  20873. * @param errors An array of errors that this rule may add
  20874. * validation errors to.
  20875. * @param options The validation options.
  20876. * @param options.messages The validation messages.
  20877. */
  20878. function whitespace(rule, value, source, errors, options) {
  20879. if (/^\s+$/.test(value) || value === '') {
  20880. errors.push(format(options.messages.whitespace, rule.fullField));
  20881. }
  20882. }
  20883. /* eslint max-len:0 */
  20884. var pattern = {
  20885. // http://emailregex.com/
  20886. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  20887. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  20888. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  20889. };
  20890. var types = {
  20891. integer: function integer(value) {
  20892. return /^(-)?\d+$/.test(value);
  20893. },
  20894. float: function float(value) {
  20895. return /^(-)?\d+(\.\d+)?$/.test(value);
  20896. },
  20897. array: function array(value) {
  20898. return Array.isArray(value);
  20899. },
  20900. regexp: function regexp(value) {
  20901. if (value instanceof RegExp) {
  20902. return true;
  20903. }
  20904. try {
  20905. return !!new RegExp(value);
  20906. } catch (e) {
  20907. return false;
  20908. }
  20909. },
  20910. date: function date(value) {
  20911. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  20912. },
  20913. number: function number(value) {
  20914. if (isNaN(value)) {
  20915. return false;
  20916. }
  20917. // 修改源码,将字符串数值先转为数值
  20918. return typeof +value === 'number';
  20919. },
  20920. object: function object(value) {
  20921. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  20922. },
  20923. method: function method(value) {
  20924. return typeof value === 'function';
  20925. },
  20926. email: function email(value) {
  20927. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  20928. },
  20929. url: function url(value) {
  20930. return typeof value === 'string' && !!value.match(pattern.url);
  20931. },
  20932. hex: function hex(value) {
  20933. return typeof value === 'string' && !!value.match(pattern.hex);
  20934. }
  20935. };
  20936. /**
  20937. * Rule for validating the type of a value.
  20938. *
  20939. * @param rule The validation rule.
  20940. * @param value The value of the field on the source object.
  20941. * @param source The source object being validated.
  20942. * @param errors An array of errors that this rule may add
  20943. * validation errors to.
  20944. * @param options The validation options.
  20945. * @param options.messages The validation messages.
  20946. */
  20947. function type(rule, value, source, errors, options) {
  20948. if (rule.required && value === undefined) {
  20949. required(rule, value, source, errors, options);
  20950. return;
  20951. }
  20952. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  20953. var ruleType = rule.type;
  20954. if (custom.indexOf(ruleType) > -1) {
  20955. if (!types[ruleType](value)) {
  20956. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20957. } // straight typeof check
  20958. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  20959. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20960. }
  20961. }
  20962. /**
  20963. * Rule for validating minimum and maximum allowed values.
  20964. *
  20965. * @param rule The validation rule.
  20966. * @param value The value of the field on the source object.
  20967. * @param source The source object being validated.
  20968. * @param errors An array of errors that this rule may add
  20969. * validation errors to.
  20970. * @param options The validation options.
  20971. * @param options.messages The validation messages.
  20972. */
  20973. function range(rule, value, source, errors, options) {
  20974. var len = typeof rule.len === 'number';
  20975. var min = typeof rule.min === 'number';
  20976. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  20977. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  20978. var val = value;
  20979. var key = null;
  20980. var num = typeof value === 'number';
  20981. var str = typeof value === 'string';
  20982. var arr = Array.isArray(value);
  20983. if (num) {
  20984. key = 'number';
  20985. } else if (str) {
  20986. key = 'string';
  20987. } else if (arr) {
  20988. key = 'array';
  20989. } // if the value is not of a supported type for range validation
  20990. // the validation rule rule should use the
  20991. // type property to also test for a particular type
  20992. if (!key) {
  20993. return false;
  20994. }
  20995. if (arr) {
  20996. val = value.length;
  20997. }
  20998. if (str) {
  20999. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  21000. val = value.replace(spRegexp, '_').length;
  21001. }
  21002. if (len) {
  21003. if (val !== rule.len) {
  21004. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  21005. }
  21006. } else if (min && !max && val < rule.min) {
  21007. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  21008. } else if (max && !min && val > rule.max) {
  21009. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  21010. } else if (min && max && (val < rule.min || val > rule.max)) {
  21011. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  21012. }
  21013. }
  21014. var ENUM = 'enum';
  21015. /**
  21016. * Rule for validating a value exists in an enumerable list.
  21017. *
  21018. * @param rule The validation rule.
  21019. * @param value The value of the field on the source object.
  21020. * @param source The source object being validated.
  21021. * @param errors An array of errors that this rule may add
  21022. * validation errors to.
  21023. * @param options The validation options.
  21024. * @param options.messages The validation messages.
  21025. */
  21026. function enumerable(rule, value, source, errors, options) {
  21027. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  21028. if (rule[ENUM].indexOf(value) === -1) {
  21029. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  21030. }
  21031. }
  21032. /**
  21033. * Rule for validating a regular expression pattern.
  21034. *
  21035. * @param rule The validation rule.
  21036. * @param value The value of the field on the source object.
  21037. * @param source The source object being validated.
  21038. * @param errors An array of errors that this rule may add
  21039. * validation errors to.
  21040. * @param options The validation options.
  21041. * @param options.messages The validation messages.
  21042. */
  21043. function pattern$1(rule, value, source, errors, options) {
  21044. if (rule.pattern) {
  21045. if (rule.pattern instanceof RegExp) {
  21046. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  21047. // flag is accidentally set to `true`, which in a validation scenario
  21048. // is not necessary and the result might be misleading
  21049. rule.pattern.lastIndex = 0;
  21050. if (!rule.pattern.test(value)) {
  21051. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21052. }
  21053. } else if (typeof rule.pattern === 'string') {
  21054. var _pattern = new RegExp(rule.pattern);
  21055. if (!_pattern.test(value)) {
  21056. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21057. }
  21058. }
  21059. }
  21060. }
  21061. var rules = {
  21062. required: required,
  21063. whitespace: whitespace,
  21064. type: type,
  21065. range: range,
  21066. enum: enumerable,
  21067. pattern: pattern$1
  21068. };
  21069. /**
  21070. * Performs validation for string types.
  21071. *
  21072. * @param rule The validation rule.
  21073. * @param value The value of the field on the source object.
  21074. * @param callback The callback function.
  21075. * @param source The source object being validated.
  21076. * @param options The validation options.
  21077. * @param options.messages The validation messages.
  21078. */
  21079. function string(rule, value, callback, source, options) {
  21080. var errors = [];
  21081. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21082. if (validate) {
  21083. if (isEmptyValue(value, 'string') && !rule.required) {
  21084. return callback();
  21085. }
  21086. rules.required(rule, value, source, errors, options, 'string');
  21087. if (!isEmptyValue(value, 'string')) {
  21088. rules.type(rule, value, source, errors, options);
  21089. rules.range(rule, value, source, errors, options);
  21090. rules.pattern(rule, value, source, errors, options);
  21091. if (rule.whitespace === true) {
  21092. rules.whitespace(rule, value, source, errors, options);
  21093. }
  21094. }
  21095. }
  21096. callback(errors);
  21097. }
  21098. /**
  21099. * Validates a function.
  21100. *
  21101. * @param rule The validation rule.
  21102. * @param value The value of the field on the source object.
  21103. * @param callback The callback function.
  21104. * @param source The source object being validated.
  21105. * @param options The validation options.
  21106. * @param options.messages The validation messages.
  21107. */
  21108. function method(rule, value, callback, source, options) {
  21109. var errors = [];
  21110. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21111. if (validate) {
  21112. if (isEmptyValue(value) && !rule.required) {
  21113. return callback();
  21114. }
  21115. rules.required(rule, value, source, errors, options);
  21116. if (value !== undefined) {
  21117. rules.type(rule, value, source, errors, options);
  21118. }
  21119. }
  21120. callback(errors);
  21121. }
  21122. /**
  21123. * Validates a number.
  21124. *
  21125. * @param rule The validation rule.
  21126. * @param value The value of the field on the source object.
  21127. * @param callback The callback function.
  21128. * @param source The source object being validated.
  21129. * @param options The validation options.
  21130. * @param options.messages The validation messages.
  21131. */
  21132. function number(rule, value, callback, source, options) {
  21133. var errors = [];
  21134. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21135. if (validate) {
  21136. if (value === '') {
  21137. value = undefined;
  21138. }
  21139. if (isEmptyValue(value) && !rule.required) {
  21140. return callback();
  21141. }
  21142. rules.required(rule, value, source, errors, options);
  21143. if (value !== undefined) {
  21144. rules.type(rule, value, source, errors, options);
  21145. rules.range(rule, value, source, errors, options);
  21146. }
  21147. }
  21148. callback(errors);
  21149. }
  21150. /**
  21151. * Validates a boolean.
  21152. *
  21153. * @param rule The validation rule.
  21154. * @param value The value of the field on the source object.
  21155. * @param callback The callback function.
  21156. * @param source The source object being validated.
  21157. * @param options The validation options.
  21158. * @param options.messages The validation messages.
  21159. */
  21160. function _boolean(rule, value, callback, source, options) {
  21161. var errors = [];
  21162. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21163. if (validate) {
  21164. if (isEmptyValue(value) && !rule.required) {
  21165. return callback();
  21166. }
  21167. rules.required(rule, value, source, errors, options);
  21168. if (value !== undefined) {
  21169. rules.type(rule, value, source, errors, options);
  21170. }
  21171. }
  21172. callback(errors);
  21173. }
  21174. /**
  21175. * Validates the regular expression type.
  21176. *
  21177. * @param rule The validation rule.
  21178. * @param value The value of the field on the source object.
  21179. * @param callback The callback function.
  21180. * @param source The source object being validated.
  21181. * @param options The validation options.
  21182. * @param options.messages The validation messages.
  21183. */
  21184. function regexp(rule, value, callback, source, options) {
  21185. var errors = [];
  21186. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21187. if (validate) {
  21188. if (isEmptyValue(value) && !rule.required) {
  21189. return callback();
  21190. }
  21191. rules.required(rule, value, source, errors, options);
  21192. if (!isEmptyValue(value)) {
  21193. rules.type(rule, value, source, errors, options);
  21194. }
  21195. }
  21196. callback(errors);
  21197. }
  21198. /**
  21199. * Validates a number is an integer.
  21200. *
  21201. * @param rule The validation rule.
  21202. * @param value The value of the field on the source object.
  21203. * @param callback The callback function.
  21204. * @param source The source object being validated.
  21205. * @param options The validation options.
  21206. * @param options.messages The validation messages.
  21207. */
  21208. function integer(rule, value, callback, source, options) {
  21209. var errors = [];
  21210. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21211. if (validate) {
  21212. if (isEmptyValue(value) && !rule.required) {
  21213. return callback();
  21214. }
  21215. rules.required(rule, value, source, errors, options);
  21216. if (value !== undefined) {
  21217. rules.type(rule, value, source, errors, options);
  21218. rules.range(rule, value, source, errors, options);
  21219. }
  21220. }
  21221. callback(errors);
  21222. }
  21223. /**
  21224. * Validates a number is a floating point number.
  21225. *
  21226. * @param rule The validation rule.
  21227. * @param value The value of the field on the source object.
  21228. * @param callback The callback function.
  21229. * @param source The source object being validated.
  21230. * @param options The validation options.
  21231. * @param options.messages The validation messages.
  21232. */
  21233. function floatFn(rule, value, callback, source, options) {
  21234. var errors = [];
  21235. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21236. if (validate) {
  21237. if (isEmptyValue(value) && !rule.required) {
  21238. return callback();
  21239. }
  21240. rules.required(rule, value, source, errors, options);
  21241. if (value !== undefined) {
  21242. rules.type(rule, value, source, errors, options);
  21243. rules.range(rule, value, source, errors, options);
  21244. }
  21245. }
  21246. callback(errors);
  21247. }
  21248. /**
  21249. * Validates an array.
  21250. *
  21251. * @param rule The validation rule.
  21252. * @param value The value of the field on the source object.
  21253. * @param callback The callback function.
  21254. * @param source The source object being validated.
  21255. * @param options The validation options.
  21256. * @param options.messages The validation messages.
  21257. */
  21258. function array(rule, value, callback, source, options) {
  21259. var errors = [];
  21260. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21261. if (validate) {
  21262. if (isEmptyValue(value, 'array') && !rule.required) {
  21263. return callback();
  21264. }
  21265. rules.required(rule, value, source, errors, options, 'array');
  21266. if (!isEmptyValue(value, 'array')) {
  21267. rules.type(rule, value, source, errors, options);
  21268. rules.range(rule, value, source, errors, options);
  21269. }
  21270. }
  21271. callback(errors);
  21272. }
  21273. /**
  21274. * Validates an object.
  21275. *
  21276. * @param rule The validation rule.
  21277. * @param value The value of the field on the source object.
  21278. * @param callback The callback function.
  21279. * @param source The source object being validated.
  21280. * @param options The validation options.
  21281. * @param options.messages The validation messages.
  21282. */
  21283. function object(rule, value, callback, source, options) {
  21284. var errors = [];
  21285. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21286. if (validate) {
  21287. if (isEmptyValue(value) && !rule.required) {
  21288. return callback();
  21289. }
  21290. rules.required(rule, value, source, errors, options);
  21291. if (value !== undefined) {
  21292. rules.type(rule, value, source, errors, options);
  21293. }
  21294. }
  21295. callback(errors);
  21296. }
  21297. var ENUM$1 = 'enum';
  21298. /**
  21299. * Validates an enumerable list.
  21300. *
  21301. * @param rule The validation rule.
  21302. * @param value The value of the field on the source object.
  21303. * @param callback The callback function.
  21304. * @param source The source object being validated.
  21305. * @param options The validation options.
  21306. * @param options.messages The validation messages.
  21307. */
  21308. function enumerable$1(rule, value, callback, source, options) {
  21309. var errors = [];
  21310. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21311. if (validate) {
  21312. if (isEmptyValue(value) && !rule.required) {
  21313. return callback();
  21314. }
  21315. rules.required(rule, value, source, errors, options);
  21316. if (value !== undefined) {
  21317. rules[ENUM$1](rule, value, source, errors, options);
  21318. }
  21319. }
  21320. callback(errors);
  21321. }
  21322. /**
  21323. * Validates a regular expression pattern.
  21324. *
  21325. * Performs validation when a rule only contains
  21326. * a pattern property but is not declared as a string type.
  21327. *
  21328. * @param rule The validation rule.
  21329. * @param value The value of the field on the source object.
  21330. * @param callback The callback function.
  21331. * @param source The source object being validated.
  21332. * @param options The validation options.
  21333. * @param options.messages The validation messages.
  21334. */
  21335. function pattern$2(rule, value, callback, source, options) {
  21336. var errors = [];
  21337. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21338. if (validate) {
  21339. if (isEmptyValue(value, 'string') && !rule.required) {
  21340. return callback();
  21341. }
  21342. rules.required(rule, value, source, errors, options);
  21343. if (!isEmptyValue(value, 'string')) {
  21344. rules.pattern(rule, value, source, errors, options);
  21345. }
  21346. }
  21347. callback(errors);
  21348. }
  21349. function date(rule, value, callback, source, options) {
  21350. var errors = [];
  21351. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21352. if (validate) {
  21353. if (isEmptyValue(value) && !rule.required) {
  21354. return callback();
  21355. }
  21356. rules.required(rule, value, source, errors, options);
  21357. if (!isEmptyValue(value)) {
  21358. var dateObject;
  21359. if (typeof value === 'number') {
  21360. dateObject = new Date(value);
  21361. } else {
  21362. dateObject = value;
  21363. }
  21364. rules.type(rule, dateObject, source, errors, options);
  21365. if (dateObject) {
  21366. rules.range(rule, dateObject.getTime(), source, errors, options);
  21367. }
  21368. }
  21369. }
  21370. callback(errors);
  21371. }
  21372. function required$1(rule, value, callback, source, options) {
  21373. var errors = [];
  21374. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  21375. rules.required(rule, value, source, errors, options, type);
  21376. callback(errors);
  21377. }
  21378. function type$1(rule, value, callback, source, options) {
  21379. var ruleType = rule.type;
  21380. var errors = [];
  21381. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21382. if (validate) {
  21383. if (isEmptyValue(value, ruleType) && !rule.required) {
  21384. return callback();
  21385. }
  21386. rules.required(rule, value, source, errors, options, ruleType);
  21387. if (!isEmptyValue(value, ruleType)) {
  21388. rules.type(rule, value, source, errors, options);
  21389. }
  21390. }
  21391. callback(errors);
  21392. }
  21393. /**
  21394. * Performs validation for any type.
  21395. *
  21396. * @param rule The validation rule.
  21397. * @param value The value of the field on the source object.
  21398. * @param callback The callback function.
  21399. * @param source The source object being validated.
  21400. * @param options The validation options.
  21401. * @param options.messages The validation messages.
  21402. */
  21403. function any(rule, value, callback, source, options) {
  21404. var errors = [];
  21405. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21406. if (validate) {
  21407. if (isEmptyValue(value) && !rule.required) {
  21408. return callback();
  21409. }
  21410. rules.required(rule, value, source, errors, options);
  21411. }
  21412. callback(errors);
  21413. }
  21414. var validators = {
  21415. string: string,
  21416. method: method,
  21417. number: number,
  21418. boolean: _boolean,
  21419. regexp: regexp,
  21420. integer: integer,
  21421. float: floatFn,
  21422. array: array,
  21423. object: object,
  21424. enum: enumerable$1,
  21425. pattern: pattern$2,
  21426. date: date,
  21427. url: type$1,
  21428. hex: type$1,
  21429. email: type$1,
  21430. required: required$1,
  21431. any: any
  21432. };
  21433. function newMessages() {
  21434. return {
  21435. default: 'Validation error on field %s',
  21436. required: '%s is required',
  21437. enum: '%s must be one of %s',
  21438. whitespace: '%s cannot be empty',
  21439. date: {
  21440. format: '%s date %s is invalid for format %s',
  21441. parse: '%s date could not be parsed, %s is invalid ',
  21442. invalid: '%s date %s is invalid'
  21443. },
  21444. types: {
  21445. string: '%s is not a %s',
  21446. method: '%s is not a %s (function)',
  21447. array: '%s is not an %s',
  21448. object: '%s is not an %s',
  21449. number: '%s is not a %s',
  21450. date: '%s is not a %s',
  21451. boolean: '%s is not a %s',
  21452. integer: '%s is not an %s',
  21453. float: '%s is not a %s',
  21454. regexp: '%s is not a valid %s',
  21455. email: '%s is not a valid %s',
  21456. url: '%s is not a valid %s',
  21457. hex: '%s is not a valid %s'
  21458. },
  21459. string: {
  21460. len: '%s must be exactly %s characters',
  21461. min: '%s must be at least %s characters',
  21462. max: '%s cannot be longer than %s characters',
  21463. range: '%s must be between %s and %s characters'
  21464. },
  21465. number: {
  21466. len: '%s must equal %s',
  21467. min: '%s cannot be less than %s',
  21468. max: '%s cannot be greater than %s',
  21469. range: '%s must be between %s and %s'
  21470. },
  21471. array: {
  21472. len: '%s must be exactly %s in length',
  21473. min: '%s cannot be less than %s in length',
  21474. max: '%s cannot be greater than %s in length',
  21475. range: '%s must be between %s and %s in length'
  21476. },
  21477. pattern: {
  21478. mismatch: '%s value %s does not match pattern %s'
  21479. },
  21480. clone: function clone() {
  21481. var cloned = JSON.parse(JSON.stringify(this));
  21482. cloned.clone = this.clone;
  21483. return cloned;
  21484. }
  21485. };
  21486. }
  21487. var messages = newMessages();
  21488. /**
  21489. * Encapsulates a validation schema.
  21490. *
  21491. * @param descriptor An object declaring validation rules
  21492. * for this schema.
  21493. */
  21494. function Schema(descriptor) {
  21495. this.rules = null;
  21496. this._messages = messages;
  21497. this.define(descriptor);
  21498. }
  21499. Schema.prototype = {
  21500. messages: function messages(_messages) {
  21501. if (_messages) {
  21502. this._messages = deepMerge(newMessages(), _messages);
  21503. }
  21504. return this._messages;
  21505. },
  21506. define: function define(rules) {
  21507. if (!rules) {
  21508. throw new Error('Cannot configure a schema with no rules');
  21509. }
  21510. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  21511. throw new Error('Rules must be an object');
  21512. }
  21513. this.rules = {};
  21514. var z;
  21515. var item;
  21516. for (z in rules) {
  21517. if (rules.hasOwnProperty(z)) {
  21518. item = rules[z];
  21519. this.rules[z] = Array.isArray(item) ? item : [item];
  21520. }
  21521. }
  21522. },
  21523. validate: function validate(source_, o, oc) {
  21524. var _this = this;
  21525. if (o === void 0) {
  21526. o = {};
  21527. }
  21528. if (oc === void 0) {
  21529. oc = function oc() {};
  21530. }
  21531. var source = source_;
  21532. var options = o;
  21533. var callback = oc;
  21534. if (typeof options === 'function') {
  21535. callback = options;
  21536. options = {};
  21537. }
  21538. if (!this.rules || Object.keys(this.rules).length === 0) {
  21539. if (callback) {
  21540. callback();
  21541. }
  21542. return Promise.resolve();
  21543. }
  21544. function complete(results) {
  21545. var i;
  21546. var errors = [];
  21547. var fields = {};
  21548. function add(e) {
  21549. if (Array.isArray(e)) {
  21550. var _errors;
  21551. errors = (_errors = errors).concat.apply(_errors, e);
  21552. } else {
  21553. errors.push(e);
  21554. }
  21555. }
  21556. for (i = 0; i < results.length; i++) {
  21557. add(results[i]);
  21558. }
  21559. if (!errors.length) {
  21560. errors = null;
  21561. fields = null;
  21562. } else {
  21563. fields = convertFieldsError(errors);
  21564. }
  21565. callback(errors, fields);
  21566. }
  21567. if (options.messages) {
  21568. var messages$1 = this.messages();
  21569. if (messages$1 === messages) {
  21570. messages$1 = newMessages();
  21571. }
  21572. deepMerge(messages$1, options.messages);
  21573. options.messages = messages$1;
  21574. } else {
  21575. options.messages = this.messages();
  21576. }
  21577. var arr;
  21578. var value;
  21579. var series = {};
  21580. var keys = options.keys || Object.keys(this.rules);
  21581. keys.forEach(function (z) {
  21582. arr = _this.rules[z];
  21583. value = source[z];
  21584. arr.forEach(function (r) {
  21585. var rule = r;
  21586. if (typeof rule.transform === 'function') {
  21587. if (source === source_) {
  21588. source = _objectSpread({}, source);
  21589. }
  21590. value = source[z] = rule.transform(value);
  21591. }
  21592. if (typeof rule === 'function') {
  21593. rule = {
  21594. validator: rule
  21595. };
  21596. } else {
  21597. rule = _objectSpread({}, rule);
  21598. }
  21599. rule.validator = _this.getValidationMethod(rule);
  21600. rule.field = z;
  21601. rule.fullField = rule.fullField || z;
  21602. rule.type = _this.getType(rule);
  21603. if (!rule.validator) {
  21604. return;
  21605. }
  21606. series[z] = series[z] || [];
  21607. series[z].push({
  21608. rule: rule,
  21609. value: value,
  21610. source: source,
  21611. field: z
  21612. });
  21613. });
  21614. });
  21615. var errorFields = {};
  21616. return asyncMap(series, options, function (data, doIt) {
  21617. var rule = data.rule;
  21618. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  21619. deep = deep && (rule.required || !rule.required && data.value);
  21620. rule.field = data.field;
  21621. function addFullfield(key, schema) {
  21622. return _objectSpread(_objectSpread({}, schema), {}, {
  21623. fullField: "".concat(rule.fullField, ".").concat(key)
  21624. });
  21625. }
  21626. function cb(e) {
  21627. if (e === void 0) {
  21628. e = [];
  21629. }
  21630. var errors = e;
  21631. if (!Array.isArray(errors)) {
  21632. errors = [errors];
  21633. }
  21634. if (!options.suppressWarning && errors.length) {
  21635. Schema.warning('async-validator:', errors);
  21636. }
  21637. if (errors.length && rule.message) {
  21638. errors = [].concat(rule.message);
  21639. }
  21640. errors = errors.map(complementError(rule));
  21641. if (options.first && errors.length) {
  21642. errorFields[rule.field] = 1;
  21643. return doIt(errors);
  21644. }
  21645. if (!deep) {
  21646. doIt(errors);
  21647. } else {
  21648. // if rule is required but the target object
  21649. // does not exist fail at the rule level and don't
  21650. // go deeper
  21651. if (rule.required && !data.value) {
  21652. if (rule.message) {
  21653. errors = [].concat(rule.message).map(complementError(rule));
  21654. } else if (options.error) {
  21655. errors = [options.error(rule, format(options.messages.required, rule.field))];
  21656. } else {
  21657. errors = [];
  21658. }
  21659. return doIt(errors);
  21660. }
  21661. var fieldsSchema = {};
  21662. if (rule.defaultField) {
  21663. for (var k in data.value) {
  21664. if (data.value.hasOwnProperty(k)) {
  21665. fieldsSchema[k] = rule.defaultField;
  21666. }
  21667. }
  21668. }
  21669. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  21670. for (var f in fieldsSchema) {
  21671. if (fieldsSchema.hasOwnProperty(f)) {
  21672. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  21673. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  21674. }
  21675. }
  21676. var schema = new Schema(fieldsSchema);
  21677. schema.messages(options.messages);
  21678. if (data.rule.options) {
  21679. data.rule.options.messages = options.messages;
  21680. data.rule.options.error = options.error;
  21681. }
  21682. schema.validate(data.value, data.rule.options || options, function (errs) {
  21683. var finalErrors = [];
  21684. if (errors && errors.length) {
  21685. finalErrors.push.apply(finalErrors, errors);
  21686. }
  21687. if (errs && errs.length) {
  21688. finalErrors.push.apply(finalErrors, errs);
  21689. }
  21690. doIt(finalErrors.length ? finalErrors : null);
  21691. });
  21692. }
  21693. }
  21694. var res;
  21695. if (rule.asyncValidator) {
  21696. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  21697. } else if (rule.validator) {
  21698. res = rule.validator(rule, data.value, cb, data.source, options);
  21699. if (res === true) {
  21700. cb();
  21701. } else if (res === false) {
  21702. cb(rule.message || "".concat(rule.field, " fails"));
  21703. } else if (res instanceof Array) {
  21704. cb(res);
  21705. } else if (res instanceof Error) {
  21706. cb(res.message);
  21707. }
  21708. }
  21709. if (res && res.then) {
  21710. res.then(function () {
  21711. return cb();
  21712. }, function (e) {
  21713. return cb(e);
  21714. });
  21715. }
  21716. }, function (results) {
  21717. complete(results);
  21718. });
  21719. },
  21720. getType: function getType(rule) {
  21721. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  21722. rule.type = 'pattern';
  21723. }
  21724. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  21725. throw new Error(format('Unknown rule type %s', rule.type));
  21726. }
  21727. return rule.type || 'string';
  21728. },
  21729. getValidationMethod: function getValidationMethod(rule) {
  21730. if (typeof rule.validator === 'function') {
  21731. return rule.validator;
  21732. }
  21733. var keys = Object.keys(rule);
  21734. var messageIndex = keys.indexOf('message');
  21735. if (messageIndex !== -1) {
  21736. keys.splice(messageIndex, 1);
  21737. }
  21738. if (keys.length === 1 && keys[0] === 'required') {
  21739. return validators.required;
  21740. }
  21741. return validators[this.getType(rule)] || false;
  21742. }
  21743. };
  21744. Schema.register = function register(type, validator) {
  21745. if (typeof validator !== 'function') {
  21746. throw new Error('Cannot register a validator by type, validator is not a function');
  21747. }
  21748. validators[type] = validator;
  21749. };
  21750. Schema.warning = warning;
  21751. Schema.messages = messages;
  21752. var _default = Schema; // # sourceMappingURL=index.js.map
  21753. exports.default = _default;
  21754. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 408)))
  21755. /***/ }),
  21756. /* 408 */
  21757. /*!********************************************************!*\
  21758. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  21759. \********************************************************/
  21760. /*! no static exports found */
  21761. /***/ (function(module, exports, __webpack_require__) {
  21762. exports.nextTick = function nextTick(fn) {
  21763. var args = Array.prototype.slice.call(arguments);
  21764. args.shift();
  21765. setTimeout(function () {
  21766. fn.apply(null, args);
  21767. }, 0);
  21768. };
  21769. exports.platform = exports.arch =
  21770. exports.execPath = exports.title = 'browser';
  21771. exports.pid = 1;
  21772. exports.browser = true;
  21773. exports.env = {};
  21774. exports.argv = [];
  21775. exports.binding = function (name) {
  21776. throw new Error('No such module. (Possibly not yet loaded)')
  21777. };
  21778. (function () {
  21779. var cwd = '/';
  21780. var path;
  21781. exports.cwd = function () { return cwd };
  21782. exports.chdir = function (dir) {
  21783. if (!path) path = __webpack_require__(/*! path */ 409);
  21784. cwd = path.resolve(dir, cwd);
  21785. };
  21786. })();
  21787. exports.exit = exports.kill =
  21788. exports.umask = exports.dlopen =
  21789. exports.uptime = exports.memoryUsage =
  21790. exports.uvCounters = function() {};
  21791. exports.features = {};
  21792. /***/ }),
  21793. /* 409 */
  21794. /*!***********************************************!*\
  21795. !*** ./node_modules/path-browserify/index.js ***!
  21796. \***********************************************/
  21797. /*! no static exports found */
  21798. /***/ (function(module, exports, __webpack_require__) {
  21799. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  21800. // backported and transplited with Babel, with backwards-compat fixes
  21801. // Copyright Joyent, Inc. and other Node contributors.
  21802. //
  21803. // Permission is hereby granted, free of charge, to any person obtaining a
  21804. // copy of this software and associated documentation files (the
  21805. // "Software"), to deal in the Software without restriction, including
  21806. // without limitation the rights to use, copy, modify, merge, publish,
  21807. // distribute, sublicense, and/or sell copies of the Software, and to permit
  21808. // persons to whom the Software is furnished to do so, subject to the
  21809. // following conditions:
  21810. //
  21811. // The above copyright notice and this permission notice shall be included
  21812. // in all copies or substantial portions of the Software.
  21813. //
  21814. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21815. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21816. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  21817. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  21818. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  21819. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  21820. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  21821. // resolves . and .. elements in a path array with directory names there
  21822. // must be no slashes, empty elements, or device names (c:\) in the array
  21823. // (so also no leading and trailing slashes - it does not distinguish
  21824. // relative and absolute paths)
  21825. function normalizeArray(parts, allowAboveRoot) {
  21826. // if the path tries to go above the root, `up` ends up > 0
  21827. var up = 0;
  21828. for (var i = parts.length - 1; i >= 0; i--) {
  21829. var last = parts[i];
  21830. if (last === '.') {
  21831. parts.splice(i, 1);
  21832. } else if (last === '..') {
  21833. parts.splice(i, 1);
  21834. up++;
  21835. } else if (up) {
  21836. parts.splice(i, 1);
  21837. up--;
  21838. }
  21839. }
  21840. // if the path is allowed to go above the root, restore leading ..s
  21841. if (allowAboveRoot) {
  21842. for (; up--; up) {
  21843. parts.unshift('..');
  21844. }
  21845. }
  21846. return parts;
  21847. }
  21848. // path.resolve([from ...], to)
  21849. // posix version
  21850. exports.resolve = function() {
  21851. var resolvedPath = '',
  21852. resolvedAbsolute = false;
  21853. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  21854. var path = (i >= 0) ? arguments[i] : process.cwd();
  21855. // Skip empty and invalid entries
  21856. if (typeof path !== 'string') {
  21857. throw new TypeError('Arguments to path.resolve must be strings');
  21858. } else if (!path) {
  21859. continue;
  21860. }
  21861. resolvedPath = path + '/' + resolvedPath;
  21862. resolvedAbsolute = path.charAt(0) === '/';
  21863. }
  21864. // At this point the path should be resolved to a full absolute path, but
  21865. // handle relative paths to be safe (might happen when process.cwd() fails)
  21866. // Normalize the path
  21867. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  21868. return !!p;
  21869. }), !resolvedAbsolute).join('/');
  21870. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  21871. };
  21872. // path.normalize(path)
  21873. // posix version
  21874. exports.normalize = function(path) {
  21875. var isAbsolute = exports.isAbsolute(path),
  21876. trailingSlash = substr(path, -1) === '/';
  21877. // Normalize the path
  21878. path = normalizeArray(filter(path.split('/'), function(p) {
  21879. return !!p;
  21880. }), !isAbsolute).join('/');
  21881. if (!path && !isAbsolute) {
  21882. path = '.';
  21883. }
  21884. if (path && trailingSlash) {
  21885. path += '/';
  21886. }
  21887. return (isAbsolute ? '/' : '') + path;
  21888. };
  21889. // posix version
  21890. exports.isAbsolute = function(path) {
  21891. return path.charAt(0) === '/';
  21892. };
  21893. // posix version
  21894. exports.join = function() {
  21895. var paths = Array.prototype.slice.call(arguments, 0);
  21896. return exports.normalize(filter(paths, function(p, index) {
  21897. if (typeof p !== 'string') {
  21898. throw new TypeError('Arguments to path.join must be strings');
  21899. }
  21900. return p;
  21901. }).join('/'));
  21902. };
  21903. // path.relative(from, to)
  21904. // posix version
  21905. exports.relative = function(from, to) {
  21906. from = exports.resolve(from).substr(1);
  21907. to = exports.resolve(to).substr(1);
  21908. function trim(arr) {
  21909. var start = 0;
  21910. for (; start < arr.length; start++) {
  21911. if (arr[start] !== '') break;
  21912. }
  21913. var end = arr.length - 1;
  21914. for (; end >= 0; end--) {
  21915. if (arr[end] !== '') break;
  21916. }
  21917. if (start > end) return [];
  21918. return arr.slice(start, end - start + 1);
  21919. }
  21920. var fromParts = trim(from.split('/'));
  21921. var toParts = trim(to.split('/'));
  21922. var length = Math.min(fromParts.length, toParts.length);
  21923. var samePartsLength = length;
  21924. for (var i = 0; i < length; i++) {
  21925. if (fromParts[i] !== toParts[i]) {
  21926. samePartsLength = i;
  21927. break;
  21928. }
  21929. }
  21930. var outputParts = [];
  21931. for (var i = samePartsLength; i < fromParts.length; i++) {
  21932. outputParts.push('..');
  21933. }
  21934. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  21935. return outputParts.join('/');
  21936. };
  21937. exports.sep = '/';
  21938. exports.delimiter = ':';
  21939. exports.dirname = function (path) {
  21940. if (typeof path !== 'string') path = path + '';
  21941. if (path.length === 0) return '.';
  21942. var code = path.charCodeAt(0);
  21943. var hasRoot = code === 47 /*/*/;
  21944. var end = -1;
  21945. var matchedSlash = true;
  21946. for (var i = path.length - 1; i >= 1; --i) {
  21947. code = path.charCodeAt(i);
  21948. if (code === 47 /*/*/) {
  21949. if (!matchedSlash) {
  21950. end = i;
  21951. break;
  21952. }
  21953. } else {
  21954. // We saw the first non-path separator
  21955. matchedSlash = false;
  21956. }
  21957. }
  21958. if (end === -1) return hasRoot ? '/' : '.';
  21959. if (hasRoot && end === 1) {
  21960. // return '//';
  21961. // Backwards-compat fix:
  21962. return '/';
  21963. }
  21964. return path.slice(0, end);
  21965. };
  21966. function basename(path) {
  21967. if (typeof path !== 'string') path = path + '';
  21968. var start = 0;
  21969. var end = -1;
  21970. var matchedSlash = true;
  21971. var i;
  21972. for (i = path.length - 1; i >= 0; --i) {
  21973. if (path.charCodeAt(i) === 47 /*/*/) {
  21974. // If we reached a path separator that was not part of a set of path
  21975. // separators at the end of the string, stop now
  21976. if (!matchedSlash) {
  21977. start = i + 1;
  21978. break;
  21979. }
  21980. } else if (end === -1) {
  21981. // We saw the first non-path separator, mark this as the end of our
  21982. // path component
  21983. matchedSlash = false;
  21984. end = i + 1;
  21985. }
  21986. }
  21987. if (end === -1) return '';
  21988. return path.slice(start, end);
  21989. }
  21990. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  21991. // in new Node.js versions, so only basename() above is backported here
  21992. exports.basename = function (path, ext) {
  21993. var f = basename(path);
  21994. if (ext && f.substr(-1 * ext.length) === ext) {
  21995. f = f.substr(0, f.length - ext.length);
  21996. }
  21997. return f;
  21998. };
  21999. exports.extname = function (path) {
  22000. if (typeof path !== 'string') path = path + '';
  22001. var startDot = -1;
  22002. var startPart = 0;
  22003. var end = -1;
  22004. var matchedSlash = true;
  22005. // Track the state of characters (if any) we see before our first dot and
  22006. // after any path separator we find
  22007. var preDotState = 0;
  22008. for (var i = path.length - 1; i >= 0; --i) {
  22009. var code = path.charCodeAt(i);
  22010. if (code === 47 /*/*/) {
  22011. // If we reached a path separator that was not part of a set of path
  22012. // separators at the end of the string, stop now
  22013. if (!matchedSlash) {
  22014. startPart = i + 1;
  22015. break;
  22016. }
  22017. continue;
  22018. }
  22019. if (end === -1) {
  22020. // We saw the first non-path separator, mark this as the end of our
  22021. // extension
  22022. matchedSlash = false;
  22023. end = i + 1;
  22024. }
  22025. if (code === 46 /*.*/) {
  22026. // If this is our first dot, mark it as the start of our extension
  22027. if (startDot === -1)
  22028. startDot = i;
  22029. else if (preDotState !== 1)
  22030. preDotState = 1;
  22031. } else if (startDot !== -1) {
  22032. // We saw a non-dot and non-path separator before our dot, so we should
  22033. // have a good chance at having a non-empty extension
  22034. preDotState = -1;
  22035. }
  22036. }
  22037. if (startDot === -1 || end === -1 ||
  22038. // We saw a non-dot character immediately before the dot
  22039. preDotState === 0 ||
  22040. // The (right-most) trimmed path component is exactly '..'
  22041. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  22042. return '';
  22043. }
  22044. return path.slice(startDot, end);
  22045. };
  22046. function filter (xs, f) {
  22047. if (xs.filter) return xs.filter(f);
  22048. var res = [];
  22049. for (var i = 0; i < xs.length; i++) {
  22050. if (f(xs[i], i, xs)) res.push(xs[i]);
  22051. }
  22052. return res;
  22053. }
  22054. // String.prototype.substr - negative index don't work in IE8
  22055. var substr = 'ab'.substr(-1) === 'b'
  22056. ? function (str, start, len) { return str.substr(start, len) }
  22057. : function (str, start, len) {
  22058. if (start < 0) start = str.length + start;
  22059. return str.substr(start, len);
  22060. }
  22061. ;
  22062. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 408)))
  22063. /***/ }),
  22064. /* 410 */,
  22065. /* 411 */,
  22066. /* 412 */,
  22067. /* 413 */,
  22068. /* 414 */,
  22069. /* 415 */,
  22070. /* 416 */,
  22071. /* 417 */,
  22072. /* 418 */,
  22073. /* 419 */,
  22074. /* 420 */,
  22075. /* 421 */,
  22076. /* 422 */
  22077. /*!*****************************************************************************!*\
  22078. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-badge/props.js ***!
  22079. \*****************************************************************************/
  22080. /*! no static exports found */
  22081. /***/ (function(module, exports, __webpack_require__) {
  22082. "use strict";
  22083. /* WEBPACK VAR INJECTION */(function(uni) {
  22084. Object.defineProperty(exports, "__esModule", {
  22085. value: true
  22086. });
  22087. exports.default = void 0;
  22088. var _default = {
  22089. props: {
  22090. // 是否显示圆点
  22091. isDot: {
  22092. type: Boolean,
  22093. default: uni.$u.props.badge.isDot
  22094. },
  22095. // 显示的内容
  22096. value: {
  22097. type: [Number, String],
  22098. default: uni.$u.props.badge.value
  22099. },
  22100. // 是否显示
  22101. show: {
  22102. type: Boolean,
  22103. default: uni.$u.props.badge.show
  22104. },
  22105. // 最大值,超过最大值会显示 '{max}+'
  22106. max: {
  22107. type: [Number, String],
  22108. default: uni.$u.props.badge.max
  22109. },
  22110. // 主题类型,error|warning|success|primary
  22111. type: {
  22112. type: String,
  22113. default: uni.$u.props.badge.type
  22114. },
  22115. // 当数值为 0 时,是否展示 Badge
  22116. showZero: {
  22117. type: Boolean,
  22118. default: uni.$u.props.badge.showZero
  22119. },
  22120. // 背景颜色,优先级比type高,如设置,type参数会失效
  22121. bgColor: {
  22122. type: [String, null],
  22123. default: uni.$u.props.badge.bgColor
  22124. },
  22125. // 字体颜色
  22126. color: {
  22127. type: [String, null],
  22128. default: uni.$u.props.badge.color
  22129. },
  22130. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  22131. shape: {
  22132. type: String,
  22133. default: uni.$u.props.badge.shape
  22134. },
  22135. // 设置数字的显示方式,overflow|ellipsis|limit
  22136. // overflow会根据max字段判断,超出显示`${max}+`
  22137. // ellipsis会根据max判断,超出显示`${max}...`
  22138. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  22139. numberType: {
  22140. type: String,
  22141. default: uni.$u.props.badge.numberType
  22142. },
  22143. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  22144. offset: {
  22145. type: Array,
  22146. default: uni.$u.props.badge.offset
  22147. },
  22148. // 是否反转背景和字体颜色
  22149. inverted: {
  22150. type: Boolean,
  22151. default: uni.$u.props.badge.inverted
  22152. },
  22153. // 是否绝对定位
  22154. absolute: {
  22155. type: Boolean,
  22156. default: uni.$u.props.badge.absolute
  22157. }
  22158. }
  22159. };
  22160. exports.default = _default;
  22161. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  22162. /***/ }),
  22163. /* 423 */,
  22164. /* 424 */,
  22165. /* 425 */,
  22166. /* 426 */,
  22167. /* 427 */,
  22168. /* 428 */,
  22169. /* 429 */,
  22170. /* 430 */
  22171. /*!*******************************************************************************!*\
  22172. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-overlay/props.js ***!
  22173. \*******************************************************************************/
  22174. /*! no static exports found */
  22175. /***/ (function(module, exports, __webpack_require__) {
  22176. "use strict";
  22177. /* WEBPACK VAR INJECTION */(function(uni) {
  22178. Object.defineProperty(exports, "__esModule", {
  22179. value: true
  22180. });
  22181. exports.default = void 0;
  22182. var _default = {
  22183. props: {
  22184. // 是否显示遮罩
  22185. show: {
  22186. type: Boolean,
  22187. default: uni.$u.props.overlay.show
  22188. },
  22189. // 层级z-index
  22190. zIndex: {
  22191. type: [String, Number],
  22192. default: uni.$u.props.overlay.zIndex
  22193. },
  22194. // 遮罩的过渡时间,单位为ms
  22195. duration: {
  22196. type: [String, Number],
  22197. default: uni.$u.props.overlay.duration
  22198. },
  22199. // 不透明度值,当做rgba的第四个参数
  22200. opacity: {
  22201. type: [String, Number],
  22202. default: uni.$u.props.overlay.opacity
  22203. }
  22204. }
  22205. };
  22206. exports.default = _default;
  22207. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  22208. /***/ }),
  22209. /* 431 */,
  22210. /* 432 */,
  22211. /* 433 */,
  22212. /* 434 */,
  22213. /* 435 */,
  22214. /* 436 */,
  22215. /* 437 */,
  22216. /* 438 */
  22217. /*!**********************************************************************************!*\
  22218. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-transition/props.js ***!
  22219. \**********************************************************************************/
  22220. /*! no static exports found */
  22221. /***/ (function(module, exports, __webpack_require__) {
  22222. "use strict";
  22223. /* WEBPACK VAR INJECTION */(function(uni) {
  22224. Object.defineProperty(exports, "__esModule", {
  22225. value: true
  22226. });
  22227. exports.default = void 0;
  22228. var _default = {
  22229. props: {
  22230. // 是否展示组件
  22231. show: {
  22232. type: Boolean,
  22233. default: uni.$u.props.transition.show
  22234. },
  22235. // 使用的动画模式
  22236. mode: {
  22237. type: String,
  22238. default: uni.$u.props.transition.mode
  22239. },
  22240. // 动画的执行时间,单位ms
  22241. duration: {
  22242. type: [String, Number],
  22243. default: uni.$u.props.transition.duration
  22244. },
  22245. // 使用的动画过渡函数
  22246. timingFunction: {
  22247. type: String,
  22248. default: uni.$u.props.transition.timingFunction
  22249. }
  22250. }
  22251. };
  22252. exports.default = _default;
  22253. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  22254. /***/ }),
  22255. /* 439 */
  22256. /*!***************************************************************************************!*\
  22257. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-transition/transition.js ***!
  22258. \***************************************************************************************/
  22259. /*! no static exports found */
  22260. /***/ (function(module, exports, __webpack_require__) {
  22261. "use strict";
  22262. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  22263. Object.defineProperty(exports, "__esModule", {
  22264. value: true
  22265. });
  22266. exports.default = void 0;
  22267. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 52));
  22268. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 54));
  22269. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 440));
  22270. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  22271. var nextTick = function nextTick() {
  22272. return new Promise(function (resolve) {
  22273. return setTimeout(resolve, 1000 / 50);
  22274. });
  22275. };
  22276. // nvue动画模块实现细节抽离在外部文件
  22277. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  22278. var getClassNames = function getClassNames(name) {
  22279. return {
  22280. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  22281. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  22282. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  22283. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  22284. };
  22285. };
  22286. var _default = {
  22287. methods: {
  22288. // 组件被点击发出事件
  22289. clickHandler: function clickHandler() {
  22290. this.$emit('click');
  22291. },
  22292. // vue版本的组件进场处理
  22293. vueEnter: function vueEnter() {
  22294. var _this = this;
  22295. // 动画进入时的类名
  22296. var classNames = getClassNames(this.mode);
  22297. // 定义状态和发出动画进入前事件
  22298. this.status = 'enter';
  22299. this.$emit('beforeEnter');
  22300. this.inited = true;
  22301. this.display = true;
  22302. this.classes = classNames.enter;
  22303. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  22304. return _regenerator.default.wrap(function _callee$(_context) {
  22305. while (1) {
  22306. switch (_context.prev = _context.next) {
  22307. case 0:
  22308. // 标识动画尚未结束
  22309. _this.$emit('enter');
  22310. _this.transitionEnded = false;
  22311. // 组件动画进入后触发的事件
  22312. _this.$emit('afterEnter');
  22313. // 赋予组件enter-to类名
  22314. _this.classes = classNames['enter-to'];
  22315. case 4:
  22316. case "end":
  22317. return _context.stop();
  22318. }
  22319. }
  22320. }, _callee);
  22321. })));
  22322. },
  22323. // 动画离场处理
  22324. vueLeave: function vueLeave() {
  22325. var _this2 = this;
  22326. // 如果不是展示状态,无需执行逻辑
  22327. if (!this.display) return;
  22328. var classNames = getClassNames(this.mode);
  22329. // 标记离开状态和发出事件
  22330. this.status = 'leave';
  22331. this.$emit('beforeLeave');
  22332. // 获得类名
  22333. this.classes = classNames.leave;
  22334. this.$nextTick(function () {
  22335. // 动画正在离场的状态
  22336. _this2.transitionEnded = false;
  22337. _this2.$emit('leave');
  22338. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  22339. setTimeout(_this2.onTransitionEnd, _this2.duration);
  22340. _this2.classes = classNames['leave-to'];
  22341. });
  22342. },
  22343. // 完成过渡后触发
  22344. onTransitionEnd: function onTransitionEnd() {
  22345. // 如果已经是结束的状态,无需再处理
  22346. if (this.transitionEnded) return;
  22347. this.transitionEnded = true;
  22348. // 发出组件动画执行后的事件
  22349. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  22350. if (!this.show && this.display) {
  22351. this.display = false;
  22352. this.inited = false;
  22353. }
  22354. }
  22355. }
  22356. };
  22357. exports.default = _default;
  22358. /***/ }),
  22359. /* 440 */
  22360. /*!*****************************************************************************************!*\
  22361. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  22362. \*****************************************************************************************/
  22363. /*! no static exports found */
  22364. /***/ (function(module, exports, __webpack_require__) {
  22365. "use strict";
  22366. Object.defineProperty(exports, "__esModule", {
  22367. value: true
  22368. });
  22369. exports.default = void 0;
  22370. var _default = {
  22371. fade: {
  22372. enter: {
  22373. opacity: 0
  22374. },
  22375. 'enter-to': {
  22376. opacity: 1
  22377. },
  22378. leave: {
  22379. opacity: 1
  22380. },
  22381. 'leave-to': {
  22382. opacity: 0
  22383. }
  22384. },
  22385. 'fade-up': {
  22386. enter: {
  22387. opacity: 0,
  22388. transform: 'translateY(100%)'
  22389. },
  22390. 'enter-to': {
  22391. opacity: 1,
  22392. transform: 'translateY(0)'
  22393. },
  22394. leave: {
  22395. opacity: 1,
  22396. transform: 'translateY(0)'
  22397. },
  22398. 'leave-to': {
  22399. opacity: 0,
  22400. transform: 'translateY(100%)'
  22401. }
  22402. },
  22403. 'fade-down': {
  22404. enter: {
  22405. opacity: 0,
  22406. transform: 'translateY(-100%)'
  22407. },
  22408. 'enter-to': {
  22409. opacity: 1,
  22410. transform: 'translateY(0)'
  22411. },
  22412. leave: {
  22413. opacity: 1,
  22414. transform: 'translateY(0)'
  22415. },
  22416. 'leave-to': {
  22417. opacity: 0,
  22418. transform: 'translateY(-100%)'
  22419. }
  22420. },
  22421. 'fade-left': {
  22422. enter: {
  22423. opacity: 0,
  22424. transform: 'translateX(-100%)'
  22425. },
  22426. 'enter-to': {
  22427. opacity: 1,
  22428. transform: 'translateY(0)'
  22429. },
  22430. leave: {
  22431. opacity: 1,
  22432. transform: 'translateY(0)'
  22433. },
  22434. 'leave-to': {
  22435. opacity: 0,
  22436. transform: 'translateX(-100%)'
  22437. }
  22438. },
  22439. 'fade-right': {
  22440. enter: {
  22441. opacity: 0,
  22442. transform: 'translateX(100%)'
  22443. },
  22444. 'enter-to': {
  22445. opacity: 1,
  22446. transform: 'translateY(0)'
  22447. },
  22448. leave: {
  22449. opacity: 1,
  22450. transform: 'translateY(0)'
  22451. },
  22452. 'leave-to': {
  22453. opacity: 0,
  22454. transform: 'translateX(100%)'
  22455. }
  22456. },
  22457. 'slide-up': {
  22458. enter: {
  22459. transform: 'translateY(100%)'
  22460. },
  22461. 'enter-to': {
  22462. transform: 'translateY(0)'
  22463. },
  22464. leave: {
  22465. transform: 'translateY(0)'
  22466. },
  22467. 'leave-to': {
  22468. transform: 'translateY(100%)'
  22469. }
  22470. },
  22471. 'slide-down': {
  22472. enter: {
  22473. transform: 'translateY(-100%)'
  22474. },
  22475. 'enter-to': {
  22476. transform: 'translateY(0)'
  22477. },
  22478. leave: {
  22479. transform: 'translateY(0)'
  22480. },
  22481. 'leave-to': {
  22482. transform: 'translateY(-100%)'
  22483. }
  22484. },
  22485. 'slide-left': {
  22486. enter: {
  22487. transform: 'translateX(-100%)'
  22488. },
  22489. 'enter-to': {
  22490. transform: 'translateY(0)'
  22491. },
  22492. leave: {
  22493. transform: 'translateY(0)'
  22494. },
  22495. 'leave-to': {
  22496. transform: 'translateX(-100%)'
  22497. }
  22498. },
  22499. 'slide-right': {
  22500. enter: {
  22501. transform: 'translateX(100%)'
  22502. },
  22503. 'enter-to': {
  22504. transform: 'translateY(0)'
  22505. },
  22506. leave: {
  22507. transform: 'translateY(0)'
  22508. },
  22509. 'leave-to': {
  22510. transform: 'translateX(100%)'
  22511. }
  22512. },
  22513. zoom: {
  22514. enter: {
  22515. transform: 'scale(0.95)'
  22516. },
  22517. 'enter-to': {
  22518. transform: 'scale(1)'
  22519. },
  22520. leave: {
  22521. transform: 'scale(1)'
  22522. },
  22523. 'leave-to': {
  22524. transform: 'scale(0.95)'
  22525. }
  22526. },
  22527. 'fade-zoom': {
  22528. enter: {
  22529. opacity: 0,
  22530. transform: 'scale(0.95)'
  22531. },
  22532. 'enter-to': {
  22533. opacity: 1,
  22534. transform: 'scale(1)'
  22535. },
  22536. leave: {
  22537. opacity: 1,
  22538. transform: 'scale(1)'
  22539. },
  22540. 'leave-to': {
  22541. opacity: 0,
  22542. transform: 'scale(0.95)'
  22543. }
  22544. }
  22545. };
  22546. exports.default = _default;
  22547. /***/ }),
  22548. /* 441 */,
  22549. /* 442 */,
  22550. /* 443 */,
  22551. /* 444 */,
  22552. /* 445 */,
  22553. /* 446 */,
  22554. /* 447 */,
  22555. /* 448 */
  22556. /*!**********************************************************************************!*\
  22557. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  22558. \**********************************************************************************/
  22559. /*! no static exports found */
  22560. /***/ (function(module, exports, __webpack_require__) {
  22561. "use strict";
  22562. /* WEBPACK VAR INJECTION */(function(uni) {
  22563. Object.defineProperty(exports, "__esModule", {
  22564. value: true
  22565. });
  22566. exports.default = void 0;
  22567. var _default = {
  22568. props: {
  22569. bgColor: {
  22570. type: String,
  22571. default: uni.$u.props.statusBar.bgColor
  22572. }
  22573. }
  22574. };
  22575. exports.default = _default;
  22576. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  22577. /***/ }),
  22578. /* 449 */,
  22579. /* 450 */,
  22580. /* 451 */,
  22581. /* 452 */,
  22582. /* 453 */,
  22583. /* 454 */,
  22584. /* 455 */,
  22585. /* 456 */
  22586. /*!***********************************************************************************!*\
  22587. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  22588. \***********************************************************************************/
  22589. /*! no static exports found */
  22590. /***/ (function(module, exports, __webpack_require__) {
  22591. "use strict";
  22592. Object.defineProperty(exports, "__esModule", {
  22593. value: true
  22594. });
  22595. exports.default = void 0;
  22596. var _default = {
  22597. props: {}
  22598. };
  22599. exports.default = _default;
  22600. /***/ }),
  22601. /* 457 */,
  22602. /* 458 */,
  22603. /* 459 */,
  22604. /* 460 */,
  22605. /* 461 */,
  22606. /* 462 */,
  22607. /* 463 */,
  22608. /* 464 */
  22609. /*!***************************************************************************!*\
  22610. !*** E:/工作1/project_order/uni_modules/uview-ui/components/u-gap/props.js ***!
  22611. \***************************************************************************/
  22612. /*! no static exports found */
  22613. /***/ (function(module, exports, __webpack_require__) {
  22614. "use strict";
  22615. /* WEBPACK VAR INJECTION */(function(uni) {
  22616. Object.defineProperty(exports, "__esModule", {
  22617. value: true
  22618. });
  22619. exports.default = void 0;
  22620. var _default = {
  22621. props: {
  22622. // 背景颜色(默认transparent)
  22623. bgColor: {
  22624. type: String,
  22625. default: uni.$u.props.gap.bgColor
  22626. },
  22627. // 分割槽高度,单位px(默认30)
  22628. height: {
  22629. type: [String, Number],
  22630. default: uni.$u.props.gap.height
  22631. },
  22632. // 与上一个组件的距离
  22633. marginTop: {
  22634. type: [String, Number],
  22635. default: uni.$u.props.gap.marginTop
  22636. },
  22637. // 与下一个组件的距离
  22638. marginBottom: {
  22639. type: [String, Number],
  22640. default: uni.$u.props.gap.marginBottom
  22641. }
  22642. }
  22643. };
  22644. exports.default = _default;
  22645. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
  22646. /***/ })
  22647. ]]);